/* ================================================================
   HORIZON SLIDING DOORS & WINDOWS — STYLESHEET
   Brand-locked, performance-tuned, mobile-horizontal-snap
   ================================================================ */

/* ---- Design Tokens ---- */
:root {
  --color-navy: #0E1B2C;
  --color-navy-soft: #1A2A3D;
  --color-amber: #D9622E;
  --color-amber-soft: #E8814D;
  --color-taupe: #7C7166;
  --color-cream: #F5F1E8;
  --color-cream-soft: #FAF7F0;
  --color-white: #FFFFFF;
  --color-line: rgba(14, 27, 44, 0.08);
  --color-line-strong: rgba(14, 27, 44, 0.18);

  --font-display: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Helvetica Neue', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(14, 27, 44, 0.04);
  --shadow-md: 0 4px 16px rgba(14, 27, 44, 0.06);
  --shadow-lg: 0 12px 40px rgba(14, 27, 44, 0.08);

  --nav-height: 72px;
  --content-max: 1280px;
  --content-narrow: 880px;

  /* Mobile sticky CTA bar reservation — used by every horizontal panel
     to ensure tile/card content NEVER bleeds under the fixed bottom bar.
     Composition: 56px bar button + 14px breathing room + 30px indicator zone
     + iOS home-indicator safe area. Update this single var if bar height changes. */
  --mobile-cta-bar-h: 56px;
  --mobile-bottom-reserve: calc(var(--mobile-cta-bar-h) + 44px + env(safe-area-inset-bottom, 0));

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-x-wide: 0.18em;

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--color-navy); background: var(--color-cream-soft); overflow-x: hidden; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--duration-base) var(--ease-out); }
a:hover { color: var(--color-amber); }
ul, ol { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; letter-spacing: var(--tracking-tight); line-height: 1.05; color: var(--color-navy); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0; }
.eyebrow { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-x-wide); color: var(--color-amber); margin-bottom: var(--space-3); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--color-navy-soft); max-width: 60ch; }
p { max-width: 68ch; }
small, .small { font-size: 0.85rem; color: var(--color-taupe); }

/* ---- Layout Helpers ---- */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { width: 100%; max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--space-4); }
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-6) 0; }
.section-cream { background: var(--color-cream); }
.section-navy { background: var(--color-navy); color: var(--color-cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--color-cream); }
.section-navy .lead { color: rgba(245, 241, 232, 0.85); }
.section-navy .eyebrow { color: var(--color-amber-soft); }

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

.text-center { text-align: center; }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

/* ---- Navbar ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: rgba(245, 247, 240, 0.92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--color-line); z-index: 100; transition: background var(--duration-base) var(--ease-out); }
.nav-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: var(--space-2); }
.nav-logo img { height: 46px; width: auto; max-width: 260px; object-fit: contain; display: block; }
@media (max-width: 768px) { .nav-logo img { height: 38px; max-width: 200px; } }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-link { font-size: 0.92rem; font-weight: 500; color: var(--color-navy); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--color-amber); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { background: var(--color-navy); color: var(--color-cream); padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; transition: background var(--duration-base) var(--ease-out); }
.nav-cta:hover { background: var(--color-amber); color: var(--color-cream); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-navy); position: relative; transition: all var(--duration-base) var(--ease-out); }
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--color-navy); transition: all var(--duration-base) var(--ease-out); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1.6rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; transition: all var(--duration-base) var(--ease-out); cursor: pointer; }
.btn-primary { background: var(--color-amber); color: var(--color-cream); }
.btn-primary:hover { background: var(--color-navy); color: var(--color-cream); transform: translateY(-1px); }
.btn-secondary { background: var(--color-navy); color: var(--color-cream); }
.btn-secondary:hover { background: var(--color-amber); color: var(--color-cream); }
.btn-ghost { background: transparent; color: var(--color-navy); border: 1px solid var(--color-line-strong); }
.btn-ghost:hover { background: var(--color-navy); color: var(--color-cream); border-color: var(--color-navy); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.1rem 2rem; font-size: 1rem; }

/* ---- Hero (interior pages) ---- */
.hero { padding-top: calc(var(--nav-height) + var(--space-6)); padding-bottom: var(--space-7); position: relative; overflow: hidden; background: var(--color-cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.hero-headline { margin-top: var(--space-3); margin-bottom: var(--space-4); }
.hero-headline .accent { color: var(--color-amber); }
.hero-image { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-trust { display: flex; gap: var(--space-4); margin-top: var(--space-4); flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.4rem; color: var(--color-navy); }
.hero-trust small { color: var(--color-taupe); font-size: 0.78rem; text-transform: uppercase; letter-spacing: var(--tracking-wide); }

/* ============================================================
   CINEMATIC HERO (Homepage)
   Full-bleed background image with dark gradient overlay,
   bold typography, glassmorphic form.
   ============================================================ */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-height) + var(--space-5)) 0 var(--space-6);
  overflow: hidden;
  isolation: isolate;
  background: var(--color-navy);
  color: var(--color-cream);
}
.hero-cinematic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-cinematic.png');
  background-size: cover;
  background-position: center right;
  z-index: -2;
}
.hero-cinematic::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Left-to-right cinematic grade: heavy left for brand text,
       lighter right BUT with a raised floor so the form area still
       has a built-in atmospheric contrast surface for white text. */
    linear-gradient(90deg, rgba(14,27,44,0.92) 0%, rgba(14,27,44,0.74) 30%, rgba(14,27,44,0.5) 55%, rgba(14,27,44,0.42) 80%, rgba(14,27,44,0.4) 100%),
    /* Vertical depth: slight top/bottom darkening for film-grade feel */
    linear-gradient(180deg, rgba(14,27,44,0.25) 0%, transparent 30%, transparent 70%, rgba(14,27,44,0.55) 100%);
  z-index: -1;
}
.hero-cinematic-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-6);
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - var(--space-6));
  min-height: calc(100dvh - var(--nav-height) - var(--space-6));
}
.hero-cinematic .eyebrow {
  color: var(--color-amber-soft);
  font-size: 0.82rem;
  letter-spacing: var(--tracking-x-wide);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-cinematic .eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-amber);
}
.hero-cinematic h1 {
  color: var(--color-cream);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: var(--space-3) 0 var(--space-4);
  text-shadow: 0 2px 30px rgba(14,27,44,0.45);
}
.hero-cinematic h1 .accent {
  color: var(--color-amber);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
  display: inline-block;
}
.hero-cinematic .lead {
  color: rgba(245,241,232,0.92);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  max-width: 56ch;
  text-shadow: 0 1px 20px rgba(14,27,44,0.5);
  margin-bottom: var(--space-5);
}
.hero-cinematic-cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.hero-cinematic .btn-primary {
  background: var(--color-amber);
  color: var(--color-cream);
  box-shadow: 0 8px 24px rgba(217,98,46,0.35);
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
}
.hero-cinematic .btn-primary:hover {
  background: var(--color-amber-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217,98,46,0.45);
}
.hero-cinematic .btn-ghost {
  border: 1px solid rgba(245,241,232,0.4);
  color: var(--color-cream);
  background: rgba(14,27,44,0.25);
  backdrop-filter: blur(8px);
  padding: 1.1rem 1.8rem;
  font-size: 1rem;
}
.hero-cinematic .btn-ghost:hover {
  background: rgba(245,241,232,0.95);
  color: var(--color-navy);
  border-color: var(--color-cream);
}

/* Trust signals — pill-style chips */
.hero-trust-chips {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.hero-trust-chips .chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(245,241,232,0.08);
  border: 1px solid rgba(245,241,232,0.18);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: rgba(245,241,232,0.95);
  font-weight: 500;
}
.hero-trust-chips .chip strong {
  color: var(--color-amber-soft);
  font-weight: 700;
}
.hero-trust-chips .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-amber);
  box-shadow: 0 0 12px var(--color-amber);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* ============================================================
   HERO FORM — Desktop only. Blends into the cinematic hero image
   (no card surface) but with strong contrast for legibility:
     1. Soft localized scrim behind the form area (vertical gradient
        on the aside) lifts text without looking like a card.
     2. Multi-layer text-shadows on title/labels.
     3. Darker semi-transparent input fills with stronger borders.
   ============================================================ */
.hero-form-aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}
/* NO scrim — text colors are picked to read naturally on the photo.
   Dark navy text with a soft white halo: navy provides contrast on
   bright sunset areas, the white halo provides contrast on any darker
   areas (hills, foliage). Works without any backdrop element. */
.hero-form-aside .hero-form-glass { width: 100%; max-width: 440px; position: relative; }

/* The form itself — no background, no shadow, no border. Pure layout. */
.hero-form-glass {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: 0;
  color: var(--color-cream);
}

/* Title — modern minimal: cream/white, refined weight, single soft
   drop-shadow only. Same typography pattern as the H1 on the left
   side of the hero (consistent site aesthetic). */
.hero-form-glass h3 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-cream);
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(14,27,44,0.55);
}
.hero-form-glass .form-sub {
  color: rgba(245,241,232,0.82);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-shadow: 0 1px 12px rgba(14,27,44,0.5);
}
.hero-form-glass .form-sub::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ED27A;
  box-shadow: 0 0 12px rgba(78,210,122,0.85);
  flex-shrink: 0;
}

/* Field rows — Stripe/Linear pattern: label lives INSIDE the input
   as a small uppercase hint, the input fill provides the contrast.
   No text-shadow, no extra weight — minimal and modern. */
.hero-form-glass .form-row {
  margin-bottom: 0.55rem;
  position: relative;
}
.hero-form-glass .form-row label {
  position: absolute;
  top: 0.55rem;
  left: 0.95rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
  pointer-events: none;
  text-shadow: none;
  z-index: 1;
  transition: color var(--duration-base) var(--ease-out);
}

/* Inputs — generous top padding so label sits inside on its own line.
   Dark fill provides all contrast; no text-shadow, no glow. */
.hero-form-glass .form-row input,
.hero-form-glass .form-row select {
  width: 100%;
  padding: 1.55rem 0.95rem 0.55rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  color: #FFFFFF;
  background: rgba(14,27,44,0.62);
  border: 1px solid rgba(245,241,232,0.32);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 4px rgba(14,27,44,0.18);
  transition:
    border-color var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
/* Lift label color on focus for clear active state */
.hero-form-glass .form-row:focus-within label {
  color: var(--color-amber);
}
.hero-form-glass .form-row input::placeholder {
  color: rgba(255,255,255,0.55);
}
.hero-form-glass .form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(245,241,232,0.7) 50%),
    linear-gradient(135deg, rgba(245,241,232,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 1.95rem,
    calc(100% - 0.75rem) 1.95rem;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}
.hero-form-glass .form-row select option {
  color: var(--color-navy);
  background: var(--color-cream);
}
.hero-form-glass .form-row input:focus,
.hero-form-glass .form-row select:focus {
  outline: none;
  background: rgba(14,27,44,0.78);
  border-color: var(--color-amber);
  box-shadow:
    0 0 0 3px rgba(217,98,46,0.28),
    inset 0 1px 0 rgba(245,241,232,0.1);
}
.hero-form-glass .form-row input:hover,
.hero-form-glass .form-row select:hover {
  border-color: rgba(245,241,232,0.6);
  background: rgba(14,27,44,0.7);
}

/* Two-column field row */
.hero-form-glass .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.hero-form-glass .form-grid-2 .form-row { margin-bottom: 0; }

/* Submit — solid amber, the only "card-like" surface in the form,
   acting as the visual anchor against the photograph */
.hero-form-glass .btn-block {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  background: var(--color-amber);
  color: var(--color-cream);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    0 8px 24px rgba(217,98,46,0.42),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}
.hero-form-glass .btn-block:hover {
  background: var(--color-amber-soft);
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(217,98,46,0.5),
    inset 0 1px 0 rgba(255,255,255,0.24);
}

/* Disclaimer — minimal cream text, single soft drop-shadow only.
   Same typography pattern as the H1 lead text on the left side. */
.hero-form-glass .form-disclaimer {
  font-size: 0.72rem;
  color: rgba(245,241,232,0.7);
  font-weight: 400;
  margin-top: 0.85rem;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 10px rgba(14,27,44,0.5);
}
.hero-form-glass .form-disclaimer a {
  color: var(--color-cream);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(245,241,232,0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--duration-base) var(--ease-out);
}
.hero-form-glass .form-disclaimer a:hover {
  text-decoration-color: var(--color-amber);
}

/* Success state */
.hero-form-glass .form-success {
  display: none;
  background: rgba(78,210,122,0.18);
  color: #C8F2D6;
  border: 1px solid rgba(78,210,122,0.4);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-top: 0.85rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-form-glass.is-success .form-success { display: block; }
.hero-form-glass.is-success > *:not(.form-success):not(h3) { display: none; }

/* Scroll-down hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245,241,232,0.6);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
  animation: floatHint 2.6s ease-in-out infinite;
}
.hero-scroll-hint::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(245,241,232,0.6), transparent);
}
@keyframes floatHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* Decorative sun element behind/near headline */
.hero-cinematic .sun-deco {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,98,46,0.4) 0%, rgba(217,98,46,0.1) 50%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-cinematic { min-height: auto; padding-bottom: var(--space-5); }
  .hero-cinematic-grid { grid-template-columns: 1fr; min-height: auto; gap: var(--space-4); padding-top: var(--space-3); }
  .hero-cinematic h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-cinematic::after {
    background:
      linear-gradient(180deg, rgba(14,27,44,0.85) 0%, rgba(14,27,44,0.7) 50%, rgba(14,27,44,0.6) 100%);
  }
  .hero-cinematic::before { background-position: center center; }
  .hero-scroll-hint { display: none; }
  .hero-trust-chips .chip { font-size: 0.78rem; padding: 0.5rem 0.85rem; }
  /* Below 900px the hero is single-column — hide the aside form, keep the
     standalone .quote-section panel as the form destination (mobile flow). */
  .hero-form-aside { display: none; }
}

/* ============================================================
   DESKTOP-ONLY: Hero owns the form, so the standalone
   .quote-section is redundant and gets hidden. (>900px only.)
   The hero CTA row (Call + Get Estimate buttons) is also hidden
   on desktop because the form is the primary conversion path.
   On tablet/mobile (<=900px) the .quote-section panel stays
   as the dedicated form destination — DO NOT TOUCH MOBILE.
   ============================================================ */
@media (min-width: 901px) {
  .quote-section { display: none; }
  .hero-cinematic .hero-cinematic-cta-row { display: none; }
}

/* ============================================================
   HERO SOLO LAYOUT (new — form lives in dedicated section below)
   Single column hero with text + CTAs. Image fills the bg.
   ============================================================ */
.hero-cinematic-solo {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--nav-height) - var(--space-6));
  min-height: calc(100dvh - var(--nav-height) - var(--space-6));
  max-width: 780px;
  padding: var(--space-5) 0;
}
.hero-cinematic-solo .hero-text {
  width: 100%;
}
.hero-cinematic-solo .lead {
  margin-bottom: var(--space-5);
  max-width: 56ch;
}

/* Click-to-call button — slightly bigger, with phone icon */
.btn-call {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.btn-call svg { flex-shrink: 0; }

/* ============================================================
   QUOTE / ESTIMATE SECTION (new — dedicated form panel)
   ============================================================ */
.quote-section {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-soft) 100%);
  padding: var(--space-7) 0;
  position: relative;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-amber), transparent);
  opacity: 0.6;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}
.quote-text h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: var(--space-2) 0 var(--space-3);
}
.quote-text .lead { margin-bottom: var(--space-4); }
.quote-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}
.quote-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--color-navy);
  line-height: 1.5;
}
.quote-benefits .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-amber);
  color: var(--color-cream);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.quote-or {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: 0.95rem;
  color: var(--color-taupe);
}
.quote-or a { color: var(--color-amber); }
.quote-or a:hover { color: var(--color-navy); }

/* The form itself — clean white card, generous spacing */
.quote-form {
  background: var(--color-white);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
}
.quote-form h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
  color: var(--color-navy);
}
.quote-form .form-sub {
  color: var(--color-taupe);
  font-size: 0.92rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quote-form .form-sub::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2EA64F;
  box-shadow: 0 0 8px rgba(46,166,79,0.6);
}

/* ============================================================
   STICKY MOBILE CTA BAR — always visible bottom of viewport
   Click-to-call + Get Estimate. The conversion engine.
   ============================================================ */
.mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: var(--color-navy);
    box-shadow: 0 -8px 24px rgba(14,27,44,0.2);
    border-top: 1px solid rgba(245,241,232,0.08);
    /* Honor iOS safe-area inset (notch / home indicator) */
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .cta-bar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-cream);
    text-decoration: none;
    transition: background var(--duration-base) var(--ease-out);
    min-height: 56px;
  }
  .cta-bar-btn-call {
    background: var(--color-amber);
    border-right: 1px solid rgba(14,27,44,0.18);
  }
  .cta-bar-btn-call:active { background: #C25524; color: var(--color-cream); }
  .cta-bar-btn-quote { background: var(--color-navy); }
  .cta-bar-btn-quote:active { background: var(--color-navy-soft); color: var(--color-cream); }
}

/* ============================================================
   MOBILE HERO — Beautiful brand impression. Text vertically centered.
   No redundant CTAs (sticky bottom bar handles call + estimate).
   ============================================================ */
@media (max-width: 768px) {
  .hero-cinematic {
    padding-bottom: var(--space-3);
    min-height: auto;
    display: flex;
    align-items: center;
  }
  /* On mobile the hero is single-column — match both old (solo) and new
     (grid) wrapper classes so the cinematic-only mobile look is preserved. */
  .hero-cinematic-solo,
  .hero-cinematic-grid {
    min-height: auto;
    padding: var(--space-3) 0 var(--space-3);
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  /* Belt-and-suspenders: the in-hero form aside is desktop-only. */
  .hero-cinematic .hero-form-aside { display: none; }
  .hero-cinematic .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }
  .hero-cinematic .eyebrow {
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
    letter-spacing: 0.18em;
  }
  .hero-cinematic .eyebrow::before { width: 28px; }
  .hero-cinematic h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem);
    margin: 0 0 var(--space-4) 0;
    line-height: 1.04;
    text-wrap: balance;
    letter-spacing: -0.025em;
  }
  .hero-cinematic .lead {
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: var(--space-5);
    max-width: 32ch;
    color: rgba(245,241,232,0.92);
  }
  /* Hide the hero CTA buttons on mobile — sticky bar already has Call + Estimate */
  .hero-cinematic-cta-row { display: none; }
  .hero-cinematic .sun-deco { width: 280px; height: 280px; }
  .hero-trust-chips {
    margin-top: 0;
    gap: 0.4rem;
  }
  .hero-trust-chips .chip {
    font-size: 0.74rem;
    padding: 0.42rem 0.85rem;
  }
  .hero-trust-chips .chip:nth-child(n+3) { display: none; }
}

/* ============================================================
   MOBILE PANEL FIT — every panel uses flex-column to FILL its
   viewport (no awkward empty space at the bottom).
   Pattern: section is a flex column, .container is flex:1 with
   space-between or center justification. Inner elements grow to
   fill available space (grids stretch, images fill, lists expand).
   ============================================================ */

/* Universal mobile-panel fill rule */
@media (max-width: 768px) {
  body.h-scroll main > section {
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* enforce no scroll-within-panel */
  }
  body.h-scroll main > section > .container,
  body.h-scroll main > section > .container-narrow {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}

/* Quote panel — header + form, distributed with space between */
@media (max-width: 768px) {
  body.h-scroll .quote-section { padding: var(--space-3) 0; }
  body.h-scroll .quote-section > .container {
    justify-content: center;
    gap: var(--space-3);
  }
  body.h-scroll .quote-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.h-scroll .quote-grid > .quote-text {
    display: block;
    text-align: center;
  }
  body.h-scroll .quote-text .eyebrow { display: inline-flex; font-size: 0.68rem; margin-bottom: 0.4rem; }
  body.h-scroll .quote-text .eyebrow::before { width: 22px; }
  body.h-scroll .quote-text h2 { font-size: 1.35rem; margin: 0 0 0.4rem; line-height: 1.1; }
  body.h-scroll .quote-text .lead { display: none; }
  body.h-scroll .quote-text .quote-benefits { display: none; }
  body.h-scroll .quote-text .quote-or { display: none; }
  body.h-scroll .quote-form { padding: var(--space-4); margin: 0; }
  body.h-scroll .quote-form h3 { font-size: 1.18rem; margin-bottom: 0.15rem; }
  body.h-scroll .quote-form .form-sub { font-size: 0.78rem; margin-bottom: var(--space-3); }
  body.h-scroll .quote-form .form-row { margin-bottom: 0.55rem; }
  body.h-scroll .quote-form .form-row label {
    font-size: 0.66rem;
    margin-bottom: 0.18rem;
    letter-spacing: 0.06em;
  }
  body.h-scroll .quote-form .form-row input,
  body.h-scroll .quote-form .form-row select {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  body.h-scroll .quote-form .form-grid-2 { gap: 0.5rem; }
  body.h-scroll .quote-form .btn-lg { padding: 0.9rem; font-size: 0.95rem; margin-top: 0.4rem; }
  body.h-scroll .quote-form .form-disclaimer {
    font-size: 0.62rem;
    margin-top: 0.45rem;
    line-height: 1.35;
  }
}

/* Services panel — 6 tiles in a 2x3 grid that FILLS available space exactly.
   Container uses grid (auto header + 1fr content) so tile area gets exactly
   the remaining height, then tile-grid uses 1fr rows so each tile is equal. */
@media (max-width: 768px) {
  body.h-scroll #services { padding: var(--space-3) 0; }
  body.h-scroll #services > .container {
    display: grid;
    grid-template-rows: auto 1fr; /* header (auto) + tile-area (fills rest) */
    padding: 0 var(--space-3);
    gap: var(--space-3);
    height: 100%;
    min-height: 0;
  }
  body.h-scroll #services .text-center.mb-5 { margin-bottom: 0; }
  body.h-scroll #services .eyebrow { font-size: 0.66rem; margin-bottom: 0.2rem; }
  body.h-scroll #services h2 { font-size: 1.5rem; line-height: 1.1; margin: 0; }
  body.h-scroll #services .text-center .lead { display: none; }
  body.h-scroll #services .grid-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr; /* 3 equal rows fill the 1fr area */
    gap: 0.5rem;
    min-height: 0; /* CRITICAL: allows the grid to actually shrink to fit */
    height: 100%;
  }
  body.h-scroll #services .card {
    padding: 0.85rem 0.7rem;
    border-radius: 8px;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 0.4rem;
    overflow: hidden;
  }
  body.h-scroll #services .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  body.h-scroll #services .card-icon {
    width: 38px;
    height: 38px;
    margin: 0;
    font-size: 1.05rem;
    flex-shrink: 0;
  }
  body.h-scroll #services .card h3 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.15;
    font-weight: 700;
  }
  body.h-scroll #services .card p { display: none; }
  body.h-scroll #services .card a { display: none; }
}

/* Gallery panel — 2x2 grid that fills viewport */
@media (max-width: 768px) {
  body.h-scroll #gallery-preview { padding: var(--space-3) 0; }
  body.h-scroll #gallery-preview > .container {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }
  body.h-scroll #gallery-preview .text-center.mb-5 { margin-bottom: 0; flex-shrink: 0; }
  body.h-scroll #gallery-preview h2 { font-size: 1.4rem; line-height: 1.1; margin: 0; }
  body.h-scroll #gallery-preview .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.4rem;
    flex: 1;
    min-height: 0;
  }
  body.h-scroll #gallery-preview .gallery-item {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 8px;
  }
  body.h-scroll #gallery-preview .gallery-item:nth-child(n+5) { display: none; }
  body.h-scroll #gallery-preview .gallery-item img { height: 100%; object-fit: cover; }
  body.h-scroll #gallery-preview .gallery-caption {
    font-size: 0.68rem;
    padding: 0.4rem 0.55rem;
    background: linear-gradient(to top, rgba(14,27,44,0.92), rgba(14,27,44,0));
  }
  body.h-scroll #gallery-preview .text-center.mt-5 { margin-top: 0; flex-shrink: 0; }
  body.h-scroll #gallery-preview .btn-ghost { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
}

/* Service areas panel — map FILLS available height (no fixed 360px) */
@media (max-width: 768px) {
  body.h-scroll #service-areas { padding: var(--space-3) 0; }
  body.h-scroll #service-areas > .container {
    padding: 0 var(--space-3);
    gap: var(--space-3);
  }
  body.h-scroll #service-areas .text-center.mb-5 { margin-bottom: 0; flex-shrink: 0; }
  body.h-scroll #service-areas h2 { font-size: 1.4rem; line-height: 1.1; margin: 0; }
  body.h-scroll #service-areas .text-center .lead { display: none; }
  body.h-scroll #service-areas .service-map-wrap {
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 280px;
  }
  body.h-scroll #service-areas #service-map {
    flex: 1;
    height: auto !important;
    min-height: 0;
  }
  body.h-scroll #service-areas .map-overlay {
    padding: 0.5rem 0.7rem;
    font-size: 0.7rem;
    max-width: 160px;
    top: 10px;
    left: 10px;
  }
  body.h-scroll #service-areas .map-action-row {
    padding: 0.6rem var(--space-3);
    flex-shrink: 0;
  }
  body.h-scroll #service-areas .map-action-row .map-summary { font-size: 0.78rem; }
  body.h-scroll #service-areas .map-action-row .btn-ghost { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
  body.h-scroll #service-areas details { display: none; }
}

/* Testimonials panel — 3 cards in a grid that fills exactly the available
   height. Each card capped at 1/3 of the area, content centered inside. */
@media (max-width: 768px) {
  body.h-scroll #testimonials { padding: var(--space-3) 0; }
  body.h-scroll #testimonials > .container {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 0 var(--space-3);
    gap: var(--space-3);
    height: 100%;
    min-height: 0;
  }
  body.h-scroll #testimonials .text-center.mb-5 { margin-bottom: 0; }
  body.h-scroll #testimonials .eyebrow { font-size: 0.66rem; }
  body.h-scroll #testimonials h2 { font-size: 1.4rem; line-height: 1.1; margin: 0; }
  body.h-scroll #testimonials .grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr; /* 3 equal cards fill the area */
    gap: 0.5rem;
    min-height: 0;
    height: 100%;
  }
  body.h-scroll #testimonials .testimonial {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.h-scroll #testimonials .stars { font-size: 0.78rem; margin-bottom: 0.3rem; letter-spacing: 0.08em; }
  body.h-scroll #testimonials .testimonial blockquote {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.45rem;
    /* clamp blockquote to a max number of lines so card never overflows */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.h-scroll #testimonials .testimonial cite { font-size: 0.8rem; line-height: 1.2; }
  body.h-scroll #testimonials .testimonial small { font-size: 0.68rem; display: block; margin-top: 0.1rem; }
}

/* FAQ panel — 6 items distributed via space-evenly so they fill the panel */
@media (max-width: 768px) {
  body.h-scroll #faq { padding: var(--space-3) 0; }
  body.h-scroll #faq > .container,
  body.h-scroll #faq > .container-narrow {
    padding: 0 var(--space-3);
    gap: var(--space-3);
    justify-content: flex-start;
  }
  body.h-scroll #faq .text-center.mb-5 { margin-bottom: 0; flex-shrink: 0; }
  body.h-scroll #faq .eyebrow { font-size: 0.66rem; }
  body.h-scroll #faq h2 { font-size: 1.4rem; line-height: 1.1; margin: 0; }
  body.h-scroll #faq .faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly; /* distribute items evenly to fill */
    border-top: 1px solid var(--color-line);
  }
  body.h-scroll #faq .faq-item:nth-child(n+7) { display: none; }
  body.h-scroll #faq .faq-item { border-bottom: 1px solid var(--color-line); }
  body.h-scroll #faq .faq-item:last-child { border-bottom: none; }
  body.h-scroll #faq .faq-item details { padding: 0.55rem 0; }
  body.h-scroll #faq .faq-item summary { font-size: 0.9rem; line-height: 1.3; padding-right: var(--space-4); }
  body.h-scroll #faq .faq-item summary::after { font-size: 1.2rem; }
  body.h-scroll #faq .faq-item details > div { font-size: 0.8rem; line-height: 1.5; margin-top: 0.4rem; }
}

/* CTA banner panel — vertically centered, generous spacing */
@media (max-width: 768px) {
  body.h-scroll .cta-banner { padding: var(--space-5) var(--space-3); }
  body.h-scroll .cta-banner > .container,
  body.h-scroll .cta-banner > .container-narrow {
    justify-content: center;
    text-align: center;
  }
  body.h-scroll .cta-banner h2 { font-size: 1.85rem; line-height: 1.1; }
  body.h-scroll .cta-banner .lead { font-size: 1rem; line-height: 1.5; margin: var(--space-3) auto var(--space-4); max-width: 36ch; }
  body.h-scroll .cta-banner .btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
}

/* Footer panel — brand + 1-column links, vertically distributed */
@media (max-width: 768px) {
  body.h-scroll .footer { padding: var(--space-4) 0 var(--space-3); }
  body.h-scroll .footer .container {
    padding: 0 var(--space-3);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  body.h-scroll .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }
  body.h-scroll .footer-col:not(.footer-brand) { display: none; }
  body.h-scroll .footer-brand { text-align: center; }
  body.h-scroll .footer-brand img { height: 40px; margin: 0 auto var(--space-3); }
  body.h-scroll .footer-brand p { font-size: 0.88rem; line-height: 1.5; margin-bottom: var(--space-2); }
  body.h-scroll .footer-bottom {
    padding-top: var(--space-3);
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }
  body.h-scroll .footer-bottom small { font-size: 0.74rem; line-height: 1.4; }
  body.h-scroll .footer-bottom .legal a { margin-left: 0; margin-right: var(--space-3); font-size: 0.78rem; }
}

/* Very small phones (iPhone SE etc.) — extra trims */
@media (max-width: 380px) {
  .hero-cinematic h1 { font-size: 1.85rem; }
  .hero-cinematic .lead { font-size: 0.9rem; max-width: 28ch; }
  .hero-trust-chips .chip:nth-child(n+2) { display: none; }
  body.h-scroll #services .card h3 { font-size: 0.82rem; }
  body.h-scroll #services .card-icon { width: 30px; height: 30px; }
  body.h-scroll #faq .faq-item:nth-child(n+5) { display: none; }
  body.h-scroll #testimonials .testimonial:nth-child(n+2) { display: none; }
}

/* ---- Hero Form ---- */
.hero-form { background: var(--color-white); padding: var(--space-5); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--color-line); }
.hero-form h3 { font-size: 1.4rem; margin-bottom: var(--space-1); }
.hero-form .form-sub { color: var(--color-taupe); font-size: 0.92rem; margin-bottom: var(--space-4); }
.form-row { margin-bottom: var(--space-3); }
.form-row label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-taupe); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm); background: var(--color-cream-soft); font-size: 0.95rem; transition: border-color var(--duration-base) var(--ease-out), background var(--duration-base) var(--ease-out); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 0; border-color: var(--color-amber); background: var(--color-white); }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-disclaimer { font-size: 0.74rem; color: var(--color-taupe); margin-top: var(--space-3); line-height: 1.5; }

/* ---- Cards / Service Tiles ---- */
.card { background: var(--color-white); padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--color-line); transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); height: 100%; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 48px; height: 48px; background: var(--color-cream); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-3); color: var(--color-amber); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--color-taupe); font-size: 0.95rem; flex: 1; }
.card a { color: var(--color-amber); font-weight: 600; font-size: 0.9rem; margin-top: var(--space-3); display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---- Gallery / Image Grid ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-3); background: linear-gradient(to top, rgba(14, 27, 44, 0.85), transparent); color: var(--color-cream); font-size: 0.85rem; font-weight: 500; }

/* ---- Testimonials ---- */
.testimonial { background: var(--color-white); padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--color-line); }
.testimonial blockquote { font-size: 1.05rem; line-height: 1.6; color: var(--color-navy); font-style: italic; margin-bottom: var(--space-3); }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-navy); display: block; }
.testimonial .stars { color: var(--color-amber); margin-bottom: var(--space-3); font-size: 0.95rem; letter-spacing: 0.1em; }
.testimonial small { color: var(--color-taupe); }

/* ---- CTA Banner ---- */
.cta-banner { background: var(--color-navy); color: var(--color-cream); padding: var(--space-6) var(--space-4); text-align: center; }
.cta-banner h2 { color: var(--color-cream); margin-bottom: var(--space-3); }
.cta-banner p { color: rgba(245, 241, 232, 0.85); margin: 0 auto var(--space-4); }
.cta-banner .btn-primary { background: var(--color-amber); }

/* ---- Footer ---- */
.footer { background: var(--color-navy); color: var(--color-cream); padding: var(--space-7) 0 var(--space-4); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: var(--color-cream); font-size: 0.82rem; text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-3); font-weight: 600; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(245, 241, 232, 0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--color-amber-soft); }
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--space-3); filter: brightness(0) invert(1) sepia(1) saturate(0) hue-rotate(0deg); opacity: 0.95; }
.footer-brand p { color: rgba(245, 241, 232, 0.7); font-size: 0.92rem; margin-bottom: var(--space-3); }
.footer-bottom { border-top: 1px solid rgba(245, 241, 232, 0.12); padding-top: var(--space-4); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-bottom small { color: rgba(245, 241, 232, 0.5); }
.footer-bottom .legal a { color: rgba(245, 241, 232, 0.6); font-size: 0.82rem; margin-left: var(--space-3); }

/* ---- Page Header (interior pages) ---- */
.page-header { padding: calc(var(--nav-height) + var(--space-6)) 0 var(--space-6); background: var(--color-cream); border-bottom: 1px solid var(--color-line); }
.page-header h1 { margin-bottom: var(--space-3); }
.page-header .lead { margin-top: var(--space-3); }
.breadcrumbs { font-size: 0.82rem; color: var(--color-taupe); margin-bottom: var(--space-4); }
.breadcrumbs a { color: var(--color-taupe); }
.breadcrumbs a:hover { color: var(--color-amber); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---- Service Areas Grid ---- */
.service-area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .service-area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .service-area-grid { grid-template-columns: repeat(2, 1fr); } }
.area-tile { background: var(--color-white); padding: var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--color-line); text-align: center; transition: all var(--duration-base) var(--ease-out); }
.area-tile:hover { background: var(--color-navy); color: var(--color-cream); transform: translateY(-2px); border-color: var(--color-navy); }
.area-tile h4 { font-size: 1rem; margin-bottom: 0.3rem; font-weight: 600; }
.area-tile small { font-size: 0.78rem; color: var(--color-taupe); }
.area-tile:hover small { color: rgba(245, 241, 232, 0.7); }

/* ---- Interactive Service-Area Map ---- */
.service-map-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-line);
  background: var(--color-cream);
  margin-top: var(--space-5);
}
#service-map {
  width: 100%;
  height: 540px;
  background: var(--color-cream-soft);
  z-index: 1;
}
@media (max-width: 768px) {
  #service-map { height: 420px; }
}

/* Map overlay panel (top-left legend) */
.map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line);
  z-index: 500;
  font-size: 0.8rem;
  max-width: 240px;
}
.map-overlay strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-navy);
  margin-bottom: 0.3rem;
}
.map-overlay .legend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--color-taupe);
}
.map-overlay .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--color-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.map-overlay .legend-dot.contra { background: var(--color-amber); }
.map-overlay .legend-dot.alameda { background: var(--color-navy); }
@media (max-width: 600px) {
  .map-overlay { font-size: 0.72rem; padding: 0.6rem 0.85rem; max-width: 180px; top: 10px; left: 10px; }
}

/* Custom Leaflet marker pin */
.horizon-pin {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid var(--color-white);
  box-shadow: 0 3px 10px rgba(14,27,44,0.35), 0 1px 3px rgba(14,27,44,0.2);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.horizon-pin::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--color-white);
  opacity: 0.4;
}
.horizon-pin.contra { background: var(--color-amber); }
.horizon-pin.alameda { background: var(--color-navy); }
.horizon-pin:hover {
  transform: rotate(-45deg) scale(1.18);
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(14,27,44,0.5), 0 2px 6px rgba(14,27,44,0.3);
}

/* Leaflet popup styling — match brand */
.leaflet-popup-content-wrapper {
  background: var(--color-cream-soft) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 12px 40px rgba(14,27,44,0.18) !important;
  padding: 0 !important;
  border: 1px solid var(--color-line) !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  padding: 1.1rem 1.25rem !important;
  font-family: var(--font-body) !important;
  min-width: 220px;
  line-height: 1.5;
}
.leaflet-popup-content .pop-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  color: var(--color-amber);
  margin-bottom: 0.3rem;
}
.leaflet-popup-content .pop-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 0.3rem 0;
  line-height: 1.1;
}
.leaflet-popup-content .pop-meta {
  font-size: 0.78rem;
  color: var(--color-taupe);
  margin-bottom: 0.85rem;
}
.leaflet-popup-content .pop-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.leaflet-popup-content .pop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}
.leaflet-popup-content .pop-btn-primary {
  background: var(--color-navy);
  color: var(--color-cream);
}
.leaflet-popup-content .pop-btn-primary:hover {
  background: var(--color-amber);
  color: var(--color-cream);
}
.leaflet-popup-content .pop-btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid var(--color-line-strong);
}
.leaflet-popup-content .pop-btn-ghost:hover {
  background: var(--color-navy);
  color: var(--color-cream);
  border-color: var(--color-navy);
}
.leaflet-popup-tip {
  background: var(--color-cream-soft) !important;
  box-shadow: none !important;
}
.leaflet-popup-close-button {
  color: var(--color-taupe) !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
}
.leaflet-popup-close-button:hover {
  color: var(--color-navy) !important;
}

/* Map controls — subtle brand match */
.leaflet-control-zoom a {
  background: var(--color-cream-soft) !important;
  color: var(--color-navy) !important;
  border-color: var(--color-line) !important;
  font-weight: 600 !important;
}
.leaflet-control-zoom a:hover {
  background: var(--color-amber) !important;
  color: var(--color-cream) !important;
}
.leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  font-size: 10px !important;
  color: var(--color-taupe) !important;
}

/* "Open in Google Maps" external link button */
.map-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-cream);
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.map-action-row .map-summary {
  font-size: 0.88rem;
  color: var(--color-taupe);
}
.map-action-row .map-summary strong {
  color: var(--color-navy);
}

/* ---- FAQ Accordion ---- */
.faq-item { border-bottom: 1px solid var(--color-line); }
.faq-item details { padding: var(--space-3) 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; color: var(--color-navy); padding-right: var(--space-4); position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 0; top: 0; font-size: 1.4rem; font-weight: 400; color: var(--color-amber); transition: transform var(--duration-base) var(--ease-out); }
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item details > div { margin-top: var(--space-3); color: var(--color-navy-soft); line-height: 1.6; }

/* ---- Article / Resources ---- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-5); margin-bottom: var(--space-3); }
.prose h3 { margin-top: var(--space-4); margin-bottom: var(--space-2); }
.prose p { margin-bottom: var(--space-3); }
.prose ul, .prose ol { margin: 0 0 var(--space-3) var(--space-4); }
.prose ul li, .prose ol li { list-style: disc; margin-bottom: 0.4rem; }
.prose ol li { list-style: decimal; }
.prose strong { font-weight: 700; color: var(--color-navy); }
.prose blockquote { border-left: 3px solid var(--color-amber); padding-left: var(--space-3); margin: var(--space-4) 0; color: var(--color-navy-soft); font-style: italic; }

/* ---- Resource Cards ---- */
.resource-card { background: var(--color-white); padding: var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--color-line); display: flex; flex-direction: column; height: 100%; }
.resource-card .badge { display: inline-block; background: var(--color-cream); color: var(--color-amber); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-wide); padding: 0.3rem 0.6rem; border-radius: 4px; margin-bottom: var(--space-3); align-self: flex-start; }
.resource-card h3 { margin-bottom: var(--space-2); }
.resource-card p { color: var(--color-taupe); font-size: 0.95rem; flex: 1; margin-bottom: var(--space-3); }

/* ---- Mobile Horizontal Scroll Mode ----
   Snap is applied to <main> directly (not body). This is the iOS-safe
   pattern (used by knightcto.com et al.). JS in main.js still handles
   indicator updates and programmatic scroll on anchor clicks; native
   CSS scroll-snap handles the actual snap-on-touch. */
@media (max-width: 768px) {
  body.h-scroll {
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    height: 100dvh;
    background: var(--color-navy);
  }
  body.h-scroll main,
  body.h-scroll > main {
    display: flex;
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    scrollbar-width: none;
    padding-top: var(--nav-height);
  }
  body.h-scroll main::-webkit-scrollbar { display: none; }
  body.h-scroll main > section,
  body.h-scroll main > .hero,
  body.h-scroll main > .hero-cinematic {
    flex: 0 0 100vw;
    width: 100vw;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--space-4);
    /* Reserve sticky bar + indicator + safe-area — content NEVER bleeds */
    padding-bottom: var(--mobile-bottom-reserve);
  }
  body.h-scroll main > .hero,
  body.h-scroll main > .hero-cinematic {
    padding-top: var(--space-3);
    padding-bottom: var(--mobile-bottom-reserve);
  }
  body.h-scroll main > .footer {
    flex: 0 0 100vw;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-y: auto;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    padding-bottom: var(--mobile-bottom-reserve);
  }
  body.h-scroll .scroll-indicator {
    position: fixed;
    /* Sits in the reserved zone, just above the sticky CTA bar */
    bottom: calc(var(--mobile-cta-bar-h) + env(safe-area-inset-bottom, 0) + 12px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 90;
    padding: 0.5rem 0.85rem;
    background: rgba(245, 241, 232, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(14, 27, 44, 0.18);
    border: 1px solid rgba(14, 27, 44, 0.06);
  }
  body.h-scroll .scroll-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(14, 27, 44, 0.25);
    transition: all var(--duration-base) var(--ease-out);
  }
  body.h-scroll .scroll-indicator span.active {
    background: var(--color-amber);
    width: 24px;
    border-radius: 4px;
  }
  body.h-scroll .swipe-hint {
    position: fixed;
    /* Above the sticky bar + above the indicator */
    bottom: calc(var(--mobile-cta-bar-h) + env(safe-area-inset-bottom, 0) + 60px);
    right: 1rem;
    z-index: 90;
    background: rgba(14, 27, 44, 0.92);
    color: var(--color-cream);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    animation: hintFade 4s ease-out 1s forwards;
    backdrop-filter: blur(8px);
  }
  @keyframes hintFade {
    0% { opacity: 0; transform: translateX(20px); }
    20%, 60% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-20px); }
  }
}

/* ---- Mobile Nav (when not in horizontal mode, fallback) ---- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--color-cream); flex-direction: column; align-items: flex-start; padding: var(--space-4); gap: var(--space-4); border-bottom: 1px solid var(--color-line); transform: translateY(-110%); opacity: 0; transition: all var(--duration-base) var(--ease-out); pointer-events: none; max-height: calc(100vh - var(--nav-height)); overflow-y: auto; }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { font-size: 1.1rem; }
  .nav-cta { width: 100%; text-align: center; padding: 0.9rem; }
}

/* ---- Section padding for mobile horizontal mode ---- */
@media (max-width: 768px) {
  body.h-scroll .section { padding: var(--space-3) 0; }
  body.h-scroll .hero { padding: var(--space-4) 0 var(--space-5); }
}

/* ---- Mobile general adjustments ---- */
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 var(--space-3); }
  .section { padding: var(--space-6) 0; }
  .hero-grid { gap: var(--space-4); }
}

/* ---- Print Styles (for buyer's guide) ---- */
@media print {
  .nav, .footer, .nav-toggle, .swipe-hint, .scroll-indicator, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .page-break { page-break-after: always; }
  .container { max-width: 100%; padding: 0; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; margin-top: 18pt; }
  h3 { font-size: 13pt; margin-top: 12pt; }
  a { color: #000; text-decoration: none; }
  img { max-width: 100%; }
}

/* ---- Accessibility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--color-amber); outline-offset: 3px; border-radius: 2px; }

/* ---- Performance: skeleton placeholders ---- */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Form Success ---- */
.form-success { display: none; padding: var(--space-4); background: #E8F4EE; border: 1px solid #A8D5BA; border-radius: var(--radius-sm); color: #1B5E3F; text-align: center; }
.form-success.is-visible { display: block; }
.form-error { color: #C5354A; font-size: 0.82rem; margin-top: 0.4rem; display: none; }
.form-error.is-visible { display: block; }

/* ---- Reduce motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
