/* ==========================================================================
   Pool Builders Pro — Design System
   Style: Coastal Light (Nature Distilled / Organic Biophilic)
   Author: rebuild 2026-08
   Single shared stylesheet. No per-page inline CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ocean — primary tonal scale */
  --ocean-50:  #F0FAFB;
  --ocean-100: #D9F2F5;
  --ocean-200: #B6E4EA;
  --ocean-300: #7DD3DC;
  --ocean-400: #3FB4C4;
  --ocean-500: #1892A5;
  --ocean-600: #0F7A8A;
  --ocean-700: #0E5A68;
  --ocean-800: #0C4450;
  --ocean-900: #0B3B44;

  /* Sand — warm neutral */
  --sand-50:  #FDFBF7;
  --sand-100: #F7F3EC;
  --sand-200: #EFE7D9;
  --sand-300: #E2D6C2;

  /* Ink — text */
  --ink-900: #0F2A31;
  --ink-700: #2C464E;
  --ink-500: #4A6169;
  --ink-300: #7B8E95;

  /* Neutral */
  --white: #FFFFFF;
  --line: #E4EDEF;
  --line-strong: #C9DCE0;

  /* Action */
  --cta:       #C2452C;
  --cta-hover: #A63A24;
  --cta-soft:  #FDF0EC;

  /* Semantic */
  --success: #1B7A4B;
  --success-soft: #ECF7F1;
  --warning: #8A5A00;
  --warning-soft: #FFF6E5;
  --error: #B3261E;
  --error-soft: #FDECEA;
  --info: var(--ocean-600);

  /* Surfaces */
  --bg: var(--white);
  --bg-alt: var(--ocean-50);
  --bg-warm: var(--sand-100);
  --surface: var(--white);
  --on-dark: #EAF6F8;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.0625rem;   /* 17 */
  --fs-lg: 1.125rem;    /* 18 */
  --fs-xl: 1.375rem;    /* 22 */
  --fs-2xl: 1.75rem;    /* 28 */
  --fs-3xl: 2.125rem;   /* 34 */
  --fs-4xl: 2.75rem;    /* 44 */
  --fs-5xl: 3.5rem;     /* 56 */

  /* Spacing — 4/8 scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5rem;
  --sp-10: 6.5rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Elevation — one scale only */
  --e-1: 0 1px 2px rgba(11, 59, 68, .06), 0 1px 3px rgba(11, 59, 68, .05);
  --e-2: 0 2px 6px rgba(11, 59, 68, .07), 0 4px 14px rgba(11, 59, 68, .06);
  --e-3: 0 8px 20px rgba(11, 59, 68, .09), 0 16px 40px rgba(11, 59, 68, .07);
  --e-ring: 0 0 0 3px var(--ocean-200);

  /* Motion tokens — one rhythm */
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 380ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  /* Layout */
  --container: 1220px;
  --container-narrow: 760px;
  --header-h: 72px;

  /* Z scale */
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 40;
  --z-drawer: 100;
  --z-top: 1000;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-4); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; color: var(--ink-900); }
h1 { font-family: var(--font-display); font-size: clamp(2.125rem, 1.35rem + 3.4vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-family: var(--font-display); font-size: clamp(1.625rem, 1.15rem + 2.1vw, 2.5rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1875rem, 1.06rem + 0.55vw, 1.4375rem); font-weight: 650; }
h4 { font-size: var(--fs-lg); font-weight: 650; }
h5, h6 { font-size: var(--fs-base); font-weight: 650; }

p { margin: 0 0 var(--sp-4); max-width: 72ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--ocean-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--cta); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 650; color: var(--ink-900); }
small { font-size: var(--fs-sm); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }

button { font: inherit; cursor: pointer; }

/* Focus — never removed */
:focus-visible {
  outline: 3px solid var(--ocean-500);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--ocean-200); color: var(--ink-900); }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container-narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3rem, 1.6rem + 5.6vw, 6.5rem); }
.section-sm { padding-block: clamp(2rem, 1.2rem + 3.2vw, 3.75rem); }
.section-alt { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }
.section-dark { background: var(--ocean-900); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark a { color: var(--ocean-300); }
.section-dark a:hover { color: var(--white); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split-wide { grid-template-columns: 1.15fr 0.85fr; } }

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  background: var(--ocean-900); color: var(--white);
  padding: var(--sp-3) var(--sp-5); border-radius: 0 0 var(--r-md) var(--r-md);
  z-index: var(--z-top); font-weight: 600; text-decoration: none;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   4. SECTION HEADINGS
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ocean-600); margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: var(--ocean-300); }

.section-head { max-width: 680px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: var(--fs-lg); color: var(--ink-500); line-height: 1.62; }
.section-dark .lead { color: var(--ocean-200); }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 50px; padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base); font-weight: 650; line-height: 1.2;
  border: 1.5px solid transparent; border-radius: var(--r-full);
  text-decoration: none; cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--cta); color: var(--white); box-shadow: var(--e-2); }
.btn-primary:hover { background: var(--cta-hover); color: var(--white); box-shadow: var(--e-3); }

.btn-secondary { background: var(--ocean-700); color: var(--white); }
.btn-secondary:hover { background: var(--ocean-800); color: var(--white); }

.btn-outline { background: transparent; color: var(--ocean-700); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ocean-50); border-color: var(--ocean-500); color: var(--ocean-800); }

.section-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,.35); }
.section-dark .btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

.btn-lg { min-height: 58px; padding: var(--sp-4) var(--sp-7); font-size: var(--fs-lg); }
.btn-sm { min-height: 42px; padding: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }
.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV (World-Class, Sleek, Fully Responsive)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ocean-900);
  color: var(--ocean-100);
  font-size: 0.8125rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 7px;
  min-height: 36px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ocean-100);
  white-space: nowrap;
}
.topbar-item svg {
  opacity: 0.85;
  color: var(--ocean-300);
}
.topbar a.topbar-item {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.topbar a.topbar-item:hover {
  color: var(--cta);
}
@media (max-width: 840px) {
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 540px) {
  .topbar { display: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(11, 59, 68, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: 76px;
  max-width: 1340px;
  overflow: visible;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
  flex-shrink: 0;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ocean-900);
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ocean-600);
  white-space: nowrap;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li {
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: var(--r-md);
  background: none;
  border: 0;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-link:hover {
  background: var(--ocean-50);
  color: var(--ocean-800);
}
.nav-link[aria-current="page"] {
  color: var(--ocean-900);
  font-weight: 700;
  position: relative;
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0px;
  height: 2.5px;
  background: var(--cta);
  border-radius: 2px;
}
.nav-caret {
  width: 12px;
  height: 12px;
  transition: transform var(--dur) var(--ease-out);
  color: var(--ink-500);
}
.has-dropdown:hover .nav-caret,
.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

/* Desktop Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 36px rgba(11, 59, 68, 0.12), 0 2px 6px rgba(11, 59, 68, 0.04);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
  z-index: var(--z-top);
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li {
  margin: 0;
  display: block;
}
.nav-dropdown-link {
  display: block;
  padding: 10px 14px;
  min-height: 38px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--ink-700);
  text-decoration: none;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-dropdown-link:hover {
  background: var(--ocean-50);
  color: var(--ocean-900);
}

/* Nav Actions on Right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ocean-900);
  text-decoration: none;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: transparent;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.nav-phone-link svg {
  color: var(--cta);
  flex-shrink: 0;
}
.nav-phone-link:hover {
  background: var(--ocean-50);
  border-color: var(--ocean-600);
  color: var(--ocean-900);
}
.nav-cta-btn {
  min-height: 42px;
  padding: 9px 22px;
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  touch-action: manipulation;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ocean-900);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--white);
  box-shadow: -8px 0 32px rgba(11, 59, 68, 0.18);
  display: flex;
  flex-direction: column;
  z-index: calc(var(--z-drawer) + 1);
  transform: translateX(105%);
  transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
body.nav-open .mobile-drawer {
  transform: translateX(0);
  visibility: visible;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.mobile-drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ocean-50);
  border: 0;
  border-radius: var(--r-full);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-700);
  cursor: pointer;
}
.mobile-drawer-close:hover {
  background: var(--ocean-100);
  color: var(--ocean-900);
}
.mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--sp-4) var(--sp-5);
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.mobile-nav-item {
  margin: 0;
}
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-link {
  display: block;
  flex: 1;
  padding: 12px 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.mobile-nav-link:hover,
.mobile-nav-link[aria-current="page"] {
  background: var(--ocean-50);
  color: var(--ocean-900);
}
.mobile-nav-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink-700);
  cursor: pointer;
}
.mobile-nav-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}
.mobile-nav-sublist {
  list-style: none;
  margin: 4px 0 8px 16px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--ocean-200);
  display: none;
}
.mobile-nav-sublist.is-open {
  display: block;
}
.mobile-nav-sublink {
  display: block;
  padding: 9px 12px;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--ink-600);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.mobile-nav-sublink:hover {
  color: var(--ocean-900);
  background: var(--ocean-50);
}
.mobile-drawer-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Scrim */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(11, 59, 68, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  z-index: var(--z-drawer);
  transition: opacity var(--dur) var(--ease-out), visibility var(--dur);
}
body.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 1340px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  .nav-cta-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}
@media (max-width: 1200px) {
  .nav-phone-link .nav-phone-number {
    display: none;
  }
  .nav-phone-link {
    padding: 8px 10px;
  }
  .nav-link {
    padding: 8px 8px;
    font-size: 0.84rem;
  }
}
@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .nav-phone-link {
    display: none;
  }
  .nav-cta-btn {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-container {
    height: 68px;
    max-width: none;
  }
}

/* Sticky mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: none; gap: 1px;
  background: var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(11,59,68,.12);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 56px; font-size: var(--fs-base); font-weight: 650; text-decoration: none;
  background: var(--white); color: var(--ocean-800);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.callbar a.callbar-primary { background: var(--cta); color: var(--white); }
.callbar a:active { background: var(--ocean-50); }
.callbar a.callbar-primary:active { background: var(--cta-hover); }
@media (max-width: 767px) {
  .callbar { display: flex; }
  body { padding-bottom: 56px; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(168deg, var(--ocean-50) 0%, var(--white) 46%, var(--sand-50) 100%);
  padding-block: clamp(2.5rem, 1.4rem + 4.4vw, 5rem) clamp(3rem, 1.6rem + 5.6vw, 6rem);
}
.hero::before {
  content: ""; position: absolute; inset: auto -12% -40% auto;
  width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle at 35% 35%, rgba(63,180,196,.20), rgba(63,180,196,0) 68%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 .accent { color: var(--ocean-600); font-style: italic; }
.hero-sub { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--ink-500); max-width: 56ch; margin-bottom: var(--sp-6); }

.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--e-3); aspect-ratio: 4 / 3; object-fit: cover; }

/* AI summary nugget — position zero fact block */
.ai-summary {
  border-left: 4px solid var(--ocean-500);
  background: var(--ocean-50);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-base);
  color: var(--ink-700);
  margin-bottom: var(--sp-5);
  max-width: 62ch;
}
.ai-summary strong { color: var(--ocean-800); }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700); }
.trust-item svg { color: var(--ocean-500); width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   8. FAST-SCAN FACTS
   -------------------------------------------------------------------------- */
.factbar { background: var(--ocean-900); color: var(--on-dark); }
.factbar-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-block: var(--sp-6); }
.fact { padding-left: var(--sp-4); border-left: 2px solid var(--ocean-600); }
.fact-value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700; color: var(--white); line-height: 1.1; display: block; font-variant-numeric: tabular-nums; }
.fact-label { font-size: var(--fs-sm); color: var(--ocean-200); margin-top: var(--sp-1); display: block; }

/* --------------------------------------------------------------------------
   9. CARDS
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--e-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--e-3); border-color: var(--ocean-200); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: var(--fs-base); color: var(--ink-500); margin-bottom: var(--sp-4); }
.card-link { margin-top: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--ocean-700); text-decoration: none; display: inline-flex; align-items: center; gap: var(--sp-2); }
.card-link svg { transition: transform var(--dur) var(--ease-out); width: 16px; height: 16px; }
.card:hover .card-link svg { transform: translateX(4px); }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--ocean-50); color: var(--ocean-600);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--ocean-600); color: var(--white); }

.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: var(--e-2); }

.card-media { margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-5); overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }

.card-meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-300); margin-bottom: var(--sp-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* Location chips */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 46px; padding: var(--sp-2) var(--sp-5);
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--r-full); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-700); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.chip:hover { background: var(--ocean-600); border-color: var(--ocean-600); color: var(--white); transform: translateY(-2px); }
.chip svg { width: 15px; height: 15px; opacity: .7; }

/* --------------------------------------------------------------------------
   10. PROCESS / STEPS
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); } }
.step {
  position: relative; margin: 0; padding: var(--sp-5);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 700;
  color: var(--ocean-300); line-height: 1; margin-bottom: var(--sp-3);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
.step-time { display: inline-block; margin-top: var(--sp-3); font-size: var(--fs-xs); font-weight: 700; color: var(--ocean-700); background: var(--ocean-50); padding: 3px var(--sp-3); border-radius: var(--r-full); }

/* --------------------------------------------------------------------------
   11. TABLES  (mandatory for comparison data)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--e-1);
  margin-bottom: var(--sp-4);
}
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
caption { text-align: left; padding: var(--sp-4) var(--sp-5); font-size: var(--fs-sm); font-weight: 700; color: var(--ink-700); border-bottom: 1px solid var(--line); background: var(--ocean-50); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ocean-800); color: var(--white); font-weight: 650; font-size: var(--fs-xs); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-bottom: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--ocean-50); }
tbody th { font-weight: 650; color: var(--ink-900); }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: var(--fs-xs); color: var(--ink-300); margin-top: var(--sp-2); }
.table-hint { display: none; font-size: var(--fs-xs); color: var(--ink-300); margin-bottom: var(--sp-2); }
@media (max-width: 719px) { .table-hint { display: block; } }

/* --------------------------------------------------------------------------
   12. CALLOUTS
   -------------------------------------------------------------------------- */
.callout {
  border-radius: var(--r-lg); padding: var(--sp-5);
  border: 1px solid var(--line); background: var(--sand-50);
  border-left: 4px solid var(--ocean-500);
}
.callout h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-3); }
.callout h3 svg { width: 22px; height: 22px; color: var(--ocean-600); }
.callout p, .callout li { font-size: var(--fs-base); color: var(--ink-700); }
.callout-warn { background: var(--warning-soft); border-color: #E9D6AA; border-left-color: var(--warning); }
.callout-warn h3 svg { color: var(--warning); }
.callout-ok { background: var(--success-soft); border-color: #C7E4D5; border-left-color: var(--success); }
.callout-ok h3 svg { color: var(--success); }

/* "Not for you" honesty block */
.notforyou {
  background: var(--sand-100); border: 1px dashed var(--sand-300);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.notforyou h2, .notforyou h3 { margin-bottom: var(--sp-4); }
.notforyou ul { list-style: none; padding: 0; }
.notforyou li { position: relative; padding-left: var(--sp-6); margin-bottom: var(--sp-3); color: var(--ink-700); }
.notforyou li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 2px; background: var(--cta); border-radius: 2px;
}

/* Check list */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: var(--sp-7); margin-bottom: var(--sp-3); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .25em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ocean-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F7A8A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-dark .checklist li::before { background-color: rgba(255,255,255,.12); }

/* --------------------------------------------------------------------------
   13. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  width: 100%; min-height: 60px; padding: var(--sp-4) var(--sp-5);
  background: none; border: 0; text-align: left;
  font-family: inherit; font-size: var(--fs-md); font-weight: 650; color: var(--ink-900);
  line-height: 1.4; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.faq-q:hover { background: var(--ocean-50); }
.faq-q svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--ocean-600); margin-top: 2px; transition: transform var(--dur) var(--ease-out); }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-500); font-size: var(--fs-base); }
.faq-a-inner > *:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   14. GOOGLE REVIEWS
   Modelled on the Google Business Profile review UI: Roboto-ish system stack,
   #FBBC04 stars, 40px avatar, relative dates, Local Guide badge.
   -------------------------------------------------------------------------- */
:root {
  --g-blue: #1A73E8;
  --g-star: #FBBC04;
  --g-star-empty: #DADCE0;
  --g-text: #202124;
  --g-text-2: #5F6368;
  --g-line: #DADCE0;
}

/* Google's own UI is Roboto; fall back cleanly rather than loading a font
   just for this block. */
.g-reviews { font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }

/* --- Summary header --- */
.g-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-7);
  background: var(--white); border: 1px solid var(--g-line);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--e-1);
}
.g-summary-score { display: flex; align-items: center; gap: var(--sp-4); }
.g-score-num {
  font-size: 3rem; font-weight: 500; line-height: 1;
  color: var(--g-text); font-variant-numeric: tabular-nums;
}
.g-summary-meta { display: flex; flex-direction: column; gap: 4px; }
.g-summary-label { font-size: var(--fs-sm); color: var(--g-text-2); }
.g-summary-brand { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--g-text-2); }
.g-summary-brand svg { width: 18px; height: 18px; }
.g-summary-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-3); }
@media (max-width: 719px) { .g-summary-actions { margin-left: 0; width: 100%; } .g-summary-actions .g-btn { flex: 1; } }

/* Google-styled buttons */
.g-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: var(--sp-2) var(--sp-5);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 500;
  border-radius: var(--r-full); text-decoration: none; cursor: pointer;
  border: 1px solid var(--g-line); background: var(--white); color: var(--g-blue);
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.g-btn:hover { background: #F1F6FE; border-color: #C6DAFC; color: var(--g-blue); }
.g-btn-filled { background: var(--g-blue); color: var(--white); border-color: var(--g-blue); }
.g-btn-filled:hover { background: #1765CC; border-color: #1765CC; color: var(--white); }

/* --- Star rating --- */
.g-stars { display: inline-flex; align-items: center; gap: 1px; }
.g-stars svg { width: 18px; height: 18px; }
.g-stars .g-star-on { fill: var(--g-star); }
.g-stars .g-star-off { fill: var(--g-star-empty); }
.g-stars-lg svg { width: 22px; height: 22px; }

/* --- Rating distribution bars --- */
.g-bars { display: grid; gap: 5px; min-width: 190px; flex: 1; }
.g-bar-row { display: grid; grid-template-columns: 12px 1fr; align-items: center; gap: var(--sp-3); font-size: var(--fs-xs); color: var(--g-text-2); }
.g-bar-track { height: 10px; background: #F1F3F4; border-radius: var(--r-full); overflow: hidden; }
.g-bar-fill { height: 100%; background: var(--g-star); border-radius: var(--r-full); width: 0; transform-origin: left; }
.js .g-bar-fill { transition: width 900ms var(--ease-out); }

/* --- Review carousel: 3 cards visible, rest reachable by scrolling --- */
.g-carousel { position: relative; margin-top: var(--sp-6); }

.g-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--sp-5) * 2)) / 3);
  gap: var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Bleed to the container edge so cards can scroll off-screen cleanly */
  margin-inline: calc(var(--sp-5) * -1);
  padding: 4px var(--sp-5) var(--sp-5);
  scrollbar-width: none;
}
.g-track::-webkit-scrollbar { display: none; }
.g-track > * { scroll-snap-align: start; }

@media (prefers-reduced-motion: reduce) { .g-track { scroll-behavior: auto; } }

/* 2 up on tablet, 1.15 up on phone so the next card peeks and signals scroll */
@media (max-width: 1023px) { .g-track { grid-auto-columns: calc((100% - var(--sp-5)) / 2); } }
@media (max-width: 719px)  { .g-track { grid-auto-columns: 86%; } }

/* Arrow controls, Google-style circular buttons */
.g-nav { display: flex; gap: var(--sp-3); }
.g-arrow {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--white); color: var(--g-text-2);
  border: 1px solid var(--g-line); border-radius: 50%;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.g-arrow:hover:not(:disabled) { background: #F1F6FE; border-color: #C6DAFC; color: var(--g-blue); }
.g-arrow:active:not(:disabled) { transform: scale(.94); }
.g-arrow:disabled { opacity: .35; cursor: default; }
.g-arrow svg { width: 20px; height: 20px; }

/* Progress dots -- position within the set, tap to jump */
.g-dots { display: flex; align-items: center; gap: 6px; }
.g-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--g-star-empty); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), width var(--dur) var(--ease-out);
}
.g-dot.is-active { background: var(--g-blue); width: 22px; border-radius: var(--r-full); }
/* Keep the real 44px touch target without a 44px visual dot */
.g-dot { position: relative; }
.g-dot::after { content: ""; position: absolute; inset: -18px -7px; }

.g-carousel-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-top: var(--sp-2);
}
.g-count { font-size: var(--fs-sm); color: var(--g-text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .g-nav { display: none; } .g-carousel-foot { justify-content: center; } }

.g-card {
  background: var(--white); border: 1px solid var(--g-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  position: relative;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.g-card:hover { box-shadow: var(--e-2); transform: translateY(-2px); }

.g-card-head { display: flex; align-items: center; gap: var(--sp-3); padding-right: 28px; }
.g-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--white); font-size: 1.125rem; font-weight: 500; line-height: 1;
}
.g-author { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.g-author-name { font-size: var(--fs-sm); font-weight: 500; color: var(--g-text); }
.g-author-meta { font-size: var(--fs-xs); color: var(--g-text-2); }
.g-badge-guide {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; color: var(--g-text-2);
}
.g-badge-guide svg { width: 12px; height: 12px; }

/* Google glyph sits top-right of each card, as it does in embedded widgets */
.g-card-mark { position: absolute; top: var(--sp-5); right: var(--sp-5); width: 20px; height: 20px; opacity: .9; }

.g-card-rating { display: flex; align-items: center; gap: var(--sp-3); }
.g-card-when { font-size: var(--fs-xs); color: var(--g-text-2); }
.g-card-text { font-size: var(--fs-sm); line-height: 1.6; color: var(--g-text); margin: 0; }

/* Clamp long reviews with a working expand control */
.g-card-text.is-clamped {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
  overflow: hidden;
}
.g-more {
  align-self: flex-start; background: none; border: 0; padding: 4px 0;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 500;
  color: var(--g-text-2); cursor: pointer; min-height: 32px;
}
.g-more:hover { color: var(--g-blue); text-decoration: underline; }

/* Placeholder notice, shown until REVIEWS_VERIFIED is set */
.g-placeholder-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--warning-soft); border: 1px dashed #E9D6AA;
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
  font-size: var(--fs-sm); color: var(--ink-700); margin-top: var(--sp-5);
}
.g-placeholder-note svg { color: var(--warning); flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
   15. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-900); }
.field .req { color: var(--cta); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: var(--sp-3) var(--sp-4);
  font-family: inherit; font-size: var(--fs-base); color: var(--ink-900);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A6169' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--sp-4) center; background-size: 18px; padding-right: var(--sp-8); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean-500); box-shadow: var(--e-ring); outline: none; }
.field-hint { font-size: var(--fs-xs); color: var(--ink-300); }
.field-error { font-size: var(--fs-xs); color: var(--error); font-weight: 600; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .field-error { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--ink-300); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-5); }
legend { font-weight: 700; font-size: var(--fs-base); padding: 0; margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   16. INTERACTIVE — cost estimator
   -------------------------------------------------------------------------- */
.estimator {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-6); box-shadow: var(--e-2);
}
.estimator-controls { display: grid; gap: var(--sp-5); }
@media (min-width: 700px) { .estimator-controls { grid-template-columns: 1fr 1fr; } }
.estimator-out {
  margin-top: var(--sp-6); padding: var(--sp-5);
  background: var(--ocean-900); color: var(--white); border-radius: var(--r-lg);
  text-align: center;
}
.estimator-range { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; display: block; }
.estimator-label { font-size: var(--fs-sm); color: var(--ocean-200); display: block; margin-top: var(--sp-2); }
.estimator-breakdown { list-style: none; padding: 0; margin: var(--sp-5) 0 0; display: grid; gap: var(--sp-2); text-align: left; }
.estimator-breakdown li { display: flex; justify-content: space-between; gap: var(--sp-4); font-size: var(--fs-sm); color: var(--ocean-200); border-bottom: 1px dashed rgba(255,255,255,.15); padding-bottom: var(--sp-2); }
.estimator-breakdown li span:last-child { font-variant-numeric: tabular-nums; color: var(--white); font-weight: 650; }

/* --------------------------------------------------------------------------
   17. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs { padding-block: var(--sp-4); font-size: var(--fs-sm); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); color: var(--ink-300); }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ocean-700); text-decoration: underline; }

/* --------------------------------------------------------------------------
   18. PAGE HEADER (inner pages)
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(150deg, var(--ocean-50), var(--white) 70%, var(--sand-50));
  padding-block: var(--sp-6) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 62ch; }
.page-head-grid { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .page-head-grid { grid-template-columns: 1.2fr .8fr; } }

/* --------------------------------------------------------------------------
   19. ARTICLE / PROSE
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > h2 { margin-top: var(--sp-8); }
.prose > h3 { margin-top: var(--sp-6); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose img { border-radius: var(--r-lg); margin-block: var(--sp-6); }
.prose .table-wrap, .prose .callout, .prose .notforyou { margin-block: var(--sp-6); }
.prose blockquote {
  margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 4px solid var(--ocean-300); background: var(--ocean-50);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-size: var(--fs-lg); color: var(--ink-700);
}
.prose blockquote p:last-child { margin-bottom: 0; }

.toc { background: var(--sand-50); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.toc h2 { font-family: var(--font-body); font-size: var(--fs-base); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-bottom: var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { font-size: var(--fs-sm); margin-bottom: var(--sp-2); }

.sidebar { display: grid; gap: var(--sp-5); align-content: start; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: calc(var(--header-h) + var(--sp-5)); } }
.layout-article { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); }
@media (min-width: 1000px) { .layout-article { grid-template-columns: minmax(0, 1fr) 330px; } }

/* --------------------------------------------------------------------------
   20. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-800), var(--ocean-600));
  color: var(--white); border-radius: var(--r-xl);
  padding: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
}
.cta-band::after {
  content: ""; position: absolute; right: -8%; top: -60%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 66%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { color: var(--ocean-100); max-width: 56ch; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.14); border-color: var(--white); }

/* --------------------------------------------------------------------------
   21. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ocean-900); color: var(--ocean-200); font-size: var(--fs-sm); padding-block: var(--sp-8) var(--sp-5); }
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: var(--sp-7); }
.footer-brand { max-width: 34ch; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: var(--ocean-300); }
.footer-grid h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: var(--sp-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: var(--sp-2); }
.footer-grid a { color: var(--ocean-200); text-decoration: none; display: inline-block; padding-block: 3px; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-contact li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.footer-contact svg { width: 18px; height: 18px; color: var(--ocean-400); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  align-items: center; justify-content: space-between;
  padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
  font-size: var(--fs-xs); color: var(--ocean-300);
}
.footer-bottom a { color: var(--ocean-300); }

/* --------------------------------------------------------------------------
   22. UTILITIES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.muted { color: var(--ink-500); }
.tag {
  display: inline-block; padding: 3px var(--sp-3);
  background: var(--ocean-50); color: var(--ocean-700);
  border-radius: var(--r-full); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .03em;
}
.tag-warn { background: var(--warning-soft); color: var(--warning); }
.tag-cta { background: var(--cta-soft); color: var(--cta); }

/* --------------------------------------------------------------------------
   23. ANIMATION — transform/opacity only, reduced-motion respected
   -------------------------------------------------------------------------- */
/* No-JS safety: content is visible unless JS marks the document ready. */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: auto;
}
/* Stagger — 40ms per item, capped */
.js .reveal.is-visible { transition-delay: calc(var(--i, 0) * 45ms); }

.js .reveal-left { transform: translate3d(-24px, 0, 0); }
.js .reveal-right { transform: translate3d(24px, 0, 0); }
.js .reveal-scale { transform: scale(.96); }
.js .reveal-left.is-visible,
.js .reveal-right.is-visible { transform: translate3d(0, 0, 0); }
.js .reveal-scale.is-visible { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   24. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .callbar, .cta-band, .nav-scrim, .site-footer { display: none !important; }
  body { padding-bottom: 0; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 10px; }
  .faq-a { grid-template-rows: 1fr !important; }
}
