/* ============================================================================
   VionaPropnex · main.css · v1.0 · July 2026
   Design system per Module 3 (03-visual-design-system.md).
   Mobile-first, 375px baseline. No frameworks, no third-party CSS.
   Single-file strategy: @font-face + tokens + all components in one request
   (deviation from module 3 note 13.2 which suggested a separate fonts.css —
   one fewer request on a no-build static site; noted in COMPONENTS.md).
   ========================================================================== */

/* ---- 1. Fonts (self-hosted, latin subset, font-display: swap) ------------ */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  font-optical-sizing: auto;
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Metric-matched fallbacks to keep font-swap CLS < 0.01 (module 3 §11.4).
   Values are estimates — verify against throttled fallback before launch. */
@font-face {
  font-family: "Fraunces-fallback";
  src: local("Georgia");
  size-adjust: 104%;
  ascent-override: 93%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter-fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---- 2. Design tokens (module 3 §13) ------------------------------------- */
:root {
  /* Colour: core */
  --ink-900:    #14232F;
  --ink-700:    #3A4E60;
  --slate-500:  #5C6E7E;
  --paper-50:   #FAF7F1;
  --paper-100:  #F3EDE3;
  --brass-300:  #D9C08A;  /* accent text ON DARK only */
  --brass-500:  #B08D4A;  /* decorative only — never text */
  --brass-700:  #8A6B2F;  /* links, primary buttons, focus */
  --brass-800:  #6E5524;
  --wa-brand:   #25D366;  /* WhatsApp icon glyph only */
  --wa-deep:    #075E54;
  --wa-deep-2:  #064E46;
  --error:      #B3261E;
  --success:    #1E7B4D;

  /* Colour: semantic */
  --text:            var(--ink-900);
  --text-secondary:  var(--ink-700);
  --text-muted:      var(--slate-500);
  --text-on-dark:    #E8E2D6;
  --bg:              var(--paper-50);
  --bg-alt:          var(--paper-100);
  --link:            var(--brass-700);
  --border:          rgba(20, 35, 47, 0.14);
  --border-strong:   rgba(20, 35, 47, 0.28);
  --zebra:           rgba(20, 35, 47, 0.025);
  --tint-brass:      rgba(176, 141, 74, 0.10);
  --divider-on-dark: rgba(250, 247, 241, 0.12);

  /* Typography */
  --font-display: "Fraunces", "Fraunces-fallback", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Inter-fallback", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-display:  clamp(2.5rem, 2rem + 2.2vw, 3.5rem);
  --text-h1:       clamp(2rem, 1.7rem + 1.4vw, 2.625rem);
  --text-h2:       clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  --text-h3:       clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --text-h4:       1.0625rem;
  --text-body:     clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-small:    0.875rem;
  --text-eyebrow:  0.75rem;
  --lh-display: 1.08;
  --lh-h1:      1.12;
  --lh-h2:      1.18;
  --lh-h3:      1.30;
  --lh-body:    1.65;
  --lh-small:   1.50;
  --measure:    68ch;

  /* Spacing (8pt) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --container: 70rem;   /* 1120px */
  --form-max: 30rem;    /* 480px */
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --header-h: 3.75rem;  /* 60px mobile; 72px ≥ lg */

  /* Radius / shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(20,35,47,.06), 0 4px 16px rgba(20,35,47,.06);
  --shadow-2: 0 2px 4px rgba(20,35,47,.08), 0 12px 32px rgba(20,35,47,.10);

  /* Motion */
  --dur-1: 100ms;
  --dur-2: 150ms;
  --dur-3: 250ms;
  --dur-4: 400ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* Z-index scale (module 3 §4.3 — nothing else gets a z-index) */
  --z-header: 100;
  --z-whatsapp: 200;
  --z-scrim: 250;
  --z-drawer: 300;
  --z-toast: 400;
}

/* ---- 3. Reset & base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* The UA rule for [hidden] ties on specificity with any class, so it loses to
   things like .card { display: flex }. Scripts that toggle `hidden` rely on
   this holding. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, .display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--lh-h1); font-weight: 560; }
h2 { font-size: var(--text-h2); line-height: var(--lh-h2); font-weight: 540; }
h3 { font-family: var(--font-body); font-size: var(--text-h3); font-weight: 650; line-height: var(--lh-h3); }
h4 { font-family: var(--font-body); font-size: var(--text-h4); font-weight: 650; line-height: 1.35; }
.display { font-size: var(--text-display); line-height: var(--lh-display); font-weight: 560; }

p { max-width: var(--measure); text-wrap: pretty; }
small, .small { font-size: var(--text-small); line-height: var(--lh-small); }
strong { font-weight: 600; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

:focus-visible { outline: 2px solid var(--brass-700); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: var(--space-2); left: var(--space-2);
  z-index: var(--z-toast);
  background: var(--ink-900); color: var(--paper-50);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  transform: translateY(-200%);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: none; color: var(--paper-50); text-decoration: none; }

/* Icons: inline SVG inherits text colour (module 3 §7) */
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

/* Numeric styling: tabular lining figures for all money/data (module 3 §3.3) */
.num, table, .calc-output, .result__figure {
  font-feature-settings: "tnum" 1, "cv05" 1;
}

/* ---- 4. Layout primitives ------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: var(--measure); }
.flow > * + * { margin-top: 1em; }
.flow-lg > * + * { margin-top: var(--space-6); }

.section { padding-block: var(--space-16); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink-900); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper-50); }
.section--dark .eyebrow { color: var(--brass-300); }
.section--dark a { color: var(--brass-300); }
.section--tight { padding-block: var(--space-12); }
@media (min-width: 64rem) {
  .section { padding-block: var(--space-24); }
  .section--tight { padding-block: var(--space-16); }
}

/* Eyebrow + signature brass hairline (module 3 §5.2 — the ONE ornament) */
.eyebrow {
  display: block;
  font-size: var(--text-eyebrow); font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--space-3);
}
.rule { /* 48px brass hairline above eyebrows / under H1s */
  width: 48px; height: 1px; border: 0;
  background: var(--brass-500);
  margin: 0 0 var(--space-4);
}
.section--dark .rule { background: var(--brass-300); }
.rule--h1 { margin: var(--space-4) 0 var(--space-6); }

.muted { color: var(--text-muted); }
.meta {
  font-size: var(--text-small); line-height: var(--lh-small);
  color: var(--text-muted);
}

/* Generic responsive card grid (module 3 §8.2) */
.cards { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); } }
@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .cards--2up { grid-template-columns: repeat(2, 1fr); } /* project cards max 2-up */
}

/* Image placeholder boxes — use until real photography ships (no stock/AI) */
.media-ph {
  display: grid; place-items: center;
  background: var(--bg-alt);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--text-small);
  text-align: center; padding: var(--space-4);
  aspect-ratio: 3 / 2;
}
.media-ph--hero  { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.media-ph--portrait { aspect-ratio: 4 / 5; }
.media-ph--square { aspect-ratio: 1 / 1; }
.media-ph span { max-width: 30ch; }

/* ---- 5. Buttons (module 3 §8.1 — the whole system) ------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 3rem; min-width: 8.75rem;
  padding: 0 var(--space-6); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none !important; cursor: pointer;
  transition: background var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              transform var(--dur-1) var(--ease-out);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn--primary { background: var(--brass-700); color: #fff; border: 0; }
.btn--primary:hover { background: var(--brass-800); box-shadow: var(--shadow-1); }
.btn--secondary { background: transparent; color: var(--ink-900); border: 1.5px solid var(--ink-900); }
.btn--secondary:hover { background: rgba(20,35,47,.05); }
.btn--whatsapp { background: var(--wa-deep); color: #fff; border: 0; }
.btn--whatsapp:hover { background: var(--wa-deep-2); box-shadow: var(--shadow-1); }
.btn--whatsapp .icon { color: var(--wa-brand); } /* brand green on glyph ONLY */
.btn--sm { min-height: 2.5rem; min-width: 0; padding: 0 var(--space-4); font-size: var(--text-small); }
@media (min-width: 64rem) { .btn { min-height: 2.75rem; } }

/* Full-width primary CTAs on mobile at conversion moments (module 3 §8.1) */
.cta-row { display: flex; flex-direction: column; gap: var(--space-3); }
.cta-row .btn { width: 100%; }
@media (min-width: 30rem) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
}

/* Text link with arrow (tertiary actions, "next step" links) */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-weight: 600; color: var(--link);
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size var(--dur-3) var(--ease-out);
  padding-bottom: 2px;
}
.link-arrow:hover { text-decoration: none; background-size: 100% 1px; }
.link-arrow .icon { transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Response-time microcopy beside every WhatsApp CTA (module 3 §8.7) */
.reply-note {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: 0.8125rem; color: var(--text-muted);
}
.section--dark .reply-note { color: var(--text-on-dark); }

/* ---- 6. Utility bar (always visible, blueprint §4.1) ---------------------- */
.utility-bar {
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-size: var(--text-small);
}
.utility-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 2.5rem;
  padding-block: var(--space-1);
}
.utility-bar a { color: var(--paper-50); }
.utility-bar__tag { display: none; } /* short positioning line, desktop only */
@media (min-width: 48rem) { .utility-bar__tag { display: inline; color: var(--text-on-dark); } }
.utility-bar__actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }
.utility-bar__val { font-weight: 600; }
.utility-bar__val:hover { color: var(--brass-300); }
.utility-bar .btn--whatsapp { min-height: 2rem; min-width: 0; padding: 0 var(--space-3); font-size: 0.8125rem; }
.utility-bar .btn--whatsapp .icon { width: 1rem; height: 1rem; }

/* ---- 7. Header, nav, drawer (module 3 §8.6) ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-3) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-2); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  transition: min-height var(--dur-3) var(--ease-out);
}
@media (min-width: 64rem) {
  :root { --header-h: 4.5rem; } /* 72px desktop */
  .site-header.is-scrolled .container { min-height: 3.75rem; } /* shrinks to 60px */
}

.wordmark {
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
  color: var(--ink-900); text-decoration: none !important;
}
.wordmark span { color: var(--brass-700); }

/* Desktop nav */
.nav { display: none; }
@media (min-width: 64rem) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-weight: 550; font-size: 0.9375rem; color: var(--ink-900);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
}
.nav__link:hover { background: rgba(20,35,47,.05); }
.nav__link[aria-current="page"] { color: var(--brass-700); }
/* Eight nav items (News added Sep 2026) need ~953px, and the container gives
   952px at the 64rem breakpoint. Tighten the horizontal padding across the
   narrow desktop band so the row stays on one line; full padding returns once
   the container reaches its 70rem cap. */
@media (min-width: 64rem) and (max-width: 71.25rem) {
  .nav__link { padding-left: var(--space-2); padding-right: var(--space-2); }
}

/* One-level dropdown (Sell → HDB / Condo / Landed) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 12rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-2);
  padding: var(--space-2); list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out),
              visibility var(--dur-3);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: block; padding: var(--space-2) var(--space-3);
  color: var(--ink-900); font-size: 0.9375rem; border-radius: var(--radius-sm);
  text-decoration: none !important;
  /* The panel is absolutely positioned, so it shrink-to-fits against the tiny
     .has-dropdown li. Without nowrap, a long label ("1km Primary School
     Check", Tools menu) wraps onto two lines at the 12rem floor below. */
  white-space: nowrap;
}
.dropdown a:hover { background: rgba(20,35,47,.05); }
.dropdown a[aria-current="page"] { color: var(--brass-700); font-weight: 600; }
.has-dropdown .icon { transition: transform var(--dur-2) var(--ease-out); }
.has-dropdown:hover .icon, .has-dropdown.is-open .icon { transform: rotate(180deg); }

/* Hamburger (mobile) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; /* 44px hit area */
  color: var(--ink-900); border-radius: var(--radius-sm);
}
@media (min-width: 64rem) { .nav-toggle { display: none; } }

/* Mobile drawer: full-height right panel, ink bg (module 3 §8.6) */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim);
  background: rgba(20,35,47,.4);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3);
}
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(20rem, 88vw);
  background: var(--ink-900); color: var(--text-on-dark);
  display: flex; flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--dur-3) var(--ease-out), visibility var(--dur-3);
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.drawer__head .wordmark { color: var(--paper-50); }
.drawer__close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--paper-50); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a, .drawer__sub-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 3rem; /* 48px rows */
  color: var(--paper-50); font-weight: 550; font-size: 1.0625rem;
  text-decoration: none !important; text-align: left;
  border-bottom: 1px solid var(--divider-on-dark);
}
.drawer__list a[aria-current="page"] { color: var(--brass-300); }
.drawer__sub { list-style: none; margin: 0; padding: 0 0 0 var(--space-4); display: none; }
.drawer__sub.is-open { display: block; }
.drawer__sub a { font-size: 1rem; font-weight: 450; }
.drawer__sub-toggle .icon { transition: transform var(--dur-2) var(--ease-out); }
.drawer__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__actions { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-3); }
body.drawer-open { overflow: hidden; }

/* ---- 8. Breadcrumbs (module 3 §8.6) --------------------------------------- */
.breadcrumbs { padding-top: var(--space-6); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1);
  list-style: none; margin: 0; padding: 0;
  font-size: 0.8125rem; font-weight: 450; color: var(--text-muted);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-1); }
.breadcrumbs li + li::before { content: "›"; color: var(--brass-700); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brass-700); }
.breadcrumbs [aria-current="page"] { color: var(--ink-700); }

/* ---- 9. Hero variants ----------------------------------------------------- */
.hero { padding-block: var(--space-12) var(--space-16); }
@media (min-width: 64rem) { .hero { padding-block: var(--space-16) var(--space-24); } }
.hero__sub { max-width: 52ch; font-size: 1.0625rem; color: var(--text-secondary); margin-top: var(--space-4); }
.hero .cta-row { margin-top: var(--space-8); }
/* Homepage hero: text + portrait/media two-up at lg */
@media (min-width: 64rem) {
  .hero--home .container { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-12); align-items: center; }
}
.hero--home .media-ph, .hero--home .hero__media { margin-top: var(--space-8); }
@media (min-width: 64rem) { .hero--home .media-ph, .hero--home .hero__media { margin-top: 0; } }
/* Interior-page hero: single column, breadcrumb above, hairline under H1 */
.hero--page h1 { max-width: 22ch; }
.hero--page .hero__sub { max-width: 58ch; }

/* ---- 10. Cards (module 3 §8.2) -------------------------------------------- */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-6);
  box-shadow: var(--shadow-1);
}
.section--alt .card { background: #FDFBF7; } /* near-paper lift for separation on alt bg */
a.card { display: block; color: inherit; text-decoration: none !important;
  transition: box-shadow var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
@media (hover: hover) {
  a.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
}
a.card:hover h3 { color: var(--brass-700); }

/* 10a. Project card */
.card--project { padding: 0; overflow: hidden; }
.card--project .card__media { position: relative; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }
.card--project .card__media .media-ph { border: 0; border-radius: 0; }
.card--project .card__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
  transition: transform var(--dur-3) var(--ease-out); }
@media (hover: hover) { a.card--project:hover .card__media img { transform: scale(1.02); } }
.card--project .card__body { padding: var(--space-6); }
.card__eyebrow { /* district · tenure */
  font-size: var(--text-eyebrow); font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}
.card--project h3 { font-family: var(--font-display); font-weight: 540; margin-top: var(--space-2); }
.card__keyline { font-size: var(--text-small); color: var(--text-secondary); margin-top: var(--space-2); }
.card__foot { margin-top: var(--space-4); }
.chip {
  display: inline-block; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-eyebrow); font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
}
.chip--solid { background: var(--brass-700); color: #fff; }       /* Booking now */
.chip--outline { border: 1.5px solid var(--brass-700); color: var(--brass-700); } /* Preview Q4 2026 */
.chip--muted { border: 1.5px solid var(--slate-500); color: var(--slate-500); }   /* Coming soon */
.chip--render { position: absolute; top: var(--space-3); left: var(--space-3);
  background: rgba(20,35,47,.72); color: var(--paper-50); letter-spacing: .02em; text-transform: none; font-weight: 550; }

/* 10b. Town card (data-forward, no image) */
.card--town .card__datanum { font-weight: 600; color: var(--ink-900); }
.card--town p { font-size: var(--text-small); color: var(--text-secondary); margin-top: var(--space-2); }

/* 10c. Guide card */
.card--guide .meta { margin-top: var(--space-3); }

/* 10d. Calculator card */
.card--calc .icon-tile {
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius-md);
  background: var(--bg-alt); display: grid; place-items: center;
  color: var(--brass-500); margin-bottom: var(--space-4);
}
.card--calc .icon-tile .icon { width: 1.75rem; height: 1.75rem; }
.card--calc p { font-size: var(--text-small); color: var(--text-secondary); margin-top: var(--space-2); }

/* ---- 11. Comparison tables (module 3 §8.3) -------------------------------- */
.table-note { /* caption-style source line above data tables */
  font-size: var(--text-eyebrow); color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.table-scroll { /* default mobile pattern: horizontal scroll + edge fades */
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background:
    linear-gradient(to right, var(--bg) 30%, rgba(250,247,241,0)),
    linear-gradient(to left, var(--bg) 30%, rgba(250,247,241,0)) 100% 0;
  background-repeat: no-repeat; background-size: 40px 100%, 16px 100%;
  background-attachment: local, local;
}
.table-scroll table { border: 0; border-radius: 0; }
table.cmp {
  width: 100%; border-collapse: collapse;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; font-size: var(--text-small);
}
.cmp caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: 650; }
.cmp th, .cmp td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; }
.cmp thead th {
  background: var(--bg-alt); font-size: var(--text-small); font-weight: 650;
  border-bottom: 1px solid var(--border-strong); white-space: nowrap;
}
/* Qualifier: a muted second line under the cell's main label. Used in both thead
   column headers and tbody row headers / data cells, so scope it to .cmp, not thead. */
.cmp .cmp__qual { display: block; font-weight: 450; color: var(--text-muted); white-space: normal; }
.cmp tbody tr { min-height: 3rem; }
.cmp tbody tr:nth-child(even) { background: var(--zebra); }
.cmp tbody th[scope="row"] { font-weight: 600; width: 30%; }
.cmp td.num, .cmp th.num { text-align: right; }
.cmp tbody th, .cmp tbody td { border-bottom: 1px solid var(--border); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .cmp__win { background: var(--tint-brass); }
.cmp .cmp__win .icon { color: var(--brass-700); vertical-align: -3px; margin-right: var(--space-1); }
.cmp__verdict td, .cmp__verdict th {
  background: var(--bg-alt) !important; font-weight: 600; font-size: var(--text-small);
}
/* Sticky first column inside the scroll pattern */
.table-scroll .cmp tbody th[scope="row"],
.table-scroll .cmp thead th:first-child {
  position: sticky; left: 0; background: var(--bg);
  box-shadow: 1px 0 0 var(--border);
}
.table-scroll .cmp thead th:first-child { background: var(--bg-alt); }
.table-scroll .cmp tr:nth-child(even) th[scope="row"] { background: #F8F4EC; } /* paper-50 + zebra composite */
.swipe-hint { font-size: var(--text-eyebrow); color: var(--text-muted); margin-top: var(--space-2); }
@media (min-width: 48rem) { .swipe-hint { display: none; } }

/* Stacked-pair pattern — preferred for 2-option (A vs B) comparisons */
.cmp-pairs { display: grid; gap: var(--space-3); }
.cmp-pairs__row {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
}
.cmp-pairs__label { font-weight: 650; font-size: var(--text-small); margin-bottom: var(--space-2); }
.cmp-pairs__opts { display: grid; gap: var(--space-2); }
@media (min-width: 30rem) { .cmp-pairs__opts { grid-template-columns: 1fr 1fr; } }
.cmp-pairs__opt { font-size: var(--text-small); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-alt); }
.cmp-pairs__opt-name { display: block; font-weight: 650; color: var(--text-muted); font-size: var(--text-eyebrow); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.cmp-pairs__opt.cmp__win { background: var(--tint-brass); }
.cmp-pairs__verdict {
  background: var(--bg-alt); border-radius: var(--radius-md);
  padding: var(--space-4); font-weight: 600; font-size: var(--text-small);
}

/* ---- 12. Calculator / tool UI (module 3 §8.4) ------------------------------ */
.calc { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 64rem) { .calc { grid-template-columns: 7fr 5fr; } }
.calc__inputs { display: grid; gap: var(--space-6); }
.calc__result {
  background: var(--ink-900); color: var(--text-on-dark);
  border-radius: var(--radius-md); padding: var(--space-6);
}
@media (min-width: 64rem) { .calc__result { position: sticky; top: 6rem; } }
.result__label { /* brass eyebrow on dark, e.g. YOUR ABSD PAYABLE */
  font-size: var(--text-eyebrow); font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brass-300);
}
.result__figure {
  font-family: var(--font-display); font-variation-settings: "opsz" 144;
  font-size: 2.5rem; font-weight: 560; line-height: 1.1;
  color: var(--paper-50); margin-top: var(--space-2);
}
.result__reading { font-size: var(--text-small); color: var(--text-on-dark); margin-top: var(--space-3); }
.breakdown { margin-top: var(--space-6); font-size: var(--text-small); }
.breakdown__row {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--divider-on-dark);
}
.breakdown__row:last-child { border-bottom: 0; }
.breakdown__row span:last-child { font-weight: 600; color: var(--paper-50); }
.breakdown__row--total { font-weight: 650; color: var(--paper-50); }
.breakdown__row--total span:last-child { color: var(--brass-300); }
.result__capture { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--divider-on-dark); }
.result__capture .btn { margin-top: var(--space-2); }

/* Eligibility-style result states */
.result-flag { display: flex; gap: var(--space-2); align-items: flex-start;
  border-left: 3px solid var(--success); padding: var(--space-3); margin-top: var(--space-4);
  background: rgba(30,123,77,.10); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.result-flag .icon { color: var(--success); margin-top: 2px; }
.result-flag--neutral { border-left-color: var(--slate-500); background: rgba(92,110,126,.10); }
.result-flag--neutral .icon { color: var(--slate-500); }

/* Input patterns */
.field { display: grid; gap: var(--space-1); }
.field > label { font-weight: 600; font-size: var(--text-small); transition: transform var(--dur-2) var(--ease-out); }
.field:focus-within > label { transform: translateY(-1px); }
.field .helper { font-size: var(--text-small); color: var(--text-muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 3rem; padding: 0 var(--space-4);
  font-size: 1rem; /* 16px prevents iOS zoom-on-focus */
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
textarea { padding-block: var(--space-3); min-height: 5rem; resize: vertical; }
input:focus, textarea:focus {
  outline: none; border-color: var(--brass-700);
  box-shadow: 0 0 0 2px rgba(138,107,47,.25);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error {
  display: flex; align-items: flex-start; gap: var(--space-1);
  font-size: var(--text-small); color: var(--error);
}
.field__error .icon { width: 1rem; height: 1rem; margin-top: 2px; }
.field__error[hidden] { display: none; }

/* Money field: $ prefix + paired range slider */
.money { position: relative; }
.money__prefix {
  position: absolute; left: var(--space-4); top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.money input { padding-left: 2rem; }
input[type="range"] { width: 100%; height: 3rem; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(20,35,47,.15); border-radius: 1px; }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -0.6875rem;
  border-radius: 50%; background: var(--brass-700); border: 2px solid var(--bg);
  box-shadow: var(--shadow-1);
}
input[type="range"]::-moz-range-track { height: 2px; background: rgba(20,35,47,.15); }
input[type="range"]::-moz-range-thumb { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--brass-700); border: 2px solid var(--bg); }

/* Radio cards (profile pickers — never dropdowns) */
.radio-cards { display: grid; gap: var(--space-2); border: 0; padding: 0; }
.radio-cards legend { font-weight: 600; font-size: var(--text-small); margin-bottom: var(--space-2); }
.radio-cards__grid { display: grid; gap: var(--space-2); }
@media (min-width: 30rem) { .radio-cards__grid--2 { grid-template-columns: 1fr 1fr; } }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card__body {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 3.5rem; padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg);
  transition: border-color var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease-out);
}
.radio-card__body .icon { color: var(--slate-500); }
.radio-card__label { font-weight: 600; font-size: var(--text-small); display: block; }
.radio-card__helper { font-size: 0.8125rem; color: var(--text-muted); display: block; }
.radio-card input:checked + .radio-card__body { border-color: var(--brass-700); background: var(--tint-brass); }
.radio-card input:checked + .radio-card__body .icon { color: var(--brass-700); }
.radio-card input:focus-visible + .radio-card__body { outline: 2px solid var(--brass-700); outline-offset: 2px; }

/* Stepper (property count, years held) */
.stepper { display: inline-flex; align-items: center; gap: var(--space-3); }
.stepper button {
  width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 1.25rem; font-weight: 600;
  display: grid; place-items: center; color: var(--ink-900);
  transition: background var(--dur-2) var(--ease-out);
}
.stepper button:hover { background: rgba(20,35,47,.05); }
.stepper output { min-width: 2ch; text-align: center; font-weight: 650; font-size: 1.125rem; }

/* Slim sticky result bar (mobile, below lg) — calculator pages toggle .is-visible */
.sticky-result {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: var(--ink-900); color: var(--paper-50);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-2);
  transform: translateY(100%);
  transition: transform var(--dur-3) var(--ease-out);
  font-size: var(--text-small);
}
.sticky-result.is-visible { transform: none; }
.sticky-result strong { font-size: 1rem; }
.sticky-result .btn { min-height: 2.25rem; min-width: 0; padding: 0 var(--space-3); font-size: 0.8125rem; }
@media (min-width: 64rem) { .sticky-result { display: none; } }

/* ---- 13. Forms — lead capture (module 3 §8.5) ------------------------------ */
.form-panel {
  background: var(--bg-alt); border-radius: var(--radius-md);
  padding: var(--space-6); max-width: var(--form-max);
}
.form-panel h3 { font-family: var(--font-display); font-weight: 540; font-size: var(--text-h3); }
.form-panel .rule { margin: var(--space-3) 0 var(--space-4); }
.lead-form { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.lead-form[hidden] { display: none; }

/* PDPA consent — unticked by default, blocks submit (PDPA) */
.consent { display: flex; gap: var(--space-3); align-items: flex-start; }
.consent input[type="checkbox"] {
  appearance: none; flex: none;
  width: 1.25rem; height: 1.25rem; margin-top: 3px;
  border: 1.5px solid var(--border-strong); border-radius: 4px;
  background: var(--bg); cursor: pointer;
  transition: background var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.consent input[type="checkbox"]:checked {
  background: var(--brass-700); border-color: var(--brass-700);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 0.875rem; background-position: center; background-repeat: no-repeat;
}
.consent input[type="checkbox"][aria-invalid="true"] { border-color: var(--error); }
.consent label { font-size: var(--text-small); color: var(--text-secondary); cursor: pointer; }
.form__error-summary {
  border-left: 3px solid var(--error); background: rgba(179,38,30,.06);
  padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-small);
}
.form__error-summary[hidden] { display: none; }
.pdpa-note { font-size: 0.8125rem; color: var(--text-muted); }

/* Inline success panel (no redirect) — WhatsApp escape always offered */
.form-success {
  border-left: 3px solid var(--success);
  background: var(--bg); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-6); margin-top: var(--space-4);
}
.form-success[hidden] { display: none; }
/* h3 or h4: the success heading has to sit one level under whatever heading
   introduced its form, and the report modal is titled with an h2. */
.form-success h3, .form-success h4 { display: flex; align-items: center; gap: var(--space-2); }
.form-success h3 { font-size: var(--text-h4); }
.form-success h3 .icon, .form-success h4 .icon { color: var(--success); }
.form-success .btn { margin-top: var(--space-4); }

/* ---- 14. Testimonials, case notes, stat strip (module 3 §8.7) -------------- */
.quote {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-6);
}
.quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1875rem; line-height: 1.45; color: var(--ink-700);
}
.quote figcaption { margin-top: var(--space-4); font-size: var(--text-small); font-weight: 600; }
.quote figcaption span { display: block; font-weight: 450; color: var(--text-muted); }

.case-note { /* past-results block: numbers beat adjectives */
  border: 1px solid var(--border); border-left: 3px solid var(--brass-500);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-6);
  background: var(--bg);
}
.case-note strong { display: block; }
.case-note .meta { margin-top: var(--space-1); }

.stats { /* trust strip — dark band, stat callouts */
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
}
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__figure {
  font-family: var(--font-display); font-variation-settings: "opsz" 144;
  font-size: 1.75rem; font-weight: 560; line-height: 1.15; color: var(--ink-900);
}
.section--dark .stat__figure { color: var(--paper-50); }
.stat__label { font-size: var(--text-eyebrow); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-top: var(--space-1); }
.section--dark .stat__label { color: var(--text-on-dark); opacity: .75; }

/* ---- 15. FAQ accordion ----------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; padding: var(--space-4) 0;
  font-size: var(--text-h4); font-weight: 650; text-align: left; color: var(--ink-900);
}
.faq__q .icon { color: var(--brass-700); transition: transform var(--dur-3) var(--ease-out); }
.faq__q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: var(--space-4); color: var(--text-secondary); max-width: var(--measure); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---- 16. Urgency strip (genuine dated events only, auto-expire) ------------ */
.urgency {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--bg-alt); border-left: 3px solid var(--brass-700);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-small);
}
.urgency .icon { color: var(--brass-700); flex: none; }
.urgency[data-expires] { /* JS hides after the date; no-JS = stays visible */ }

/* ---- 17. Footer (blueprint §4.1 four blocks + compliance) ------------------ */
.site-footer { background: var(--ink-900); color: var(--text-on-dark); margin-top: auto; }
.footer__grid {
  display: grid; gap: var(--space-8);
  padding-block: var(--space-12);
}
@media (min-width: 48rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__block h2 {
  font-family: var(--font-body); font-size: var(--text-eyebrow); font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brass-300);
  margin-bottom: var(--space-4);
}
.footer__block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer__block a { color: var(--text-on-dark); font-size: var(--text-small); text-decoration: none; }
.footer__block a:hover { color: var(--brass-300); text-decoration: underline; text-underline-offset: 4px; }
.footer__compliance {
  border-top: 1px solid var(--divider-on-dark);
  padding-block: var(--space-6);
  font-size: 0.8125rem; line-height: 1.6;
  display: grid; gap: var(--space-2);
}
.footer__compliance a { color: var(--brass-300); }
.footer__compliance .wordmark { color: var(--paper-50); font-size: 1.0625rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); align-items: baseline; }

/* ---- 18. Floating WhatsApp (mobile only — module 3 §8.6) ------------------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: var(--z-whatsapp);
  width: 3.5rem; height: 3.5rem; border-radius: var(--radius-pill);
  background: var(--wa-deep); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: scale(.9); visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility var(--dur-3);
}
.wa-float .icon { width: 1.75rem; height: 1.75rem; color: var(--wa-brand); }
.wa-float.is-visible { opacity: 1; transform: none; visibility: visible; }
@media (min-width: 48rem) { .wa-float { display: none; } } /* desktop: utility bar only */

/* ---- 19. Scroll reveal (module 3 §5.3: ≥md only, once, reduced-motion safe) - */
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px);
    transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---- 20. Reduced motion: honour it everywhere (module 3 §10) ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- 21. Print nicety (cheap, optional) ------------------------------------ */
@media print {
  .utility-bar, .site-header, .wa-float, .site-footer, .sticky-result { display: none; }
}
