/* =====================================================================
   MOBILE-MECHANIC.XYZ — "Daylight"
   A bright, friendly local-service look: white and cool grey, deep navy, signal blue,
   high-vis yellow. Rounded cards, pill buttons, sentence-case headings, a two-column
   local-business layout for city pages. Archivo (display) · Inter (text).
   ===================================================================== */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --surface-3: #e3e9f2;
  --text: #0d1b2e;
  --muted: #55657c;
  --muted-2: #7d8ba0;
  --line: #dfe5ee;
  --line-strong: #c6d0de;
  --blue: #1f5eff;
  --blue-dark: #1747c8;
  --blue-soft: #e9f0ff;
  --navy: #0d1b2e;
  --navy-2: #15283f;
  --navy-line: rgba(255, 255, 255, 0.12);
  --on-navy: #c9d4e4;
  --yellow: #ffc83d;
  --yellow-soft: #fff4d6;
  --green: #12a150;

  --display: "Archivo", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.06);
  --shadow: 0 1px 2px rgba(13, 27, 46, 0.05), 0 10px 28px rgba(13, 27, 46, 0.08);
  --shadow-lg: 0 18px 50px rgba(13, 27, 46, 0.14);
  --max: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --nav-h: 70px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- layout ---- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.navy { background: var(--navy); color: #fff; }
.section-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-header .lead { margin-top: 0.75rem; }
.section-header > div { max-width: 46rem; }
.section-link { font-weight: 600; color: var(--blue); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }
.navy .section-link { color: var(--yellow); }

/* ---- type ---- */
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 30%, transparent); flex-shrink: 0; }
.navy .eyebrow { color: var(--yellow); }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -0.025em; line-height: 1.05; color: inherit; }
.h1 { font-size: clamp(2.35rem, 5.4vw, 4.2rem); }
.h2 { font-size: clamp(1.85rem, 3.8vw, 2.8rem); }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.15; }
.hl { color: var(--blue); }
.navy .hl { color: var(--yellow); }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); line-height: 1.6; }
.navy .lead { color: var(--on-navy); }
.muted { color: var(--muted); }
.prose p { margin-bottom: 1.05em; color: #2b3a50; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .link { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); text-underline-offset: 3px; }
.prose a:hover, .link:hover { text-decoration-color: var(--blue); }
.prose h2 { font-family: var(--display); font-weight: 800; font-stretch: 88%; letter-spacing: -0.02em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 1.8em 0 0.6em; }
.prose h3 { font-weight: 700; font-size: 1.15rem; margin: 1.5em 0 0.5em; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1.05em; color: #2b3a50; }
.prose ol { list-style: decimal; padding-left: 1.3rem; margin-bottom: 1.05em; color: #2b3a50; }
.prose li { margin-bottom: 0.35em; }
.prose strong { color: var(--text); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 50px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 28%, transparent); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffd666; }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- nav ---- */
.site-nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: color-mix(in srgb, #ffffff 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; min-width: 0; }
.nav-logo img { width: 34px; height: 34px; flex-shrink: 0; }
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: 92%; font-size: 1.3rem; letter-spacing: -0.015em; white-space: nowrap; color: var(--text); }
.wordmark b { font-weight: 800; color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link { font-weight: 500; font-size: 0.95rem; color: var(--muted); padding: 0.5rem 0; transition: color 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- page heroes ---- */
.hero { background: radial-gradient(60% 90% at 100% 0%, var(--blue-soft), transparent 70%), linear-gradient(180deg, #ffffff, var(--bg)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .lead { margin: 1.1rem 0 1.75rem; max-width: 36rem; }
.page-hero { padding-top: clamp(2.25rem, 5vw, 3.75rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { margin-top: 1rem; max-width: 44rem; }
.page-hero .actions { margin-top: 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "\203A"; margin-right: 0.35rem; color: var(--muted-2); }
.stat-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.stat-pill { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.45rem 0.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; color: var(--muted); }
.stat-pill b { font-weight: 700; color: var(--text); }

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.95rem; font-weight: 500; }
.checks li, .check-list li { display: flex; align-items: flex-start; gap: 0.55rem; }
.checks li::before, .check-list li::before { content: "\2713"; flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0.15em; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 0.7rem; font-weight: 800; }
.check-list { display: grid; gap: 0.7rem; }
.check-list strong { display: block; }
.check-list span { color: var(--muted); }
.navy .checks li::before, .navy .check-list li::before { background: rgba(255, 200, 61, 0.16); color: var(--yellow); }

/* home hero: finder + photo */
.finder { margin-top: 0.25rem; max-width: 34rem; }
.finder-label { display: block; margin-bottom: 0.45rem; font-size: 0.88rem; font-weight: 600; }
.finder-row { display: flex; gap: 0.4rem; padding: 0.35rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s; }
.finder-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.finder-row input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.finder-row input::placeholder { color: var(--muted-2); }
.finder-row .btn { min-height: 46px; flex-shrink: 0; }
.finder-msg { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.finder-msg a { color: var(--blue); font-weight: 600; }
.hero .checks { margin-top: 1.5rem; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1.08; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -1rem; bottom: 1.5rem; display: grid; gap: 0.1rem; padding: 0.9rem 1.2rem; background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge strong { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 2rem; line-height: 1; color: var(--yellow); }
.hero-badge span { font-size: 0.85rem; color: var(--on-navy); }

/* ---- cards & grids ---- */
.grid { display: grid; gap: clamp(0.9rem, 2vw, 1.25rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 2.4vw, 1.6rem); box-shadow: var(--shadow-sm); }
.card h3 { font-family: var(--display); font-weight: 800; font-stretch: 90%; letter-spacing: -0.015em; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-link { display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card-link:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 0.9rem; font-weight: 600; font-size: 0.92rem; color: var(--blue); }
.tag { display: inline-block; margin-bottom: 0.75rem; padding: 0.22rem 0.65rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.tag.yellow { background: var(--yellow-soft); color: #8a5a00; }
.navy .card { background: var(--navy-2); border-color: var(--navy-line); box-shadow: none; }
.navy .card p { color: var(--on-navy); }
.navy .tag { background: rgba(255, 200, 61, 0.14); color: var(--yellow); }
.card .mini-list { margin-top: 0.9rem; display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); }
.card .mini-list li { display: flex; gap: 0.5rem; }
.card .mini-list li::before { content: ""; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.navy .card .mini-list { color: var(--on-navy); }
.navy .card .mini-list li::before { background: var(--yellow); }
.num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.9rem; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.navy .num { background: rgba(255, 200, 61, 0.14); color: var(--yellow); }

/* trust strip under the home hero */
.trust { margin-top: -2rem; position: relative; z-index: 2; }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.trust-item { padding: 1.2rem 1.4rem; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; }
.trust-item strong { display: block; font-weight: 700; margin-bottom: 0.15rem; }
.trust-item span { font-size: 0.92rem; color: var(--muted); }

/* split: copy + side content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split .h2 { margin-bottom: 1rem; }
.split .prose { margin-bottom: 1.5rem; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); counter-reset: step; position: relative; }
.step { position: relative; padding-top: 3.6rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--blue-soft); }
.step::after { content: ""; position: absolute; top: 24px; left: 64px; right: -1rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); }

/* ---- timeline (a day on the job) ---- */
.timeline { display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.time { display: inline-flex; justify-content: center; padding: 0.35rem 0.6rem; border-radius: 999px; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.timeline .card h3 { font-size: 1.15rem; }

/* ---- compare table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--navy-line); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.97rem; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--navy-line); }
.compare thead th { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-navy); background: var(--navy-2); }
.compare tbody th { font-weight: 600; color: #fff; width: 22%; }
.compare td { color: var(--on-navy); }
.compare .is-mobile { background: rgba(255, 200, 61, 0.08); color: #fff; }
.compare thead .is-mobile { color: var(--yellow); background: rgba(255, 200, 61, 0.12); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; color: var(--text); transition: border-color 0.2s, color 0.2s, background 0.2s; }
a.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip small { color: var(--muted-2); font-weight: 600; font-size: 0.78rem; }
.navy .chip { background: var(--navy-2); border-color: var(--navy-line); color: #fff; }

/* ---- callouts ---- */
.callout { padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--yellow-soft); border: 1px solid #f4dc9a; }
.callout h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.callout p { color: #4c3d17; }
.callout.blue { background: var(--blue-soft); border-color: #cddcff; }
.callout.blue p { color: #2b3a50; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 0.6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--blue); font-size: 1.2rem; font-weight: 500; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--muted); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* ---- review ---- */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.stars { color: #f5a400; letter-spacing: 0.12em; font-size: 1.1rem; }
.review blockquote p { font-family: var(--display); font-weight: 700; font-stretch: 92%; font-size: clamp(1.25rem, 2.3vw, 1.65rem); line-height: 1.3; letter-spacing: -0.01em; margin: 0.75rem 0 1rem; }
.review cite { font-style: normal; font-weight: 600; }
.review cite span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }

/* ---- CTA band ---- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue), #3c74ff); color: #fff; box-shadow: 0 18px 44px color-mix(in srgb, var(--blue) 30%, transparent); }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #e3ebff; margin-top: 0.5rem; max-width: 40rem; }
.cta-band .btn-yellow { box-shadow: 0 8px 20px rgba(13, 27, 46, 0.2); }

/* ---- the link back to the main site ---- */
.parent-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.parent-band p { color: var(--on-navy); margin-top: 0.35rem; }
.parent-band .h3 { color: #fff; }

/* ---- city page: two columns with a sticky side panel ---- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.content-block { padding-bottom: clamp(2rem, 4vw, 2.75rem); margin-bottom: clamp(2rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line); }
.content-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.content-block > .h2 { margin-bottom: 1rem; }
.content-block > .eyebrow + .h2 { margin-top: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; padding: 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.toc span { padding: 0.4rem 0.6rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.toc a { padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.toc a:hover { background: var(--blue-soft); color: var(--blue); }
.sidebar { position: sticky; top: calc(var(--nav-h) + 1.25rem); display: grid; gap: 1rem; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.side-card-head { padding: 1.25rem 1.4rem 1rem; background: var(--navy); color: #fff; }
.side-card-head .h3 { color: #fff; font-size: 1.35rem; }
.side-card-head p { color: var(--on-navy); font-size: 0.9rem; margin-top: 0.2rem; }
.side-card-body { padding: 1.25rem 1.4rem 1.4rem; display: grid; gap: 1rem; }
.side-phone { display: grid; gap: 0.15rem; }
.side-phone small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.side-phone a { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.side-phone a:hover { color: var(--blue); }
.side-address { font-size: 0.95rem; color: var(--muted); }
.side-address a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }
.side-link { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 0.95rem; color: var(--blue); }
.side-link:hover { background: var(--surface-3); }

/* city hero: details card */
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.detail-card img { width: 100%; height: 190px; object-fit: cover; }
.detail-rows { padding: 0.4rem 1.4rem; }
.detail-rows > div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.detail-rows > div:last-child { border-bottom: 0; }
.detail-rows strong { display: block; margin-top: 0.1rem; font-size: 1.02rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1.4; }
.detail-rows .meta-phone strong { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 1.7rem; line-height: 1.15; }
.detail-rows a:hover { color: var(--blue); }
.detail-link { display: flex; align-items: center; justify-content: space-between; padding: 0.95rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface-2); font-weight: 600; color: var(--blue); }
.detail-link:hover { background: var(--surface-3); }

/* places, conditions, nearby */
.place-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.place { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.place h3 { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.02rem; margin-bottom: 0.35rem; }
.place h3 i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.place p { color: var(--muted); font-size: 0.94rem; }
.findings { display: grid; gap: 0.9rem; counter-reset: finding; }
.findings li { position: relative; padding: 1.1rem 1.2rem 1.1rem 3.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.findings li::before { counter-increment: finding; content: counter(finding); position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 0.85rem; }
.findings strong { display: block; margin-bottom: 0.3rem; font-size: 1.02rem; }
.findings p { color: var(--muted); font-size: 0.96rem; }
.nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.5rem; }
.nearby li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.nearby .name { font-weight: 700; }
.nearby a.name { color: var(--blue); }
.nearby p { color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }
.map-frame { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.route-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.route-list li { padding: 0.3rem 0.7rem; border-radius: 6px; background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 600; }

/* ---- locations ---- */
.loc-search { display: flex; align-items: center; gap: 0.6rem; max-width: 30rem; padding: 0.35rem 0.35rem 0.35rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-sm); }
.loc-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.loc-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.loc-count { padding: 0 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.state-index { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 1.5rem 0 2rem; }
.state-index a { display: grid; place-items: center; min-width: 40px; height: 36px; padding: 0 0.4rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.state-index a:hover { border-color: var(--blue); color: var(--blue); }
.state-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.state-group { padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.state-group h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 1.25rem; letter-spacing: -0.015em; }
.state-group h2 a:hover { color: var(--blue); }
.state-group h2 small { font-family: var(--body); font-size: 0.8rem; font-weight: 600; color: var(--muted-2); }
.state-group .chips { gap: 0.4rem; }
.state-group .chip { padding: 0.35rem 0.7rem; font-size: 0.86rem; }
.state-group[hidden], .chip[hidden] { display: none; }
.loc-empty { padding: 2rem; text-align: center; color: var(--muted); }

/* ---- state map (data drawing from the build) ---- */
.statemap-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 0.75rem; }
.statemap { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.statemap-bg { fill: #f3f6fb; }
.statemap-neighbors path { fill: #e7ecf4; stroke: #d3dbe7; stroke-width: 1; }
.statemap-shadow { fill: rgba(13, 27, 46, 0.08); transform: translate(4px, 6px); }
.statemap-shape { fill: #ffffff; }
.statemap-counties { fill: none; stroke: #dfe6f0; stroke-width: 0.8; }
.statemap-route-casing { fill: none; stroke: #ffffff; stroke-width: 5; stroke-linecap: round; }
.statemap-route { fill: none; stroke: var(--yellow); stroke-width: 2.5; stroke-dasharray: 8 6; stroke-linecap: round; }
.statemap-outline { fill: none; stroke: var(--navy); stroke-width: 2; }
.statemap-city text { font-family: var(--body); font-weight: 700; font-size: 22px; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.statemap-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.statemap-ring { fill: color-mix(in srgb, var(--blue) 16%, transparent); stroke: none; }
.statemap-leader { stroke: var(--navy); stroke-width: 1.5; }
.statemap-hit { fill: transparent; }
.statemap-city:hover .statemap-dot { fill: var(--blue-dark); }
.statemap-city:hover text { fill: var(--blue); }
.statemap-plate rect { fill: var(--navy); }
.statemap-plate-k { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 1px; fill: var(--yellow); }
.statemap-plate-v { font-family: var(--body); font-size: 13px; font-weight: 600; fill: #fff; }
.statemap-compass circle { fill: #fff; stroke: var(--line-strong); }
.statemap-compass path { fill: var(--navy); }
.statemap-compass text, .statemap-scale text { font-family: var(--body); font-size: 12px; font-weight: 700; fill: var(--muted); text-anchor: middle; }
.statemap-scale path { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.statemap-corners path { display: none; }

/* ---- blog ---- */
.post-card { display: flex; flex-direction: column; }
.post-card time { font-size: 0.82rem; font-weight: 600; color: var(--muted-2); margin-bottom: 0.5rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.75rem); }
.article .prose { font-size: 1.05rem; }

/* ---- partners ---- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.partners span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.partners img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; background: #fff; border: 1px solid var(--line); }

/* ---- footer ---- */
.site-footer { background: var(--navy); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--navy-line); }
.footer-brand .wordmark { color: #fff; font-size: 1.45rem; }
.footer-brand .wordmark b { color: var(--yellow); }
.footer-brand p { margin-top: 0.9rem; color: var(--on-navy); font-size: 0.95rem; max-width: 30rem; }
.footer-h { margin-bottom: 0.75rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.footer-col a { display: flex; align-items: center; min-height: 36px; color: var(--on-navy); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.5rem; font-size: 0.85rem; color: #8d9bb0; }

/* ---- mobile call bar (city pages with a number) ---- */
.callbar { display: none; }

/* ---- reveal ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid, .article-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.active { display: flex; }
  .nav-link { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links .btn { margin-top: 0.75rem; }
  .hero-grid, .split, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 32rem; }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .page-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, #fff 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .callbar .btn { width: 100%; }
  body.has-callbar { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4, .place-grid, .nearby, .state-groups { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .step { padding: 0 0 0 4rem; min-height: 48px; }
  .step::after { display: none; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .time { justify-self: start; }
  .trust { margin-top: 1.5rem; }
  .trust-row { grid-template-columns: minmax(0, 1fr); }
  .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .finder-row { flex-direction: column; border-radius: 18px; }
  .finder-row input { min-height: 46px; }
  .finder-row .btn { width: 100%; }
  .hero-badge { left: 0.75rem; bottom: 0.75rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .cta-band .btn, .parent-band .btn { width: 100%; }
  .wordmark { font-size: 1.15rem; }
  /* the comparison table stacks: one card per row, no sideways scrolling */
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--navy-line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; width: auto; padding: 0.2rem 0; border: 0; }
  .compare tbody th { margin-bottom: 0.3rem; font-size: 1.02rem; }
  .compare .is-mobile { background: none; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
  .compare td.is-mobile::before { color: var(--yellow); }
}
