/* Crystal West Cleaning — Coastal Fresh design system.
   Single stylesheet for index.html, functions/[[path]].js pages, and legal pages.
   Breakpoints: 920px and 640px ONLY. */

/* Self-hosted variable fonts remove a render-blocking third-party stylesheet
   while preserving the existing brand typography. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2');
}

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  /* Refined Coastal palette (2026 revamp): deeper teal ink, richer pacific,
     terracotta accent. Swapped here propagates to every page via site.css. */
  --ink: #0E3A46;        /* headings, body text, dark sections (deep teal) */
  --pacific: #127C8F;    /* links, secondary buttons, focus rings */
  --pacific-deep: #0E6072;
  --seafoam: #DCEFEC;    /* tinted sections, result panels */
  --sand: #F4EFE6;       /* warm alternating section backgrounds */
  --coral: #E8795A;      /* THE accent (terracotta): primary CTAs only */
  --brand-blue: #0077C4; /* Crystal West GMB logo blue */
  --coral-deep: #DC6A4A;
  /* Primary-CTA label color. Deep navy (not --ink) so dark text on terracotta
     clears WCAG AA: #0B2239 on #E8795A ≈ 5.6:1, on #DC6A4A hover ≈ 4.8:1.
     The new teal --ink would only reach ~4.3:1 on terracotta. */
  --cta-ink: #0B2239;
  --white: #FFFFFF;
  --ink-rgb: 14, 58, 70;
  --pacific-rgb: 18, 124, 143;
  --coral-rgb: 232, 121, 90;
  --bubble-rgb: 140, 200, 235;   /* baby blue for the nav scroll gauge */
  --max-width: 1200px;
  --container: min(var(--max-width), calc(100% - 2rem));
  --gutter: clamp(1rem, 4vw, 1.75rem);
  --section-gap: clamp(2.75rem, 7vw, 5rem);
  --radius: 1rem;
  --radius-pill: 999px;
  --shadow-soft: 0 16px 42px rgba(var(--ink-rgb), 0.08);
  --shadow-lift: 0 22px 54px rgba(var(--ink-rgb), 0.12);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   2. Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
/* Hard guarantee against sideways page scroll (e.g. from decorative or
   mid-animation elements). clip, unlike hidden, creates no scroll container,
   so the sticky header keeps working. */
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.45em;
}
/* Card titles stay in the body sans — Fraunces is reserved for the big
   display moments so the serif keeps its impact. */
h3 {
  font-family: var(--font-body);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.3rem); }
h3 { font-size: 1.06rem; }
a { color: var(--pacific); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* Text links need a non-color cue for low-vision visitors. Buttons, chips,
   navigation, and linked cards already have their own visual treatment. */
.section-intro a, .areas-note a, .cta-banner-inner > p a,
.guide-article p a, .guide-article li a, .legal-card p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
/* Solid ring: the 50%-alpha pacific ring composites to ~2.2:1 on white and
   fails WCAG 1.4.11; solid pacific is 5.6:1 on white, 4.8:1 on seafoam. */
:focus-visible { outline: 3px solid var(--pacific); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--pacific-rgb), 0.22); }

/* ============================================================
   3. Layout utilities
   ============================================================ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section-gap); --self-bg: var(--white); }
.section-sand { background: var(--sand); --self-bg: var(--sand); }
.section-foam { background: var(--seafoam); --self-bg: var(--seafoam); }
.section-ink  { background: var(--ink); color: #EAF2F6; --self-bg: var(--ink); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .eyebrow { color: #9CC4D4; }
.section-ink .section-intro { color: rgba(234, 242, 246, 0.82); }
.section-ink a:not([class]) { color: #BFE0EA; }
.section-ink :focus-visible,
.cta-banner :focus-visible,
.announcement-bar :focus-visible,
footer :focus-visible { outline-color: #BFE0EA; }
/* The CTA banner's form is a WHITE card (see .cta-banner-form) — the light
   ring above is ~1.4:1 there, so restore the solid pacific ring inside it. */
.cta-banner-form :focus-visible { outline-color: var(--pacific); }

/* ============================================================
   4. Buttons
   ============================================================ */
.btn, .cta-primary, .cta-secondary, .service-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill); font-weight: 600; font-family: var(--font-body);
  font-size: 1rem; line-height: 1.25; text-align: center;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn:active, .cta-primary:active, .cta-secondary:active, .service-button:active {
  transform: scale(0.98);
}
.btn:hover, .btn:focus-visible,
.cta-primary:hover, .cta-primary:focus-visible,
.cta-secondary:hover, .cta-secondary:focus-visible,
.service-button:hover, .service-button:focus-visible { text-decoration: none; }
/* AA note: white on --coral is ~2.9:1 (fails); --cta-ink (deep navy) on
   terracotta is ~5.6:1 and ~4.8:1 on the --coral-deep hover — accent stays
   vivid, the label passes. */
.btn-primary, .cta-primary, .service-button.primary {
  background: var(--coral);
  color: var(--cta-ink);
  box-shadow: 0 10px 24px rgba(var(--coral-rgb), 0.35);
}
.btn-primary:hover, .cta-primary:hover, .service-button.primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(var(--coral-rgb), 0.4);
}
.btn-primary:active, .cta-primary:active, .service-button.primary:active { transform: scale(0.98); }
.btn-outline, .cta-secondary, .service-button.secondary {
  border-color: var(--pacific);
  color: var(--pacific-deep);
  background: transparent;
}
.btn-outline:hover, .cta-secondary:hover, .service-button.secondary:hover {
  background: rgba(var(--pacific-rgb), 0.08);
}
.section-ink .btn-outline, .section-ink .cta-secondary,
.cta-banner .btn-outline, .cta-banner .cta-secondary {
  border-color: #9CC4D4;
  color: #EAF2F6;
}
.section-ink .btn-outline:hover, .section-ink .cta-secondary:hover,
.cta-banner .btn-outline:hover, .cta-banner .cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-small { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.92rem; }
.service-button { width: 100%; }

/* ============================================================
   5. Cards (shared card language)
   ============================================================ */
.feature-card, .detail-card, .trust-card, .service-card, .checklist-card,
.areas-card, .hub-card, .service-sidebar-card, .mini-link-card, .testimonial,
.legal-card, .highlight, .gallery-card, .step {
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.4vw, 1.6rem);
}
/* Cards that lead somewhere lift gently; static copy cards stay put. */
.service-card, .gallery-card, .hub-card {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover, .gallery-card:hover, .hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
/* Pacific keyline dash on the headline cards (coral is reserved for primary CTAs) */
.feature-card, .service-card, .checklist-card, .hub-card { position: relative; overflow: hidden; }
.feature-card::before, .service-card::before, .checklist-card::before, .hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(0.9rem, 2.2vw, 1.4rem);
  width: 2.75rem;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--pacific);
}
.feature-card h3, .detail-card h3, .trust-card h3, .highlight h3, .areas-card h3,
.step h3, .service-card h3, .checklist-card h3, .gallery-feature-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}
.feature-card p, .detail-card p, .trust-card p, .highlight p,
.areas-card p, .step p {
  margin: 0;
  font-size: 0.97rem;
  color: rgba(var(--ink-rgb), 0.82);
}
.card-body { margin-top: 0.5rem; }
.card-body p { margin: 0 0 0.5rem; }
.card-body ul { margin: 0.4rem 0 0; padding-left: 1.15rem; }
.card-body li + li { margin-top: 0.3rem; }
.card-body li::marker { color: var(--pacific); }
.service-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--pacific-deep);
}

/* ============================================================
   6. Waves & decoration
   ============================================================ */
.wave { display: block; width: 100%; height: clamp(18px, 4vw, 40px); }
.wave-flip { transform: scaleY(-1); }

/* Wavy section dividers — each section's top edge rises into the section above
   as a gentle wave in the section's own background colour. Colours follow each
   section's --self-bg, so no per-boundary markup is needed. */
.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(14px, 3vw, 30px);
  margin-bottom: -1px;            /* overlap to avoid a hairline seam */
  background: var(--self-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32C240 64 480 0 720 24 960 48 1200 16 1440 36V64H0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32C240 64 480 0 720 24 960 48 1200 16 1440 36V64H0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  pointer-events: none;
}
.icon {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  stroke: currentColor;
  fill: none;
  color: var(--pacific);
  margin: 0 0 0.5rem;
}
.eyebrow {
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pacific);
  margin: 0 0 0.55rem;
}

/* ============================================================
   7. Header / nav / announcement / sticky CTA (920px collapse)
   ============================================================ */
.announcement-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.3rem 0;
}
.announcement-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.2rem;
}
.announcement-bar a { color: var(--white); font-weight: 600; }
.announcement-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 0.8rem; }

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(var(--pacific-rgb), 0.14);
}

/* Bubble scroll gauge — soft baby-blue bubbles accumulate bottom-up through
   the sticky bar as the page scrolls and pop away in reverse on the way
   back up. The gauge completes halfway down the page: as the bubbles max
   out, .nav-fill fades in over them so the bar settles into one even fill
   color rather than a cluster of circles. site.js generates the bubbles and
   drives both layers. Decorative: sits behind the topbar (which gets
   z-index: 1), never intercepts clicks, and the container clips overflow so
   the nav dropdown stays unclipped. */
.nav-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s linear;
}
.nav-bubbles span {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--bubble-rgb), 0.3);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-bubbles span.on {
  opacity: 1;
  transform: scale(1);
}
.nav-fill {
  position: absolute;
  inset: 0;
  background: rgba(var(--bubble-rgb), 0.38);
  opacity: 0;
  transition: opacity 0.3s linear;
  pointer-events: none;
}
.topbar {
  position: relative;                /* positioning context for the nav sheet */
  z-index: 1;                        /* above the decorative .nav-bubbles */
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem 1rem;
  padding-block: 0.45rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.brand:hover, .brand:focus-visible { text-decoration: none; color: var(--pacific-deep); }
.brand-mark { width: 2rem; height: 2rem; flex: none; color: var(--brand-blue); }

/* Topbar action cluster: always-visible Book CTA + hamburger. */
.topbar-actions {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 0.35rem 0.55rem;
}
.topbar-book { flex: none; }

.nav-toggle {
  display: inline-flex;          /* the menu is a sheet at every width now */
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0.6rem;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--pacific-deep); background: rgba(var(--pacific-rgb), 0.08); }
/* Label stays in the DOM for screen readers (JS swaps Menu/Close) but is
   visually hidden — the trigger is icon-only. */
.nav-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 1.3rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* Dropdown sheet — a right-aligned panel under the bar at every width
   (full-width on the smallest screens), grouped links with section labels. */
#primary-nav {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: var(--gutter);
  left: auto;
  z-index: 40;
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  flex-direction: column;
  align-items: stretch;
  gap: 0.05rem;
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.55rem 0.7rem 0.85rem;
  max-height: calc(100dvh - 100% - 1.5rem);
  overflow-y: auto;
}
#primary-nav.is-open { display: flex; }
.nav-group { display: grid; gap: 0.02rem; }
.nav-group-label {
  display: block;
  margin: 0.55rem 0 0.1rem;
  padding-inline: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.55);
}
.nav-group:first-of-type .nav-group-label { margin-top: 0; }
#primary-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0.6rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 0.5rem;
}
#primary-nav a:hover, #primary-nav a:focus-visible {
  color: var(--pacific-deep);
  background: rgba(var(--pacific-rgb), 0.08);
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.7rem;
}

/* Function-page header nav (no JS, never collapses) */
.fn-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}
.fn-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.2rem;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.fn-nav a:not(.btn):hover, .fn-nav a:not(.btn):focus-visible { color: var(--pacific-deep); }

/* Sticky mobile CTA bar — revealed ≤920px via .is-visible (scroll JS) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: 0.65rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid rgba(var(--pacific-rgb), 0.12);
  box-shadow: 0 -12px 32px rgba(var(--ink-rgb), 0.14);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta a { flex: 1 1 0; }

/* ============================================================
   8. Heroes — homepage .hero, .service-hero, .legal-hero
   (light morning gradient replaces the old dark-green heroes)
   ============================================================ */
/* Service + legal pages keep the light morning gradient. */
.service-hero, .legal-hero {
  position: relative;
  background: linear-gradient(165deg, var(--seafoam) 0%, var(--white) 55%, var(--sand) 100%);
  color: var(--ink);
}

/* Homepage hero — full-bleed photo with a left-weighted scrim and overlaid
   copy/CTAs (replaces the old text + art + contact 3-panel split). */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 72vh, 640px);
  padding-block: clamp(2.2rem, 6vw, 4rem);
  background: var(--ink);            /* fallback behind the photo while it loads */
  color: var(--white);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.hero-media { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 30, 38, 0.84) 0%, rgba(8, 30, 38, 0.58) 48%, rgba(8, 30, 38, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 30, 38, 0.5) 0%, rgba(8, 30, 38, 0) 46%);
}
/* min-width:0 + a viewport-relative cap let this flex child shrink on phones
   instead of forcing horizontal overflow. */
.hero-content { position: relative; z-index: 1; max-width: min(640px, 100%); min-width: 0; }
.hero-eyebrow {
  margin: 0 0 0.6rem;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero h1 {
  color: var(--white);
  margin: 0 0 0.9rem;
  max-width: 17ch;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-lede {
  margin: 0 0 1.4rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}
.hero .hero-ctas { margin-bottom: 1.1rem; }
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.hero .btn-outline:hover, .hero .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}
.hero :focus-visible { outline-color: #FFFFFF; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.hero .badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.badge, .estimate-pill, .service-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.28);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pacific-deep);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Contact items — shared by the relocated #contact quote section. */
.contact-item { display: flex; flex-direction: column; gap: 0.1rem; }
.contact-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.68);
}
.contact-item a { font-weight: 600; color: var(--pacific-deep); overflow-wrap: anywhere; }

/* Inquiry forms (hero + CTA banner) */
.inquiry-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(var(--pacific-rgb), 0.3);
}
.inquiry-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inquiry-field { display: grid; gap: 0.3rem; }
.inquiry-field--full { grid-column: 1 / -1; }
.inquiry-field label, .estimate-field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.inquiry-field input, .inquiry-field select, .inquiry-field textarea,
.estimate-field input, .estimate-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(var(--pacific-rgb), 0.32);
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--ink);
}
.inquiry-field input:focus-visible, .inquiry-field select:focus-visible,
.inquiry-field textarea:focus-visible, .estimate-field input:focus-visible,
.estimate-field select:focus-visible {
  border-color: var(--pacific);
  outline-offset: 0;
}
.inquiry-field textarea { min-height: 88px; resize: vertical; }
.inquiry-form > .cta-primary { width: 100%; margin-top: 0.9rem; }
.form-note { margin: 0.65rem 0 0; font-size: 0.84rem; color: rgba(var(--ink-rgb), 0.72); }
.form-success {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(var(--pacific-rgb), 0.08);
  border: 1px solid rgba(var(--pacific-rgb), 0.25);
  color: var(--pacific-deep);
  font-weight: 600;
}

/* Collapsed-form affordance: summary reads as a compact outline button.
   Desktop JS opens these on load; phones start collapsed. */
.quote-toggle { margin-top: 0.9rem; }
.quote-toggle > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--pacific);
  border-radius: var(--radius-pill);
  color: var(--pacific-deep);
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.quote-toggle > summary::-webkit-details-marker { display: none; }
.quote-toggle > summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pacific);
  transition: transform 0.2s ease;
}
.quote-toggle[open] > summary::after { transform: rotate(45deg); }
.quote-toggle > summary:hover { background: rgba(var(--pacific-rgb), 0.08); }
.cta-banner .quote-toggle { margin-top: 1.1rem; }
.cta-banner .quote-toggle > summary { border-color: #9CC4D4; color: #EAF2F6; }
.cta-banner .quote-toggle > summary::after { color: #9CC4D4; }
.cta-banner .quote-toggle > summary:hover { background: rgba(255, 255, 255, 0.1); }
.quote-toggle .inquiry-form { margin-top: 0.75rem; }
.quote-toggle .cta-banner-form { margin-top: 0.9rem; }

/* Function-page heroes: recolor every old dark-hero child for light bg */
.service-hero-inner, .legal-hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.7rem, 4.2vw, 2.8rem) var(--gutter) clamp(1.1rem, 2.8vw, 1.8rem);
}
.service-hero h1, .legal-hero h1 { margin: 0.4rem 0 0.6rem; }
.service-hero-inner p:not(.eyebrow), .legal-hero-inner p:not(.eyebrow) {
  margin: 0;
  max-width: 64ch;
  font-size: 1.08rem;
  color: rgba(var(--ink-rgb), 0.8);
}
/* Breadcrumb trail on function pages */
.breadcrumbs { margin-bottom: 0.9rem; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.35rem; color: rgba(var(--ink-rgb), 0.65); }
.breadcrumbs li + li::before { content: "/"; color: rgba(var(--ink-rgb), 0.35); }
.breadcrumbs a { font-weight: 600; color: var(--pacific-deep); }

.eyebrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--pacific-deep);
}
.service-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }

/* ============================================================
   9. Homepage sections
   ============================================================ */
.section-intro {
  max-width: 62ch;
  margin: 0 0 1.7rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(var(--ink-rgb), 0.78);
}

/* Estimate calculator */
/* Single-flow estimate: copy stacked above a centered calculator card. */
.estimate-inner {
  max-width: min(820px, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.estimate-copy { text-align: center; }
.estimate-copy h2 { margin-top: 0; }
.estimate-copy p { color: rgba(var(--ink-rgb), 0.8); max-width: 56ch; margin-inline: auto; }
.estimate-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.85rem; }
.estimate-form {
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}
.estimate-field { display: grid; gap: 0.32rem; align-content: start; }
.estimate-addons { display: grid; gap: 0.4rem; margin-top: 0.2rem; }
.estimate-addon-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(var(--ink-rgb), 0.85);
  cursor: pointer;
}
.estimate-addon-label input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.18rem;
  flex: none;
  accent-color: var(--pacific);
}
.estimate-result {
  grid-column: 1 / -1;
  background: var(--seafoam);
  border-radius: calc(var(--radius) - 0.3rem);
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.9rem;
}
.estimate-mini { display: grid; gap: 0.15rem; }
.estimate-mini strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.68);
}
.estimate-mini span {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--pacific-deep);
}
.estimate-note { grid-column: 1 / -1; margin: 0; font-size: 0.84rem; color: rgba(var(--ink-rgb), 0.72); }
.estimate-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.estimate-cta a { flex: 1 1 200px; }

/* Request-a-quote / contact section — single-column, centered. Holds the
   lead form relocated out of the old hero panel (#hero-inquiry-form). */
.quote-inner { max-width: 760px; margin-inline: auto; }
.quote-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
  margin: 0.4rem 0 1.1rem;
}
.quote-contact-row .contact-item { flex-direction: row; align-items: baseline; gap: 0.35rem; }
.quote-contact-row .cta-primary { margin-left: auto; }
.quote-inner .quote-toggle { margin-top: 0; }
.quote-inner .quote-toggle > summary { justify-content: space-between; }

/* Feature / detail / trust / highlight grids */
.feature-grid, .detail-grid, .trust-grid, .highlight-list {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.trust-grid { margin-top: 1.05rem; }

/* Metrics band */
.metrics {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 1.2rem;
}
.metric {
  background: var(--seafoam);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.2rem;
}
.metric strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--pacific-deep);
}
.metric span { font-size: 0.88rem; color: rgba(var(--ink-rgb), 0.75); }

/* Homepage services grid (function pages override under .service-main) */
.service-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Areas — a normal band, washed by its .section-sand class (iteration 4:
   was foam, which merged with the adjacent #green foam band) */
.areas-inner {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.1rem;
}
.areas-list, .gallery-feature-list { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.areas-list li + li, .gallery-feature-list li + li { margin-top: 0.3rem; }
.areas-list li::marker, .gallery-feature-list li::marker { color: var(--pacific); }
.areas-note { margin: 0.6rem 0 0; font-size: 0.9rem; color: rgba(var(--ink-rgb), 0.72); }

.mini-link-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.1rem;
}
.mini-link-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1.15rem;
  border-radius: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mini-link-card strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.68);
}
.mini-link-card a { font-weight: 600; color: var(--pacific-deep); }
.mini-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(var(--pacific-rgb), 0.4);
}

/* Embedded service-area map */
.area-map {
  margin: 1.7rem 0 0;
  border: 1px solid rgba(var(--pacific-rgb), 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--white);
}
.area-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 38vw, 420px);
  border: 0;
}
.area-map figcaption {
  padding: 0.7rem 1.1rem 0.85rem;
  font-size: 0.9rem;
  color: rgba(var(--ink-rgb), 0.75);
}

/* Airbnb turnover-day timeline (#hosts) — time chips on the step cards */
.step-time {
  display: inline-block;
  font: 700 0.76rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pacific-deep);
  background: rgba(var(--pacific-rgb), 0.12);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.65rem;
}

/* Compact chip row for the service/area page links (replaces the old
   14-card grid on the homepage; every link is preserved for SEO). */
.areas-links-heading { margin-top: 2rem; }
.link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}
.link-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(var(--pacific-rgb), 0.3);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--pacific-deep);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.link-chips a:hover, .link-chips a:focus-visible {
  background: var(--seafoam);
  border-color: rgba(var(--pacific-rgb), 0.5);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Scroll-entry reveal. site.js adds .js-reveal to <html> only when
   IntersectionObserver exists AND the visitor allows motion, so content is
   never hidden without JS or under prefers-reduced-motion. */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Process — step numbers in normal flow, no overhang */
.process-steps {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step { background: var(--sand); border-color: rgba(var(--ink-rgb), 0.08); box-shadow: none; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--pacific);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* Checklist */
.checklist-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Gallery */
.gallery-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 2.4vw, 1.6rem);
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(0.85rem, 2vw, 1.3rem);
  margin-bottom: 0.9rem;
}
.gallery-feature picture { display: block; width: 100%; }
.gallery-feature img { width: 100%; border-radius: calc(var(--radius) - 0.35rem); }
.gallery-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
/* Large-cards row followed by the small-thumb row */
.gallery-grid + .gallery-grid { margin-top: 0.85rem; }
.gallery-card { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.gallery-card picture { display: block; width: 100%; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-card figcaption { padding: 0.6rem 0.95rem 0.8rem; font-size: 0.88rem; color: rgba(var(--ink-rgb), 0.75); }

/* Testimonials */
.testimonials {
  display: grid;
  gap: 0.9rem;
  /* min(280px, 100%): at 320px CSS width (WCAG 1.4.10 reflow / 400% zoom)
     the container's content box is ~256px — a hard 280px floor forces
     page-wide horizontal scroll. */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.testimonial { margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(var(--ink-rgb), 0.85); }
.testimonial::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.55;
  margin-bottom: 0.7rem;
  color: var(--coral);  /* decorative ornament */
}
.testimonial cite {
  display: block;
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pacific-deep);
}
.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* FAQ — native details, restyled */
.faq { display: grid; gap: 0.6rem; max-width: 860px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(var(--pacific-rgb), 0.14);
  border-radius: 0.9rem;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border-radius: 0.9rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pacific);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { margin: 0; padding: 0 1.1rem 0.9rem; color: rgba(var(--ink-rgb), 0.82); }

/* CTA banner — the one dark moment (with the footer) */
.cta-banner { position: relative; background: var(--ink); color: #EAF2F6; }
/* One full-width ink wave rising from the banner into the light section
   above. The inner .section is narrower than the viewport, so its auto-wave
   is suppressed and the banner draws its own instead. */
.cta-banner .section::before { display: none; }
.cta-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: clamp(14px, 3vw, 30px);
  margin-bottom: -1px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32C240 64 480 0 720 24 960 48 1200 16 1440 36V64H0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 32C240 64 480 0 720 24 960 48 1200 16 1440 36V64H0Z' fill='%23000'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); }
.cta-banner-inner {
  max-width: min(880px, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  text-align: center;
}
.cta-banner-inner > p { max-width: 60ch; margin: 0 auto; color: rgba(234, 242, 246, 0.85); }
.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.05rem;
}
.cta-banner-form {
  margin-top: 1.3rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-top: 0;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  text-align: left;
}

/* Footer (homepage + legal pages + .service-footer) */
footer { background: var(--ink); color: rgba(234, 242, 246, 0.88); }
footer a { color: var(--white); font-weight: 600; }
footer h2, footer h3, footer h4 { color: var(--white); }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding-block: clamp(1.5rem, 3.75vw, 2.25rem) clamp(1.05rem, 2.25vw, 1.5rem);
}
.footer-inner p { margin: 0.2rem 0; font-size: 0.95rem; color: rgba(234, 242, 246, 0.82); }
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9CC4D4;
  margin: 0 0 0.7rem;
}
footer .brand-mark { width: 2.25rem; height: 2.25rem; margin-bottom: 0.6rem; color: var(--seafoam); }
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 0.85rem 1.05rem;
  font-size: 0.85rem;
  color: rgba(234, 242, 246, 0.75);
}

/* ============================================================
   10. Function pages (.service-grid grid-areas, hub, legal)
   ============================================================ */
.service-main {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  padding-block: clamp(1.3rem, 3.5vw, 2.2rem) clamp(1.8rem, 4.5vw, 3rem);
}
/* Single-flow service page: booking card, then copy, then the rest —
   one readable column at every width. */
.service-main .service-grid {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "book" "copy" "rest";
  align-items: start;
  max-width: 840px;
  margin-inline: auto;
}
.service-copy { grid-area: copy; min-width: 0; }
.service-book { grid-area: book; display: grid; gap: 1rem; align-content: start; }
.service-rest { grid-area: rest; display: grid; gap: 1rem; align-content: start; }
.service-book .service-sidebar-card { border-top: 4px solid var(--pacific); box-shadow: var(--shadow-lift); }

.service-card h2 { font-size: 1.25rem; margin: 1.2rem 0 0.5rem; }
.service-card h2:first-child { margin-top: 0; }
.service-sidebar-card h2 { font-size: 1.08rem; margin: 0 0 0.5rem; }
.service-sidebar-card p { margin: 0 0 0.4rem; font-size: 0.95rem; color: rgba(var(--ink-rgb), 0.82); }
.service-points, .service-checklist, .service-links, .hub-links {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}
.service-points li + li, .service-checklist li + li,
.service-links li + li, .hub-links li + li { margin-top: 0.3rem; }
.service-points li::marker, .service-checklist li::marker,
.service-links li::marker, .hub-links li::marker { color: var(--pacific); }
.service-links a, .hub-links a { font-weight: 600; }
.service-proof {
  margin: 1.35rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(var(--pacific-rgb), 0.16);
  border-radius: calc(var(--radius) - 0.2rem);
  background: var(--seafoam);
}
.service-proof picture { display: block; }
.service-proof img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-proof figcaption {
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.84rem;
  color: rgba(var(--ink-rgb), 0.76);
}
.local-detail p { margin: 0 0 0.85rem; }
.service-cta-stack { display: grid; gap: 0.65rem; margin-top: 0.85rem; }

/* Hub page */
.hub-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.hub-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: clamp(0.9rem, 2.2vw, 1.4rem);
}
.hub-card h2 { font-size: 1.1rem; margin: 0; }
.hub-card h3 { font-size: 1.02rem; margin: 0; }
.hub-card p { margin: 0; font-size: 0.94rem; color: rgba(var(--ink-rgb), 0.8); }
.hub-city-suffix { color: rgba(var(--ink-rgb), 0.72); }
.hub-section-gap { margin-bottom: 1rem; }
.hub-section-heading { margin: 1.7rem 0 0.8rem; }
.hub-section-heading .eyebrow { margin-bottom: 0.35rem; }
.hub-section-heading h2 { font-size: clamp(1.35rem, 2.7vw, 1.9rem); }
.hub-cta-gap { margin-top: 1rem; }

/* Legal pages (function-rendered + static) */
.legal-card {
  width: min(860px, calc(100% - 2rem));
  margin: clamp(1.2rem, 3vw, 1.9rem) auto clamp(1.8rem, 4.5vw, 2.7rem);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}
.legal-card h2 { font-size: 1.2rem; margin: 1.2rem 0 0.45rem; }
.legal-card ul { margin: 0.5rem 0 0.9rem; padding-left: 1.15rem; }
.legal-card li + li { margin-top: 0.3rem; }
.legal-card li::marker { color: var(--pacific); }
.effective { margin: 0 0 0.9rem; font-size: 0.92rem; font-weight: 600; color: rgba(var(--ink-rgb), 0.72); }
.sms-box {
  background: rgba(var(--pacific-rgb), 0.06);
  border: 1px solid rgba(var(--pacific-rgb), 0.22);
  border-radius: 0.9rem;
  padding: 1.05rem 1.2rem;
  margin-top: 0.7rem;
}
.sms-box p { margin: 0.45rem 0; font-size: 0.95rem; }
.cross-link { margin: 1.6rem 0 0; font-weight: 600; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border: 1.5px solid rgba(var(--pacific-rgb), 0.35);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--pacific-deep);
  font-weight: 600;
  font-size: 0.92rem;
}
.back-link:hover, .back-link:focus-visible { background: var(--seafoam); text-decoration: none; }

/* Guide articles — long-form editorial layout on top of .legal-card */
.guide-article {
  font-size: 1.02rem;
  line-height: 1.7;
}
.service-hero .guide-meta {
  margin-top: 0.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.guide-article h2 { font-size: 1.45rem; margin: 1.6rem 0 0.6rem; }
.guide-article h3 { font-size: 1.08rem; margin: 1.2rem 0 0.4rem; }
.guide-article p { margin: 0 0 0.9rem; color: rgba(var(--ink-rgb), 0.88); }
.guide-article ul { margin: 0.5rem 0 1rem; padding-left: 1.2rem; }
.guide-article li + li { margin-top: 0.35rem; }
.guide-article li::marker { color: var(--pacific); }
.table-scroll { overflow-x: auto; margin: 0.8rem 0 1.1rem; }
.guide-article table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.guide-article th, .guide-article td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(var(--pacific-rgb), 0.18);
}
.guide-article th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.68);
  background: var(--seafoam);
}
.guide-article tbody tr:nth-child(even) { background: rgba(var(--pacific-rgb), 0.04); }
.guide-cta {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto clamp(1.8rem, 4.5vw, 2.7rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Function-page footer (.footer-slim: same slim two-span treatment for the
   legal pages, whose footers don't need the homepage's 4-column grid) */
.service-footer { background: var(--ink); }
.service-footer-inner,
.footer-slim {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);  /* match .container's content inset */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.2rem;
  padding-block: 1.2rem;
  font-size: 0.92rem;
}

/* ============================================================
   11. Tablet / mobile
   ============================================================ */
@media (max-width: 920px) {
  /* Room for the sticky CTA bar — scoped so only pages that actually have
     the bar (the homepage) reserve space; function/legal pages don't get a
     blank band under their ink footers. */
  /* Bar is ~64px tall (44px button + 2×0.6rem padding + border): 5rem clears it. */
  body:has(.sticky-cta) { padding-bottom: 5rem; }
  /* Engines without :has() can't scope the clearance — reserve it on every
     page instead (small dead space under function-page footers is fine). */
  @supports not (selector(:has(*))) {
    body { padding-bottom: 5rem; }
  }

  /* The nav sheet, single-column estimate, and single-column service grid are
     identical at every width now (see base rules) — no overrides needed here. */
  .sticky-cta { display: flex; }

  /* Hero: a touch shorter on tablets; stack the CTAs full-width. */
  .hero { min-height: clamp(380px, 60vh, 520px); }
  .hero-ctas { flex-direction: column; gap: 0.5rem; align-items: stretch; }
  .hero-ctas > .btn { width: 100%; font-size: 0.95rem; padding-inline: 0.6rem; }

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

/* ============================================================
   12. Phone refinements
   ============================================================ */
@media (max-width: 640px) {
  :root { --section-gap: 1.5rem; }
  body { font-size: 0.95rem; line-height: 1.55; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
  .section-intro { margin-bottom: 0.75rem; font-size: 0.92rem; }
  .wave { height: 14px; }

  .announcement-bar { font-size: 0.7rem; padding: 0.2rem 0; }
  .announcement-group > span,
  .announcement-inner > span:first-child { display: none; }

  .topbar { padding-block: 0.45rem; }
  /* Fluid: the nowrap brand + 44px hamburger must fit a 320px viewport. */
  .brand { font-size: clamp(0.98rem, 4.8vw, 1.15rem); }
  .fn-nav { gap: 0.25rem 0.9rem; }
  /* Keep the smallest header to brand + hamburger; Book stays in the
     announcement bar and the scroll-in sticky CTA on phones. */
  .topbar-book { display: none; }

  .hero { min-height: clamp(360px, 66vh, 480px); }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.3rem); }

  .inquiry-grid { grid-template-columns: 1fr; }
  .quote-contact-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .quote-contact-row .cta-primary { margin-left: 0; width: 100%; }

  /* 2-up phone grids — only the short, glanceable tiles; the text-heavy
     card sets are swipe rails now (see .rail at the end of this block). */
  .mini-link-grid, .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .hero-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
  .badge { padding: 0.28rem 0.5rem; font-size: 0.7rem; justify-content: center; text-align: center; }
  .feature-card, .detail-card, .trust-card, .service-card, .checklist-card,
  .mini-link-card, .highlight, .step, .hub-card, .metric { padding: 0.75rem; }
  .feature-card, .detail-card, .trust-card, .service-card, .checklist-card,
  .mini-link-card, .highlight, .step, .hub-card { overflow-wrap: anywhere; }
  .feature-card p, .detail-card p, .trust-card p, .highlight p, .step p,
  .hub-card p, .card-body p { font-size: 0.875rem; }
  .feature-card h3, .detail-card h3, .trust-card h3, .highlight h3, .step h3,
  .service-card h3, .checklist-card h3 { font-size: 0.95rem; }
  .hub-card h2 { font-size: 0.95rem; }
  .card-body ul, .hub-links, .areas-list, .gallery-feature-list { font-size: 0.85rem; padding-left: 1rem; }
  .card-body li + li, .hub-links li + li { margin-top: 0.2rem; }
  .mini-link-card { padding: 0.6rem 0.7rem; }
  .mini-link-card a { font-size: 0.875rem; }
  .service-card-link { margin-top: 0.6rem; font-size: 0.875rem; }
  .step-number { width: 1.8rem; height: 1.8rem; font-size: 0.95rem; margin-bottom: 0.4rem; }
  .metric strong { font-size: 1.35rem; }
  .metric span { font-size: 0.8rem; }
  .icon { width: 1.6rem; height: 1.6rem; }

  /* Density: full-bleed gallery thumbs waste a phone screen — go 2-up. */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card figcaption { font-size: 0.8rem; padding: 0.45rem 0.6rem 0.6rem; }

  .hero-ctas > .btn { flex: 1 1 100%; }
  .btn, .cta-primary, .cta-secondary, .service-button { padding: 0.55rem 1.25rem; }
  .btn-small { padding: 0.45rem 1rem; }

  /* Estimate form: pair the short-label fields, keep the result tight. */
  .estimate-form { padding: 0.85rem; gap: 0.6rem 0.7rem; }
  .estimate-form > .estimate-field-full { grid-column: 1 / -1; }
  .estimate-addons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .estimate-addon-label { font-size: 0.85rem; }
  .estimate-result { padding: 0.7rem 0.8rem; gap: 0.5rem 0.7rem; }
  .estimate-mini span { font-size: 1.25rem; }
  .estimate-cta a { flex: 1 1 calc(50% - 0.35rem); }

  .sticky-cta { gap: 0.5rem; padding: 0.45rem 0.9rem calc(0.45rem + env(safe-area-inset-bottom, 0px)); }
  /* Bar is ~59px on phones (44px button + 2×0.45rem padding + border). */
  body:has(.sticky-cta) { padding-bottom: 3.9rem; }

  .service-hero-inner, .legal-hero-inner { padding: 1.1rem var(--gutter) 0.8rem; }
  .service-hero-inner p:not(.eyebrow), .legal-hero-inner p:not(.eyebrow) { font-size: 0.95rem; }
  .service-main { padding-block: 1rem 1.5rem; }
  .service-sidebar-card { padding: 0.8rem; }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    padding-block: 1.2rem 0.9rem;
  }
  .footer-inner p { font-size: 0.85rem; overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-block: 0.7rem 0.85rem; font-size: 0.8rem; }

  /* Card sets stack vertically on phones — no sideways scrolling and no
     edge-bleed rails. The auto-fit grids collapse to one column on their
     own; the fixed two-column grids are forced to a single column here. */
  .service-grid, .checklist-grid { grid-template-columns: minmax(0, 1fr); }
  .rail > * { padding: 1rem; }
  .rail h2, .rail h3 { font-size: 1.05rem; }
  .rail p { font-size: 0.92rem; }
  .rail .card-body ul, .rail .hub-links { font-size: 0.9rem; padding-left: 1.1rem; }
  .rail .step-number { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; margin-bottom: 0.5rem; }
}

/* Not a breakpoint: motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cta-primary, .cta-secondary, .service-button, .mini-link-card,
  .sticky-cta, .faq-item summary::after, .quote-toggle > summary::after,
  .nav-toggle-icon::before, .nav-toggle-icon::after,
  .link-chips a, .service-card, .gallery-card, .hub-card { transition: none; }
  .nav-bubbles, .nav-fill { display: none; }
}
