/* ============================================================
   Next Level Builders - ADU Landing Page
   styles.css - Mobile-first responsive styles

   Replace [BRACKETED] values before publishing.
   ============================================================ */

/* ---- Fonts ------------------------------------------------- */
/* Cormorant Garamond (display serif) + Hanken Grotesk (body) + IBM Plex Mono */
/* All loaded via <link> in HTML head */

/* ---- CSS Custom Properties --------------------------------- */
:root {
  /* Design system palette — warm modern construction */
  --black:         #000000;
  --charcoal:      #2B2B2B;
  --warm-white:    #F8F6F2;
  --ivory:         #EEE9E1;
  --linen:         #D8D2C8;
  --taupe:         #A99F92;
  --walnut:        #6B4E3D;
  --walnut-dark:   #553D2F;
  --walnut-tint:   #E9E1D9;
  --clay:          #A76045;
  --clay-dark:     #8A4E37;
  --white:         #FFFFFF;

  /* Backward-compat aliases — all existing rules resolve through these */
  --color-navy:       var(--black);
  --color-navy-deep:  var(--charcoal);
  --color-ivory:      var(--warm-white);
  --color-gold:       var(--walnut);
  --color-slate:      var(--taupe);
  --color-warm-gray:  var(--ivory);
  --color-white:      var(--white);
  --color-text:       var(--charcoal);
  --color-text-muted: var(--taupe);
  --color-border:     var(--linen);
  --color-green:      #53745B;

  /* Fonts — the design system dropped monospace; "spec" type (square footage,
     dimensions, phone numbers) is Hanken Grotesk with tabular figures.
     --font-mono is kept only as a compatibility alias, matching the DS. */
  --font-display: 'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
  --font-body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-spec:    var(--font-body);
  --font-mono:    var(--font-spec);

  /* Radii — restrained, premium (design-system scale: none/2/4/8/pill) */
  --radius-none: 0;
  --radius-sm:   2px;
  --radius-md:   4px;   /* default control radius */
  --radius:      var(--radius-md);
  --radius-lg:   8px;
  --radius-pill: 999px;

  /* Shadows — neutral warm, low opacity */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.05);
  --shadow-xl: 0 32px 70px rgba(0,0,0,0.16);
  --shadow-inset: inset 0 1px 2px rgba(0,0,0,0.05);

  /* Focus ring */
  --focus-ring-color: rgba(107, 78, 61, 0.42);
  --focus-ring:        var(--focus-ring-color);
  --ring:              0 0 0 3px var(--focus-ring);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --container-max: 1280px;
  --header-height: 70px;

  /* ---- Design-system semantic layer (canonical names — author new UI
     against these, not the legacy --color-* aliases above) ---- */
  --stone-100: #EAE6DE;
  --stone-200: #DCD6CC;
  --stone-300: #C6BEB1;
  --stone-400: var(--taupe);
  --stone-500: #8C8377;
  --stone-600: #5C554D;
  --stone-700: var(--charcoal);

  --success: #4B6B4F;
  --warning: #B7822E;
  --danger:  #9B3B2E;
  --info:    #54606A;

  --ink:      var(--black);
  --paper:    var(--warm-white);
  --clay-tint: #EFE2D9;

  --text-primary:   var(--black);
  --text-body:      var(--charcoal);
  --text-secondary: #57514A;
  --text-muted:     var(--taupe);
  --text-inverse:   var(--warm-white);
  --text-accent:    var(--walnut);

  --surface-page:    var(--warm-white);
  --surface-sunken:  var(--ivory);
  --surface-card:    var(--white);
  --surface-inverse: var(--black);
  --surface-footer:  var(--charcoal);
  --surface-accent:  var(--walnut);

  --border-subtle:  #E6E0D6;
  --border-default: var(--linen);
  --border-strong:  var(--taupe);
  --border-inverse: rgba(248, 246, 242, 0.18);

  --link:       var(--black);
  --link-hover: var(--walnut);

  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 56px;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Accessibility Utilities ------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring-color);
  border-radius: var(--radius-sm);
}

::selection { background: var(--walnut-tint); color: var(--black); }

/* ---- Layout Utilities -------------------------------------- */
.nlb-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nlb-section-pad {
  padding: 3rem 0;
}

/* Inline-style replacements */
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.depth-sentinel { height: 0; overflow: hidden; pointer-events: none; }
.footer-license-note { margin-top: 0.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ---- Typography Base --------------------------------------- */
/* Large editorial statements use the display serif (Cormorant Garamond,
   weight 500). Smaller functional titles use the grotesk for crispness. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--black);
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--black);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h4 { font-size: 1.05rem; }

/* Eyebrow label — tracked uppercase, used sparingly above section h2s */
.nlb-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 0.5rem;
}

/* Inverse tone for eyebrows over dark sections (mirrors DS Eyebrow tone="inverse") */
.nlb-eyebrow-inverse {
  color: rgba(248, 246, 242, 0.86);
}

/* Spec type — dimensions, square footage, model numbers */
.nlb-spec {
  font-family: var(--font-spec);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

p { max-width: 65ch; }

.nlb-text-muted { color: var(--color-text-muted); }
.nlb-text-center { text-align: center; }
.nlb-text-center p { margin-left: auto; margin-right: auto; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--color-slate);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--color-slate);
  line-height: 1.5;
  font-style: italic;
}

/* ---- Buttons ----------------------------------------------- */
.nlb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  transition: background 140ms cubic-bezier(0.4,0,0.2,1),
              color 140ms cubic-bezier(0.4,0,0.2,1),
              border-color 140ms cubic-bezier(0.4,0,0.2,1),
              box-shadow 140ms cubic-bezier(0.4,0,0.2,1),
              transform 240ms cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  border: 1.5px solid transparent;
}

.nlb-btn:active { transform: translateY(1px); }

.nlb-btn-primary {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}

.nlb-btn-primary:hover {
  background: var(--clay-dark);
  border-color: var(--clay-dark);
  box-shadow: 0 4px 16px rgba(138, 78, 55, 0.28);
  transform: translateY(-2px);
}

.nlb-btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.nlb-btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.nlb-btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.nlb-btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

/* Light button — for use over dark photography / dark sections */
.nlb-btn-light {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}

.nlb-btn-light:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--black);
  box-shadow: 0 6px 22px rgba(0,0,0,0.28);
  transform: translateY(-2px);
}

.nlb-btn-full { width: 100%; }

.nlb-btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 0.95rem;
}

/* ---- Photo Placeholder ------------------------------------- */
.photo-placeholder {
  background: linear-gradient(135deg, var(--color-warm-gray) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-slate);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem;
  border-radius: var(--radius);
}

/* ---- Site Header ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 246, 242, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.scrolled {
  background: rgba(248, 246, 242, 0.9);
  border-color: var(--color-border);
  box-shadow: var(--shadow);
}

/* Solid fallback where backdrop-filter (frost) is unsupported */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header { background: var(--warm-white); }
  .site-header.scrolled { background: var(--warm-white); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Logo lockup (design-system asset: assets/logo-lockup-*.svg) ---- */
.nlb-logo-img {
  display: block;
  height: 34px;
  width: auto;
}

.header-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate);
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-nav a:hover {
  color: var(--clay-dark);
  border-bottom-color: var(--clay-dark);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  transition: color 0.15s;
}

.header-phone:hover {
  color: var(--clay);
}

.mobile-call-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 2px solid var(--color-navy);
  transition: background 0.15s;
  white-space: nowrap;
}

.mobile-call-btn:hover {
  background: var(--color-navy-deep);
}

/* ---- Hero Section (full-bleed photography) ----------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

/* Split layout: copy on the left, before/after slider on the right.
   Single column on mobile (text first, slider below). */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.hero-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.hero-bullet::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  min-width: 7px;
  background: var(--white);
  border-radius: 50%;
  margin-top: 8px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Secondary "call" CTA: a tappable button on phones, but on tablets/desktop
   it reads as the plain phone number (no button chrome). */
@media (min-width: 640px) {
  .hero-phone-cta.nlb-btn {
    padding: 0;
    height: auto;
    background: transparent;
    border-color: transparent;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
  }

  .hero-phone-cta.nlb-btn:hover {
    background: transparent;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
    box-shadow: none;
    transform: none;
  }
}

.hero-microcopy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* ---- Hero Before/After slider ------------------------------ */
.hero-media {
  width: 100%;
}

.nlb-beforeafter {
  width: 100%;
}

.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: var(--charcoal);
}

/* Both image layers fill the frame */
.ba-after,
.ba-before {
  position: absolute;
  inset: 0;
}

.ba-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* "Before" sits on top, desaturated, clipped to the left of the handle */
.ba-before {
  filter: saturate(0.32) brightness(0.92) contrast(0.96);
  clip-path: inset(0 calc(100% - var(--ba-pos, 52%)) 0 0);
}

/* Corner labels */
.ba-tag {
  position: absolute;
  top: 16px;
  z-index: 4;
  padding: 5px 11px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: rgba(28, 26, 22, 0.55);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.ba-tag-before {
  left: 16px;
}

.ba-tag-after {
  right: 16px;
}

/* Divider + handle, positioned at the reveal point */
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 52%);
  width: 2px;
  background: var(--warm-white);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--warm-white);
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
}

/* Native range drives keyboard + assistive-tech; kept invisible and
   non-interactive to pointers (the frame handles mouse/touch drag itself),
   but still reachable by Tab and operable with arrow keys. */
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* Show a focus ring on the visible handle when the range is focused */
.ba-frame:focus-within .ba-handle {
  outline: 3px solid var(--focus-ring-color);
  outline-offset: 2px;
}

.ba-caption {
  margin-top: 0.85rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* ---- Trust Bar --------------------------------------------- */
/* ---- Divider (DS content/Divider: hairline rule, optional label) --- */
.nlb-divider {
  border: none;
  height: 1px;
  margin: 0;
  background: var(--border-default, var(--linen));
}

.nlb-divider-vertical {
  width: 1px;
  align-self: stretch;
  background: var(--border-default, var(--linen));
}

.nlb-divider-labeled {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nlb-divider-labeled::before,
.nlb-divider-labeled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-default, var(--linen));
}

.nlb-divider-labeled > span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}

/* ---- Trust Bar --------------------------------------------- */
.trust-bar {
  background: var(--color-warm-gray);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.trust-bar-inner {
  /* 2-col on mobile (2×2), single row on wide */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  justify-items: start;
}

@media (min-width: 1024px) {
  .trust-bar-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 1.75rem;
    align-items: center;
  }

  /* On the single-row layout, separate items with vertical hairlines
     (DS trust-band pattern) instead of leading dots */
  .trust-bar-item::before {
    width: 1px;
    height: 16px;
    margin-right: 1.35rem;
    background: var(--border-default, var(--linen));
    border-radius: 0;
  }

  .trust-bar-item:first-child::before {
    display: none;
  }
}

.trust-bar-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-bar-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.trust-bar-license {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-slate);
  margin-top: 0.5rem;
}

/* ---- Section Shared ---------------------------------------- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---- Section Split Layout ---------------------------------- */
.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .section-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
  }
}

/* CTAs inside split layouts are left-aligned */
.section-split .section-cta {
  text-align: left;
  margin-top: 2rem;
}

/* Disclaimer inside split — quieter, deemphasized */
.section-split .section-disclaimer {
  font-size: 0.7rem;
  margin-top: 1rem;
  opacity: 0.7;
}

/* ---- Law Change Card --------------------------------------- */
.law-change-card {
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.law-change-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  opacity: 0.6;
}

.law-change-body {
  padding: 1.75rem;
}

.law-change-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.85rem;
}

.law-change-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  max-width: none;
}

.law-change-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: none;
}

/* ---- Opportunity Section ----------------------------------- */
.opportunity-section {
  background: var(--color-ivory);
}

/* ---- Economics Section ------------------------------------- */
.economics-section {
  background: var(--color-warm-gray);
}

/* Math headline stat — large callout above the breakdown rows */
.math-headline-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--charcoal);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.math-headline-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

.math-headline-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.math-headline-sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

.math-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--color-navy);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  /* max-width and margin removed — card lives in its own column */
}

.math-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.math-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-warm-gray);
}

.math-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.math-label {
  font-size: 0.875rem;
  color: var(--color-slate);
}

.math-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.math-card-cta { display: none; } /* CTA moved to left column */

.math-value.highlight {
  color: var(--color-green);
}

.math-card-cta {
  margin-top: 1.5rem;
  width: 100%;
}

.math-card-disclaimer {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--color-slate);
  line-height: 1.5;
  font-style: italic;
}

/* ---- Motivation Cards -------------------------------------- */
.motivations-section {
  background: var(--color-ivory);
}

.motivation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.motivation-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-gold);
  transition: box-shadow 0.2s;
}

.motivation-card:hover {
  box-shadow: var(--shadow-md);
}

.motivation-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.motivation-body {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.motivation-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.motivation-link:hover {
  color: var(--color-gold);
}

/* ---- Two-Path Section -------------------------------------- */
.paths-section {
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.paths-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 55%, rgba(107, 78, 61, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.paths-section .section-header h2 {
  color: var(--color-white);
}

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.path-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.2s;
}

.path-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.path-headline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.path-body {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ---- ADU Options Section ----------------------------------- */
.options-section {
  background: var(--color-ivory);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card shell — mirrors the design-system project Card (photo on top, body below) */
.option-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.option-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.option-media {
  height: 200px;
  overflow: hidden;
  background: var(--walnut-tint);
}

.option-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.option-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem;
}

.option-headline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--black);
  margin: 0.35rem 0 1rem;
}

.option-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.option-meta-label {
  font-weight: 600;
  color: var(--charcoal);
}

.option-meta-value {
  color: var(--taupe);
  line-height: 1.5;
}

/* Footer tag — outline badge echoing the design-system Tag */
.option-tag {
  align-self: flex-start;
  margin-top: 1.25rem;
  padding: 0.25rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--walnut);
  border: 1px solid var(--linen);
  border-radius: var(--radius-pill, 999px);
}

/* ---- Gallery Section --------------------------------------- */
.gallery-section {
  background: var(--color-warm-gray);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--black);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  transition: background 140ms cubic-bezier(0.4,0,0.2,1), color 140ms cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.gallery-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.gallery-card[hidden] {
  display: none;
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
}

.gallery-photo {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-warm-gray);
}

.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.4,0,0.2,1);
}

.gallery-card:hover .gallery-photo img {
  transform: scale(1.04);
}

.gallery-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  font-size: 0.7rem;
}

.gallery-caption {
  padding: 1rem 1.25rem;
}

.gallery-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}

.gallery-card-text {
  font-size: 0.8rem;
  color: var(--color-slate);
  line-height: 1.5;
}

/* ---- Badge (DS content/Badge: small status/label pill) ----- */
.nlb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nlb-badge-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--stone-600, #5C554D);
}

.nlb-badge-soft {
  background: var(--walnut-tint);
  color: var(--walnut-dark);
  border-color: transparent;
}

/* Gallery type label rendered as the DS outline Badge (matches project Card footer) */
.gallery-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: 0.5rem;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--linen);
  border-radius: var(--radius-pill);
  color: var(--stone-600, #5C554D);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---- Why Next Level Builders ------------------------------- */
.why-nlb-section {
  background: var(--color-ivory);
}

.differentiators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.differentiator-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.differentiator-headline::before {
  content: '';
  display: block;
  width: 20px;
  height: 3px;
  min-width: 20px;
  background: var(--color-gold);
  margin-top: 9px;
  border-radius: 2px;
}

.differentiator-body {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.65;
  padding-left: 26px;
}

/* ---- Process Section (design-system dark block) ------------ */
.process-section {
  background: var(--ink);
  color: var(--text-inverse);
}

.process-header {
  margin-bottom: 3rem;
}

.process-header h2 {
  color: var(--text-inverse);
  margin-top: 0.75rem;
  max-width: 32ch;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
  margin-top: 1rem;
}

/* DS process step: hairline top border, clay number, serif title */
.process-step {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-inverse);
  padding-top: 1.15rem;
}

.step-num {
  font-family: var(--font-spec);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.step-headline {
  font-family: var(--font-display);
  font-size: var(--display-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-inverse);
  margin-bottom: 0.6rem;
}

.step-body {
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.66);
  line-height: 1.55;
}

/* CTA under the dark process block */
.process-section .section-cta {
  margin-top: 3.5rem;
}

/* ---- Form / Assessment Section ----------------------------- */
.assessment-section {
  background: var(--color-ivory);
  border-top: 1px solid var(--color-border);
}

.assessment-header {
  margin-bottom: 2.5rem;
}

.assessment-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.form-intro {
  font-size: 0.9rem;
  color: var(--color-slate);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* ---- Inquiry Form (DS-aligned Input/Select/Textarea/Button) --------- */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
}

.inquiry-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .inquiry-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.nlb-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nlb-field label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.nlb-field-required {
  color: var(--danger);
  margin-left: 3px;
}

.nlb-field-optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 6px;
}

.nlb-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--control-md);
  padding: 0 14px;
  background: var(--surface-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset);
  transition: border-color 140ms cubic-bezier(0.4,0,0.2,1), box-shadow 140ms cubic-bezier(0.4,0,0.2,1);
}

.nlb-input:focus-within {
  border-color: var(--walnut);
  box-shadow: var(--ring);
}

/* The site-wide :focus-visible rule (for buttons/links) would otherwise
   stack its own box-shadow ring directly on the input/select/textarea,
   producing a visible double ring around the .nlb-input wrapper's own
   focus ring above. The wrapper already provides the focus indicator. */
.nlb-input input:focus-visible,
.nlb-input select:focus-visible,
.nlb-input textarea:focus-visible {
  box-shadow: none;
}

.nlb-field.has-error .nlb-input {
  border-color: var(--danger);
}

.nlb-input input,
.nlb-input select,
.nlb-input textarea {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

.nlb-input input,
.nlb-input select {
  height: 100%;
}

.nlb-input.nlb-select {
  position: relative;
  padding-right: 38px;
}

.nlb-input.nlb-select select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
}

.nlb-input.nlb-select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--stone-500);
  border-bottom: 1.5px solid var(--stone-500);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.nlb-input.nlb-textarea {
  height: auto;
  padding: 0;
  align-items: stretch;
}

.nlb-input.nlb-textarea textarea {
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
  min-height: 6rem;
}

.nlb-field-msg {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 1em;
}

.nlb-field-msg:empty {
  min-height: 0;
}

.nlb-field.has-error .nlb-field-msg {
  color: var(--danger);
  font-weight: 500;
}

.nlb-field-msg-form {
  text-align: center;
  font-weight: 600;
  color: var(--danger);
}

.nlb-field-msg-form:empty {
  display: none;
}

/* Honeypot: present in the DOM (so bots that fill every field trip it),
   but never visible or reachable for sighted or assistive-tech users. */
.nlb-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry-submit-btn {
  margin-top: 0.5rem;
}

.inquiry-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Keep the loading button fully opaque so the spinner + "Sending…" read clearly */
.inquiry-submit-btn.is-loading {
  opacity: 1;
  cursor: progress;
}

.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  vertical-align: -2px;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.4s; }
}

/* Success confirmation modal (shown over the page after submit) */
.inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.inquiry-modal[hidden] {
  display: none;
}

.inquiry-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: inquiry-fade 200ms cubic-bezier(0.4,0,0.2,1);
}

.inquiry-modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 460px;
  background: var(--surface-card);
  border-top: 4px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem 2.25rem;
  box-shadow: var(--shadow-xl);
  outline: none;
  animation: inquiry-pop 240ms cubic-bezier(0.16,1,0.3,1);
}

.inquiry-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 140ms cubic-bezier(0.4,0,0.2,1), color 140ms cubic-bezier(0.4,0,0.2,1);
}

.inquiry-modal-close:hover {
  background: var(--surface-sunken);
  color: var(--ink);
}

.inquiry-modal-dialog .nlb-btn {
  margin-top: 0.5rem;
}

@keyframes inquiry-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes inquiry-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .inquiry-modal-backdrop,
  .inquiry-modal-dialog {
    animation: none;
  }
}

.inquiry-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--success);
  color: var(--white);
}

.inquiry-success-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.inquiry-success-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 46ch;
  margin: 0;
}

.inquiry-success-body a {
  color: var(--walnut);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.form-reassurance {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-slate);
  text-align: center;
  font-style: italic;
}

.assessment-side-headline {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.what-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.what-list li {
  font-size: 0.9rem;
  color: var(--color-slate);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.what-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  margin-top: 5px;
}

.form-phone-alt {
  background: var(--color-warm-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.form-phone-alt-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}

.form-phone-link {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.15s;
}

.form-phone-link:hover {
  color: var(--color-gold);
}

.form-phone-alt-note {
  font-size: 0.78rem;
  color: var(--color-slate);
  margin-top: 0.4rem;
}

/* ---- Testimonials ------------------------------------------ */
.testimonials-section {
  background: var(--ivory);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Light bordered card, mirroring the design-system content Card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.testimonial-placeholder-note {
  display: block;
  font-size: 0.7rem;
  color: var(--taupe);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--walnut);
  margin-right: 0.15rem;
}

/* Avatar + attribution row */
.testimonial-attrib {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.testimonial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--walnut-tint);
  color: var(--walnut-dark);
  border: 1px solid var(--linen);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--taupe);
}

/* ---- FAQ Section ------------------------------------------- */
.faq-section {
  background: var(--color-ivory);
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  font-size: 1rem;
  line-height: 1;
  color: var(--color-slate);
  transition: background 0.15s, color 0.15s, transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer.open {
  max-height: 1200px;
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.7;
  max-width: 72ch;
}

/* ---- Final CTA Section ------------------------------------- */
.final-cta-section {
  background: var(--color-warm-gray);
  text-align: center;
}

.final-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.final-cta-body {
  font-size: 1rem;
  color: var(--color-slate);
  margin: 1rem auto 2rem;
  line-height: 1.7;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.final-cta-microcopy {
  /* auto side margins center the block; without them the base p{max-width:65ch}
     rule leaves it left-hugging so the centered text looks off-center */
  margin: 1.25rem auto 0;
  font-size: 0.8rem;
  color: var(--color-slate);
  font-style: italic;
}

/* ---- Footer ------------------------------------------------ */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

/* Footer logo: the reverse (warm-white) lockup asset, slightly larger */
.site-footer .nlb-logo-img {
  height: 38px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-services {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* Matches the design system's Eyebrow tone="inverse" exactly (not walnut —
   that's only used for eyebrows on light backgrounds). */
.footer-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(248, 246, 242, 0.86);
  margin-bottom: 0.75rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}

/* Clay line icon paired with each contact line (DS pattern) */
.footer-contact-icon {
  display: inline-flex;
  flex: none;
  margin-top: 1px;
  color: var(--clay);
}

.footer-contact-icon svg { display: block; }

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s;
}

.footer-contact-item a:hover {
  color: var(--clay);
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  font-style: italic;
}

/* ---- Sticky Mobile CTA ------------------------------------- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  padding: 0.75rem var(--space-md);
  display: flex;
  gap: 0.6rem;
  transition: transform 0.25s ease;
}

.sticky-mobile-cta.hidden {
  transform: translateY(110%);
}

.sticky-mobile-cta .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.75rem 0.5rem;
}

/* ---- Responsive: Tablet (min-width: 640px) ----------------- */
@media (min-width: 640px) {
  .motivation-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Responsive: Desktop (min-width: 1024px) --------------- */
@media (min-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  .section-pad {
    padding: 5rem 0;
  }

  /* Header */
  .header-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .mobile-call-btn {
    display: none;
  }

  /* Hero — two columns: copy left, before/after slider right */
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
    min-height: calc(100dvh - var(--header-height));
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Options — 3-up project grid (mirrors design-system ProjectsView) */
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Differentiators */
  .differentiators-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Process — 3-up (two rows of the six steps) */
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Assessment */
  .assessment-layout {
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  /* Footer — brand column wider, the two nav/contact columns equal width
     (matches the design system's SiteFooter proportions) */
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* Hide sticky mobile CTA */
  .sticky-mobile-cta {
    display: none;
  }
}

/* ---- Scroll Reveal ----------------------------------------- */
.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms cubic-bezier(0.16,1,0.3,1), transform 500ms cubic-bezier(0.16,1,0.3,1);
}

.section-reveal.revealed {
  opacity: 1;
  transform: none;
}

.section-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms cubic-bezier(0.16,1,0.3,1), transform 420ms cubic-bezier(0.16,1,0.3,1);
}

.section-reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.section-reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.section-reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.section-reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.section-reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.section-reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ---- Reduced Motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .faq-answer {
    transition: none;
  }

  .section-reveal,
  .section-reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-photo img {
    transition: none;
  }

  .sticky-mobile-cta {
    transition: none;
  }
}
