/* Maryland Water Damage Co. design system
   Slate base, paper surfaces, clay CTAs, moss for decoration only.
   Contrast (WCAG 2.x): slate-900 on clay #DB9048 = 5.5:1 (AA). ink-soft on paper = 7.1:1.
   slate-300 on slate-900 = 8.9:1. clay-deep #C4762F is NEVER behind or used as text. */

/* Self-hosted fonts (SIL OFL 1.1, licences in /assets/fonts/). Latin subset, variable weight axis. No italic face: the site sets no italic text. */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/public-sans-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-sans-3-latin-var.woff2") format("woff2"); }

:root {
  --slate-900: #232A38;
  --slate-700: #354054;
  --slate-300: #C9CDD6;
  --paper: #F3F2EE;
  --white: #FFFFFF;
  --clay: #DB9048;
  --clay-deep: #C4762F;
  --moss: #8A9A82;
  --ink: #232A38;
  --ink-soft: #4A5366;
  --line: #DAD8D0;
  --line-dark: rgba(243, 242, 238, 0.16);

  --font-head: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step--1: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.55rem + 2.5vw, 3.5rem);

  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(35, 42, 56, 0.06), 0 2px 8px rgba(35, 42, 56, 0.06);
  --shadow-2: 0 4px 12px rgba(35, 42, 56, 0.08), 0 14px 32px rgba(35, 42, 56, 0.1);

  --container: 1200px;
  --measure: 70ch;
  --gutter: clamp(1rem, 4vw, 2rem);
  --band-pad: clamp(3.25rem, 7vw, 6rem);
  --header-h: 108px;
  --header-shrink: 0px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 860px) {
  :root { --header-h: 80px; --header-shrink: 10px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
a { color: var(--slate-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--slate-900); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--slate-900); outline-offset: 3px; border-radius: 4px; }
.band--slate :focus-visible, .hero :focus-visible, .site-header :focus-visible,
.site-footer :focus-visible, .cta-final :focus-visible { outline-color: var(--clay); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--clay); color: var(--slate-900); padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-family: var(--font-head); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.grid-12 > * { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
  .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; }
}
.band { padding-block: var(--band-pad); }
.band--white { background: var(--white); }
.band--paper { background: var(--paper); }
.band--slate { background: var(--slate-900); color: var(--paper); }
.band--slate a { color: var(--paper); }
.band--slate a:hover { color: var(--clay); }
.section-head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > :last-child { margin-bottom: 0; }
.eyebrow {
  font-family: var(--font-head); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.9rem;
}
.band--slate .eyebrow, .hero .eyebrow, .cta-final .eyebrow { color: var(--slate-300); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-soft); }
.band--slate .lede, .hero .lede { color: var(--slate-300); }
.prose { max-width: var(--measure); }
.prose p, .prose li { line-height: 1.75; }
.link-arrow { font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.link-arrow::after { content: "\2192"; transition: transform 0.2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: calc(-1 * var(--header-shrink)); z-index: 100; height: var(--header-h); color: var(--paper); }
.site-header::before {
  content: ""; position: absolute; inset: 0; background: var(--slate-900);
  opacity: 0; box-shadow: 0 8px 24px rgba(20, 24, 33, 0.22); transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  position: relative; height: 100%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 62px 44px;
  align-items: center; column-gap: 0.75rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  color: var(--paper); text-decoration: none; transform-origin: left center; transition: transform 0.3s var(--ease);
}
.brand:hover { color: var(--paper); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; line-height: 1.1; letter-spacing: -0.005em; }
.brand-name span { display: block; }
.site-header.is-scrolled .brand { transform: scale(0.94); }
.primary-nav { grid-column: 1 / -1; grid-row: 2; margin-left: -0.75rem; }
.primary-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav li { margin: 0; }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem;
  color: var(--paper); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 8px; height: 2px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.primary-nav a:hover { color: var(--paper); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-call { min-height: 44px; padding: 0.5rem 0.9rem; font-size: 0.9375rem; white-space: nowrap; }
.header-call-label { display: none; }
@media (max-width: 400px) {
  .brand-name { font-size: 0.8125rem; }
  .brand-mark { width: 26px; height: 26px; }
  .header-call { padding: 0.5rem 0.7rem; font-size: 0.84rem; gap: 0.4rem; }
}
@media (min-width: 520px) { .header-call-label { display: inline; } }
@media (min-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; grid-template-rows: 1fr; padding-top: var(--header-shrink); column-gap: 1.5rem; }
  .primary-nav { grid-column: 2; grid-row: 1; margin-left: 0; justify-self: end; }
  .brand-name { font-size: 1.0625rem; }
  .brand-name span { display: inline; }
  .brand-mark { width: 32px; height: 32px; }
  .header-call { font-size: 1rem; padding: 0.6rem 1.1rem; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--slate-900); color: var(--paper);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}
main > .hero:first-child { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem)); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(35, 42, 56, 0.95) 0%, rgba(35, 42, 56, 0.88) 48%, rgba(35, 42, 56, 0.68) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(243, 242, 238, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 242, 238, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 65%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 65%);
}
.media.hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; border-radius: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; }
.hero h1 { max-width: 24ch; }
.hero .lede { max-width: 60ch; }
.hero--compact h1 { max-width: 28ch; }
.rule-clay { display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--clay-deep); margin-bottom: 1.25rem; }
@media (max-width: 700px) { .hero::before { background: rgba(35, 42, 56, 0.9); } }

.trust-strip { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; font-size: var(--step--1); color: var(--paper); }
.trust-strip li { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0; }
.trust-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); flex: none; }
.band--white .trust-strip, .band--paper .trust-strip { color: var(--ink); }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0 0 1.25rem; font-size: var(--step--1); }
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; color: var(--slate-300); white-space: nowrap; flex-shrink: 0; max-width: 100%; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 0.5rem; color: var(--slate-300); }
.breadcrumbs a { color: var(--paper); display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs a:hover { color: var(--clay); }

/* Buttons + CTA blocks */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.4rem; border: 0; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform 0.18s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-clay { background: var(--clay); color: var(--slate-900); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 18px rgba(196, 118, 47, 0.26); }
.btn-clay:hover { color: var(--slate-900); transform: scale(1.03); }
.band--slate a.btn-clay, .band--slate a.btn-clay:hover, .cta-final a.btn-clay, .hero a.btn-clay, .site-header a.btn-clay, .site-footer a.btn-clay { color: var(--slate-900); }
.btn-lg { min-height: 56px; padding: 0.9rem 1.6rem; font-size: 1.0625rem; }
.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0.65rem; margin-top: 2rem; }
.cta-micro { margin: 0; max-width: 52ch; font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.hero .cta-micro, .band--slate .cta-micro, .cta-final .cta-micro { color: var(--slate-300); }

/* Key point + pull quote */
.key-point { max-width: var(--measure); margin: 2rem 0; padding: 1.4rem 1.6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.band--white .key-point { background: var(--paper); }
.key-point > :last-child { margin-bottom: 0; }
.key-point-label {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
  font-family: var(--font-head); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-700);
}
.key-point-label::before { content: ""; width: 1.5rem; height: 3px; border-radius: 2px; background: var(--moss); }
.key-point--dark { background: rgba(243, 242, 238, 0.05); border-color: var(--line-dark); }
.band--slate .key-point--dark { background: rgba(243, 242, 238, 0.05); }
.key-point--dark .key-point-label { color: var(--slate-300); }
.pull-quote { margin: 0; padding-top: 1.25rem; border-top: 3px solid var(--clay-deep); max-width: 30ch; }
.pull-quote p { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; color: var(--slate-900); margin: 0; }

/* Steps (what to do right now) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.steps li { counter-increment: step; margin: 0; padding: 1.35rem 1.35rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 0.8rem;
  border-radius: 50%; background: var(--slate-900); color: var(--paper); font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 0.4em; }
.steps p { margin: 0; font-size: 1.0625rem; line-height: 1.65; }
.band--paper .steps li { background: var(--white); }

/* Region selector */
.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.region-card {
  position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.region-card::before { content: ""; position: absolute; left: 1.5rem; top: 0; width: 2.5rem; height: 3px; background: var(--moss); border-radius: 0 0 2px 2px; }
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.region-count { font-family: var(--font-head); font-weight: 700; font-size: var(--step-3); line-height: 1; color: var(--slate-900); margin-bottom: 1rem; }
.region-count span { display: block; margin-top: 0.4rem; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.region-card h3 { font-size: 1.3125rem; margin-bottom: 0.5em; }
.region-card p { font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.region-card .card-more { margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: var(--step--1); }

/* Cards (services) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.card {
  position: relative; overflow: hidden; padding: 1.6rem 1.5rem 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--clay-deep);
  transform: scaleX(0.16); transform-origin: left; transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card h3 { font-size: 1.1875rem; margin-bottom: 0.45em; }
.card p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.card-link { color: var(--slate-900); text-decoration: none; }
.card-link:hover { color: var(--slate-900); text-decoration: underline; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:focus-within, .region-card:focus-within { outline: 3px solid var(--slate-900); outline-offset: 3px; }
.band--white .card { background: var(--paper); }
.grid-footer { margin-top: 2rem; }

/* Shared building band */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.sb-col h3 { font-size: 1.25rem; padding-top: 1rem; border-top: 3px solid var(--moss); }
.sb-col p, .sb-col li { color: var(--slate-300); line-height: 1.7; }
.sb-col ul { padding-left: 1.1em; }
.readers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.reader { padding: 1.35rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(243, 242, 238, 0.04); }
.reader h3 { font-size: 1.0625rem; margin-bottom: 0.5em; color: var(--paper); }
.reader p { margin: 0; font-size: 1.0625rem; line-height: 1.6; color: var(--slate-300); }
.readers-title { font-family: var(--font-head); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-300); margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; }
.readers-title + .readers { margin-top: 1rem; }

/* Leak vs seepage */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; }
.compare-col { padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare-col h3 { font-size: 1.25rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem; line-height: 1.6; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 3px; border-radius: 2px; background: var(--moss); }

/* Drying process */
.timeline { list-style: none; counter-reset: dry; padding: 0; margin: 0; }
.timeline li { counter-increment: dry; display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.75rem; margin: 0; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline li::before { content: counter(dry, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; color: var(--slate-700); padding-top: 0.2rem; }
.timeline h3 { font-size: 1.125rem; margin-bottom: 0.3em; }
.timeline p { margin: 0; line-height: 1.65; }
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--slate-700); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.sticky-aside { align-self: start; }
@media (min-width: 900px) { .sticky-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* Seasons */
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.season { padding-top: 1rem; border-top: 3px solid var(--moss); }
.season h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.season p { font-size: 1.0625rem; line-height: 1.65; }
.season-next { font-family: var(--font-head); font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); margin: 0; }
.season-next::before { content: "\2192\00a0"; }

/* Housing stock */
.stock-list { display: grid; gap: 1.75rem; }
.stock-item h3 { font-size: 1.1875rem; margin-bottom: 0.35em; }
.stock-item p { margin: 0; max-width: var(--measure); }

/* Process */
.process { list-style: none; counter-reset: proc; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); gap: 1.25rem; }
.process li { counter-increment: proc; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.process li::before { content: counter(proc, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; color: var(--slate-700); margin-bottom: 0.5rem; }
.process h3 { font-size: 1.125rem; margin-bottom: 0.35em; }
.process p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }

/* FAQ accordion (question = h3, answer = paragraph beneath) */
.faq-list { max-width: 54rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { margin: 0; font-size: var(--step-1); font-weight: 500; line-height: 1.35; }
.faq-q button {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; width: 100%; min-height: 56px;
  padding: 1.1rem 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.faq-icon { position: relative; flex: none; width: 1.25rem; height: 1.25rem; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--slate-700); border-radius: 1px; transition: transform 0.25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-q button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 1.4rem; transition: opacity 0.28s var(--ease), transform 0.28s var(--ease); }
.faq-a p { margin: 0; max-width: var(--measure); color: var(--ink-soft); line-height: 1.75; }
.faq-a.is-entering { opacity: 0; transform: translateY(-6px); }
.faq-a[hidden] { padding: 0; }

/* TOC layout (service + community pages) */
.with-toc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.with-toc > .toc, .with-toc > .toc-body { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .with-toc > .toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
  .with-toc > .toc-body { grid-column: 4 / -1; }
}
.toc { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: var(--step--1); }
.toc-title { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-700); margin-bottom: 0.5rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 0.35rem 0.75rem; color: var(--ink-soft); text-decoration: none; border-radius: var(--radius-sm); line-height: 1.35; }
.toc a:hover { color: var(--slate-900); background: var(--paper); }
.toc a.is-active { color: var(--slate-900); font-weight: 600; background: var(--paper); box-shadow: inset 3px 0 0 var(--clay-deep); }

/* Long-form body (service + community pages) */
.toc-body > section { max-width: 46rem; }
.toc-body > section + section { margin-top: clamp(2.75rem, 5vw, 4rem); padding-top: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.toc-body h2 { font-size: var(--step-2); }
.toc-body h3 { font-size: 1.1875rem; margin: 1.75em 0 0.4em; }
.toc-body ul:not([class]), .toc-body ol:not([class]) { padding-left: 1.2em; }
.toc-body li { line-height: 1.7; }
.toc-body .media { margin: 2rem 0; aspect-ratio: 16 / 10; }
.toc-body .timeline { margin: 1.5rem 0; }
.toc-body .pull-quote { margin: 2.25rem 0; }
.toc-body .link-list { margin-top: 0.75rem; }
.toc-body .key-point { background: var(--white); }
.hub-group + .hub-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hub-group h2 { font-size: var(--step-2); }
.hub-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Link lists + service area */
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.link-list li { margin: 0; }
.link-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--slate-900); font-weight: 600;
  transition: transform 0.18s var(--ease);
}
.link-list a:hover { transform: translateY(-2px); }
.service-area { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: baseline; font-size: var(--step--1); color: var(--ink-soft); }
.service-area-label { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-700); }

/* Final CTA band */
.cta-final { background: var(--slate-700); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-final-inner { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 900px) { .cta-final-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.cta-final h2 { max-width: 22ch; }
.cta-final p { color: var(--slate-300); max-width: 56ch; }
.cta-final .cta-block { margin-top: 0; }

/* 404 */
.notfound-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; }
.notfound-card { padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.notfound-card h2 { font-size: var(--step-1); }
.notfound-card .cta-block { margin-top: 1.25rem; }
.notfound-card .link-list a { background: var(--white); }

/* Footer */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: 1rem; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 620px) and (max-width: 959px) { .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.brand--footer { color: var(--paper); margin-bottom: 1rem; }
.brand--footer .brand-name span { display: inline; }
.footer-brand p { max-width: 40ch; line-height: 1.65; }
.nap { display: flex; flex-direction: column; gap: 0.1rem; }
.nap-name { font-family: var(--font-head); font-weight: 700; color: var(--paper); }
.site-footer .nap-phone { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--paper); }
.footer-heading { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-disclosure { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: var(--step--1); line-height: 1.6; }
.footer-disclosure p { max-width: 90ch; margin-bottom: 0.6rem; }
.footer-disclosure strong { color: var(--paper); }

/* Floating call button */
.fab {
  position: fixed; z-index: 1000;
  right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--clay); color: var(--slate-900); box-shadow: 0 8px 24px rgba(20, 24, 33, 0.32);
  opacity: 0; transform: translateY(140%); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.fab svg { width: 26px; height: 26px; }
.fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab.is-visible:hover { transform: scale(1.06); color: var(--slate-900); }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--clay); opacity: 0; pointer-events: none; }
.fab.is-visible::after { animation: fab-ring 1.6s var(--ease) 0.4s 1 both; }
@keyframes fab-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .region-card:hover, .btn-clay:hover, .fab.is-visible:hover, .link-list a:hover { transform: none; }
  .site-header.is-scrolled .brand { transform: none; }
}

/* Areas hub index + region community cards (Batch 6) */
.area-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.area-index-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-size: 1.1875rem; padding-top: 0.9rem; border-top: 3px solid var(--moss); margin-bottom: 0.75rem; }
.area-index-group h3 a {display: inline-flex; align-items: center; min-height: 44px;}
.area-index-count { font-size: var(--step--1); font-weight: 600; color: var(--ink-soft); }
.area-index-group ul { list-style: none; padding: 0; margin: 0; columns: 2 9rem; column-gap: 1.25rem; }
.area-index-group li { margin: 0; break-inside: avoid; }
.area-index-group li a { display: inline-block; padding: 0.3rem 0; min-height: 44px; line-height: 1.4; }
.card-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.9rem; }
.card--compact { padding: 1.1rem 1.15rem 1rem; }
.card--compact h3 { font-size: 1.0625rem; margin-bottom: 0.25em; }
.card--compact p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.service-area { font-family: var(--font-head); font-weight: 600; }

/* Tap targets: short links still get a 44px-wide target (CTA-06) */
.breadcrumbs a, .site-footer li a, .area-index-group li a { min-width: 44px; }
.breadcrumbs a { justify-content: center; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }

/* Page reviewed date (AE-02) */
.page-reviewed { margin: -0.4em 0 1.1em; font-size: var(--step--1); color: var(--ink-soft); }
.hero .page-reviewed { color: var(--slate-300); }
