/* ==========================================================================
   Bay Vista Property Management — Design System
   Source of truth: bay-vista-design skill (tokens: colors, typography,
   surfaces). Monochromatic "Light Steel" scale, Arial everywhere, hairline
   borders, restrained radii, understated motion.

   Load order on every page:  bv.css  →  page-specific <style>  →  a11y.css
   ========================================================================== */

/* ── TOKENS · color ─────────────────────────────────────────────────────── */
:root {
  /* Base scale */
  --gray-0: #FFFFFF;
  --gray-1: #F8F9FA;
  --gray-2: #E9ECEF;
  --gray-3: #DEE2E6;
  --gray-4: #CED4DA;
  --gray-5: #ADB5BD; /* signature "steel" — the logo's building blocks */
  --gray-6: #6C757D;
  --gray-7: #495057;
  --gray-8: #343A40;
  --gray-9: #212529;
  --black:  #0B0C0D;

  /* Brand */
  --brand-steel: var(--gray-5);
  --brand-ink: var(--gray-9);

  /* Semantic — text */
  --text-display: var(--gray-9);
  --text-body: var(--gray-7);
  --text-muted: var(--gray-6);
  --text-faint: var(--gray-5);
  --text-inverse: var(--gray-1);

  /* Semantic — surfaces */
  --surface-page: var(--gray-1);
  --surface-card: var(--gray-0);
  --surface-raised: var(--gray-0);
  --surface-sunken: var(--gray-2);
  --surface-soft: #F1F3F5;           /* between gray-1 and gray-2 — soft panel tint */
  --surface-ink: var(--gray-9);      /* dark sections, footer */
  --surface-steel: var(--gray-5);    /* accent panels */

  /* Semantic — lines */
  --border-subtle: var(--gray-2);
  --border-default: var(--gray-3);
  --border-strong: var(--gray-5);
  --border-ink: var(--gray-9);

  /* Interactive */
  --action-primary: var(--gray-9);
  --action-primary-hover: var(--gray-8);
  --action-primary-text: var(--gray-0);
  --action-secondary-border: var(--gray-9);
  --action-ghost-hover: var(--gray-2);
  --focus-ring: var(--gray-5);

  /* Status (desaturated — monochrome-first brand) */
  --status-success: #3D6B4F;
  --status-error: #8C3B3B;
  --status-warning: #8A6D3B;

  /* On-ink translucents (dark sections) */
  --ink-text: rgba(248, 249, 250, 0.65);
  --ink-text-muted: rgba(248, 249, 250, 0.45);
  --ink-text-faint: rgba(248, 249, 250, 0.35);
  --ink-line: rgba(248, 249, 250, 0.12);
  --ink-line-subtle: rgba(248, 249, 250, 0.07);
  --ink-wash: rgba(248, 249, 250, 0.05);
  --ink-status-success: #7FD18B;     /* form status + field validation on ink */
  --ink-status-error: #FF8A8A;
}

/* ── TOKENS · typography ────────────────────────────────────────────────── */
:root {
  --font-sans: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --font-display: Arial, 'Helvetica Neue', Helvetica, sans-serif;

  /* Display = light-feeling wide tracked caps (echoes the wordmark). */
  --display-weight: 400;
  --display-tracking: 0.08em;

  --weight-regular: 400;
  --weight-semibold: 700;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 19px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 60px;
  --text-5xl: 80px;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  --tracking-caps: 0.14em; /* eyebrow / label caps */
}

/* ── TOKENS · spacing, radii, shadows, motion, layout ───────────────────── */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-circle: 50%;

  --shadow-card: 0 1px 2px rgba(33, 37, 41, 0.06), 0 4px 12px rgba(33, 37, 41, 0.06);
  --shadow-raised: 0 2px 6px rgba(33, 37, 41, 0.08), 0 12px 32px rgba(33, 37, 41, 0.10);
  --shadow-overlay: 0 8px 16px rgba(33, 37, 41, 0.12), 0 24px 64px rgba(33, 37, 41, 0.18);

  --border-w: 1px;
  --border-w-strong: 2px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-med: 220ms;

  --container-max: 1200px;
  --content-max: 720px;

  --header-h: 72px;
}

/* ── LEGACY ALIASES (a11y.css and older markup depend on these) ─────────── */
:root {
  --c1: var(--gray-1);
  --c2: var(--gray-5);
  --c3: var(--gray-6);
  --c4: var(--gray-8);
  --c5: var(--gray-9);
  --serif: var(--font-display); /* serif retired — Arial everywhere */
  --sans: var(--font-sans);
}

/* ── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--surface-page);
  color: var(--text-display);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  overflow-x: hidden;
}

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

::selection { background: var(--gray-3); }

/* ── HEADER (fixed; solid white by default, .nav-clear = transparent over
      a photo hero — a page script toggles .nav-clear at the hero boundary) ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--border-w) solid var(--border-subtle);
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out);
}
/* Fixed nav reserves no space — pages start below it. Immersive-hero pages
   (photo behind the nav) override this to 0 in their page CSS. */
body { padding-top: var(--header-h); }
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.85rem;
  color: var(--text-display);
  text-decoration: none;
}
.nav-logo-icon { height: 40px; width: 40px; object-fit: contain; display: block; }
.logo-on-dark { display: none; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: var(--display-weight);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-9);
  white-space: nowrap;
  transition: color var(--dur-med) var(--ease-out);
}
.nav-logo-sub {
  font-size: 0.55rem; font-weight: var(--weight-regular);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  transition: color var(--dur-med) var(--ease-out);
}
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav-links a {
  font-size: 0.9rem; font-weight: var(--weight-regular);
  color: var(--text-muted); text-decoration: none;
  border-bottom: var(--border-w-strong) solid transparent;
  padding-bottom: 2px;
  transition: color var(--dur-med) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--gray-9); }
.nav-links a.active {
  color: var(--gray-9); font-weight: var(--weight-semibold);
  border-bottom-color: var(--gray-9);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-portal {
  font-size: 0.8rem; font-weight: var(--weight-semibold);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: calc(0.7rem - 1px) calc(1.25rem - 1px);
  background: transparent; color: var(--gray-9);
  border: var(--border-w) solid var(--gray-4);
  border-radius: var(--radius-md);
  text-decoration: none; white-space: nowrap;
  transition: color var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-portal:hover { border-color: var(--gray-9); background: var(--action-ghost-hover); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: var(--weight-semibold);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  background: var(--action-primary); color: var(--action-primary-text);
  border: none; border-radius: var(--radius-md); cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-med) var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--action-primary-hover); }
.nav-cta:active { background: var(--gray-7); }

/* Transparent state — over a photo hero */
nav.nav-clear {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
nav.nav-clear .logo-on-light { display: none; }
nav.nav-clear .logo-on-dark { display: block; }
nav.nav-clear .nav-logo-title { color: var(--gray-1); }
nav.nav-clear .nav-logo-sub { color: rgba(248, 249, 250, 0.55); }
nav.nav-clear .nav-toggle span { background: var(--gray-1); }
nav.nav-clear .nav-portal { color: var(--gray-1); border-color: rgba(248, 249, 250, 0.4); }
nav.nav-clear .nav-portal:hover { border-color: var(--gray-1); background: rgba(248, 249, 250, 0.08); }
nav.nav-clear .nav-cta { background: var(--gray-0); color: var(--gray-9); }
nav.nav-clear .nav-cta:hover { background: var(--gray-2); }
nav.nav-clear .nav-cta:active { background: var(--gray-3); }
@media (min-width: 961px) {
  nav.nav-clear .nav-links a { color: rgba(248, 249, 250, 0.65); }
  nav.nav-clear .nav-links a:hover { color: var(--gray-1); }
  nav.nav-clear .nav-links a.active { color: var(--gray-1); border-bottom-color: var(--gray-1); }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gray-9);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
  transform-origin: center;
}
nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── TYPE PATTERNS ──────────────────────────────────────────────────────── */
/* Eyebrow label — small caps marker with hairline rule (brand motif) */
.section-label {
  font-size: 0.72rem; font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--border-strong); display: block; }
.section-label.center { justify-content: center; }
.section-label.center::after { content: ''; width: 24px; height: 1px; background: var(--border-strong); display: block; }
.section-label.on-dark { color: var(--ink-text-faint); }
.section-label.on-dark::before, .section-label.center.on-dark::after { background: var(--ink-line); }

/* Display headline — Arial, regular weight, wide tracked caps (wordmark echo) */
.section-headline {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-display);
}
/* Single-color display titles sitewide (brand standard 2026-08-09):
   any em inside display type stays upright and inherits its color. */
.section-headline em { font-style: normal; color: inherit; }
.on-dark .section-headline, .section-headline.on-dark { color: var(--text-inverse); }
.on-dark .section-headline em, .section-headline.on-dark em { color: inherit; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-inverse {
  font-family: var(--font-sans); font-size: 1rem;
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none;
  letter-spacing: 0.01em;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
/* Primary — ink */
.btn-primary {
  font-weight: var(--weight-semibold);
  background: var(--action-primary); color: var(--action-primary-text);
  border: none;
}
.btn-primary:hover { background: var(--action-primary-hover); }
.btn-primary:active { background: var(--gray-7); }
/* Secondary — 2px ink border */
.btn-outline {
  font-weight: var(--weight-regular);
  background: transparent; color: var(--gray-9);
  border: var(--border-w-strong) solid var(--action-secondary-border);
  padding: calc(0.95rem - 1px) calc(1.9rem - 1px);
}
.btn-outline:hover { background: var(--action-ghost-hover); }
.btn-outline:active { background: var(--gray-3); }
/* On-ink secondary */
.on-dark .btn-outline, .btn-outline.on-dark {
  color: var(--gray-1); border-color: rgba(248, 249, 250, 0.4);
}
.on-dark .btn-outline:hover, .btn-outline.on-dark:hover {
  background: var(--ink-wash); border-color: var(--gray-1);
}
/* Inverse — white on ink surfaces */
.btn-inverse {
  font-weight: var(--weight-semibold);
  background: var(--gray-0); color: var(--gray-9);
  border: none;
}
.btn-inverse:hover { background: var(--gray-2); }
.btn-inverse:active { background: var(--gray-3); }

/* ── CARD ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: var(--border-w) solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* ── FORMS (on ink surfaces — CTA bands, contact panels) ────────────────── */
.contact-form {
  text-align: left;
  background: var(--ink-wash);
  border: var(--border-w) solid var(--ink-line-subtle);
  padding: 2.5rem; border-radius: var(--radius-lg);
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cf-group { display: flex; flex-direction: column; gap: 0.4rem; }
.cf-group label {
  font-size: 0.7rem; font-weight: var(--weight-regular); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-text-muted);
}
.cf-group input, .cf-group select, .cf-group textarea {
  background: rgba(248, 249, 250, 0.06);
  border: var(--border-w) solid rgba(248, 249, 250, 0.14);
  border-radius: var(--radius-md); padding: 0.85rem 1rem;
  font-family: var(--font-sans); font-size: 0.875rem; color: var(--gray-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.cf-group select option { background: var(--gray-9); color: var(--gray-1); }
.cf-group input:focus, .cf-group select:focus, .cf-group textarea:focus {
  border-color: var(--focus-ring);
}
.cf-group input::placeholder, .cf-group textarea::placeholder { color: rgba(248, 249, 250, 0.25); }
.cf-group textarea { resize: vertical; }
.cf-full { margin-bottom: 1rem; }

/* Validation state (driven by assets/js/forms.js, shared by contact + CTA forms) */
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-error {
  margin: 0; font-size: 0.75rem; line-height: 1.4;
  color: var(--ink-status-error);
}
.field-error:empty { display: none; }
form[data-form] input[aria-invalid="true"],
form[data-form] select[aria-invalid="true"],
form[data-form] textarea[aria-invalid="true"] {
  border-color: var(--ink-status-error);
}
.form-status {
  margin: 1rem 0 0; font-size: 0.85rem; line-height: 1.5;
  color: var(--ink-status-success);
}
.form-status.is-error { color: var(--ink-status-error); }
.form-status:empty { display: none; }
.cf-submit {
  width: 100%; padding: 1rem;
  background: var(--gray-0); color: var(--gray-9);
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: var(--weight-semibold);
  cursor: pointer; margin-top: 0.5rem;
  transition: background var(--dur-fast) var(--ease-out);
}
.cf-submit:hover { background: var(--gray-2); }
.cf-submit:active { background: var(--gray-3); }

/* Turnstile: stretch the injected widget to the form's full width */
.cf-turnstile, .cf-turnstile iframe { width: 100% !important; }

/* ── ADDRESS AUTOCOMPLETE (dropdown under address inputs) ───────────────── */
.addr-wrap { position: relative; }
.addr-wrap > input { width: 100%; }
.addr-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: var(--surface-raised);
  border: var(--border-w) solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  list-style: none; margin: 0; padding: 0.25rem;
  max-height: 260px; overflow-y: auto;
  text-align: left;
}
.addr-option {
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem; color: var(--text-display);
  border-radius: var(--radius-sm);
  cursor: pointer; line-height: 1.4;
}
.addr-option:hover,
.addr-option[aria-selected="true"] { background: var(--gray-2); }

/* ── FOOTER (ink) ───────────────────────────────────────────────────────── */
footer {
  background: var(--surface-ink);
  padding: 4rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  font-size: 0.85rem;
  color: var(--ink-text);
  line-height: 1.7;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: var(--border-w) solid var(--ink-line-subtle);
}
.footer-logo-image {
  display: block;
  height: 72px; width: auto;
  margin: 0 0 1.5rem;
}
.footer-tagline {
  font-size: 0.85rem; line-height: 1.7;
  color: var(--ink-text);
  max-width: 340px;
  margin: 0 0 1.5rem;
}
.footer-affiliations {
  display: flex; flex-direction: row; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.affiliation-logo { height: 52px; width: auto; display: block; }
.footer-col-heading {
  font-size: 0.7rem; font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--ink-text-faint);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.55rem;
  font-size: 0.85rem;
}
.footer-links a, .footer-contact a {
  color: var(--ink-text); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gray-1); }
.footer-contact { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.85rem; }
.footer-address { color: var(--ink-text-muted); line-height: 1.6; }
/* Areas we serve: county links with hover/tap city flyouts (sitewide 2026-08-02;
   moved here from the city/county landing pages' page-scoped CSS) */
.footer-counties .county { position: relative; width: fit-content; }
.county-name {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-text); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.county-name:hover { color: var(--gray-1); }
.county-name::after { content: '\203A'; color: var(--ink-text-faint); }
/* Solid, high-contrast panel: white card on the ink footer */
.county-flyout {
  display: none; position: absolute; left: calc(100% + 0.4rem); top: -0.65rem;
  min-width: 150px; padding: 0.85rem 1.15rem; list-style: none;
  background: var(--gray-0); border: var(--border-w) solid var(--border-default);
  border-radius: var(--radius-md); z-index: 5;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  flex-direction: column; gap: 0.55rem;
}
/* Invisible strip bridging the gap between the county name and the panel,
   so the cursor never leaves :hover on the way to a city link */
@media (min-width: 961px) {
  .county-flyout::before {
    content: ''; position: absolute;
    left: -0.6rem; top: 0; bottom: 0; width: 0.6rem;
  }
}
.county:hover .county-flyout, .county.open .county-flyout,
.county:focus-within .county-flyout { display: flex; }
.county-flyout a { color: var(--gray-8); }
.county-flyout a:hover { color: var(--gray-9); text-decoration: underline; }
.footer-bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  justify-content: center; text-align: center;
  font-size: 0.76rem; color: var(--ink-text-faint);
}
.footer-bottom-sep { color: var(--ink-line); }
.footer-bottom a {
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-bottom a:hover { color: var(--gray-1); }

/* ── MOTION ─────────────────────────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE CHROME ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Condensed nav: hamburger far left, logo beside it, buttons hug right */
  nav { padding: 0 1.25rem; justify-content: flex-start; }
  .nav-toggle { display: flex; order: -2; margin-left: 0; margin-right: 0.5rem; }
  .nav-logo { order: -1; gap: 0.6rem; }
  .nav-actions { gap: 0.5rem; margin-left: auto; }
  .nav-cta { font-size: 0.68rem; padding: 0.55rem 0.75rem; margin-left: 0; }
  .nav-portal { font-size: 0.68rem; padding: calc(0.55rem - 1px) calc(0.75rem - 1px); }
  .nav-logo-icon { height: 34px; width: 34px; }
  .nav-logo-title { font-size: 0.95rem; letter-spacing: 0.09em; }
  .nav-logo-sub { font-size: 0.48rem; letter-spacing: 0.18em; }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gray-0);
    border-bottom: 0;
    padding: 0 1.25rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-med) var(--ease-out), padding var(--dur-med) var(--ease-out);
  }
  nav.is-open .nav-links {
    max-height: 320px;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: var(--border-w) solid var(--border-subtle);
  }
  .nav-links a {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--text-body);
    border-bottom: var(--border-w) solid var(--border-subtle);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active { color: var(--gray-9); border-bottom-color: var(--border-subtle); }
  /* 16px inputs — anything smaller makes iOS Safari zoom into the field on tap */
  .cf-group input, .cf-group select, .cf-group textarea { font-size: 1rem; }
  footer { padding: 3rem 1.25rem 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; align-items: center; text-align: center; }
  .footer-bottom-sep { display: none; }
  .county-flyout {
    position: static; min-width: 0; margin: 0.5rem 0 0.35rem;
    box-shadow: none;
  }
  .cf-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* Phones: mark-only logo frees room for both action buttons */
  .nav-logo-text { display: none; }
}

/* ── FORM CONSENT MICROCOPY (SMS/TCPA disclosure under lead-form submits; ink surfaces) ── */
.form-consent {
  margin-top: 1rem;
  font-size: 0.72rem; line-height: 1.6;
  color: var(--ink-text-muted);
}
.form-consent a {
  color: inherit; text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent a:hover { color: var(--ink-text); }
