:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #f5f3ee;
  --color-surface: #fbfaf7;
  --color-surface-offset: #ebe7df;
  --color-ink: #16202a;
  --color-ink-2: #222e3a;
  --color-divider: oklch(0.25 0.02 250 / 0.12);
  --color-border: oklch(0.25 0.02 250 / 0.16);
  --color-text: #16202a;
  --color-text-muted: #59626b;
  --color-text-inverse: #f5f3ee;
  --color-text-inverse-muted: #b9c0c7;
  --color-primary: #b8401a;
  --color-primary-hover: #973212;
  --color-primary-highlight: #f3ddd2;
  --color-water: #1f5f7a;

  --radius-sm: .375rem; --radius-md: .5rem; --radius-lg: .75rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 250 / 0.08);
  --content-narrow: 680px; --content-default: 1000px; --content-wide: 1200px;
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: var(--space-20); }
body { min-height: 100dvh; line-height: 1.6; font-family: var(--font-body); font-size: var(--text-base); color: var(--color-text); background: var(--color-bg); }
img, svg { display: block; max-width: 100%; height: auto; }
input, button { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; }
p, li { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; }
a, button, input { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--color-ink); color: var(--color-text-inverse); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-2); }

.wrap { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--space-6), var(--content-narrow)); margin-inline: auto; }

/* Header */
.topline { background: var(--color-ink); color: var(--color-text-inverse-muted); font-size: var(--text-xs); }
.topline .wrap { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); }
.topline a { color: var(--color-text-inverse); }
.header { position: sticky; top: 0; z-index: 50; background: oklch(0.96 0.006 85 / 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand b { color: var(--color-primary); font-weight: 800; }
.footer .brand b { color: #e2875f; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: var(--space-6); font-size: var(--text-sm); }
.nav a { text-decoration: none; color: var(--color-text-muted); padding-block: var(--space-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-text); }
.call-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); background: var(--color-primary); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--radius-md); padding: var(--space-3) var(--space-5); min-height: 48px; font-size: var(--text-sm); white-space: nowrap; }
.call-btn:hover { background: var(--color-primary-hover); }
.call-btn svg { width: 18px; height: 18px; }
.call-btn--lg { font-size: var(--text-lg); padding: var(--space-4) var(--space-6); min-height: 60px; }
@media (max-width: 860px) { .nav { display: none; } .header .call-btn { display: none; } .topline .hide-sm { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; padding-block: clamp(var(--space-10), 6vw, var(--space-20)); }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4); }
.hero h1 { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.025em; margin-bottom: var(--space-5); }
.hero .lede { font-size: var(--text-lg); color: var(--color-text-muted); line-height: 1.45; margin-bottom: var(--space-8); max-width: 34ch; }
.hero-figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.call-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-3); max-width: 44ch; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-figure { aspect-ratio: 16 / 10; order: -1; } }

/* Situation chooser */
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section--tight { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); margin-bottom: var(--space-8); flex-wrap: wrap; }
h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: var(--text-lg); font-weight: 700; }
.muted { color: var(--color-text-muted); }

.situations { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-4); }
.sit { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.sit--main { background: var(--color-ink); color: var(--color-text-inverse); border-color: transparent; grid-row: span 2; }
.sit--main .muted { color: var(--color-text-inverse-muted); }
.sit .tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-water); }
.sit--main .tag { color: #9fd0e4; }
.sit ul { padding-left: var(--space-5); display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.sit a.more { margin-top: auto; font-weight: 700; font-size: var(--text-sm); text-underline-offset: 4px; }
@media (max-width: 860px) { .situations { grid-template-columns: 1fr; } .sit--main { grid-row: auto; } }

/* Steps / first hour */
.first-hour { background: var(--color-surface-offset); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-10); list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; max-width: none; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); color: var(--color-primary); line-height: 1.2; }
.steps strong { display: block; margin-bottom: var(--space-1); }
.steps p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.split p + p { margin-top: var(--space-4); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Lists of links */
.linklist { list-style: none; border-top: 1px solid var(--color-divider); }
.linklist li { border-bottom: 1px solid var(--color-divider); max-width: none; }
.linklist a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; text-decoration: none; min-height: 56px; }
.linklist a:hover { color: var(--color-primary); }
.linklist .meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-10); }
@media (max-width: 700px) { .cols-2 { grid-template-columns: 1fr; } .cols-2 .linklist + .linklist { border-top: 0; } }

/* Callbox (city) */
.city-hero { position: relative; color: var(--color-text-inverse); }
.city-hero__bg { position: absolute; inset: 0; }
.city-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.city-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.18 0.02 250 / 0.92) 0%, oklch(0.18 0.02 250 / 0.75) 55%, oklch(0.18 0.02 250 / 0.35) 100%); }
.city-hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--space-10); align-items: end; padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.city-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.city-hero p { color: var(--color-text-inverse-muted); }
.crumbs { font-size: var(--text-xs); color: var(--color-text-inverse-muted); margin-bottom: var(--space-6); }
.crumbs a { color: var(--color-text-inverse); }
.callbox { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.callbox .label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.callbox .num a { color: inherit; text-decoration: none; }
.callbox .num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin-block: var(--space-1) var(--space-4); letter-spacing: -0.01em; }
.callbox .call-btn { width: 100%; }
.callbox .call-note { margin-top: var(--space-4); }
@media (max-width: 860px) { .city-hero .wrap { grid-template-columns: 1fr; } }

.do-first { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); }
.do-first ol { padding-left: var(--space-5); display: grid; gap: var(--space-4); }
.do-first li::marker { font-weight: 700; color: var(--color-primary); }
.phones { display: grid; gap: var(--space-2); margin-top: var(--space-6); }
.phone-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--color-bg); border-radius: var(--radius-md); font-size: var(--text-sm); flex-wrap: wrap; }
.phone-row a { font-weight: 700; white-space: nowrap; }
.alert { margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--radius-md); background: var(--color-primary-highlight); font-size: var(--text-sm); }
@media (max-width: 860px) { .do-first { grid-template-columns: 1fr; } }

.local-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); }
.fact { grid-column: span 4; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); }
.fact--wide { grid-column: span 8; background: var(--color-ink); color: var(--color-text-inverse); border-color: transparent; }
.fact--wide p { color: var(--color-text-inverse-muted); }
.fact .big { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; line-height: 1; margin-bottom: var(--space-3); letter-spacing: -0.02em; }
.fact p { font-size: var(--text-sm); }
.fact .src { font-size: var(--text-xs); margin-top: var(--space-3); color: var(--color-text-muted); }
.fact--wide .src { color: var(--color-text-inverse-muted); }
@media (max-width: 860px) { .fact, .fact--wide { grid-column: span 12; } }

/* ZIP check */
.zipcheck { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }
.zipcheck input { flex: 1 1 160px; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.zipcheck button { min-height: 48px; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); background: var(--color-ink); color: var(--color-text-inverse); font-weight: 700; }
.zipcheck button:hover { background: var(--color-ink-2); }
.zip-result { margin-top: var(--space-3); font-size: var(--text-sm); min-height: 1.6em; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary { cursor: pointer; padding: var(--space-5) 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1; color: var(--color-primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--space-5); color: var(--color-text-muted); }
.faq { border-top: 1px solid var(--color-divider); }

/* State page */
.city-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.city-card { display: block; text-decoration: none; padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.city-card:hover { border-color: var(--color-primary); }
.city-card h3 { margin-bottom: var(--space-2); }
.city-card p { font-size: var(--text-sm); color: var(--color-text-muted); }
.city-card .go { display: inline-block; margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }
.city-card--feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: 0; overflow: hidden; }
.city-card--feature img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.city-card--feature > div { padding: var(--space-8) var(--space-6); }
@media (max-width: 700px) { .city-cards { grid-template-columns: 1fr; } .city-card--feature { grid-column: auto; grid-template-columns: 1fr; } }

.page-head { padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8); }
.page-head h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.page-head .crumbs { color: var(--color-text-muted); }
.page-head .crumbs a { color: var(--color-text); }

.sources { font-size: var(--text-xs); color: var(--color-text-muted); }
.sources ul { padding-left: var(--space-5); display: grid; gap: var(--space-1); margin-top: var(--space-2); }

/* Footer */
.footer { background: var(--color-ink); color: var(--color-text-inverse-muted); padding-block: var(--space-16) var(--space-24); font-size: var(--text-sm); }
.footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-10); }
.footer h2 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; color: var(--color-text-inverse); margin-bottom: var(--space-3); letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer a { color: var(--color-text-inverse); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { color: var(--color-text-inverse); margin-bottom: var(--space-4); }
.disclaimer { grid-column: 1 / -1; border-top: 1px solid oklch(1 0 0 / 0.12); padding-top: var(--space-6); font-size: var(--text-xs); line-height: 1.6; }
.disclaimer p { max-width: 110ch; }
.disclaimer p + p { margin-top: var(--space-2); }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 60; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: var(--color-ink); gap: var(--space-3); align-items: center; }
  .callbar .call-btn { flex: 1; }
  .callbar span { color: var(--color-text-inverse-muted); font-size: var(--text-xs); line-height: 1.3; max-width: 12ch; }
  .header { position: static; }
}
.city-hero .callbox p { color: var(--color-text); }
.city-hero .callbox .label, .city-hero .callbox .call-note { color: var(--color-text-muted); }
.city-card .go.muted { color: var(--color-text-muted); font-weight: 500; }
@media (min-width: 861px) { .situations #sewage { grid-column: span 2; } }
.sub { margin-top: var(--space-3); }
.mt-2 { margin-top: var(--space-2); }
.mt-8 { margin-top: var(--space-8); }
.mb-6 { margin-bottom: var(--space-6); }

/* Guides */
.footer .wrap { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > div:first-child { grid-column: 1 / -1; } }
.page-head .lede { max-width: 62ch; font-size: var(--text-lg); color: var(--color-text-muted); }
.page-head .crumbs { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.meta-line { font-size: var(--text-sm); margin-top: var(--space-3); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; padding-bottom: var(--space-16); }
.guide-aside { position: sticky; top: calc(var(--space-20) + var(--space-4)); }
.guide { max-width: 72ch; }
.guide h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; margin: var(--space-10) 0 var(--space-4); }
.guide p, .guide li { line-height: 1.65; }
.guide p + p { margin-top: var(--space-4); }
.guide ul:not(.linklist), .guide ol { padding-left: var(--space-6); display: grid; gap: var(--space-2); margin-block: var(--space-3); }
.guide .sources ul { padding-left: var(--space-5); gap: var(--space-1); }
.guide .faq { margin-top: var(--space-2); }
.quick { background: var(--color-surface); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); }
.quick .label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-2); }
.numbered li::marker { font-weight: 700; color: var(--color-primary); }
.roles { list-style: none; padding-left: 0 !important; }
.roles li { padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.src-line { font-size: var(--text-xs); color: var(--color-text-muted); }
.inline-cta { margin-block: var(--space-10); padding: var(--space-5) var(--space-6); background: var(--color-ink); color: var(--color-text-inverse); border-radius: var(--radius-lg); display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.inline-cta p { color: var(--color-text-inverse); max-width: 40ch; }
.guide-index { padding-bottom: var(--space-16); }
.guide-index > section { padding-block: var(--space-6); max-width: 760px; }
@media (max-width: 860px) { .guide-layout { grid-template-columns: 1fr; } .guide-aside { position: static; } }

/* Follow-up questions and flood data on city pages */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--space-4); }
.qa { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); }
.qa h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; line-height: 1.25; margin-bottom: var(--space-3); }
.qa p { line-height: 1.65; }
.ff { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 3vw, var(--space-10)); }
.ff h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: var(--space-4); }
.ff p + p { margin-top: var(--space-3); }
.ff-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--text-sm); }
.ff-table th, .ff-table td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-divider); }
.ff-table thead th { color: var(--color-text-muted); font-weight: 700; }
.ff-table td { text-align: right; font-weight: 700; }
.ff-table thead th:last-child { text-align: right; }
@media (max-width: 760px) { .ff { grid-template-columns: 1fr; } }
.mt-6 { margin-top: var(--space-6); }
