/* ============================================================
   Home Inspection — 2026-2028 Master Template
   Modern, lightweight, accessible, animated
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Brand — overridden per city via inline style on <html data-accent="..."> */
  --accent: #c62828;
  --accent-2: #8b1717;
  --accent-soft: color-mix(in oklab, var(--accent) 12%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 40%, transparent);

  /* Neutrals */
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --bg-elev: #ffffff;
  --ink: #0b0d12;
  --ink-2: #1a1f2a;     /* darkened from #2a2f3a — body copy, ~16:1 contrast */
  --ink-3: #424a59;     /* darkened from #5a6373 — muted, now 8.6:1 (WCAG AAA) */
  --line: rgba(11, 13, 18, 0.08);
  --line-strong: rgba(11, 13, 18, 0.16);

  /* Type */
  --font-display: "Cabinet Grotesk", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(11,13,18,0.04), 0 1px 3px rgba(11,13,18,0.06);
  --sh-2: 0 6px 16px -4px rgba(11,13,18,0.08), 0 4px 12px -2px rgba(11,13,18,0.06);
  --sh-3: 0 24px 48px -12px rgba(11,13,18,0.18), 0 8px 24px -8px rgba(11,13,18,0.10);
  --sh-glow: 0 0 0 1px var(--accent-soft), 0 12px 40px -8px var(--accent-glow);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

[data-theme="dark"] {
  --bg: #0a0c12;
  --bg-alt: #0f121a;
  --bg-elev: #141823;
  --ink: #f4f5f8;
  --ink-2: #d6dbe5;     /* lightened from #c8cdd8 for dark-mode body */
  --ink-3: #a8b1c2;     /* lightened from #8a93a4 — muted on dark, now 7.2:1 */
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --sh-1: 0 1px 2px rgba(0,0,0,0.6);
  --sh-2: 0 8px 20px -4px rgba(0,0,0,0.5);
  --sh-3: 0 28px 56px -12px rgba(0,0,0,0.7);
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-2); }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--accent-glow), 0 0 0 1px var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px var(--accent-glow), 0 0 0 1px var(--accent);
  color: #fff;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--t-slow) var(--ease);
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--ink), var(--sh-2);
  color: var(--ink);
}
.btn-arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px var(--gutter);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--ink); letter-spacing: -0.02em;
}
.nav-brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
  box-shadow: var(--sh-glow);
}
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-sm);
  transition: all var(--t-fast) var(--ease);
}
.nav-menu a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-phone {
  font-weight: 600; color: var(--ink); font-size: 14px;
  display: flex; align-items: center; gap: 6px;
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-phone { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    color: var(--ink);
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 90%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 60%);
  animation: meshShift 20s var(--ease) infinite alternate;
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 70%);
  opacity: 0.5;
}
@keyframes meshShift {
  0% { transform: translate(0,0) scale(1); }
  100% { transform: translate(2%, -1%) scale(1.05); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-headline {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  margin-bottom: 24px;
}
.hero-headline .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* Hero visual — image stack with floating cards */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--bg-alt);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.hero-visual:hover img { transform: scale(1.04); }
.hero-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--sh-3);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  animation: float 6s var(--ease) infinite;
}
.hero-card-1 { top: 24px; left: -28px; animation-delay: 0s; }
.hero-card-2 { bottom: 30%; right: -28px; animation-delay: 1.5s; }
.hero-card-3 { bottom: 24px; left: 24px; animation-delay: 3s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-card-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}

/* ---------- TRUST BAR ---------- */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px;
  opacity: 0.7;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  flex-basis: 100%;
  text-align: center;
}
.trust-badge { font-weight: 600; color: var(--ink-2); font-size: 14px; }

/* ---------- HOW IT WORKS — STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  position: relative;
  transition: all var(--t-med) var(--ease);
  counter-increment: step;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: var(--sh-3);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
  line-height: 0.9;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ---------- BENTO SERVICE GRID ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .bento-card { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento-card.is-large { grid-column: span 2 !important; }
}
.bento-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: var(--sh-3);
}
.bento-card.is-feature {
  grid-column: span 3;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border-color: transparent;
}
.bento-card.is-feature h3, .bento-card.is-feature p { color: #fff; }
.bento-card.is-feature p { opacity: 0.85; }
.bento-card.is-tall { grid-column: span 3; grid-row: span 2; }
.bento-card.is-wide { grid-column: span 3; grid-row: span 1; }
.bento-card.is-medium { grid-column: span 2; grid-row: span 1; }

.bento-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: auto;
}
.bento-card.is-feature .bento-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.bento-card h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.bento-card p { font-size: 13px; color: var(--ink-3); margin: 0; }
.bento-card-arrow {
  position: absolute; top: 24px; right: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  transition: all var(--t-fast) var(--ease);
}
.bento-card:hover .bento-card-arrow {
  background: var(--accent); color: #fff;
  transform: rotate(-45deg);
}

/* ---------- PROPERTY TYPES — TILT CARDS ---------- */
.props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .props { grid-template-columns: 1fr; } }
.prop {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease);
}
.prop img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.prop:hover img { transform: scale(1.08); }
.prop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}
.prop-label {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  color: #fff; font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  z-index: 2;
}

/* ---------- QUOTE PANEL ---------- */
.quote-panel {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-panel::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,255,255,0.15), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,255,255,0.1), transparent 60%);
  pointer-events: none;
}
.quote-panel-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative;
}
@media (max-width: 900px) { .quote-panel-grid { grid-template-columns: 1fr; } }
.quote-panel h2 { color: #fff; }
.quote-panel p { color: rgba(255,255,255,0.85); }
.quote-iframe-wrap {
  background: #fff; border-radius: var(--r-lg);
  padding: 8px; box-shadow: var(--sh-3);
  overflow: hidden;
}
.quote-iframe-wrap iframe {
  width: 100%; min-height: 600px; border: 0; display: block;
  border-radius: calc(var(--r-lg) - 8px);
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  transition: all var(--t-fast) var(--ease);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-soft); box-shadow: var(--sh-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 300;
  color: var(--accent);
  transition: transform var(--t-med) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- CITIES SERVED ---------- */
.cities {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.city-pill {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.city-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 14px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-3); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--ink-2); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-meta {
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-3);
}

/* ---------- STICKY QUOTE BAR ---------- */
.sticky-cta {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%);
  z-index: 40;
  background: var(--ink); color: var(--bg);
  padding: 12px 16px 12px 22px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--sh-3);
  transition: transform var(--t-med) var(--ease);
  max-width: calc(100vw - 32px);
}
.sticky-cta.is-visible { transform: translateX(-50%) translateY(0); }
.sticky-cta-text { font-size: 14px; font-weight: 500; }
.sticky-cta .btn-primary { padding: 10px 18px; font-size: 14px; }
@media (max-width: 500px) { .sticky-cta-text { display: none; } }

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ---------- MARQUEE / SCROLL TICKER (optional accent) ---------- */
.marquee {
  display: flex;
  gap: 60px;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.marquee-item::before {
  content: "★"; color: var(--accent); font-size: 14px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- DARK MODE TOGGLE ---------- */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   INTERIOR PAGE PIECES
   Shared by city, service, and combo pages.
   ============================================================ */

/* ---------- PAGE HERO (city/service variant of homepage hero) ---------- */
.page-hero {
  padding: 140px 0 100px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.86) 0%, rgba(10,95,95,0.78) 50%, rgba(37,99,235,0.62) 100%),
    var(--page-hero-bg, url("/images/hero-home.jpg")) center/cover no-repeat;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(800px circle at 80% 20%, rgba(37,99,235,0.42), transparent 60%),
    radial-gradient(600px circle at 10% 90%, rgba(168,85,247,0.22), transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; text-align: center; }

.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.7);
  margin-bottom: 24px; font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; opacity: 0.5; }

.page-hero .eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  max-width: 1000px;
  margin: 0 auto 24px;
}
.page-hero h1 .accent {
  background: linear-gradient(120deg, #fbbf24, #f59e0b 50%, #ea580c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero-sub {
  max-width: 720px; margin: 0 auto 36px;
  color: rgba(255,255,255,0.85); font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}
.page-hero-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.page-hero-actions .btn-ghost {
  background: rgba(255,255,255,0.1); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.page-hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ---------- TRUST STRIP (under hero) ---------- */
.trust-strip {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-strip-item {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 4px 0;
}
.trust-strip-item:last-child { border-right: none; }
.trust-strip-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
  line-height: 1.1;
}
.trust-strip-item span {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .trust-strip-item:nth-child(2) { border-right: none; }
}

/* ---------- CONTENT PROSE ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 2.4em; margin-bottom: 0.6em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.prose h3 {
  margin-top: 2em; margin-bottom: 0.5em;
  font-size: 1.3rem;
}
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); border-bottom: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.prose a:hover { border-bottom-color: var(--accent); }

/* ---------- INTERNAL LINK GRID (cities / services) ---------- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .link-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .link-grid { grid-template-columns: 1fr; } }
.link-grid a {
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--t-fast) var(--ease);
}
.link-grid a::before {
  content: "→";
  color: var(--accent);
  transition: transform var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.link-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(4px);
}
.link-grid a:hover::before { transform: translateX(4px); }

/* ============================================================
   LEGIBILITY GUARANTEES
   Site-wide minimum sizes + contrast. Applied last so they win.
   ============================================================ */

/* Minimum body size on every device — never smaller than 16px */
body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* All paragraphs default readable; .prose nudges up further */
p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }

.prose, .prose p, .prose li {
  font-size: 1.0625rem;        /* 17px desktop */
  line-height: 1.75;
  color: var(--ink-2);
}
.prose strong { color: var(--ink); font-weight: 700; }

/* Trust strip + footer copy that was 13px is now 14-15px and high-contrast */
.trust-strip-item span,
.footer p,
.footer ul a,
.footer-meta {
  font-size: 14px;
  color: var(--ink-2);
}
.footer-meta { color: var(--ink-3); }
.footer p { color: var(--ink-2); }

/* Footer column headers — keep mono but readable */
.footer h4 {
  font-size: 13px;
  color: var(--ink-2);          /* was --ink-3 */
  letter-spacing: 0.12em;
}

/* Eyebrow tags — bigger + bolder */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);            /* was --ink-2 */
}

/* Card body copy must be readable */
.type-card p, .package-card p, .review blockquote, .trust-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Card titles never below 18px */
.type-card h3, .trust-card h3, .package-card h4 {
  font-size: 1.15rem;            /* ~18.4px */
  font-weight: 700;
  color: var(--ink);
}

/* Breadcrumb on dark hero — readable */
.breadcrumb { color: rgba(255,255,255,0.85); font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }

/* Hero subtitle on dark hero — guarantee contrast */
.page-hero-sub, .hero-sub {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

/* Mobile: bump prose + body slightly so it's easier on phones */
@media (max-width: 640px) {
  body { font-size: 16.5px; line-height: 1.7; }
  p { font-size: 16.5px; }
  .prose, .prose p, .prose li { font-size: 17px; line-height: 1.75; }
  .type-card p, .package-card p, .trust-card p { font-size: 15.5px; }
  .footer-meta, .footer p, .footer ul a { font-size: 15px; }
  /* H1/H2 already use clamp() — stay punchy, not tiny */
  h1 { line-height: 1.1; }
  h2 { line-height: 1.2; }
}

/* Tablet sweet spot */
@media (min-width: 641px) and (max-width: 1024px) {
  .prose, .prose p, .prose li { font-size: 1.075rem; }
}

/* Links inside body content — visually distinct, accessible */
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
  font-weight: 600;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}

/* Focus rings for keyboard nav (a11y) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- PRINT ---------- */
@media print {
  .nav, .sticky-cta, .hero-bg, .page-hero { display: none; }
  body { background: white; color: black; }
}
