/* BondTx stylesheet. Palette: near-black ink, silver-blue text on
   dark, red reserved for the Call Now action. */

:root {
  --ink: #0b0c0e;
  --ink-soft: #111316;
  --near-black: #1a1c1f;
  --charcoal: #2a2c31;
  --silver: #9aa1a9;
  --silver-dim: #7a8188;    /* 4.96:1 on ink, WCAG AA */
  --silver-faint: #7d848c;  /* 5.17:1 on ink, WCAG AA */
  --platinum: #dce2e8;
  --paper: #faf9f6;
  --white: #ffffff;
  --red: #c8102e;
  --red-deep: #a30d26;
  --orange: #F28C28;
  --orange-deep: #a35a12;  /* WCAG AA on white/paper */
  --text: #1c1d20;
  --text-muted: #565a61;
  --line: #e4e2dc;
  --tint-bg: #f3f4f2;
  --tint-line: #d7dad6;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-1: 0 1px 2px rgba(20,18,10,0.04), 0 6px 16px rgba(20,18,10,0.06);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.14);
  --max: 1180px;
  --util-h: 40px;
  --nav-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.pull-quote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--red);
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--near-black);
  letter-spacing: 0.01em;
}
.pull-quote cite {
  display: block; margin-top: 10px; font-style: normal;
  font-family: 'Oswald', sans-serif; font-size: 0.76rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}

p { margin: 0 0 1em; }
a {
  color: var(--red-deep);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color .18s ease, text-underline-offset .18s ease;
}
a:hover { text-decoration-color: currentColor; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { a { transition: none; } }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.2em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red);
  color: var(--white); padding: 10px 16px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

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

/* Icons */
.icon {
  width: 1.05em; height: 1.05em;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -0.15em; flex: 0 0 auto;
}
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 0.9em; height: 0.9em; }
.icon-spin { animation: icon-rotate 0.9s linear infinite; }
@keyframes icon-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .icon-spin { animation-duration: 2.4s; }
}

/* Watermark star for flat dark panels */
:root {
  --star-wm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 190'%3E%3Cpath d='M100 0 122.34 69.26 195.11 69.1 136.14 111.74 158.78 180.9 100 138 41.22 180.9 63.86 111.74 4.89 69.1 77.66 69.26Z' fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
}
.wm { position: relative; overflow: hidden; }
.wm::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--star-wm);
  background-repeat: no-repeat;
  background-position: right -60px top 50%;
  background-size: 340px 320px;
}
/* .hero and .page-hero use a photo background instead */
.hero.wm::after, .page-hero.wm::after { content: none; }

/* Scroll-reveal — animates the direct children of a .reveal container
   individually (staggered below) rather than fading the whole block
   in as one flat unit. No HTML changes needed: same .reveal trigger,
   same JS, just retargeted one level down. */
.reveal, .reveal > * {
  opacity: 1; transform: none;
}
.js-reveal-ready .reveal > * {
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.js-reveal-ready .reveal.in-view > * { opacity: 1; transform: none; }
.reveal > *:nth-child(2) { transition-delay: 70ms; }
.reveal > *:nth-child(3) { transition-delay: 140ms; }
.reveal > *:nth-child(4) { transition-delay: 210ms; }
.reveal > *:nth-child(5) { transition-delay: 280ms; }
.reveal > *:nth-child(6) { transition-delay: 350ms; }
.reveal > *:nth-child(7) { transition-delay: 420ms; }
.reveal > *:nth-child(8) { transition-delay: 490ms; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal > * { opacity: 1; transform: none; transition: none; }
}

/* Utility bar */
.utility-bar {
  background: var(--ink-soft);
  color: var(--silver);
  height: var(--util-h);
}
.utility-bar .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.utility-tagline span { margin: 0 6px; color: var(--silver-dim); }
.utility-right { display: flex; align-items: center; gap: 18px; }
.utility-right .u-phone { color: var(--white); font-weight: 600; }
.utility-right a { color: inherit; }

/* Promo strip: light band between the dark header and dark hero */
.promo-strip {
  background: var(--tint-bg);
  border-bottom: 1px solid var(--tint-line);
  padding: 22px 0;
}
.promo-strip .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.promo-copy { display: flex; align-items: flex-start; gap: 16px; max-width: 640px; }
.promo-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--platinum); margin-top: 2px;
}
.promo-icon .icon { width: 20px; height: 20px; }
.promo-strip .hero-eyebrow { margin-bottom: 6px; }
.promo-strip p { margin: 0; color: var(--text); }
.promo-strip .btn .icon { transform: rotate(-90deg); }

/* Header / Nav */
.site-header {
  background: var(--ink);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand img { height: 78px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--platinum);
  font-family: 'Oswald', sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 11px;
  border-radius: 6px;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] {
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  padding: 13px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-outline { background: transparent; border-color: #c2c4c7; color: var(--platinum); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-outline.on-light { border-color: #c7c5be; color: var(--text); }
.btn-outline.on-light:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--near-black); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 1rem; }

.call-btn { white-space: nowrap; }
.call-btn .ico { font-size: 1.05em; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white);
  font-size: 1.6rem; padding: 8px; cursor: pointer;
}

.mobile-call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
}
.mobile-call-bar a { width: 100%; }

.back-to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 110;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  cursor: pointer; box-shadow: var(--shadow-2);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top .icon { transform: rotate(180deg); }
.back-to-top:hover { background: var(--near-black); }
@media (max-width: 760px) {
  .back-to-top { bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* Hero. Plain url() first as a fallback for browsers that don't
   support image-set(); the second declaration overrides it where
   supported, picking WebP over JPEG and (on small screens) a
   900px-wide source instead of the 1600px desktop one. */
.hero {
  background:
    linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
    url("/assets/img/bg-hero-star.jpg") center 30% / cover no-repeat;
  background:
    linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
    image-set(url("/assets/img/bg-hero-star.webp") type("image/webp") 1x, url("/assets/img/bg-hero-star.jpg") type("image/jpeg") 1x)
    center 30% / cover no-repeat;
  color: var(--white);
  padding: 64px 0 56px;
}
@media (max-width: 760px) {
  .hero {
    background:
      linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
      url("/assets/img/bg-hero-star-sm.jpg") center 30% / cover no-repeat;
    background:
      linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
      image-set(url("/assets/img/bg-hero-star-sm.webp") type("image/webp") 1x, url("/assets/img/bg-hero-star-sm.jpg") type("image/jpeg") 1x)
      center 30% / cover no-repeat;
  }
}
.hero .container { display: grid; gap: 40px; grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.hero h1, .hero-lead { text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.hero-eyebrow {
  display: inline-block; color: var(--silver); font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 14px;
}
.hero-eyebrow.on-light { color: var(--text-muted); }
.hero h1 { color: var(--white); }
.hero-lead { color: var(--platinum); font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art {
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; align-items: center; justify-content: center;
}
.hero-art img { width: 100%; max-width: 470px; height: auto; }

.trust-strip {
  background: var(--white);
  color: var(--text);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: flex; flex-wrap: wrap; gap: 28px 44px; justify-content: center;
}
.trust-strip .stat { text-align: center; min-width: 92px; }
.trust-strip .stat b {
  display: block; font-family: 'Oswald', sans-serif; font-size: 2rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink); letter-spacing: 0;
}
.trust-strip .stat span {
  display: block; margin-top: 6px; font-family: 'Oswald', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted);
}

/* Sections */
section { padding: 64px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Flat, not photographic — avoids repeating imagery across the many
   CTA bands this class backs, and no handcuff-cliché imagery per the
   brand guardrails. */
.section-dark {
  background: radial-gradient(circle at 15% -10%, var(--near-black) 0%, var(--ink) 55%);
  color: var(--platinum);
}
.section-dark h2 { color: var(--white); }
.section-dark h3 { color: var(--white); }
.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  display: block; color: var(--text-muted); font-family: 'Oswald', sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 10px;
}
.section-head p { color: var(--text-muted); }
.section-dark .section-head .kicker { color: var(--silver); }
.section-dark .section-head p { color: var(--silver); }

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 0; }
a.card {
  display: block; color: inherit; text-decoration: none;
  transition: border-color .15s ease, transform .12s ease;
}
a.card:hover { border-color: var(--red-deep); transform: translateY(-2px); text-decoration: none; }

/* Reserved for cards tied to a live action (active county, direct CTA) */
.card-primary {
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-3);
}
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--platinum);
  font-family: 'Oswald', sans-serif; font-weight: 600; margin-bottom: 14px;
}

.badge-list { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.badge-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--tint-bg);
  border: 1px solid var(--tint-line);
  border-radius: 8px; padding: 12px 14px;
  font-family: 'Oswald', sans-serif; font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--near-black);
}
.section-dark .badge-list li { color: var(--white); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); }
.badge-list .ico { color: var(--near-black); }
.section-dark .badge-list .ico { color: var(--platinum); }

.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px;
}
.checklist li::before {
  content: "";
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4,13 9,18 20,6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px 13px;
}

.callout {
  background: var(--tint-bg);
  border: 1px solid var(--tint-line);
  border-left: 4px solid var(--ink);
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 20px;
}
.callout p { margin: 0; }
.callout.warn { background: #f5f0ec; border-left-color: var(--red-deep); }
.callout strong { color: var(--near-black); }

.steps { display: grid; gap: 24px; grid-template-columns: repeat(4, 1fr); counter-reset: step; position: relative; }
/* Connector line behind the numerals — only reads correctly at the
   4-in-a-row layout, so it's off again once .steps drops to 2 columns. */
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--silver) 0 6px, transparent 6px 12px);
  opacity: 0.6;
}
@media (max-width: 980px) {
  .steps::before { content: none; }
}
.step { position: relative; padding-top: 8px; }
.step .step-n {
  font-family: 'Oswald', sans-serif; font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px var(--silver); display: block; margin-bottom: 6px;
}

.county-card {
  background: var(--ink); color: var(--white);
  border-radius: var(--radius); padding: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-3);
}
.county-card.is-orange { border-top-color: var(--orange); }
.county-card .status {
  display: inline-block; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  font-family: 'Oswald', sans-serif; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.county-card .status.affiliate { border-color: var(--orange); color: var(--orange); }
.county-card h3 { color: var(--white); }
.county-card p { color: var(--silver); }
.region-tag {
  display: block; margin: 0 0 6px;
  font-family: 'Oswald', sans-serif; font-size: 0.74rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--silver);
}

/* Compact county name pills — used where a region card covers too many
   counties for one-card-per-county to stay readable (e.g. a multi-county
   region). Sits on the .county-card's dark background. */
.county-chip-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.county-chip-list a {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--platinum);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: background .15s ease, border-color .15s ease;
}
.county-chip-list a:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); text-decoration: none; }
.county-chip-list.is-orange a { border-color: rgba(242,140,40,0.5); color: var(--orange); }
.county-chip-list.is-orange a:hover { background: rgba(242,140,40,0.12); border-color: var(--orange); }

/* Texas map: boundaries from US Census cb_500k data (public domain) */
.map-card {
  background: var(--ink); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-3);
  border: 1px solid rgba(255,255,255,0.08);
}
.tx-map {
  display: block; width: 100%; max-width: 620px; height: auto; margin: 0 auto;
}
.tx-map .county {
  fill: var(--charcoal);
  stroke: rgba(220,226,232,0.35);
  stroke-width: 1;
  transition: fill 0.15s ease;
}
.tx-map .county:hover { fill: #3a3d43; }
.tx-map .county.is-active {
  fill: var(--red);
  stroke: var(--white);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.55));
}
.tx-map .county.is-active:hover { fill: var(--red-deep); }
.tx-map .county.is-orange {
  fill: var(--orange);
  stroke: var(--white);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 6px rgba(242,140,40,0.5));
}
.tx-map .county.is-orange:hover { fill: var(--orange-deep); }
.map-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 22px;
}
.map-legend span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--silver);
}
.map-legend .swatch { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.map-legend .swatch.active { background: var(--red); }
.map-legend .swatch.orange { background: var(--orange); }
.map-legend .swatch.other { background: var(--charcoal); border: 1px solid rgba(220,226,232,0.35); }
/* Same legend, used on a light section background (e.g. the county directory,
   as opposed to the dark map-card it was designed for) — --silver text and
   the .swatch.other border are both tuned for dark backgrounds and fail
   contrast on white, so both need a light-background override. */
.map-legend.on-light span { color: var(--text-muted); }
.map-legend.on-light .swatch.other { border-color: var(--line); }

/* County directory */
.county-directory-grid {
  columns: 4 220px;
  column-gap: 24px;
}
.county-directory-grid a, .county-directory-grid span {
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  break-inside: avoid;
  font-size: 0.95rem;
}
.county-directory-grid span { color: var(--text-muted); }
.county-directory-grid .live-county { color: var(--red-deep); font-weight: 600; }
.county-directory-grid .affiliate-county { color: var(--orange-deep); font-weight: 600; }
/* display:block above beats the UA [hidden] rule, so hide explicitly */
.county-directory-grid a[hidden], .county-directory-grid span[hidden] { display: none; }
.directory-letter {
  font-family: 'Oswald', sans-serif; color: var(--text-muted); margin: 20px 0 4px;
  break-inside: avoid;
}
.directory-letter:first-child { margin-top: 0; }

.directory-tools { margin-bottom: 30px; }
.search-input { position: relative; }
.search-input .icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
/* Extra .field- prefix outranks .field input's own padding shorthand */
.field .search-input input { padding-left: 40px; }
.mono-note {
  display: block; margin-top: 8px; font-variant-numeric: tabular-nums;
  font-size: 0.8rem; color: var(--text-muted); min-height: 1.2em;
}

.directory-layout { display: flex; gap: 28px; align-items: flex-start; }
.az-rail {
  position: sticky; top: calc(var(--util-h) + var(--nav-h) + 20px);
  display: flex; flex-direction: column; gap: 2px;
  flex: 0 0 auto; padding-right: 12px; border-right: 1px solid var(--line);
}
.az-rail a {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 0.78rem; color: var(--text-muted);
  border-radius: 4px;
}
.az-rail a:hover, .az-rail a:focus-visible { background: var(--tint-bg); color: var(--red-deep); text-decoration: none; }
.az-rail a[hidden] { display: none; }
/* min-width:0: flex items default to min-width:auto, which for a
   multi-column child is its full unwrapped width */
.county-directory-grid { flex: 1 1 auto; min-width: 0; }

@media (max-width: 760px) {
  .directory-layout { flex-direction: column; }
  .az-rail {
    position: static; flex-direction: row; flex-wrap: wrap;
    border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 14px;
  }
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 18px 4px; font-family: 'Oswald', sans-serif;
  font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565a61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-item .faq-a { padding: 0 4px 18px; color: var(--text-muted); }

/* Forms */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--near-black); }
.field .req { color: var(--red-deep); }
.field input, .field select, .field textarea {
  border: 1px solid #cfcdc6; border-radius: 8px; padding: 12px 14px;
  font-family: inherit; font-size: 1rem; background: var(--paper);
  min-height: 48px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--red-deep); box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}
.field.error input, .field.error select, .field.error textarea { border-color: var(--red-deep); }
.field-error-msg {
  display: none; color: var(--red-deep); font-size: 0.8rem; margin-top: -2px;
}
.field.error .field-error-msg { display: block; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }

.btn[disabled] { opacity: 0.85; cursor: default; transform: none; }
.btn .icon-spin { margin-right: 2px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 30px; }
.contact-info h3 { color: var(--white); }
.contact-info .line { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info .line .ico { color: var(--silver); font-size: 1.1rem; }
.contact-info a { color: var(--platinum); }

/* Footer */
.site-footer { background: var(--ink); color: var(--silver); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--silver); }
.footer-phone { color: var(--white); font-family: 'Oswald', sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; }
.site-footer h4 {
  color: var(--silver-dim); font-family: 'Oswald', sans-serif; font-size: 0.76rem;
  letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--platinum); }
.site-footer a:hover { color: var(--white); }
.footer-office p { color: var(--silver); margin: 0 0 10px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 0.78rem;
}
.footer-disclaimer { font-size: 0.8rem; line-height: 1.7; color: var(--silver-faint); margin: 26px 0 0; max-width: 95ch; }
.footer-legal-links { display: flex; gap: 16px; }
.footer-legal-links a { color: var(--silver-dim); }
.footer-legal-links a:hover { color: var(--platinum); }

/* Interior page hero */
.page-hero {
  background:
    linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
    url("/assets/img/bg-hero-star.jpg") center 30% / cover no-repeat;
  background:
    linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
    image-set(url("/assets/img/bg-hero-star.webp") type("image/webp") 1x, url("/assets/img/bg-hero-star.jpg") type("image/jpeg") 1x)
    center 30% / cover no-repeat;
  color: var(--white); padding: 48px 0 40px;
}
@media (max-width: 760px) {
  .page-hero {
    background:
      linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
      url("/assets/img/bg-hero-star-sm.jpg") center 30% / cover no-repeat;
    background:
      linear-gradient(rgba(11,12,14,.7), rgba(11,12,14,.7)),
      image-set(url("/assets/img/bg-hero-star-sm.webp") type("image/webp") 1x, url("/assets/img/bg-hero-star-sm.jpg") type("image/jpeg") 1x)
      center 30% / cover no-repeat;
  }
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
/* These two titles are long enough to wrap one line fewer once Oswald
   loads than they do in the fallback font — reserving the fallback's
   (taller) height up front means the swap can only shrink into
   already-reserved space instead of visibly shifting page-hero-h1
   content below it. Mobile-only: neither wraps at desktop widths. */
@media (max-width: 760px) {
  #county-directory-h1 { min-height: 74px; }
  #before-you-call-h1 { min-height: 111px; }
  #home-h1 { min-height: 184px; }
}
.page-hero p { color: var(--platinum); max-width: 70ch; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.page-hero .hero-quote {
  margin: 18px 0 0; padding-left: 18px; border-left: 3px solid var(--red);
  font-size: 1.05rem; max-width: 58ch; color: var(--white);
}
/* Contact's real content starts immediately below — a shorter hero
   here reads as direct rather than identical to every other page. */
.page-hero.is-compact { padding: 34px 0 30px; }
.breadcrumb { font-size: 0.82rem; color: var(--silver); margin-bottom: 14px; font-family: 'Oswald', sans-serif; letter-spacing: 0.04em; text-transform: uppercase;}
.breadcrumb a { color: var(--silver); }

.two-col { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; align-items: start; }

table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.simple th { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; padding: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* Full desktop nav needs ~1150px+; below that it switches to the
   compact header instead of cramming. */
@media (max-width: 1140px) {
  .utility-bar .container { flex-wrap: wrap; row-gap: 4px; }
  .main-nav, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  :root { --nav-h: 80px; }
  .brand img { height: 64px; }
}

@media (max-width: 760px) {
  .utility-bar { display: none; }
  /* Mobile call bar covers this; header button would crowd 320–375px */
  .nav-cta .call-btn { display: none; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 74px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .badge-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .county-directory-grid { columns: 2 160px; }
  section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Buttons that sit left-aligned under left-aligned copy on desktop
     read as off-center once columns stack to full width on mobile. */
  .hero-ctas { justify-content: center; }
  .promo-strip .container { justify-content: center; }
  .two-col-cta { display: flex; width: fit-content; margin: 20px auto 0; }
}

/* Mobile text-size floor (Google mobile-usability guidance, ~15px) */
@media (max-width: 760px) {
  .breadcrumb { font-size: 0.9rem; }
  .footer-disclaimer { font-size: 0.9rem; line-height: 1.6; }
  .form-note { font-size: 0.9rem; }
  .field label { font-size: 0.9375rem; }
  .mono-note { font-size: 0.9rem; }
  .badge-list li { font-size: 0.9375rem; }
  .trust-strip .stat span { font-size: 0.8125rem; }
  .county-card .status { font-size: 0.8125rem; }
  .region-tag { font-size: 0.8125rem; }
  .map-legend span { font-size: 0.875rem; }
}

@media (max-width: 480px) {
  .county-directory-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}

.mobile-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink);
  padding: 20px;
  overflow-y: auto;
}
.mobile-drawer.open { display: block; }
.mobile-drawer .close-drawer {
  background: none; border: 0; color: var(--white); font-size: 1.8rem; float: right; cursor: pointer;
}
.mobile-drawer nav { margin-top: 50px; display: flex; flex-direction: column; }
.mobile-drawer a {
  color: var(--platinum); font-family: 'Oswald', sans-serif; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.05rem;
}
.mobile-drawer .btn { margin-top: 24px; }

/* Print */
@media print {
  .utility-bar, .nav-toggle, .mobile-call-bar, .mobile-drawer,
  .hero-ctas, .btn, .skip-link, .reveal { transition: none !important; }
  .mobile-call-bar, .mobile-drawer, .nav-toggle,
  .btn-outline, a.btn:not(.footer-phone) { display: none !important; }
  body { background: #fff; color: #000; }
  .site-header, .hero, .page-hero, .section-dark, .county-card, .site-footer {
    background: #fff !important; color: #000 !important;
    border-color: #ccc !important; box-shadow: none !important;
  }
  .site-header, .hero, .page-hero, .section-dark, .county-card { background-image: none !important; }
  .hero h1, .page-hero h1, .section-dark h2, .county-card h3, .site-footer a { color: #000 !important; }
  .card, .form-card, .contact-info { box-shadow: none !important; border: 1px solid #ccc !important; }
  .contact-info { background: #fff !important; color: #000 !important; }
  .contact-info a, .contact-info strong { color: #000 !important; }
  .js-reveal-ready .reveal > * { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; }
}
