/* =========================================================================
   HILLWOOD INTERIORS — SHARED DESIGN SYSTEM
   One stylesheet for every page. The homepage's cinematic hero keeps its own
   inline CSS (it's tightly coupled to the canvas sequence); everything else —
   the site chrome, sections, cards, forms — lives here so all 13 pages read as
   one brand. Palette + type are lifted straight from the hero so the site never
   changes voice between the film and the pages below it.
   ========================================================================= */

:root {
  /* Gallery-white palette — warm paper, espresso ink, gilded accents.
     Three golds, because one gold cannot do every job on a light ground:
       --gold-soft  light champagne. Fills, washes, gradients, gold-on-dark text
                    (it only ever sits on imagery or the film, never on paper).
       --gold       champagne. Hairlines, borders, icons, button fills — decorative
                    weight only; at 2.4:1 on white it is not legible as small text.
       --gold-ink   antique gold. The ONLY gold for text on paper (5:1 on --bg).
     Reach for --gold-ink whenever the gold is a word; --gold when it is a line. */
  --bg: #fbfaf7;            /* warm gallery white */
  --bg-2: #ffffff;          /* raised surface (cards, header-solid) */
  --bg-3: #f4efe5;          /* hover / input surface */
  --fg: #171310;            /* espresso ink */
  --muted: rgba(23, 19, 16, .68);
  --faint: rgba(23, 19, 16, .45);
  --line: rgba(160, 124, 66, .32);    /* hairline gold */
  --line-soft: rgba(160, 124, 66, .16);
  --accent: #b8873f;        /* warm amber */
  --gold: #c3a268;          /* champagne — decorative accent */
  --gold-soft: #e7d3ac;     /* light champagne — fills + gold on dark */
  --gold-ink: #8a6835;      /* antique gold — gold text on paper */
  --scrim: 10, 6, 3;        /* warm dark for image veils/shadows (rgb parts) */
  --shadow: 23, 19, 16;     /* ink, for the soft lift white surfaces need */
  --ok: #2e7d53;
  --err: #b3402f;
  --wa: #25d366;            /* WhatsApp green */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;

  --header-h: 74px;
  --maxw: 1280px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ---- Hide the scrollbar, keep the scrolling ----
   Three properties because no single one covers the field: `scrollbar-width` is
   the standard (Firefox), `-ms-overflow-style` is legacy Edge, and Blink/WebKit
   only answer to the ::-webkit-scrollbar pseudo-element.

   Applied to html AND body: the scrollbar for the page belongs to whichever of
   the two is the scrolling element, and that differs between engines.

   `display: none` on the pseudo-element, not `width: 0` — width alone still
   reserves a track in some builds. None of this touches scrollability: the
   scrollbar is only the visual affordance, and wheel, trackpad, keyboard,
   touch and programmatic scrolling all behave exactly as before.

   Worth knowing: macOS already uses overlay scrollbars, so this is mostly a
   Windows/Linux change — and on those it removes a real cue that the page is
   long. The progress bar at the top of the homepage covers that for the hero. */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 3px; }

/* ---- Layout primitives ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.section { padding: clamp(64px, 10vh, 132px) 0; }
.section--tight { padding: clamp(44px, 7vh, 84px) 0; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- Type scale ---- */
.eyebrow {
  font-size: 12px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 16px; font-weight: 600;
}
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 6vw, 66px); line-height: 1.02; letter-spacing: -0.01em;
}
.h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.05; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.12; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.lead { font-size: clamp(16px, 1.7vw, 20px); color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.gold { color: var(--gold-ink); }
.serif { font-family: var(--serif); }
/* Display-size only — the gradient bottoms out at --gold-ink so even the palest
   stop stays readable on paper. Never put this on body copy. */
.goldtext {
  background: linear-gradient(180deg, var(--gold), var(--gold-ink));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* "View all →" — the quiet way a section hands off to its full page. Pairs with a
   section head; sits on the baseline of the heading block when the two share a row. */
.view-all {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-end;
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold-ink); border-bottom: 1px solid var(--line); padding-bottom: 7px;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.view-all:hover { color: var(--fg); border-bottom-color: var(--gold-ink); }
.view-all .arw { transition: transform .35s var(--ease); }
.view-all:hover .arw { transform: translateX(5px); }

.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vh, 60px); }
.sec-head.center { margin-left: auto; margin-right: auto; }
.sec-head p { margin-top: 14px; }

/* =========================================================================
   HEADER / NAV
   Transparent over the hero, turns solid on scroll or on inner pages
   (body.solid-header). Mobile: slide-in drawer.
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled,
body.solid-header .site-header,
/* The mobile menu is a dropdown, so unlike the old full-screen drawer it leaves the
   header on show. The header's over-hero treatment is light-on-dark, but the rules
   further down switch it back to dark text whenever nav-open is set — so without a
   solid backing here that text would be dark-on-dark video. */
body.nav-open .site-header,
/* Homepage: the hero script sets body.past-frames once the cinematic sequence has
   scrolled out of view, so the header stays fully transparent over the frames and
   turns solid only when the content sections take over. */
body.past-frames .site-header {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 24px rgba(var(--shadow), .06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(var(--shadow), .10);
}
.brand .word {
  font: 600 20px/1 var(--serif); letter-spacing: .30em; text-indent: .30em;
  text-transform: uppercase; color: var(--fg);
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 6px 0; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold-ink); transition: right .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-cta { display: flex; align-items: center; gap: 14px; }
/* The in-nav "Book a Consultation" is for the mobile drawer only — on desktop the
   corner header-cta button already covers it, so hide the duplicate here.
   Selector must out-specify `.btn { display:inline-flex }` (which is defined later),
   hence `.nav a.js-menu-cta` rather than a bare `.js-menu-cta`. */
.nav a.js-menu-cta { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  transition: all .4s var(--ease); white-space: nowrap; cursor: pointer;
}
.btn-gold {
  background: var(--gold); color: #1f1710; border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(160, 124, 66, .22);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(160, 124, 66, .26); }
.btn-ghost { background: transparent; color: var(--gold-ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(195, 162, 104, .14); border-color: var(--gold); }
/* A full-width button has no reason to stay on one line, and .btn's nowrap turns
   its label into a min-content floor that its container then can't shrink past. */
.btn-block { width: 100%; white-space: normal; }
.btn-lg { padding: 16px 34px; }

/* Hamburger */
.nav-toggle {
  display: none; width: 40px; height: 40px; background: none; border: 0;
  position: relative; z-index: 70;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 9px; width: 22px; height: 1.5px;
  background: var(--fg); transition: transform .35s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }

  /* ---- Mobile menu: a dropdown card set aside under the hamburger ----
     Not a full-screen drawer and not a full-width bar — a narrow panel hung off
     the right edge, so the hero stays visible beside it and the menu reads as an
     object on the page rather than a mode the whole screen enters. It grows from
     its top-right corner, i.e. out of the button that opened it.
     The finish is the brand's material palette: warm paper, a champagne wash
     raking off the top corner, gold hairlines, and serif labels — the same
     register as the printed collateral rather than a default app menu. */
  .nav {
    position: fixed;
    top: calc(var(--header-h) - 8px);
    right: 12px; left: auto;
    width: min(300px, calc(100vw - 24px));
    z-index: 65;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 8px 8px;
    background:
      radial-gradient(125% 80% at 100% 0%, rgba(195, 162, 104, .15), transparent 58%),
      rgba(251, 250, 247, .98);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(var(--shadow), .22), 0 2px 10px rgba(var(--shadow), .07);
    transform-origin: top right;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(.97);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
    /* Long menu on a short phone scrolls inside the card instead of overflowing it. */
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }

  /* Letterpress-style caption over the list — the detail that makes it read as
     stationery rather than UI. */
  .nav::before {
    content: "Menu";
    font: 600 10px/1 var(--sans);
    letter-spacing: .34em; text-transform: uppercase;
    color: var(--gold-ink);
    padding: 16px 14px 11px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 4px;
  }

  /* Serif, sentence case, generous — an index in a brochure, not a list of tabs.
     Scoped off .btn so the CTA keeps the brand's uppercase-sans pill treatment;
     `.nav a` alone would out-specify .btn and restyle the button too. */
  .nav a:not(.btn) {
    font: 400 19px/1.25 var(--serif);
    letter-spacing: .015em; text-transform: none;
    text-align: left; padding: 12px 14px; border-radius: 9px;
    color: var(--fg);
    transition: background .25s var(--ease), color .25s var(--ease);
  }
  .nav a:not(.btn) + a:not(.btn) { border-top: 1px solid var(--line-soft); }
  .nav a:not(.btn):hover,
  .nav a:not(.btn):active,
  .nav a:not(.btn)[aria-current="page"] { background: var(--bg-3); color: var(--gold-ink); }
  /* A gold rule that grows at the margin of the active row, like a bookmark. */
  .nav a:not(.btn)::before {
    content: ""; position: absolute; left: 5px; top: 50%;
    width: 2px; height: 0; border-radius: 2px; background: var(--gold);
    transform: translateY(-50%); transition: height .3s var(--ease);
  }
  .nav a:not(.btn):hover::before,
  .nav a:not(.btn):active::before,
  .nav a:not(.btn)[aria-current="page"]::before { height: 20px; }
  .nav a::after { display: none; }        /* the sliding underline is a desktop affordance */

  .header-cta .btn:not(.js-menu-cta) { display: none; }
  .nav a.js-menu-cta {                    /* the CTA lives inside the dropdown on mobile */
    display: flex; justify-content: center;
    margin-top: 8px; border-top: 0; text-align: center;
  }

  /* Rows fade up in sequence as the panel opens. */
  body.nav-open .nav > * { animation: navRow .34s var(--ease) backwards; }
  body.nav-open .nav > *:nth-child(1) { animation-delay: .03s; }
  body.nav-open .nav > *:nth-child(2) { animation-delay: .06s; }
  body.nav-open .nav > *:nth-child(3) { animation-delay: .09s; }
  body.nav-open .nav > *:nth-child(4) { animation-delay: .12s; }
  body.nav-open .nav > *:nth-child(5) { animation-delay: .15s; }
  body.nav-open .nav > *:nth-child(6) { animation-delay: .18s; }
  body.nav-open .nav > *:nth-child(7) { animation-delay: .21s; }

  /* Scrim — dims the page and gives "tap anywhere to dismiss" a hit area. Sits
     under the header (z 60) so the bar and its close button stay crisp. */
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: 55;
    background: rgba(23, 19, 16, .30);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    animation: navScrim .26s var(--ease);
  }
}
@keyframes navRow   { from { opacity: 0; transform: translateY(-6px); } }
@keyframes navScrim { from { opacity: 0; } }

/* =========================================================================
   INNER-PAGE HERO (compact banner for non-home pages)
   ========================================================================= */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(56px, 12vh, 128px)) 0 clamp(48px, 8vh, 96px);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(195, 162, 104, .20), transparent 58%),
    linear-gradient(180deg, #fffdf8, var(--bg));
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { margin-top: 18px; max-width: 620px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold-ink); }
.breadcrumb .sep { opacity: .5; }

/* =========================================================================
   CARDS & GRIDS
   ========================================================================= */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* On paper a card can't lean on a darker fill to separate from the page — white on
   near-white is the same value. The lift comes from a soft ink shadow instead. */
.card {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 1px 2px rgba(var(--shadow), .04), 0 10px 30px rgba(var(--shadow), .05);
  transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 2px 4px rgba(var(--shadow), .05), 0 20px 46px rgba(var(--shadow), .09); }
.card .num { font-size: 11px; letter-spacing: .2em; color: var(--gold-ink); margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card ul { list-style: none; margin-top: 16px; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--muted); font-size: 14.5px; }
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold-ink); }

/* Portfolio / project tiles */
.proj {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; border: 1px solid var(--line-soft); display: block;
}
.proj.feature { aspect-ratio: 21/9; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj:hover img { transform: scale(1.06); }
.proj .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(var(--scrim), .9) 100%); }
/* The tile caption sits on the veil, not on the page — it keeps the dark-theme
   ivory/light-gold regardless of how light the surrounding page gets. */
.proj .meta { position: absolute; left: 26px; right: 26px; bottom: 22px; color: #f7efe4; }
.proj .cat { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.proj .name { font: 500 clamp(20px, 2.4vw, 28px)/1.1 var(--serif); }
.proj .loc { margin-top: 4px; font-size: 12px; color: rgba(247, 239, 228, .72); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-block: 1px solid var(--line); padding-block: clamp(38px, 6vh, 60px); }
.stat { text-align: center; }
.stat .n { font: 400 clamp(38px, 6vw, 64px)/1 var(--serif); }
.stat .l { margin-top: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }

/* Logos / brand wall */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.logo-wall div { background: var(--bg-2); display: grid; place-items: center; padding: 30px 18px; font: 500 clamp(16px, 2vw, 22px)/1.1 var(--serif); color: var(--muted); text-align: center; transition: color .3s, background .3s; }
.logo-wall div:hover { color: var(--gold-ink); background: var(--bg-3); }

/* Testimonials */
.quote {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 34px 32px;
  box-shadow: 0 1px 2px rgba(var(--shadow), .04), 0 10px 30px rgba(var(--shadow), .05);
}
.quote .stars { color: var(--gold-ink); letter-spacing: 3px; font-size: 14px; margin-bottom: 16px; }
.quote blockquote { font: 400 clamp(17px, 2vw, 21px)/1.55 var(--serif); color: var(--fg); }
.quote .by { margin-top: 20px; font-size: 13px; letter-spacing: .1em; }
.quote .by b { color: var(--gold-ink); font-weight: 600; }
.quote .by span { display: block; color: var(--faint); font-size: 12px; margin-top: 4px; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 500 clamp(17px, 2vw, 22px)/1.3 var(--serif); color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 22px; font-size: 24px; font-weight: 300;
  color: var(--gold-ink); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 44px 26px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(var(--shadow), .05); }
.step { background: var(--bg-2); padding: 34px 30px; position: relative; }
.step .k { font: 400 clamp(30px, 4vw, 46px)/1 var(--serif); color: var(--gold); margin-bottom: 16px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }

/* =========================================================================
   FORMS
   ========================================================================= */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--gold-ink); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg); font: inherit; font-size: 15px; padding: 14px 16px; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-ink) 50%), linear-gradient(135deg, var(--gold-ink) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(23, 19, 16, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-ink); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(195, 162, 104, .22); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); }
.field .err-msg { font-size: 12px; color: var(--err); min-height: 0; display: none; }
.field.invalid .err-msg { display: block; }
.phone-group { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.phone-group .cc { display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 15px; }
.form-note { font-size: 12.5px; color: var(--faint); }
.form-status { font-size: 14px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.show { display: block; }
.form-status.ok { display: block; background: rgba(46, 125, 83, .10); border: 1px solid rgba(46, 125, 83, .35); color: var(--ok); }
.form-status.bad { display: block; background: rgba(179, 64, 47, .09); border: 1px solid rgba(179, 64, 47, .32); color: var(--err); }

.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }

/* =========================================================================
   FOOTER
   ========================================================================= */
/* position+z-index so the homepage's fixed hero canvas (z-index:0) can't paint
   over the footer — a static footer would sit *below* a positioned fixed layer. */
.site-footer { position: relative; z-index: 2; background: var(--bg-3); border-top: 1px solid var(--line); }
/* padding-block, not the shorthand: these elements also carry .container, whose
   `padding: 0 clamp(20px,5vw,56px)` supplies the side gutter. A `padding` shorthand
   here is declared later and so reset that gutter to 0, which put the footer text
   and logo hard against the screen edge on phones. */
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-block: clamp(56px, 8vh, 88px) clamp(40px, 6vh, 60px); }
.footer-brand-logo {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(var(--shadow), .12);
}
.footer-brand .word { font: 600 24px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; margin-top: 18px; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 14.5px; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold-ink); transition: all .3s; }
/* currentColor, so the mark inherits the hover swap on the circle around it */
.footer-social a svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.footer-social a:hover { background: var(--gold); color: #1f1710; border-color: var(--gold); }
.footer-col h4 { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .3s; }
.footer-col a:hover { color: var(--fg); }
.footer-contact li { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact li b { color: var(--gold-ink); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-bottom, .footer-bottom a { font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.footer-bottom a:hover { color: var(--gold-ink); }
.footer-bottom .credit { letter-spacing: .3em; text-transform: uppercase; font-size: 10.5px; color: rgba(138, 104, 53, .72); }

/* =========================================================================
   FLOATING ACTIONS — WhatsApp + Click-to-Call
   ========================================================================= */
.floats { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; gap: 12px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(var(--shadow), .22); transition: transform .3s var(--ease);
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa { background: var(--wa); }
.float-call { background: var(--gold); }
.float-call svg { fill: #1f1710; }
.float-wa svg { fill: #fff; }
.float-call { display: none; }         /* call is mobile-only; desktop uses the form */
@media (max-width: 640px) { .float-call { display: grid; } }

/* =========================================================================
   EXIT-INTENT / OFFER MODAL
   ========================================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 22px; background: rgba(23, 19, 16, .48); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
/* min-width:0 — a grid item defaults to min-width:auto, which floors it at its
   min-content width. The CTA is a nowrap pill (~298px) and the card adds 76px of
   side padding, so the card refused to shrink below 376px and punched out past the
   right edge on every phone narrower than ~420px (it read as "off-centre"). The
   floor is removed here and the CTA is allowed to wrap (see .btn-block below).
   max-height:100% resolves against the grid AREA (viewport minus .modal's padding),
   so a landscape phone scrolls the card instead of clipping it — and it keeps
   tracking automatically when that padding changes at the breakpoint. */
.modal-card { position: relative; width: 100%; max-width: 460px; min-width: 0; max-height: 100%; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 44px 38px; text-align: center; background-image: radial-gradient(120% 90% at 50% 0%, rgba(195, 162, 104, .16), transparent 55%); box-shadow: 0 30px 80px rgba(var(--shadow), .28); }
.modal-card .close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--faint); font-size: 22px; line-height: 1; }
.modal-card .close:hover { color: var(--fg); }
.modal-card .eyebrow { margin-bottom: 12px; }
.modal-card h3 { margin-bottom: 10px; }
.modal-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.io { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.io.in { opacity: 1; transform: none; }
.io.d1 { transition-delay: .07s; }
.io.d2 { transition-delay: .14s; }
.io.d3 { transition-delay: .21s; }
.io.d4 { transition-delay: .28s; }

/* CTA band */
.cta-band { text-align: center; background: radial-gradient(120% 120% at 50% 0%, rgba(195, 162, 104, .20), transparent 62%), var(--bg-3); border-block: 1px solid var(--line-soft); }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 940px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .form .row, .phone-group, .checkgrid { grid-template-columns: 1fr; }
  .proj.feature { aspect-ratio: 4/3; }

  /* ---- Footer on phones ----
     Stacking all four blocks in one column ran the footer to ~1200px on an 844px
     screen. Explore and Resources are short lists, so they sit side by side; the
     brand block and the contact block keep the full width they need. */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
    padding-block: 52px 36px;   /* block only — .container owns the side gutter */
  }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 14px; max-width: none; }
  .footer-social { margin-top: 18px; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col ul { gap: 11px; }

  /* Centre the legal bar instead of stretching three items across 390px. */
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding-block: 20px;
  }

  /* The floating WhatsApp/call buttons are position:fixed, so they sat on top of
     the footer links. They are redundant here anyway — the footer carries the same
     social icons and its own CTA — so they retract once the footer is in view. */
  body.at-footer .floats {
    opacity: 0; transform: translateY(14px) scale(.92);
    pointer-events: none;
  }
}
/* Phones: give the offer modal back the width its padding was eating. At 360px the
   old 22 + 38 per side left only 240px of content; this leaves ~296px. */
@media (max-width: 430px) {
  .modal { padding: 14px; }
  .modal-card { padding: 34px 22px; }
  .modal-card .close { top: 10px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .io { transition: none; opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
  /* The dropdown still needs to appear and disappear — drop the travel and the
     per-row stagger, keep a plain fade. */
  .nav { transition: opacity .01s, visibility .01s; transform: none; }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav > * { animation: none; }
  body.nav-open::before { animation: none; }
}
