/* ============================================================================
   Target Pest Control — styles.css
   Design system: "Precision Protection" — industrial-utilitarian, navy + flame,
   target-ring/reticle motif. Tokens first; component vocabulary per the factory
   skeleton; mobile-first ladder at 1024/768/600/480/375.
   Fonts: Barlow Condensed (display) + Public Sans (body) — loaded async per head.
   ============================================================================ */

/* ── Tokens ── */
:root {
  /* color */
  --navy-950: #0b1422;
  --navy-900: #0f1a2c;   /* deepest surfaces */
  --navy-800: #1e263f;   /* primary brand navy (live-site carryover) */
  --navy-700: #123056;
  --navy-100: #dde4ee;
  --steel:    #87a6d6;   /* muted steel-blue, dark-surface secondary text */
  --flame:    #fd5521;   /* brand accent (live-site carryover) */
  --flame-deep: #d8430f;
  --paper:    #fafaf7;   /* warm field-paper */
  --paper-dim:#f1f1ec;
  --ink:      #182234;
  --ink-soft: #46536b;
  --line:     #d8dde6;
  --ok:       #2e7d4f;

  /* type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;

  /* scale */
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 1.75rem;
  --space-lg: 3rem;  --space-xl: 5rem;
  --radius: 6px;
  --shadow-card: 0 10px 28px rgba(15, 26, 44, .10);
  --shadow-lift: 0 16px 36px rgba(15, 26, 44, .16);
  --ease-lock: cubic-bezier(.22, .9, .3, 1);
  --header-h: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── A11y ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--flame); color: #fff; padding: .6rem 1.2rem; z-index: 200;
  font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

/* ── Layout ── */
.container { width: min(1140px, 92%); margin-inline: auto; }
.container-narrow { width: min(780px, 92%); margin-inline: auto; }
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--paper-dim); }
.section-dark {
  background:
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.5px) 0 0 / 26px 26px,
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.section-dark .section-title, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-intro, .section-dark p { color: var(--navy-100); }

/* ── Type ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--navy-800);
  letter-spacing: .01em;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); text-transform: uppercase; }
h1 em { font-style: normal; color: var(--flame); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
a { color: var(--flame-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--flame); }
strong { color: var(--ink); }
/* On dark surfaces the body strong color is invisible — keep emphasis legible */
.section-dark strong, .cta-strip strong, .hero strong, .site-footer strong { color: #fff; }

/* Eyebrow with target-ring bullet (the signature) */
.section-eyebrow {
  display: inline-flex; align-items: flex-start; gap: .55rem;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .85rem; color: var(--flame-deep); margin-bottom: .75rem;
}
.section-dark .section-eyebrow { color: var(--flame); }
.section-eyebrow::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 1.5px solid currentColor; margin-top: 4px; /* rides the first line when the text wraps */
  background: radial-gradient(circle, currentColor 0 2.5px, transparent 3px);
}
.section-title { margin-bottom: .6rem; }
.section-intro { font-size: 1.08rem; max-width: 62ch; margin-bottom: var(--space-md); }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* Reticle divider — hairline with center tick */
.divider-reticle {
  border: 0; height: 1px; margin: var(--space-lg) auto; width: min(420px, 70%);
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  position: relative; overflow: visible;
}
.divider-reticle::after {
  content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 9px;
  background: var(--flame); transform: translateX(-50%);
}

/* ── Buttons (48px tap targets) ── */
.btn-primary, .btn-dark, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease-lock), background .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover { background: var(--flame-deep); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.section-dark .btn-outline, .hero .btn-outline { color: #fff; border-color: #fff; }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { background: #fff; color: var(--navy-900); }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: var(--space-md); }
.center .cta-row { justify-content: center; }

/* ── Promo bar (safety-stripe) ── */
.promo-bar {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px),
    var(--flame-deep);
  color: #fff; text-align: center; padding: .5rem 1rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .05em;
  font-size: .98rem; text-transform: uppercase;
}
.promo-bar a { color: #fff; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 14px rgba(15,26,44,.18); }
.utility-bar { background: var(--navy-900); color: var(--steel); font-size: .9rem; }
.utility-bar-inner { display: flex; justify-content: flex-end; gap: 1.4rem; padding: .35rem 0; }
.utility-link { color: var(--navy-100); text-decoration: none; }
.utility-link:hover { color: #fff; }
.utility-phone { font-weight: 700; color: #fff; }
.main-nav { background: var(--navy-800); }
.main-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.nav-logo-mark { width: 30px; height: 30px; flex: none; }
.nav-logo-chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: #fff; border-radius: var(--radius); padding: 3px 6px;
  box-shadow: 0 1px 6px rgba(11,20,34,.35);
}
.nav-logo-chip img { width: 58px; height: 44px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  text-transform: uppercase; letter-spacing: .04em; color: #fff; white-space: nowrap;
}
.nav-logo-text em { font-style: normal; color: var(--flame); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--navy-100); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--flame); }
.nav-cta { white-space: nowrap; }
.nav-overlay { display: flex; align-items: center; gap: 1.6rem; }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; position: relative; z-index: 120; }
.nav-toggle span {
  display: block; width: 26px; height: 2.5px; background: #fff; margin: 5.5px auto;
  border-radius: 2px; transition: transform .25s var(--ease-lock), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Nav dropdown menus (Services / Service Areas) ── */
.nav-caret {
  background: none; border: 0; color: var(--navy-100); cursor: pointer; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center; padding: .3rem;
}
.nav-caret:hover { color: #fff; }
.nav-caret svg { transition: transform .2s var(--ease-lock); }
.nav-menu-panel { list-style: none; }
@media (min-width: 769px) {
  .nav-has-menu { position: relative; display: inline-flex; align-items: center; gap: .1rem; }
  .nav-has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: .55rem; } /* hover bridge */
  .nav-menu-panel {
    position: absolute; top: calc(100% + .5rem); left: 50%; transform: translate(-50%, 8px);
    min-width: 250px; background: var(--navy-900); border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius); box-shadow: 0 18px 42px rgba(11,20,34,.55); padding: .5rem; z-index: 130;
    display: grid; gap: 1px; opacity: 0; visibility: hidden;
    transition: opacity .18s var(--ease-lock), transform .18s var(--ease-lock), visibility .18s;
  }
  .nav-has-menu:hover > .nav-menu-panel,
  .nav-has-menu:focus-within > .nav-menu-panel,
  .nav-has-menu.is-open > .nav-menu-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-has-menu:hover > .nav-caret svg,
  .nav-has-menu.is-open > .nav-caret svg { transform: rotate(180deg); }
  .nav-menu-panel a {
    display: block; padding: .55rem .85rem; border-radius: 4px; border-bottom: 0;
    font-size: .94rem; color: var(--navy-100); white-space: nowrap;
  }
  .nav-menu-panel a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-menu-all { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-menu-all a {
    color: var(--flame); font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; font-size: .82rem;
  }
  .nav-menu-all a:hover { color: #fff; }
}

/* ── Hero ── */
.hero { position: relative; isolation: isolate; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { /* scrim — lightened ~10% then ~15% more per Mark 2026-06-12 (orig .92/.78/.42) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,20,34,.70) 0%, rgba(15,26,44,.58) 45%, rgba(15,26,44,.31) 100%);
}
.hero::after { /* target-ring ornament */
  content: ""; position: absolute; right: -120px; top: 50%; transform: translateY(-50%);
  width: 480px; height: 480px; border-radius: 50%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, transparent 0 118px, rgba(253,85,33,.30) 119px 120.5px, transparent 121px 178px,
      rgba(253,85,33,.22) 179px 180.5px, transparent 181px 238px, rgba(253,85,33,.14) 239px 240.5px, transparent 241px);
}
.hero-overlay { padding: var(--space-xl) 0; color: #fff; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero-sub { color: var(--navy-100); font-size: 1.14rem; max-width: 56ch; margin-top: 1rem; }
.hero .section-eyebrow { color: var(--flame); }

/* Page-hero (interior pages — shorter) */
.page-hero { min-height: 360px; }
.breadcrumbs { font-size: .88rem; margin-top: 1.1rem; color: var(--steel); }
.breadcrumbs a { color: var(--navy-100); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs span[aria-current] { color: #fff; }

/* ── Cards / grids ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
/* Exact-count grids: never strand an orphan card on its own row */
@media (min-width: 900px) {
  .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .card-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  transition: transform .2s var(--ease-lock), box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }
.card .card-link { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }
.card .card-link::after { content: " →"; }

/* Spec-plate variant (services): hairline top + index number */
.spec-card { border-top: 3px solid var(--navy-800); }
.spec-card::before {
  content: attr(data-index);
  position: absolute; top: .9rem; right: 1.1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  color: var(--flame); letter-spacing: .1em;
}
.spec-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--flame); transform: scaleY(0); transform-origin: top;
  transition: transform .25s var(--ease-lock);
}
.spec-card:hover::after { transform: scaleY(1); }
.spec-card img { margin-bottom: 1rem; }
.spec-card h3 { padding-right: 2.4rem; } /* reserve the index numeral's column */
.spec-card > img:first-child { margin-top: .85rem; } /* photo clears the index numeral */

/* Stat plates */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: var(--space-md); }
@media (min-width: 560px) and (max-width: 840px) {
  .stat-row:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
}
.stat-plate {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; background: rgba(255,255,255,.04);
}
.stat-plate .stat-label {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; color: var(--steel); display: block;
}
.stat-plate .stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff; }

/* Two-column feature ── */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-lg); align-items: start; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.checklist { list-style: none; margin: 1rem 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .65rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--flame); background: radial-gradient(circle, var(--flame) 0 2.5px, transparent 3px);
}
.section-dark .checklist li { color: var(--navy-100); }

/* ── FAQ (native details) ── */
.faq-list { display: grid; gap: .8rem; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; overflow: hidden; box-shadow: var(--shadow-card);
}
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.05rem 1.3rem; font-weight: 600; color: var(--ink); min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--flame); flex: none; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 1.3rem 1.2rem; }

/* ── Forms ── */
.form-shell {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--flame);
  border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-lift);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: .7rem .85rem;
  background: var(--paper); min-height: 48px; width: 100%;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--navy-800); outline: 2px solid rgba(253,85,33,.35); outline-offset: 1px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .55rem; margin-top: .4rem; }
.checkbox-grid label {
  display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; cursor: pointer; min-height: 48px;
  transition: border-color .15s, background .15s;
}
.checkbox-grid label:hover { border-color: var(--flame); }
.checkbox-grid input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--flame); flex: none; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: .9rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; } /* honeypot */
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--flame-deep); }
.form-status[hidden] { display: none; }
.field-err { border-color: var(--flame-deep) !important; outline: 2px solid rgba(216,67,15,.35); }

/* ── CTA strip ── */
.cta-strip {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: #fff; text-align: center; padding: var(--space-xl) 0;
}
.cta-strip::before {
  content: ""; position: absolute; left: -140px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
  z-index: -1;
  background:
    radial-gradient(circle, transparent 0 118px, rgba(253,85,33,.25) 119px 120.5px, transparent 121px 178px,
      rgba(253,85,33,.16) 179px 180.5px, transparent 181px 238px, rgba(253,85,33,.10) 239px 240.5px, transparent 241px);
}
.cta-strip .section-title { color: #fff; }
.cta-strip .section-intro { color: var(--navy-100); margin-inline: auto; }
.cta-strip .btn-primary { margin-top: .8rem; }

/* ── Footer ── */
.site-footer { background: var(--navy-950); color: var(--navy-100); padding: var(--space-lg) 0 5.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: #fff; margin-bottom: .4rem; }
.footer-brand em { font-style: normal; color: var(--flame); }
.footer-h {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; font-size: .85rem; color: var(--steel); margin-bottom: .7rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .site-footer a { color: var(--navy-100); text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nap p { margin-bottom: .35rem; color: var(--navy-100); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--steel); }

/* ── Sticky mobile CTA ── */
.sticky-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy-950);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(11,20,34,.35);
}
.sticky-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 52px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: #fff;
}
.sticky-cta-call { background: var(--navy-800); }
.sticky-cta-book {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px), var(--flame);
}

/* ── Motion ── */
.fade-up, .reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease-lock), transform .55s var(--ease-lock); }
.fade-up.is-visible, .reveal.is-visible { opacity: 1; transform: none; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-overlay > * { animation: heroIn .7s var(--ease-lock) backwards; }
.hero-overlay > *:nth-child(1) { animation-delay: .05s; }
.hero-overlay > *:nth-child(2) { animation-delay: .16s; }
.hero-overlay > *:nth-child(3) { animation-delay: .27s; }
.hero-overlay > *:nth-child(4) { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up, .reveal { opacity: 1; transform: none; transition: none; }
  .hero-overlay > * { animation: none; }
  body.is-scrolled .nav-toggle { animation: none; }
  .card, .btn-primary, .btn-dark, .btn-outline { transition: none; }
}

/* ── Utility ── */
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600;
  color: var(--navy-800); background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: .35rem .9rem;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); flex: none; }
.section-dark .badge { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.note-illustrative { font-size: .82rem; color: var(--ink-soft); font-style: italic; }
.area-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; list-style: none; }
.area-links a {
  display: flex; align-items: center; min-height: 48px; height: 100%; padding: .65rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; font-weight: 600; color: var(--navy-800); transition: border-color .15s, transform .18s var(--ease-lock);
}
.nearby-row a { white-space: nowrap; } /* town names never break internally */
@media (min-width: 560px) and (max-width: 1024px) {
  .area-links { grid-template-columns: repeat(2, 1fr); } /* even rows at tablet (4->2x2, 10->5x2) */
}
.area-links a:hover { border-color: var(--flame); transform: translateY(-2px); }
.prose h2 { margin-top: var(--space-md); margin-bottom: .6rem; }
.prose h3 { margin-top: 1.4rem; margin-bottom: .4rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }
.post-meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: var(--space-md); }

/* ── Responsive ladder ── */
@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero::after { width: 380px; height: 380px; right: -160px; }
}
@media (max-width: 768px) {
  .utility-bar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  /* Mobile: the header is NOT sticky — the logo/brand bar scrolls away. Only the hamburger
     stays reachable, floating top-right as a navy chip once you scroll past the header. */
  .site-header { position: static; }
  body.is-scrolled .nav-toggle {
    position: fixed; top: .6rem; right: .75rem; z-index: 130;
    background: var(--navy-800); border-radius: 10px; box-shadow: 0 6px 18px rgba(11,20,34,.5);
    animation: floatBtnIn .2s var(--ease-lock) both;
  }
  @keyframes floatBtnIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
  .nav-overlay {
    position: fixed; inset: 0; background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 1.6rem;
    padding: 5.5rem 1.5rem 2.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-lock); z-index: 110;
  }
  .nav-overlay.is-open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav-links { flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; width: 100%; }
  .nav-links a { font-size: 1.3rem; color: #fff; }
  /* Dropdowns become tap-accordions inside the overlay */
  .nav-has-menu { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; width: 100%; }
  .nav-caret { color: #fff; }
  .nav-caret svg { width: 16px; height: 16px; }
  .nav-menu-panel {
    width: 100%; max-height: 0; overflow: hidden; opacity: 0;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    transition: max-height .3s var(--ease-lock), opacity .25s, margin-top .3s;
  }
  .nav-has-menu.is-open > .nav-menu-panel { max-height: 760px; opacity: 1; margin-top: 1rem; }
  .nav-has-menu.is-open > .nav-caret svg { transform: rotate(180deg); }
  .nav-menu-panel a { font-size: 1.08rem; color: var(--navy-100); border-bottom: 0; }
  .nav-menu-all a { color: var(--flame); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
  .sticky-mobile-cta { display: grid; }
  .site-footer { padding-bottom: 7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-lg) 0; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero { min-height: 460px; }
  .hero::after { display: none; }
  .cta-row .btn-primary, .cta-row .btn-outline { width: 100%; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .checkbox-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 375px) {
  .container, .container-narrow { width: 94%; }
  .nav-logo-text { font-size: 1.2rem; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (min-width: 1600px) {
  .container { width: min(1240px, 88%); }
}
