/* ============================================================
   Calvert Septic — "Chesapeake Field Manual"
   Design tokens, base, layout, components.
   Zero network dependencies: local system font stacks only.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --ink: #14241d;            /* body text */
  --muted: #5c6b63;          /* secondary text on light */
  --evergreen-950: #0f241b;  /* darkest section bg */
  --evergreen-900: #163528;  /* dark section bg */
  --evergreen-800: #1e4533;  /* primary button */
  --evergreen-700: #2a5c44;
  --evergreen-600: #37785a;
  --evergreen-100: #dce9e1;
  --bay-900: #173c50;
  --bay-700: #2a5f7c;
  --bay-600: #367697;
  --bay-200: #cfe3ec;
  --sand-50: #faf7ef;        /* page background */
  --sand-100: #f3eee1;       /* card background */
  --sand-200: #e8dfc9;
  --sand-300: #d6c8a8;
  --clay-700: #8f3f18;       /* text-safe clay */
  --clay-600: #a64c20;       /* action accent (passes WCAG on white) */
  --clay-500: #c05f2c;       /* decorative clay */
  --clay-100: #f2ddd0;
  --white: #ffffff;
  --text-on-dark: #f3eee1;
  --muted-on-dark: #b9c6be;
  --focus-ring: #b3541f;
  --focus-ring-dark: #ffc98f;

  /* Typography */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino,
    "Book Antiqua", "Times New Roman", serif;
  --font-sans: "Avenir Next", Avenir, "Century Gothic", Futura, "Trebuchet MS",
    "Segoe UI", Verdana, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas,
    monospace;

  --fs-hero: clamp(2.1rem, 5.4vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 3.4vw, 2.25rem);
  --fs-h3: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.92rem;
  --fs-micro: 0.78rem;

  --lh-tight: 1.15;
  --lh-body: 1.62;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-pad: clamp(3.25rem, 7vw, 6rem);

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;

  /* Borders */
  --border: 1px solid var(--sand-300);
  --border-strong: 1.5px solid var(--sand-300);
  --dash: 1.5px dashed var(--clay-500);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 36, 27, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 36, 27, 0.12);
  --shadow-lg: 0 18px 44px rgba(15, 36, 27, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 260ms;

  /* Containers */
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Defensive: layout itself must fit, but never allow a horizontal scroll. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--sand-50);
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  margin: 0 0 var(--sp-3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--sp-4);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--evergreen-700);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--evergreen-900);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--clay-500);
  color: var(--white);
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--evergreen-900);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: var(--text-on-dark);
}

/* Visually hidden (kept for label/screen-reader text) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--sand-100);
  border-block: 1px solid var(--sand-200);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-7);
}

.section-head h2 {
  margin-bottom: var(--sp-4);
}

.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 44rem;
}

.section-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 44rem;
}

/* Kicker — mono field-note label */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: var(--sp-3);
}

.kicker::before {
  content: "// ";
  color: var(--clay-500);
}

.kicker-dark {
  color: var(--clay-100);
}

.kicker-dark::before {
  color: var(--clay-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--evergreen-800);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--evergreen-900);
  color: var(--white);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.btn-ghost {
  border-color: rgba(243, 238, 225, 0.65);
  color: var(--text-on-dark);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-on-dark);
  background: rgba(243, 238, 225, 0.08);
  color: var(--text-on-dark);
}

/* Header CTA uses the clay accent on light background */
.btn-cta {
  background: var(--clay-600);
  color: var(--white);
}

.btn-cta:hover {
  background: var(--clay-700);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-200);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 72px;
  padding-block: var(--sp-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--evergreen-900);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.desktop-nav {
  display: none;
}

.desktop-nav ul,
.mobile-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
}

.desktop-nav a:hover {
  background: var(--sand-100);
  color: var(--evergreen-900);
}

.desktop-nav a[aria-current="page"] {
  color: var(--evergreen-800);
  box-shadow: inset 0 -2px 0 var(--clay-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Mobile menu — native <details>, keyboard-accessible without JS */
.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  background: var(--white);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-glyph {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.menu-glyph::before,
.menu-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  top: 5px;
  transition: transform var(--dur-fast) var(--ease), top var(--dur-fast) var(--ease);
}

.menu-glyph::after {
  top: 11px;
}

.mobile-menu[open] .menu-glyph::before {
  top: 8px;
  transform: rotate(45deg);
}

.mobile-menu[open] .menu-glyph::after {
  top: 8px;
  transform: rotate(-45deg);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-2);
}

.mobile-menu ul {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-1);
}

.mobile-menu a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--sand-100);
}

.mobile-menu a[aria-current="page"] {
  color: var(--evergreen-800);
  background: var(--sand-100);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--evergreen-950);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero .contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text-on-dark);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.25rem, 7vw, 6rem);
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-5);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted-on-dark);
  max-width: 38rem;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.hero-note {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin: 0;
}

/* Field-manual plate */
.plate {
  margin: 0;
  background: var(--sand-50);
  border: 1px solid var(--sand-300);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.plate-svg {
  width: 100%;
  height: auto;
}

.plate figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  padding: var(--sp-4);
  border-top: 1px solid var(--sand-200);
  background: var(--sand-100);
}

/* ---------- Lead form ---------- */
.lead-section {
  padding-block: var(--section-pad);
  background: var(--white);
  border-bottom: 1px solid var(--sand-200);
  scroll-margin-top: 6rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
}

.lead-intro {
  max-width: 34rem;
}

.lead-intro-text {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead-points {
  list-style: none;
  margin: var(--sp-6) 0;
  display: grid;
  gap: var(--sp-4);
}

.lead-points li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.lead-point-mark {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--clay-700);
  border: 1.5px dashed var(--clay-500);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.4rem;
  flex: none;
  margin-top: 0.15rem;
}

.lead-privacy {
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--sand-300);
  padding-left: var(--sp-4);
}

.lead-form {
  background: var(--sand-50);
  border: 1px solid var(--sand-200);
  border-top: 4px solid var(--evergreen-800);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.field label {
  font-weight: 700;
  font-size: var(--fs-small);
}

.req {
  color: var(--clay-700);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--sand-300);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--evergreen-600);
  box-shadow: 0 0 0 3px rgba(55, 120, 90, 0.25);
}

.field-hint {
  font-size: var(--fs-small);
  color: var(--muted);
}

.field-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-block: var(--sp-5);
}

.field-consent input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: 0.2rem;
  accent-color: var(--evergreen-800);
}

.field-consent label {
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.form-microcopy {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin: var(--sp-4) 0 0;
  font-weight: 700;
  font-size: var(--fs-small);
  min-height: 1.4em;
}

.form-status.is-error {
  color: var(--clay-700);
}

.form-status.is-success {
  color: var(--evergreen-700);
}

/* Honeypot — offscreen, hidden from AT */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Signs grid ---------- */
.sign-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.sign-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--sand-300);
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.sign-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.sign-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.sign-card::before {
  content: "SIGN";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--clay-700);
  background: var(--clay-100);
  border-radius: var(--r-pill);
  padding: 0.15rem 0.5rem;
  margin-bottom: var(--sp-3);
}

/* ---------- Repair vs replace ---------- */
.rv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.rv-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.rv-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--sand-200);
}

.rv-card-warn h3 {
  color: var(--clay-700);
}

.rv-card ul {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.rv-card li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
}

.rv-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 2px;
  background: var(--evergreen-600);
}

.rv-card-warn li::before {
  background: var(--clay-500);
  border-radius: 50%;
}

.rv-note {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--sand-50);
  border: 1.5px dashed var(--clay-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin: 0;
  font-size: var(--fs-small);
}

.rv-note .icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--clay-600);
  margin-top: 0.1rem;
}

/* ---------- Service grid ---------- */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  min-height: 132px;
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.service-card:hover {
  border-color: var(--evergreen-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--ink);
}

.service-label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--evergreen-900);
}

.service-card:hover .service-label {
  color: var(--evergreen-800);
}

.service-text {
  font-size: var(--fs-small);
  color: var(--muted);
}

.service-arrow {
  margin-top: auto;
  color: var(--clay-600);
  align-self: flex-end;
}

.service-arrow .icon {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--white);
  background: var(--evergreen-800);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.5rem;
  flex: none;
  margin-top: 0.15rem;
}

.step-body h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.step-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- Towns ---------- */
.town-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.town {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.town .icon {
  width: 1rem;
  height: 1rem;
  color: var(--clay-600);
  flex: none;
}

/* ---------- Context notes ---------- */
.note-list {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.note-item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--bay-700);
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.note-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.note-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.reg-panel {
  background: var(--sand-50);
  border: 1.5px dashed var(--bay-700);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}

.reg-panel h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay-700);
  margin-bottom: var(--sp-4);
}

.reg-list {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.reg-list a {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 600;
  font-size: var(--fs-small);
}

.reg-panel p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--sp-3);
}

.faq {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--clay-600);
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq summary h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
}

.faq p {
  margin: 0;
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- Disclosure ---------- */
.disclosure-body p {
  color: var(--muted);
}

.disclosure-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--evergreen-950);
  color: var(--muted-on-dark);
  padding-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-1);
}

.footer-brand-sub {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

.footer-disclosure {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  max-width: 30rem;
  margin-top: var(--sp-3);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay-200);
  margin-bottom: var(--sp-4);
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.footer-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  margin-top: var(--sp-4);
  max-width: 24rem;
}

.footer-legal {
  border-top: 1px solid rgba(243, 238, 225, 0.14);
  padding-block: var(--sp-5);
}

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-legal p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-2);
}

.footer-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: var(--fs-small);
}

.footer-links a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Service pages ---------- */
/* Compact hero — same field-manual direction, tighter vertical rhythm. */
.service-hero .hero-grid {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2.5rem, 5.5vw, 4rem);
}

.service-hero h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.55rem);
  max-width: 22ch;
}

.service-hero .hero-lead {
  font-size: 1.05rem;
  margin-bottom: var(--sp-5);
}

.service-hero .hero-actions {
  margin-bottom: var(--sp-5);
}

/* Breadcrumbs — light text over the dark hero. */
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-small);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted-on-dark);
  opacity: 0.7;
}

.service-hero .breadcrumbs a {
  color: var(--muted-on-dark);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.service-hero .breadcrumbs a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-hero .breadcrumbs [aria-current="page"] {
  color: var(--text-on-dark);
}

/* Page-specific field-note panel (light card inside the dark hero). */
.field-note {
  align-self: start;
  background: var(--sand-50);
  border: 1.5px dashed var(--clay-500);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5);
}

.field-note-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-700);
  margin-bottom: var(--sp-2);
}

.field-note-label::before {
  content: "// ";
  color: var(--clay-500);
}

.field-note h2 {
  font-size: 1.2rem;
  margin-bottom: var(--sp-2);
}

.field-note p:last-child {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Safety callout — alert panel. */
.callout {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--sand-50);
  border: 1.5px dashed var(--clay-500);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}

.callout > .icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  color: var(--clay-600);
  margin-top: 0.1rem;
}

.callout h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: var(--sp-2);
}

.callout p {
  font-size: var(--fs-small);
  color: var(--muted);
}

.safe-list {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.safe-list li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
  color: var(--muted);
}

.safe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--clay-500);
}

/* Diagnostic table — field-manual ledger. */
.table-wrap {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.diag-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--evergreen-800);
  background: var(--sand-100);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--sand-200);
}

.diag-table td {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--sand-200);
  vertical-align: top;
  color: var(--ink);
}

.diag-table tbody tr:nth-child(even) {
  background: var(--sand-50);
}

.diag-table tbody tr:hover {
  background: var(--sand-100);
}

.diag-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--sand-300);
  padding-left: var(--sp-4);
}

/* Evaluation checklist. */
.check-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.check-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-5);
}

.check-list .icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--evergreen-600);
  margin-top: 0.15rem;
}

.check-list h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  margin-bottom: var(--sp-1);
}

.check-list p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Cost-factor panel. */
.cost-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}

.cost-item {
  background: var(--white);
  border: 1px solid var(--sand-200);
  border-left: 4px solid var(--clay-500);
  border-radius: var(--r-sm) var(--r-md) var(--r-md) var(--r-sm);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-5);
}

.cost-item h3 {
  font-size: 1.02rem;
  margin-bottom: var(--sp-2);
}

.cost-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.cost-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--sand-300);
  padding-left: var(--sp-4);
}

/* Permit / official-guidance points. */
.reg-points {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.reg-points li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
  color: var(--muted);
}

.reg-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: var(--bay-700);
}

/* Related-service cards. */
.related-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-height: 88px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-4) var(--sp-5);
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.related-card:hover {
  border-color: var(--evergreen-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: var(--ink);
}

.related-label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--evergreen-900);
}

.related-card:hover .related-label {
  color: var(--evergreen-800);
}

.related-text {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Service-area town links. */
.town-link {
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.town-link:hover {
  border-color: var(--evergreen-600);
  color: var(--evergreen-900);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
}

/* ---------- Motion ---------- */
.hero-copy > * {
  animation: rise 520ms var(--ease) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 70ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 140ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 210ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 40rem) {
  .sign-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
  }

  .form-microcopy {
    max-width: 22rem;
    text-align: right;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .desktop-nav {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .lead-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .rv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: var(--sp-7);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .sign-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small phones: drop the secondary brand microcopy so brand + Menu fit. */
@media (max-width: 39.99rem) {
  .brand-sub {
    display: none;
  }

  /* Diagnostic table stacks into labeled rows — no horizontal scroll. */
  .diag-table,
  .diag-table tbody,
  .diag-table tr,
  .diag-table td {
    display: block;
    width: 100%;
  }

  .diag-table thead {
    display: none;
  }

  .diag-table tr {
    padding: var(--sp-3) var(--sp-4);
  }

  .diag-table tr + tr {
    border-top: 1px solid var(--sand-200);
  }

  .diag-table td {
    border-top: none;
    padding: var(--sp-2) 0;
  }

  .diag-table td::before {
    content: attr(data-label) ": ";
    display: inline;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--evergreen-800);
    font-weight: 700;
    margin-right: var(--sp-2);
  }
}

/* Sticky bottom CTA — mobile only, thumb-friendly, never covers the form */
@media (max-width: 51.99rem) {
  /* Hide the redundant header CTA (kept in the HTML; the sticky CTA and
     the form cover the same call-to-action on phones). Brand + Menu fit
     on one row and the header stays around 65px tall. */
  .header-cta {
    display: none;
  }

  .header-inner {
    min-height: 64px; /* + 1px header border = ~65px total */
  }

  /* Mobile menu links and footer links stay comfortable tap targets. */
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    min-height: 56px;
    padding: 0.75rem 1.25rem;
    background: var(--clay-600);
    color: var(--white);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    text-decoration: none;
    animation: rise 420ms var(--ease) 320ms both;
  }

  .sticky-cta:hover {
    background: var(--clay-700);
    color: var(--white);
  }

  .sticky-cta-arrow .icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  /* Hide while the lead form itself is on screen (added by JS). */
  .sticky-cta.is-hidden {
    display: none;
  }

  /* Covering the form is worse than covering the footer. */
  .lead-section {
    scroll-margin-bottom: 80px;
  }
}
