/* =========================================================
   ROYAL EXPERT PAINTS — SHARED SITE STYLES
   Used by every page except index.html (which is self-contained).
   Tokens are identical to index.html so the two never drift.
========================================================= */

:root {
    --ink: #182219;
    --paper: #fbfaf7;
    --rust: #a85534;
    --rust-dark: #8c432a;
    --sand: #f4f1eb;
    --deep: #0c0e0c;
    --hair: #e5e0d5;
    --muted: #5b5b57;

    --shadow-sm: 0 1px 2px rgba(24, 34, 25, .05), 0 6px 16px -10px rgba(24, 34, 25, .18);
    --shadow-md: 0 2px 6px rgba(24, 34, 25, .05), 0 22px 48px -26px rgba(24, 34, 25, .32);
    --shadow-lg: 0 4px 10px rgba(24, 34, 25, .06), 0 44px 90px -40px rgba(24, 34, 25, .45);

    --ease: cubic-bezier(.22, .61, .36, 1);

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: #242622;
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button {
    cursor: pointer;
    transition: color .3s ease, background-color .3s ease, border-color .3s ease,
        transform .3s var(--ease), box-shadow .3s ease, opacity .3s ease;
}

:focus-visible {
    outline: 2px solid var(--rust);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--rust);
    color: #fff;
}

.shell {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (min-width:1024px) {
    .shell {
        padding-inline: 80px;
    }
}

.display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px !important;
    text-transform: uppercase;
}

.rule {
    display: block;
    width: 46px;
    height: 2px;
    background: var(--rust);
    margin-top: 14px;
}

.rule--center {
    margin-inline: auto;
}

.rule--light {
    background: rgba(255, 255, 255, .7);
}

/* =========================================================
   HEADER
========================================================= */

#site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 18px 0;
    background: rgba(251, 250, 247, 0);
    transition: background-color .4s ease, backdrop-filter .4s ease,
        box-shadow .4s ease, padding .4s ease;
}

#site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#site-header .logo img {
    height: 56px;
    width: auto;
    transition: height .4s ease;
}

#site-header.scrolled {
    background: rgba(251, 250, 247, .94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(24, 34, 25, .08), 0 18px 40px -30px rgba(24, 34, 25, .5);
    padding: 12px 0;
}

#site-header.scrolled .logo img {
    height: 44px;
}

.nav {
    display: none;
    gap: 30px;
    font-size: 15px;
    font-weight: 600;
}

@media (min-width:1024px) {
    .nav {
        display: flex;
    }
}

.nav a {
    position: relative;
    padding-bottom: 5px;
    color: #242622;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--rust);
    transition: width .35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--rust);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
    width: 100%;
}

/* Light treatment while sitting over a dark hero image */
#site-header.over-dark:not(.scrolled) .nav a,
#site-header.over-dark:not(.scrolled) .head-actions .btn-ghost {
    /* color: #fff; */
}

#site-header.over-dark:not(.scrolled) .nav a::after {
    /* background: #fff; */
}

#site-header.over-dark:not(.scrolled) .head-actions .btn-ghost {
    border-color: #a85534;
}

#site-header.over-dark:not(.scrolled) #menu-toggle span {
    background: #fff;
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

#menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    background: none;
    border: 0;
}

@media (min-width:1024px) {
    #menu-toggle {
        display: none;
    }
}

#menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: transform .35s var(--ease), opacity .25s ease, background-color .3s ease;
}

#menu-toggle.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

#menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

#mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease);
}

#mobile-nav.open {
    grid-template-rows: 1fr;
}

#mobile-nav>div {
    overflow: hidden;
}

#mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--hair);
    background: rgba(251, 250, 247, .97);
    backdrop-filter: blur(14px);
    font-weight: 600;
}

#mobile-nav nav a {
    padding: 10px 0;
}

@media (min-width:1024px) {
    #mobile-nav {
        display: none;
    }
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px 26px;
    line-height: 1;
    overflow: hidden;
}

.btn-solid {
    background: var(--rust);
    color: #fff;
}

.btn-solid:hover {
    /* background: var(--rust-dark); */
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    border-color: rgba(24, 34, 25, .28);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--rust);
    color: var(--rust);
    transform: translateY(-2px);
}

.btn-light {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-light:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-2px);
}

/* =========================================================
   PAGE HERO — full-bleed background image
========================================================= */

.phero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(460px, 54vh, 760px);
    padding: 160px 0 64px;
    overflow: hidden;
    background: var(--deep);
}

.phero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-color: #f5f1e7;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 1.9s var(--ease) both;
}

.phero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(8, 10, 8, .93) 0%, rgba(8, 10, 8, .62) 38%, rgba(8, 10, 8, .28) 70%, rgba(8, 10, 8, .5) 100%),
        linear-gradient(to right, rgba(8, 10, 8, .72) 0%, rgba(8, 10, 8, .28) 55%, rgba(8, 10, 8, .1) 100%);
}

.phero__inner {
    /* color: #fff; */
    max-width: 780px;
}

.phero .eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a85534;
}

.phero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.03;
    letter-spacing: -.01em;
    margin: 18px 0 0;
    text-transform: uppercase;
}

.phero p.lede {
    max-width: 58ch;
    margin: 22px 0 0;
    font-size: 16px;
    line-height: 1.65;
    /* color: rgba(255, 255, 255, .84); */
}

.phero .tagline {
    margin: 14px 0 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: clamp(20px, 2.6vw, 27px);
    color: rgba(255, 255, 255, .92);
}

.phero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

@keyframes heroZoom {
    from {
        opacity: 0;
        transform: scale(1.12);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Breadcrumb strip under the hero */
.crumbs {
    border-bottom: 1px solid var(--hair);
    background: var(--sand);
    font-size: 12.5px;
    letter-spacing: .04em;
    color: var(--muted);
}

.crumbs .shell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-block: 14px;
}

.crumbs a:hover {
    color: var(--rust);
}

.crumbs span[aria-current] {
    color: var(--ink);
    font-weight: 600;
}

/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding-block: clamp(56px, 8vw, 92px);
}

.section--sand {
    background: rgba(244, 241, 235, .55);
    border-block: 1px solid var(--hair);
}

.section--deep {
    background: var(--deep);
    color: #fff;
}

.section--deep .lede,
.section--deep .body {
    color: rgba(255, 255, 255, .76);
}

.section-head {
    max-width: 66ch;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.08;
    margin: 0;
    letter-spacing: -.01em;
}

.section-head .kicker {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rust);
}

.section-head .lede {
    margin: 22px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
}

.body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 68ch;
}

/* =========================================================
   MEDIA FRAME
========================================================= */

.frame {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(140deg, #1b1f1a, #0c0e0c);
    box-shadow: var(--shadow-md);
}

.frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    pointer-events: none;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.frame:hover img {
    transform: scale(1.04);
}

.frame--tall {
    aspect-ratio: 7 / 5;
}

.frame--wide {
    aspect-ratio: 16 / 10;
}

.frame--square {
    aspect-ratio: 1 / 1;
}

/* Image that has not been supplied yet keeps the layout intact */
.frame img.missing {
    opacity: 0;
}

.frame.is-empty::before {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .34);
}

/* =========================================================
   GRIDS + CARDS
========================================================= */

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3,
.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width:640px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 56px;
        align-items: center;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #d9d2c4;
    box-shadow: var(--shadow-md);
}

.card__media {
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.card__media::after {
    border-radius: 0;
}

.card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card__body h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.card__body .meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rust);
}

.card__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.card__link {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    border-top: 1px solid var(--hair);
}

.card:hover .card__link {
    color: var(--rust);
}

/* Feature tile (no image) */
.tile {
    padding: 28px;
    border: 1px solid var(--hair);
    border-radius: 12px;
    background: #fff;
    transition: transform .4s var(--ease), border-color .3s ease;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: var(--rust);
}

.tile i {
    color: var(--rust);
}

.tile h3 {
    margin: 16px 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.tile p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--muted);
}

.section--deep .tile {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .14);
}

.section--deep .tile p {
    color: rgba(255, 255, 255, .7);
}

/* =========================================================
   LISTS, SPECS, SYSTEM FLOW
========================================================= */

.ticks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ticks li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    line-height: 1.6;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 7px;
    border-left: 2px solid var(--rust);
    border-bottom: 2px solid var(--rust);
    transform: rotate(-45deg);
}

.specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.specs th,
.specs td {
    text-align: left;
    padding: 15px 0;
    border-bottom: 1px solid var(--hair);
    vertical-align: top;
}

.specs th {
    width: 42%;
    font-weight: 600;
    color: var(--ink);
}

.specs td {
    color: var(--muted);
}

.section--deep .specs th,
.section--deep .specs td {
    border-color: rgba(255, 255, 255, .14);
}

.section--deep .specs th {
    color: #fff;
}

.section--deep .specs td {
    color: rgba(255, 255, 255, .72);
}

/* Application system: Surface → Primer → Topcoat */
.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
}

.flow__step {
    flex: 1 1 180px;
    padding: 18px 20px;
    border: 1px solid var(--hair);
    border-radius: 10px;
    background: #fff;
}

.flow__step b {
    display: block;
    font-size: 15px;
    line-height: 1.3;
}

.flow__step small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.flow__arrow {
    align-self: center;
    color: var(--rust);
    font-size: 18px;
}

.section--deep .flow__step {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .16);
}

.section--deep .flow__step small {
    color: rgba(255, 255, 255, .66);
}

/* Numbered steps — used only where the content is a real sequence */
.steps {
    counter-reset: s;
    display: grid;
    gap: 2px;
    margin-top: 32px;
}

.step {
    counter-increment: s;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--hair);
}

.step:last-child {
    border-bottom: 1px solid var(--hair);
}

.step::before {
    content: counter(s, decimal-leading-zero);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: var(--rust);
}

.step h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.section--deep .step {
    border-color: rgba(255, 255, 255, .14);
}

.section--deep .step p {
    color: rgba(255, 255, 255, .7);
}

/* =========================================================
   CTA BAND
========================================================= */

.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--deep);
    color: #fff;
    padding-block: clamp(56px, 8vw, 88px);
    text-align: center;
}

.cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: .38;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(8, 10, 8, .72), rgba(8, 10, 8, .9));
}

.cta-band h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 4.6vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.cta-band p {
    max-width: 56ch;
    margin: 18px auto 0;
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
}

.cta-band .phero__cta {
    justify-content: center;
}

/* =========================================================
   FORMS
========================================================= */

.field {
    display: block;
    margin-bottom: 18px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: 6px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--rust);
    box-shadow: 0 0 0 3px rgba(168, 85, 52, .14);
}

.form-note {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top: 1px solid var(--hair);
    background: rgba(244, 241, 235, .6);
    padding-block: 64px;
    font-size: 14px;
}

.site-footer .cols {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width:640px) {
    .site-footer .cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1024px) {
    .site-footer .cols {
        grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    }
}

.site-footer img {
    height: 48px;
    width: auto;
}

.site-footer b {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
    line-height: 1.5;
}

.site-footer a:hover {
    color: var(--rust);
}

.site-footer .quote {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 19px;
    line-height: 1.4;
    margin: 16px 0 0;
}

.site-footer .addr {
    margin: 18px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.subscribe {
    display: flex;
    margin-top: 16px;
    border: 1px solid #b9b2a3;
    border-radius: 3px;
    overflow: hidden;
}

.subscribe input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    font: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    outline: none;
}

.subscribe button {
    padding: 0 16px;
    background: transparent;
    border: 0;
    border-left: 1px solid #b9b2a3;
    font-size: 15px;
}

.subscribe button:hover {
    background: var(--rust);
    color: #fff;
}

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid var(--hair);
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   REVEAL + REDUCED MOTION
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Skip link becomes visible on keyboard focus */
.skip:focus {
    left: 16px !important;
    top: 16px;
    z-index: 100;
    padding: 12px 18px;
    background: var(--ink);
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 767px){
    #site-header .logo img{height: 42px;}
	button#menu-toggle {padding: 11px !important;}
}
.btn:hover::before {
    transform: translateX(0);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff24;
    transform: translateX(-110%);
    transition: transform .5s var(--ease);
}