/* All Suffolk Brokerage — design system
   Direction: high-trust professional, editorial serif headlines, navy/black/white/slate. */

:root {
  --ink: #0a1a33;
  --ink-2: #10284d;
  --ink-3: #1a3966;
  --blue: #1d5bbf;
  --blue-strong: #164a9e;
  --blue-deep: #1f4f94;
  --sky: #a9c8f5;
  --tint: #e6eefa;
  --tint-2: #f2f6fc;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --fog: #e6ebf2;
  --line: #d8dfe9;
  --line-dark: rgba(255, 255, 255, 0.16);
  --text: #0e1726;
  --muted: #4a5870;
  --muted-light: #c3cfe0;
  --success: #17724a;
  --error: #b42318;
  --warning: #8a5a00;

  --font-display: 'Libre Franklin', 'Franklin Gothic Medium', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-logo: 'Source Serif 4', Georgia, serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.3rem, 1.15rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.55rem + 2.7vw, 3.75rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section: clamp(64px, 4.5rem + 2.5vw, 112px);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, 0.06), 0 1px 3px rgba(10, 26, 51, 0.08);
  --shadow: 0 12px 32px -14px rgba(10, 26, 51, 0.22), 0 4px 10px -6px rgba(10, 26, 51, 0.1);
  --shadow-lg: 0 32px 64px -28px rgba(10, 26, 51, 0.38), 0 8px 20px -12px rgba(10, 26, 51, 0.12);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;

  --z-header: 50;
  --z-nav: 60;
  --z-float: 40;
  --z-skip: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
picture img { width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; font-weight: 800; line-height: 1.08; }
h2 { font-size: var(--step-3); letter-spacing: -0.016em; line-height: 1.12; }
h3 { font-size: var(--step-2); line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-strong); }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--focus, var(--blue)); outline-offset: 3px; border-radius: 2px; }
.cta-band, .site-footer, .section--ink, .aside-card, .product-card--featured, .utility-bar, .areas-band, .mega-feature { --focus: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: var(--z-skip); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #e9eef6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: clamp(48px, 3rem + 2vw, 80px); }

.icon { flex: none; width: 1.15em; height: 1.15em; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block; font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--sky); }
.lede { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.section--ink .lede { color: var(--muted-light); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); } }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px;
  font: 700 1rem/1.2 var(--font-body);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 160ms ease-out;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn--primary { box-shadow: 0 6px 16px -8px rgba(29, 91, 191, 0.7); }
.btn--primary:hover { --btn-bg: var(--blue-strong); }
.btn--ink { --btn-bg: var(--ink); }
.btn--ink:hover { --btn-bg: var(--ink-3); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--fog); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.45); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgba(255,255,255,0.06); }
.btn--ghost { --btn-bg: #fff; --btn-fg: var(--blue); --btn-bd: var(--blue); }
.btn--ghost:hover { --btn-bg: var(--tint); }
.btn--sm { min-height: 44px; padding: 8px 22px; font-size: 0.9375rem; }
.btn--lg { min-height: 58px; padding: 14px 34px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--blue); }
.text-link .icon { transition: transform 160ms ease-out; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--ink); color: var(--muted-light); font-size: 0.875rem; }
.utility-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 40px; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; color: #fff; }
.utility-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-left: auto; }

.open-status { display: inline-flex; align-items: center; gap: 10px; }
.open-status--light { color: var(--muted-light); font-size: 0.9375rem; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 27, 51, 0.5); }
.header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: auto; }
.logo-type { display: grid; line-height: 1; }
.logo-name { font-family: var(--font-logo); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
.logo-sub { font-family: var(--font-body); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo-sub { color: var(--muted-light); }

.primary-nav { margin-left: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle-close { display: inline-flex; }
.nav-list {
  list-style: none; display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--space-4) var(--gutter) var(--space-6);
  box-shadow: var(--shadow);
  max-height: calc(100dvh / var(--zoom, 1) - var(--header-h) - 40px); overflow-y: auto;
}
.nav-list.is-open { display: grid; gap: 2px; }
.nav-list a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; padding-inline: 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem;
  border-bottom: 1px solid var(--fog);
}
.nav-list a[aria-current='page'] { color: var(--blue); }
.nav-cta-mobile { margin-top: var(--space-3); }
.header-actions { display: none; align-items: center; gap: var(--space-5); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--blue); }

@media (min-width: 1120px) {
  .nav-toggle, .nav-cta-mobile { display: none; }
  .primary-nav { margin-left: auto; }
  .nav-list { display: flex; position: static; padding: 0; border: 0; box-shadow: none; gap: 2px; background: none; max-height: none; overflow: visible; }
  .nav-list a:not(.btn) {
    min-height: 44px; padding: 0 12px; border: 0; font-size: 0.9375rem; position: relative;
  }
  .nav-list a:not(.btn)::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-out;
  }
  .nav-list a:not(.btn):hover::after, .nav-list a[aria-current='page']::after { transform: scaleX(1); }
  .header-actions { display: flex; }
}
@media (min-width: 1120px) and (max-width: 1239px) { .header-phone span { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--fog); }
.page-hero-inner { display: grid; gap: var(--space-6); padding-block: clamp(40px, 2.5rem + 2.5vw, 88px); }
.page-hero .lede { margin-top: var(--space-4); color: var(--muted); }
.page-hero .lede a { color: var(--blue); }
.page-hero-media { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
@media (min-width: 960px) {
  .page-hero--image .page-hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: var(--space-8); }
}

/* ---------- Editorial list: who we help ---------- */
.split { display: grid; gap: var(--space-7); }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--space-9); }
  .split-sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.numbered { list-style: none; counter-reset: n; border-top: 1px solid var(--line); }
.numbered > li {
  counter-increment: n;
  display: grid; grid-template-columns: 56px 1fr; gap: var(--space-4);
  padding-block: var(--space-6); border-bottom: 1px solid var(--line);
}
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--blue); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.numbered h3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.numbered p { color: var(--muted); }

/* ---------- Media + copy feature ---------- */
.feature { display: grid; gap: var(--space-7); align-items: center; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.feature-media--tall { aspect-ratio: 4 / 5; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .feature--reverse .feature-media { order: 2; }
}

.steps { list-style: none; counter-reset: s; display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); align-items: start; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--blue); border-radius: 50%; color: var(--blue);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
}
.section--ink .steps li::before { border-color: var(--sky); color: var(--sky); }
.steps strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }
.section--ink .steps strong { color: #fff; }
.steps p { color: var(--muted); }
.section--ink .steps p { color: var(--muted-light); }

.checklist { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checklist .icon { color: var(--blue); margin-top: 3px; }
.section--ink .checklist .icon { color: var(--sky); }
.checklist--2 { gap: var(--space-3) var(--space-6); }
@media (min-width: 720px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Areas band ---------- */
.areas-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.areas-band > picture { position: absolute; inset: 0; z-index: -2; }
.areas-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,27,51,0.96) 0%, rgba(11,27,51,0.88) 50%, rgba(11,27,51,0.7) 100%); }
.areas-band h2 { color: #fff; }
.areas-band .lede { color: var(--muted-light); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding-block: var(--space-5); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-body); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--blue); transition: transform 200ms ease-out; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding-bottom: var(--space-5); color: var(--muted); }
.faq .faq-a p + p { margin-top: var(--space-3); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue); color: #fff; }
.cta-band-inner { display: grid; gap: var(--space-6); padding-block: var(--space-8); align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.4rem); }
.cta-band p { color: #dfe8f6; margin-top: var(--space-3); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.cta-band .open-status--light { color: #dfe8f6; width: 100%; }
@media (min-width: 960px) { .cta-band-inner { grid-template-columns: 1.4fr 1fr; } .cta-band-actions { justify-content: flex-end; } .cta-band .open-status--light { justify-content: flex-end; } }

.jump-nav { position: sticky; top: var(--header-h); z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.jump-nav ul { list-style: none; display: flex; gap: var(--space-5); overflow-x: auto; scrollbar-width: none; padding-block: 4px; }
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a { display: inline-flex; align-items: center; min-height: 48px; white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.9375rem; border-bottom: 2px solid transparent; }
.jump-nav a:hover { color: var(--ink); border-color: var(--line); }
/* Small phones: fit every link on one row instead of hiding the last ones off screen */
@media (max-width: 559px) {
  .jump-nav ul { justify-content: space-between; gap: clamp(6px, 2vw, 12px); }
  .jump-nav a { font-size: clamp(0.8125rem, 3.7vw, 0.9375rem); }
}

/* ---------- Prose ---------- */
.prose { min-width: 0; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.85rem); margin-top: var(--space-7); }
.prose h3 { font-size: 1.25rem; margin-top: var(--space-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose p, .prose li { color: #283548; }
.prose table { width: 100%; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--mist); color: var(--ink); }

.legal-layout { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 260px 1fr; gap: var(--space-9); } .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100dvh / var(--zoom, 1) - var(--header-h) - 48px); overflow-y: auto; } }
.legal-toc { font-size: 0.9375rem; }
.legal-toc-title { font-weight: 700; color: var(--ink); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; margin-bottom: var(--space-3); }
.legal-toc ol { list-style: none; display: grid; gap: 6px; }
.legal-toc a { color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); text-decoration: underline; }
.legal h2:first-child { margin-top: 0; }
.legal-callout { background: var(--mist); padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); }
.legal-callout p { color: var(--ink); }

/* ---------- Forms ---------- */
.form-shell { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .form-shell { grid-template-columns: 1fr 360px; gap: var(--space-8); align-items: start; } .form-aside { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 24px)); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form-card > form > * + *,
.form-card > form > [data-after-zip] > * + *,
.form-card > form > * + [data-after-zip] { margin-top: var(--space-6); }
.form-section { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section + .form-section { border-top: 1px solid var(--fog); padding-top: var(--space-6); }
.form-section > legend { padding: 0; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); float: left; width: 100%; }
.form-section > legend + * { clear: both; }
.form-hint { color: var(--muted); font-size: 0.9375rem; margin-bottom: var(--space-5); clear: both; }
.grid-2 { display: grid; gap: var(--space-4) var(--space-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.grid-3 { display: grid; gap: var(--space-4) var(--space-5); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.req { color: var(--error); margin-left: 2px; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 1.5px solid #b9c3d1; border-radius: var(--radius);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%230b1b33' stroke-width='1.8' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8797ad; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 148, 0.2); }
.field [aria-invalid='true'] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.875rem; font-weight: 600; }
.field-error:empty { display: none; }
.field-help { color: var(--muted); font-size: 0.875rem; }

.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group-legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font: 600 0.9375rem/1.4 var(--font-body); color: var(--ink); }
.group-legend + *, .group-hint { clear: both; }
.group-hint { margin-bottom: 10px; }
.choice-grid { clear: both; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: grid; gap: 2px; min-height: 64px; padding: 14px 16px 14px 44px; position: relative;
  border: 1.5px solid #c4ccd8; border-radius: var(--radius); background: #fff; cursor: pointer;
  font-weight: 600; color: var(--ink); transition: border-color 150ms ease-out, background-color 150ms ease-out;
}
.choice label small { font-weight: 400; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; }
.choice label::before { content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border: 1.5px solid #8797ad; border-radius: 50%; background: #fff; }
.choice input[type='checkbox'] + label::before { border-radius: 3px; }
.choice input:checked + label { border-color: var(--blue); background: #f1f6fd; }
.choice input:checked + label::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.choice input[type='checkbox']:checked + label::before { box-shadow: none; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.choice-grid--compact label { min-height: 52px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.check + .check { margin-top: var(--space-4); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.check label { font-size: 0.9375rem; line-height: 1.55; color: #2a3749; cursor: pointer; }
.consent { border: 1px solid var(--line); background: var(--mist); border-radius: var(--radius); padding: var(--space-5); margin: 0; min-width: 0; }
.consent legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-4); font-weight: 700; color: var(--ink); }
.consent legend + * { clear: both; }
.consent-fine { margin-top: var(--space-5); font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.form-legal { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { border-radius: var(--radius); padding: var(--space-4) var(--space-5); font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-kind='error'] { background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-status[data-kind='success'] { background: #e8f5ee; color: var(--success); border: 1px solid #b9e0cb; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[data-when][hidden] { display: none !important; }
.type-panel { animation: fade-in 220ms ease-out; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.aside-card { background: var(--ink); color: var(--muted-light); border-radius: var(--radius-lg); padding: var(--space-6); }
.aside-card h2, .aside-card h3 { color: #fff; font-size: 1.375rem; }
.aside-card p { margin-top: var(--space-3); font-size: 0.9375rem; }
.aside-card a:not(.btn) { color: #fff; }
.aside-card .btn { margin-top: var(--space-5); }
.aside-list { list-style: none; display: grid; gap: var(--space-4); margin-top: var(--space-5); font-size: 0.9375rem; }
.aside-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.aside-list .icon { color: var(--sky); margin-top: 3px; }
.aside-plain { margin-top: var(--space-5); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 0.9375rem; color: var(--muted); }
.aside-plain h3 { font-size: 1.125rem; margin-bottom: var(--space-2); }

/* ---------- Hours table ---------- */
.hours { width: 100%; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.hours th, .hours td { padding: 7px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--fog); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--ink); }
.hours--footer th, .hours--footer td { border-color: var(--line-dark); color: var(--muted-light); padding: 5px 0; }
.hours--footer tr.is-today th, .hours--footer tr.is-today td { color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.25fr 1fr; gap: var(--space-8); align-items: start; } }
.nap-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.nap-card-body { padding: var(--space-6); display: grid; gap: var(--space-5); }
.nap-item { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.nap-item .icon { color: var(--blue); margin-top: 3px; }
.nap-item strong { display: block; color: var(--ink); }
.nap-item a { font-weight: 600; }
.map-frame { position: relative; aspect-ratio: 4 / 3; background: var(--fog); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--space-5); background: rgba(243, 245, 248, 0.86); }
.map-consent p { font-size: 0.875rem; color: var(--muted); max-width: 36ch; margin: var(--space-3) auto var(--space-4); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; background: #fff; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.review figcaption { font-size: 0.9375rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #c48a1a; }
.stars .icon { fill: currentColor; width: 18px; height: 18px; }
.review-empty { border: 1px dashed #b9c3d1; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: grid; gap: var(--space-4); justify-items: start; background: var(--mist); }
.review-empty h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.review-empty p { color: var(--muted); }

.scenario-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .scenario-grid { grid-template-columns: repeat(3, 1fr); } .scenario + .scenario { border-left: 1px solid var(--line); } }
.scenario { padding: var(--space-6) var(--space-5); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .scenario { padding: var(--space-6); } .scenario:first-child { padding-left: 0; } }
.scenario-label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.scenario h3 { font-size: 1.3rem; margin-block: var(--space-3); }
.scenario p { color: var(--muted); font-size: 0.975rem; }

/* ---------- About ---------- */
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .values { grid-template-columns: repeat(2, 1fr); } .values > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: var(--space-7); } .values > div:nth-child(even) { padding-left: var(--space-7); } }
.values > div { padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.values h3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.values p { color: var(--muted); }

.pull-quote { text-wrap: balance; font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.3; color: var(--ink); font-weight: 500;  margin: 0; }
.section--ink .pull-quote { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: #07142a; color: var(--muted-light); padding-top: var(--space-9); font-size: 0.9375rem; }
.site-footer a:not(.btn) { color: #fff; }
.footer-grid { display: grid; gap: var(--space-7); padding-bottom: var(--space-8); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-8); } }
.footer-brand p { margin-block: var(--space-5); }
.footer-h { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: var(--space-4); }
.footer-nap { line-height: 1.8; }
.footer-nap strong { color: #fff; }
.footer-link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--space-3); font-weight: 600; text-decoration: none; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--muted-light); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-block: var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom)); }
.footer-disclaimer { font-size: 0.8125rem; line-height: 1.6; color: #9aa7ba; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-5); font-size: 0.875rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-bottom a { color: var(--muted-light); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }



/* ---------- Reveal on scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; gap: var(--space-5); }

@media print {
  .utility-bar, .site-header, .cta-band, .site-footer .btn { display: none !important; }
  body { color: #000; }
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: var(--space-2); }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: var(--space-5); }
.mt-7 { margin-top: 28px; }
.mb-0 { margin-bottom: 0 !important; }
.h-form { font-size: 1.75rem; }
.fine-light { color: var(--muted-light); font-size: 0.9375rem; }
.map-consent-title { color: var(--ink); }
.actions.mt-2 { margin-top: var(--space-2); }

/* Pictures fill their framed containers */
.home-hero-media > picture, .feature-media > picture, .page-hero-media > picture,
.areas-band > picture, .map-frame > picture { display: block; width: 100%; height: 100%; }
.nowrap { white-space: nowrap; }
.utility-bar .open-status, .utility-phone { white-space: nowrap; }
@media (max-width: 599px) {
  .utility-bar { font-size: 0.8125rem; }
  .utility-inner { gap: var(--space-3); }
  .numbered > li { grid-template-columns: 40px 1fr; gap: var(--space-3); }
}

/* Compact choice tiles go two-up on phones */
@media (max-width: 559px) { .choice-grid--compact label { padding: 12px 10px 12px 38px; font-size: 0.9375rem; } .choice-grid--compact label::before { left: 12px; top: 15px; } }
.required-note { font-size: 0.875rem; color: var(--muted); margin-bottom: var(--space-4); }
.sms-hint { margin-top: 6px; font-size: 0.875rem; color: var(--warning); font-weight: 600; }
.sms-hint:empty { display: none; }

/* Who-we-insure grid on the services page */
.driver-grid { list-style: none; display: grid; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
@media (min-width: 560px) { .driver-grid { grid-template-columns: 1fr 1fr; } }
.driver-grid li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--muted-light); font-size: 0.9375rem; }
.driver-grid strong { display: block; color: #fff; font-size: 1rem; }
.driver-grid .icon { color: var(--sky); margin-top: 3px; }

/* ---------- Services mega menu ---------- */
/* Timing from transitions-dev "menu dropdown" */
:root {
  --dropdown-open-dur: 250ms;
  --dropdown-close-dur: 150ms;
  --dropdown-pre-scale: 0.97;
  --dropdown-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-trigger { display: none; }
.mega-h { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: var(--space-3); }
.mega ul { list-style: none; display: grid; gap: 2px; }
.mega a { text-decoration: none; }
.mega-name { display: block; font-weight: 600; color: var(--ink); }
.mega-blurb { display: none; }
.mega-feature { display: none; }

/* Mobile: services listed inline in the open menu */
@media (max-width: 1119px) {
  .has-menu .mega { padding: 4px 0 12px 16px; border-bottom: 1px solid var(--fog); }
  .has-menu .mega-inner { padding: 0; display: grid; gap: var(--space-4); }
  .has-menu .mega-h { margin: var(--space-3) 0 var(--space-1); }
  .nav-list .mega a { display: block; min-height: 0; padding: 9px 0; border: 0; font-size: 1rem; }
  .nav-list .mega a[aria-current='page'] .mega-name { color: var(--blue); }
}

@media (min-width: 1120px) {
  .nav-menu-link { display: none !important; }
  .nav-trigger {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; position: relative;
    font: 600 0.9375rem/1 var(--font-body); color: var(--ink); background: none; border: 0; cursor: pointer;
  }
  .nav-trigger::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-out;
  }
  .nav-trigger:hover::after, .nav-trigger[data-current]::after, .nav-trigger[aria-expanded='true']::after { transform: scaleX(1); }
  .nav-trigger[data-current] { color: var(--blue); }

  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(11, 27, 51, 0.35);
    opacity: 0; visibility: hidden; transform: scale(var(--dropdown-pre-scale)); transform-origin: top center;
    transition: opacity var(--dropdown-close-dur) var(--dropdown-ease), transform var(--dropdown-close-dur) var(--dropdown-ease), visibility 0s linear var(--dropdown-close-dur);
  }
  .has-menu.is-open .mega {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dropdown-open-dur) var(--dropdown-ease), transform var(--dropdown-open-dur) var(--dropdown-ease), visibility 0s;
  }
  .mega-inner { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.15fr; gap: var(--space-7); padding-block: var(--space-7); }
  .mega-col a { display: block; padding: 10px 12px; margin-inline: -12px; border-radius: var(--radius); transition: background-color 150ms ease-out; }
  .mega-col a:hover, .mega-col a:focus-visible { background: var(--mist); }
  .mega-col a[aria-current='page'] .mega-name { color: var(--blue); }
  .mega-name { font-size: 0.975rem; }
  .mega-blurb { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
  .mega-feature { display: block; background: var(--ink); color: var(--muted-light); border-radius: var(--radius-lg); padding: var(--space-6); }
  .mega-feature .mega-h { color: var(--sky); }
  .mega-feature-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; color: #fff; }
  .mega-feature-text { font-size: 0.9375rem; margin-top: var(--space-3); }
  .mega-feature-actions { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-5); }
  .mega-all { color: #fff !important; font-weight: 600; font-size: 0.9375rem; text-decoration: underline !important; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .mega, .has-menu.is-open .mega { transition: none; transform: none; }
}

.footer-h--spaced { margin-top: var(--space-6); }

/* ---------- Service page template ---------- */
.service-intro { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .service-intro { grid-template-columns: 1fr 340px; gap: var(--space-9); align-items: start; } .facts-card { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 24px)); } }
.service-intro .prose h2 { margin-top: 0; font-size: var(--step-3); }
.facts-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); background: #fff; box-shadow: var(--shadow-sm); display: grid; gap: var(--space-3); }
.facts-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.facts-card dl { margin: 0 0 var(--space-3); display: grid; }
.facts-card dl > div { padding-block: var(--space-3); border-bottom: 1px solid var(--fog); }
.facts-card dt { font-size: 0.8125rem; color: var(--muted); }
.facts-card dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 0.975rem; line-height: 1.45; }

.numbered--grid { border-top: 0; display: grid; gap: 0 var(--space-7); }
@media (min-width: 800px) { .numbered--grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .numbered--grid { grid-template-columns: repeat(3, 1fr); } }
.numbered--grid > li { border-top: 1px solid var(--line); border-bottom: 0; }

.coverage-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.coverage-list > div { padding-block: var(--space-5); border-bottom: 1px solid var(--line-dark); display: grid; gap: 4px; }
@media (min-width: 720px) { .coverage-list > div { grid-template-columns: 220px 1fr; gap: var(--space-5); } }
.coverage-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
.coverage-list dd { margin: 0; color: var(--muted-light); }

.steps--row { margin-top: 0; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } .steps--row li { grid-template-columns: 1fr; gap: var(--space-4); } }

.related-grid { display: grid; gap: var(--space-5); }
@media (min-width: 800px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color 160ms ease-out, box-shadow 160ms ease-out; }
.related-card:hover { border-color: #b9c3d1; box-shadow: var(--shadow); color: var(--text); }
.related-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.related-card-media > picture { display: block; width: 100%; height: 100%; }
.related-card-body { padding: var(--space-5); display: grid; gap: 6px; align-content: start; }
.related-card h3 { font-size: 1.25rem; }
.related-card p { color: var(--muted); font-size: 0.9375rem; }
.related-card .text-link { margin-top: var(--space-2); }

/* Services hub */
.hub-group + .hub-group { margin-top: var(--space-8); }
.hub-group-h { display: flex; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); margin-bottom: var(--space-5); }
.hub-group-h h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
/* Keep top-level nav link styles out of the mega menu */
@media (min-width: 1120px) {
  .nav-list .mega a:not(.btn) { display: block; min-height: 0; padding: 10px 12px; font-size: 1rem; border: 0; }
  .nav-list .mega a:not(.btn)::after { content: none; }
  .nav-list .mega .mega-all { display: inline; padding: 0; margin: 0; white-space: nowrap; }
  .nav-list .mega-feature .btn { min-height: 44px; }
}

/* ---------- About / areas mega menu ---------- */
.mega-area-cols { display: grid; gap: 0 var(--space-5); }
.mega-all-dark { display: inline-block; margin-top: var(--space-3); font-weight: 600; font-size: 0.9375rem; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1119px) {
  .nav-list .mega .mega-all-dark { padding: 9px 0; text-decoration: underline; color: var(--blue); }
}
@media (min-width: 1120px) {
  .mega-inner--about { grid-template-columns: 1fr 1fr 1.15fr; }
  .mega-area-cols { grid-template-columns: 1fr 1fr; }
  .nav-list .mega .mega-col--areas a:not(.btn):not(.mega-all-dark) { padding: 8px 12px; }
  .nav-list .mega .mega-all-dark { display: inline-block; padding: 0; margin: var(--space-3) 0 0; }
}

/* ---------- Text-only link cards ---------- */
.link-grid { display: grid; gap: var(--space-4); }
.link-card {
  display: flex; flex-direction: column; gap: var(--space-2); min-height: 100%;
  padding: var(--space-5) var(--space-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text); transition: border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}
.link-card:hover { border-color: #b9c3d1; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.section--mist .link-card { background: #fff; }
.link-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.link-card-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.link-card .text-link { margin-top: auto; padding-top: var(--space-2); }

@media (min-width: 1120px) { .numbered--two { grid-template-columns: 1fr 1fr; } }
.open-status--card { font-weight: 600; color: var(--ink); }

/* Footer with five columns on wide screens */
@media (min-width: 1200px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 0.9fr 0.8fr; gap: var(--space-7); } }
@media (min-width: 1080px) and (max-width: 1199px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* Area links on the About page */
.area-links { list-style: none; display: grid; gap: 0 var(--space-6); margin-top: var(--space-7); border-top: 1px solid var(--line-dark); }
@media (min-width: 640px) { .area-links { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .area-links { grid-template-columns: repeat(3, 1fr); } }
.area-links a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line-dark); color: #fff; text-decoration: none; font-weight: 600; }
.area-links a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.area-links small { color: var(--muted-light); font-weight: 400; font-size: 0.8125rem; white-space: nowrap; }
.nav-list .mega a.mega-all-dark { display: inline-block; padding: 0; margin: var(--space-3) 0 0; color: var(--blue); font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; }
.nav-list .mega a.mega-all-dark:hover { background: none; color: var(--blue-strong); }
@media (max-width: 1119px) { .nav-list .mega a.mega-all-dark { padding: 9px 0; margin: 0; } }

/* =====================================================================
   Insurance-site components: quote starter, product cards, trust strip
   ===================================================================== */
.section--tint { background: var(--tint-2); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .lede { margin-inline: auto; }
.actions--center { justify-content: center; margin-top: var(--space-7); }
.ui-icon { width: 24px; height: 24px; flex: none; }

.icon-chip {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint); color: var(--blue);
}
.icon-chip--lg { width: 56px; height: 56px; border-radius: 14px; }
.icon-chip--lg .ui-icon { width: 28px; height: 28px; }

/* Home hero */
.home-hero { background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) 100%); border-bottom: 1px solid var(--fog); }
.home-hero-inner { display: grid; gap: var(--space-7); padding-block: clamp(28px, 1.5rem + 2.5vw, 64px); align-items: center; }
.home-hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.5rem); }
.home-hero .lede { margin-top: var(--space-4); }
.home-hero-media { display: none; position: relative; }
.home-hero-media > picture { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
@media (min-width: 1024px) {
  .home-hero-inner { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-8); }
  .home-hero-media { display: block; }
}

/* Quote starter: product tiles + ZIP */
.hero-card { margin-top: var(--space-6); background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(20px, 2.5vw, 32px);  }
.quote-starter { display: grid; gap: var(--space-4); }
.qs-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.qs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; clear: both; }
.qs-title { float: left; width: 100%; padding: 0; margin-bottom: 12px; font: 700 1.125rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.qs-tile { position: relative; display: grid; }
.qs-tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qs-tile label {
  display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 88px; padding: 12px 6px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: 0.875rem; text-align: center; line-height: 1.25; cursor: pointer;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}

.qs-tile label:hover { border-color: #9fb6d8; }
.qs-tile input:checked + label { border-color: var(--blue); background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue); }
.qs-tile input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.qs-row { display: grid; gap: var(--space-3); }
.qs-zip { margin: 0; }
.qs-row .btn { width: 100%; }
@media (min-width: 560px) {
  .qs-row { grid-template-columns: 1fr auto; align-items: end; }
  .qs-row .btn { width: auto; }
}
.qs-note { font-size: 0.875rem; color: var(--muted); }
.qs-note a { font-weight: 700; text-decoration: none; }
.quote-starter--compact { margin-top: var(--space-6);  background: #fff; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow); }
.quote-starter--compact .qs-title { float: none; }
@media (min-width: 768px) and (max-width: 1023px) { .qs-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--fog); }
.trust-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-4); padding-block: var(--space-6); }
.trust-list li { display: flex; gap: 12px; align-items: center; font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.trust-list strong { display: block; color: var(--ink); font-size: 0.9375rem; }
@media (min-width: 1200px) { .trust-list { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
@media (max-width: 479px) { .trust-list { grid-template-columns: 1fr; } }

/* Product cards */
.product-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 1023px) { .product-grid > :last-child { grid-column: span 2; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.product-card {
  display: flex; flex-direction: column; gap: 10px; padding: var(--space-5);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}
.product-card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.product-card .icon-chip { margin-bottom: 6px; }
.product-card-title { font: 700 1.1875rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.product-card-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.product-card .text-link { margin-top: auto; padding-top: 6px; }
.product-card--featured { position: relative; overflow: hidden; background: var(--ink); border-color: var(--ink); color: var(--muted-light); }
.product-card-media { display: none; }
@media (min-width: 1024px) {
  .product-card--featured { padding-right: calc(38% + var(--space-6)); }
  .product-card-media { display: block; position: absolute; top: 12px; right: 12px; bottom: 12px; width: 38%; border-radius: 12px; overflow: hidden; }
  .product-card-media > picture { display: block; height: 100%; }
}
.product-card--featured:hover { border-color: var(--ink-3); color: var(--muted-light); }
.product-card--featured .icon-chip { background: rgba(255, 255, 255, 0.1); color: #fff; }
.product-card--featured .product-card-title { color: #fff; font-size: 1.4rem; }
.product-card--featured .product-card-text { color: var(--muted-light); font-size: 1rem; }
.product-card--featured .text-link { color: #fff; }
@media (min-width: 640px) { .product-card--featured { grid-column: span 2; } }

/* Feature cards (who we help, after-sale service) */
.feature-grid { display: grid; gap: var(--space-4); }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-5) var(--space-6); box-shadow: var(--shadow-sm); }
.feature-card .icon-chip { margin-bottom: var(--space-4); }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 0.9375rem; }

/* Numbered steps in a row */
.step-row { list-style: none; counter-reset: st; display: grid; gap: var(--space-6); }
.step-row li { counter-increment: st; position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px var(--space-4); align-content: start; }
.step-row li::before {
  content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: #fff; font: 800 1.25rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--tint);
}
.step-row strong { font: 700 1.1875rem/1.3 var(--font-display); color: var(--ink); align-self: center; }
.step-row p { color: var(--muted); grid-column: 2; }
@media (min-width: 900px) {
  .step-row { grid-template-columns: repeat(var(--steps, 3), 1fr); gap: var(--space-6); }
  .step-row li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--space-3); }
  .step-row li::before { grid-row: auto; width: 60px; height: 60px; font-size: 1.375rem; margin-bottom: var(--space-2); }
  .step-row p { grid-column: auto; max-width: 34ch; }
  .step-row li:not(:last-child)::after {
    content: ''; position: absolute; top: 30px; left: calc(50% + 48px); right: calc(-50% + 16px); height: 2px; background: var(--line);
  }
}

/* Captive vs broker comparison */
.compare-wrap { margin-top: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare { width: 100%; font-size: 0.9375rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--fog); text-align: left; vertical-align: middle; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--mist); font-size: 0.8125rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare thead th:last-child { color: var(--blue); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { text-align: center; width: 24%; }
.compare thead th:not(:first-child) { text-align: center; }
.compare td:last-child { background: var(--tint-2); }
.cmp-yes { width: 22px; height: 22px; color: var(--blue); margin-inline: auto; stroke-width: 2.5; }
.cmp-no { color: #9aa6b8; font-weight: 700; }
.cmp-text { color: var(--muted); font-size: 0.875rem; }
@media (max-width: 479px) { .compare th, .compare td { padding: 12px 10px; } .compare { font-size: 0.875rem; } }

/* Area pills */
.area-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-pills a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 20px; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, color 150ms ease-out;
}
.area-pills a:hover { border-color: var(--blue); color: var(--blue); background: var(--tint-2); }

/* =====================================================================
   Global restyle: utility bar, header, cards, FAQ, CTA band, footer
   ===================================================================== */
.utility-inner { min-height: 36px; font-size: 0.8125rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--fog); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10, 26, 51, 0.45); }
.nav-list a:not(.btn), .nav-trigger { font-size: 1rem !important; }
@media (min-width: 1120px) {
  .primary-nav { margin-left: var(--space-6); margin-right: auto; }
  .nav-list a:not(.btn)::after, .nav-trigger::after { bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; }
}
.nav-toggle { border-radius: 12px; }
.mega-feature { border-radius: var(--radius-lg) !important; }
.mega-col a { border-radius: 10px !important; }

.text-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(29, 91, 191, 0.3); }
.text-link:hover { text-decoration-color: currentColor; }

.feature-media, .related-card, .link-card, .facts-card, .form-card, .nap-card, .review, .review-empty, .aside-card, .aside-plain, .legal-callout, .consent { border-radius: var(--radius-lg); }
.feature-media { border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.link-card { box-shadow: var(--shadow-sm); }
.link-card-title, .related-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
.facts-card { box-shadow: var(--shadow); border-color: var(--fog); }
.field input, .field select, .field textarea { border-radius: 10px; }
.choice label { border-radius: 12px; }

.numbered > li::before { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.numbered h3 { font-size: 1.1875rem; }
.steps li::before { background: var(--blue); border-color: var(--blue); color: #fff; font-family: var(--font-display); font-weight: 800; }
.section--ink .steps li::before { background: #fff; border-color: #fff; color: var(--ink); }
.coverage-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; }

.faq { border-top: 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding-inline: var(--space-5); transition: box-shadow 160ms ease-out; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--fog); }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; padding-block: 20px; }
.faq summary::after {
  content: '+'; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint); color: var(--blue); font-size: 1.375rem; font-weight: 500;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }

/* CTA band: navy inset card */
.cta-band { background: transparent; padding-block: var(--space-8); }
.cta-band-inner {
  max-width: calc(var(--container) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter));
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-xl);
  background: radial-gradient(120% 140% at 100% 0%, var(--ink-3) 0%, var(--ink) 55%);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); }
.cta-band p { color: var(--muted-light); }
.section--mist + .cta-band, .section--tint + .cta-band { background: linear-gradient(180deg, var(--mist) 50%, #07142a 50%); }
.section--tint + .cta-band { background: linear-gradient(180deg, var(--tint-2) 50%, #07142a 50%); }
.section:not(.section--mist):not(.section--tint):not(.section--ink) + .cta-band, .page-hero + .cta-band, main > .cta-band:first-child { background: linear-gradient(180deg, #fff 50%, #07142a 50%); }
.section--ink + .cta-band { background: linear-gradient(180deg, var(--ink) 50%, #07142a 50%); }

/* Footer */
.site-footer { padding-top: var(--space-7); }
.site-footer .btn--light { --btn-fg: var(--ink); }

/* Service template: coverage cards, numbered cards */
.icon-chip--sm { width: 30px; height: 30px; border-radius: 9px; }
.icon-chip--sm .ui-icon { width: 18px; height: 18px; stroke-width: 2.25; }
.coverage-cards { margin: 0; display: grid; gap: var(--space-4); }
.coverage-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.coverage-item dt { display: flex; align-items: center; gap: 12px; font: 700 1.0625rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.coverage-item dd { margin: 10px 0 0; color: var(--muted); font-size: 0.9375rem; }

.numbered--grid { gap: var(--space-4); }
@media (min-width: 1120px) { .numbered--grid { gap: var(--space-5); } }
.numbered--grid > li {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm);
  padding: var(--space-5); grid-template-columns: 1fr; gap: var(--space-3);
}
.numbered--grid > li::before {
  content: counter(n); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint); color: var(--blue); font-size: 1.0625rem;
}
.numbered--grid h3 { font-size: 1.125rem; }
.numbered--grid p { font-size: 0.9375rem; }
.link-card .icon-chip { margin-bottom: var(--space-2); }

/* Services hub: one row per group */
@media (min-width: 1024px) { .hub-group .related-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
@media (min-width: 800px) and (max-width: 1023px) { .hub-group .related-grid { grid-template-columns: repeat(2, 1fr); } }
.related-card { box-shadow: var(--shadow-sm); }
.related-card:hover { transform: translateY(-2px); }
.hub-group-h { border-bottom: 0; padding-bottom: 0; }

/* Quote page: icon tiles for coverage type */
.choice--icon label { padding: 16px 16px 16px 44px; grid-template-columns: 1fr; }
.choice--icon label .duo-icon { margin-bottom: 4px; }

/* About: values as cards */
.values { border-top: 0; gap: var(--space-4); }
@media (min-width: 800px) { .values { gap: var(--space-5); } .values > div:nth-child(odd), .values > div:nth-child(even) { border-right: 0; padding: var(--space-6); } }
.values > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.pull-quote { font-weight: 700; letter-spacing: -0.02em; color: var(--blue-deep); }
@media (min-width: 1024px) { .hub-group .related-grid[style*="--cols: 2"] .related-card-media { aspect-ratio: 16 / 7; } }
.choice--icon label { align-content: start; }
.nap-item { grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.nap-item .icon-chip { margin-top: 2px; }

/* ---------- Finish-gate review fixes ---------- */
@media (max-width: 1023px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.nap-item a { overflow-wrap: anywhere; }
.choice { display: grid; }
@media (max-width: 559px) {
  .choice--icon label { grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; align-content: center; }
  .choice--icon label .duo-icon { grid-row: span 2; margin: 0; }
}
.prose .pull-quote { margin-block: var(--space-7); }
.cmp-text { font-weight: 600; }
.related-card-body { display: flex; flex-direction: column; }
.related-card .text-link { margin-top: auto; }
.nav-list a[aria-current='true'] { color: var(--blue); }
@media (min-width: 1120px) { .nav-list a[aria-current='true']::after { transform: scaleX(1); } }
@media (min-width: 900px) { .step-row strong { min-height: 2.6em; display: grid; align-content: center; } }
.cta-band { padding-top: 0; }
.section.section--tight + .cta-band, .section + .cta-band { margin-top: 0; }
.footer-legal { border-top: 0; position: relative; }
.footer-legal::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line-dark); }
.page-hero:not(.page-hero--image) .page-hero-inner { padding-block: 40px 48px; }
.hero-card--flush { margin-top: 0; }
.area-pills--start { justify-content: flex-start; margin: var(--space-6) 0 0; max-width: none; }
.areas-band .area-pills a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.areas-band .area-pills a:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Phones: products as compact icon tiles, like the big carriers */
@media (max-width: 639px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card--featured { grid-column: span 2; }
  .product-card:not(.product-card--featured) { padding: 16px; align-items: flex-start; }
  .product-card:not(.product-card--featured) .product-card-text,
  .product-card:not(.product-card--featured) .text-link { display: none; }
  .product-card:not(.product-card--featured) .product-card-title { font-size: 1rem; }
  .product-card .duo-chip { --chip: 56px !important; }
}

/* =====================================================================
   Balanced card grids: every row is full at every screen size.
   12-column track; items span 12/cols. When the count doesn't divide
   evenly, the last row is rebalanced (a row of 3 or 4, or two halves)
   instead of leaving an empty gap. Pure nth-child quantity selectors.
   ===================================================================== */
.link-grid, .coverage-cards, .feature-grid, .choice-grid, .area-pills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.link-grid > *,
.coverage-cards > *,
.feature-grid > *,
.choice-grid > *,
.area-pills > * { grid-column: span 12; }
@media (max-width: 639px) {
  .choice-grid--compact > *, .area-pills > * { grid-column: span 6; }
  .choice-grid--compact > :last-child:nth-child(odd), .area-pills > :last-child:nth-child(odd) { grid-column: span 12; }
}
@media (min-width: 640px) {
.link-grid > *,
.coverage-cards > *,
.feature-grid > *,
.choice-grid > *,
.area-pills > * { grid-column: span 6; }
.link-grid > :last-child:nth-child(odd),
.link-grid > :nth-last-child(2):nth-child(even),
.link-grid > :nth-last-child(3):nth-child(odd),
.coverage-cards > :last-child:nth-child(odd),
.coverage-cards > :nth-last-child(2):nth-child(even),
.coverage-cards > :nth-last-child(3):nth-child(odd),
.feature-grid > :last-child:nth-child(odd),
.feature-grid > :nth-last-child(2):nth-child(even),
.feature-grid > :nth-last-child(3):nth-child(odd),
.choice-grid > :last-child:nth-child(odd),
.choice-grid > :nth-last-child(2):nth-child(even),
.choice-grid > :nth-last-child(3):nth-child(odd),
.area-pills > :last-child:nth-child(odd),
.area-pills > :nth-last-child(2):nth-child(even),
.area-pills > :nth-last-child(3):nth-child(odd) { grid-column: span 4; }
}
@media (min-width: 1024px) {
.link-grid > *,
.coverage-cards > *,
.feature-grid > *,
.choice-grid > *,
.area-pills > * { grid-column: span 4; }
.link-grid > :nth-last-child(1):nth-child(3n+1),
.link-grid > :nth-last-child(2):nth-child(3n),
.link-grid > :nth-last-child(3):nth-child(3n+2),
.link-grid > :nth-last-child(4):nth-child(3n+1),
.coverage-cards > :nth-last-child(1):nth-child(3n+1),
.coverage-cards > :nth-last-child(2):nth-child(3n),
.coverage-cards > :nth-last-child(3):nth-child(3n+2),
.coverage-cards > :nth-last-child(4):nth-child(3n+1),
.feature-grid > :nth-last-child(1):nth-child(3n+1),
.feature-grid > :nth-last-child(2):nth-child(3n),
.feature-grid > :nth-last-child(3):nth-child(3n+2),
.feature-grid > :nth-last-child(4):nth-child(3n+1),
.choice-grid > :nth-last-child(1):nth-child(3n+1),
.choice-grid > :nth-last-child(2):nth-child(3n),
.choice-grid > :nth-last-child(3):nth-child(3n+2),
.choice-grid > :nth-last-child(4):nth-child(3n+1),
.area-pills > :nth-last-child(1):nth-child(3n+1),
.area-pills > :nth-last-child(2):nth-child(3n),
.area-pills > :nth-last-child(3):nth-child(3n+2),
.area-pills > :nth-last-child(4):nth-child(3n+1) { grid-column: span 3; }
.link-grid > :nth-last-child(1):nth-child(3n+2),
.link-grid > :nth-last-child(2):nth-child(3n+1),
.coverage-cards > :nth-last-child(1):nth-child(3n+2),
.coverage-cards > :nth-last-child(2):nth-child(3n+1),
.feature-grid > :nth-last-child(1):nth-child(3n+2),
.feature-grid > :nth-last-child(2):nth-child(3n+1),
.choice-grid > :nth-last-child(1):nth-child(3n+2),
.choice-grid > :nth-last-child(2):nth-child(3n+1),
.area-pills > :nth-last-child(1):nth-child(3n+2),
.area-pills > :nth-last-child(2):nth-child(3n+1) { grid-column: span 6; }
.link-grid > :first-child:nth-last-child(8),
.link-grid > :first-child:nth-last-child(8) ~ *,
.coverage-cards > :first-child:nth-last-child(8),
.coverage-cards > :first-child:nth-last-child(8) ~ *,
.feature-grid > :first-child:nth-last-child(8),
.feature-grid > :first-child:nth-last-child(8) ~ *,
.choice-grid > :first-child:nth-last-child(8),
.choice-grid > :first-child:nth-last-child(8) ~ *,
.area-pills > :first-child:nth-last-child(8),
.area-pills > :first-child:nth-last-child(8) ~ * { grid-column: span 3; }
.link-grid > :first-child:nth-last-child(2),
.link-grid > :first-child:nth-last-child(2) ~ *,
.coverage-cards > :first-child:nth-last-child(2),
.coverage-cards > :first-child:nth-last-child(2) ~ *,
.feature-grid > :first-child:nth-last-child(2),
.feature-grid > :first-child:nth-last-child(2) ~ *,
.choice-grid > :first-child:nth-last-child(2),
.choice-grid > :first-child:nth-last-child(2) ~ *,
.area-pills > :first-child:nth-last-child(2),
.area-pills > :first-child:nth-last-child(2) ~ * { grid-column: span 6; }
  .feature-grid, .coverage-cards, .link-grid { gap: var(--space-5); }
}
.grid-2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.area-pills { justify-content: stretch; }
.area-pills li { display: grid; }
.area-pills a { justify-content: center; text-align: center; border-radius: 14px; line-height: 1.3; }
.area-pills--start { max-width: none; }
.area-pills { gap: 10px; }
@media (max-width: 959px) { .page-hero-media--desktop { display: none; } }
@media (max-width: 639px) { .area-pills a { font-size: 0.875rem; padding: 8px 12px; min-height: 52px; } }

/* ---------- Duotone brand icons (Phosphor) ---------- */
.duo-chip, .duo-icon { display: inline-grid; place-items: center; flex: none; color: var(--blue); }
.duo-chip { width: var(--chip); height: var(--chip); border-radius: calc(var(--chip) * 0.3); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--fog); }
.duo-chip img { width: 76%; height: 76%; object-fit: contain; }
.duo-icon { width: var(--chip); height: var(--chip); }
.duo-icon img { width: 100%; height: 100%; object-fit: contain; }
.product-card .duo-chip { margin-bottom: 6px; }
.feature-card .duo-chip { margin-bottom: var(--space-4); }
.link-card .duo-chip { margin-bottom: var(--space-2); }
.product-card--featured .duo-chip { background: #fff; box-shadow: none; }
.qs-tile input:checked + label .duo-icon { color: var(--blue-strong); }
.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow); }
.hours-card .facts-title { margin-bottom: var(--space-2); }

/* ---------- Date inputs: same box as every other field (iOS Safari draws its own) ---------- */
.field input[type='date'] {
  -webkit-appearance: none; appearance: none; display: block;
  min-width: 0; max-width: 100%; width: 100%; height: 50px;
  text-align: left; line-height: 1.4; background-color: #fff;
}
.field input[type='date']::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.4em; }
.field input[type='date']::-webkit-datetime-edit { padding: 0; }
.field input[type='date']::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.field { min-width: 0; }

/* ---------- Address fields with suggestions ---------- */
.address-combo { position: relative; }
.address-suggest {
  list-style: none; position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
}
.address-suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 0.9375rem; color: var(--ink); line-height: 1.35; }
.address-suggest li:hover, .address-suggest li[aria-selected='true'] { background: var(--tint); color: var(--blue-strong); }
.address-field + .grid-3 { gap: var(--space-4) var(--space-4); }
@media (min-width: 560px) { .address-field + .grid-3 { grid-template-columns: 2fr 0.7fr 1fr; } }
@media (max-width: 559px) {
  .address-field + .grid-3 { grid-template-columns: 1fr 1fr; }
  .address-field + .grid-3 > :first-child { grid-column: 1 / -1; }
}

/* =====================================================================
   Fluid layout for large screens
   Text fills its column (no fixed character caps on left-aligned copy).
   The content area widens on big monitors and type scales with it, so
   pages use the screen instead of sitting in a narrow strip.
   ===================================================================== */
.section-head--center { max-width: 58rem; }
@media (min-width: 1600px) { :root { --container: 1400px; } html { font-size: 106.25%; } }
@media (min-width: 1920px) { :root { --container: 1520px; } html { font-size: 112.5%; } }
@media (min-width: 2400px) { :root { --container: 1760px; } html { font-size: 125%; } }
/* Left-aligned section heads with an intro paragraph: heading left, paragraph right on wide screens */
@media (min-width: 1024px) {
  .section-head:not(.section-head--center):not(.section-head--split):has(> .lede) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); align-items: end;
  }
  .section-head:not(.section-head--center):not(.section-head--split):has(> .lede) > :not(.lede) { grid-column: 1; }
  .section-head:not(.section-head--center):not(.section-head--split):has(> .lede) > .lede { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
}

/* ---------- Statewide coverage (home) ---------- */
.statewide { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .statewide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); } }
.statewide-points { list-style: none; display: grid; gap: var(--space-4); }
.statewide-points li { display: grid; gap: 4px; padding: var(--space-5); background: var(--tint-2); border: 1px solid var(--fog); border-radius: var(--radius-lg); }
.statewide-points strong { font: 700 1.125rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.statewide-points span { color: var(--muted); font-size: 0.9375rem; }
.local-guides { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--fog); font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.local-guides span { font-weight: 700; color: var(--ink); }
.local-guides a { color: var(--muted); text-decoration: none; }
.local-guides a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- After-hours friendly notes (replaces open/closed status) ---------- */
.utility-msg { color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .utility-sub { display: none; } }
.cta-note { width: 100%; color: #dfe8f6; font-size: 0.9375rem; margin-top: 0 !important; }
@media (min-width: 960px) { .cta-note { text-align: right; } }
.nap-note { color: var(--muted); font-size: 0.9375rem; margin: 2px 0 6px; }
@media (min-width: 1120px) { .nav-list > li > a:not(.btn), .nav-trigger { line-height: 1; padding-top: 0; padding-bottom: 0; } }

/* ---------- Community directory (areas hub) ---------- */
.community-dir { display: grid; gap: var(--space-6) var(--space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .community-dir { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.community-dir h3 { font-size: 1.0625rem; margin-bottom: var(--space-3); }
.community-dir h3 a { color: var(--ink); text-decoration: none; }
.community-dir h3 a:hover { color: var(--blue); text-decoration: underline; }
.community-dir ul { list-style: none; display: grid; gap: 6px; }
.community-dir li a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.community-dir li a:hover { color: var(--blue); text-decoration: underline; }
.facts-card dd a { color: var(--blue); }
/* Keep the quote button level with the ZIP box when an error message appears under it */
@media (min-width: 560px) {
  .qs-row { align-items: start; }
  .qs-row .btn { margin-top: calc(1.4 * 0.9375rem + 9px); min-height: 50px; height: 50px; }
}
.qs-zip .field-error { margin-top: 2px; }
.zip-place { font-size: 0.875rem; color: var(--blue); font-weight: 600; min-height: 0; }
.zip-place:empty { display: none; }
.city-options { font-size: 0.875rem; color: var(--muted); }
.city-options:empty { display: none; }
.city-options button { font: inherit; font-weight: 600; color: var(--blue); background: none; border: 0; padding: 2px 0; margin-right: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.city-options button:hover { color: var(--blue-strong); }
.field { align-content: start; }
.h1-like { font-size: var(--step-4); letter-spacing: -0.02em; font-weight: 800; line-height: 1.08; }
.zip-note { font-size: 0.875rem; color: var(--muted); background: var(--tint-2); border: 1px solid var(--fog); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.zip-note:empty { display: none; }
.zip-gate .qs-row { max-width: 520px; }
[hidden] { display: none !important; }
/* ZIP-first step: locked once confirmed */
.zip-gate.is-confirmed .field input[readonly] { background: var(--mist); border-color: var(--fog); color: var(--ink); font-weight: 600; cursor: default; }
.zip-gate.is-confirmed .field input[readonly]:focus { box-shadow: none; border-color: var(--line); }
.zip-change { align-self: center; justify-self: start; font: 700 1rem/1 var(--font-body); color: var(--blue); background: none; border: 0; padding: 12px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.zip-change:hover { color: var(--blue-strong); }
@media (min-width: 560px) { .zip-gate .zip-change { margin-top: calc(1.4 * 0.9375rem + 9px); align-self: start; min-height: 50px; } }

/* ===== Spacing and finish pass ===== */
/* Contact details: the icon chip is 56px, so give it a 56px column and a real gap from the text */
.nap-item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
@media (max-width: 479px) {
  .nap-card-body { padding: var(--space-5); }
  .nap-item a[href^="mailto:"] { font-size: 1rem; }
}
/* Never split a phone number, a town name in a list, or a short legal link across lines */
a[href^="tel:"], .facts-card dd a, .form-legal a, .consent-fine a { white-space: nowrap; }

/* Thank-you and 404: even rhythm from label to heading to text to buttons */
.notfound { gap: 0; }
.notfound .eyebrow { margin-bottom: 0; }
.notfound .eyebrow + h1, .notfound .eyebrow + .h1-like { margin-top: var(--space-3); }
.notfound h1 + .lede, .notfound .h1-like + .lede { margin-top: var(--space-4); }
.notfound .actions { margin-top: var(--space-6); }

/* Buttons need room from the text that follows them */
.aside-card .btn + p { margin-top: var(--space-5); }
.cta-note { margin-top: var(--space-2) !important; }
.nav-cta-mobile:first-of-type { margin-top: var(--space-5); }

/* Rows of form fields keep the same 16px rhythm as the fields inside them */
.form-card > form > .grid-2 + .grid-2,
.form-card > form > .grid-2 + .grid-3,
.form-card > form > [data-after-zip] > .grid-2 + .grid-2,
.form-card > form > [data-after-zip] > .grid-2 + .grid-3 { margin-top: var(--space-4); }

/* Checkbox tiles in forms stay two across so long labels don't stack into tall narrow boxes */
@media (min-width: 640px) {
  .form-card .choice-grid.choice-grid--compact > :nth-child(n) { grid-column: span 6; }
  .form-card .choice-grid.choice-grid--compact > :last-child:nth-child(odd) { grid-column: span 12; }
}

/* Stacked two-column sections: keep the heading attached to its text */
@media (max-width: 959px) { .split { gap: var(--space-5); } }

/* Community directory: lists start at the same height whether a heading wraps or not */
.community-dir h3 { min-height: 2.6em; }

/* Testimonials scenarios line up with the section heading on phones and tablets */
@media (max-width: 899px) { .scenario { padding-inline: 0; } }

/* Small phones: button pairs stack at full width instead of a ragged row */
@media (max-width: 479px) {
  .actions > .btn, .cta-band-actions > .btn { flex: 1 1 100%; }
}

/* Tablets: the facts card uses its width instead of stretching two huge buttons */
@media (min-width: 640px) and (max-width: 1023px) {
  .facts-card { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .facts-card > :not(.btn) { grid-column: 1 / -1; }
}

/* Home product tiles on phones: no lone tile next to an empty cell */
@media (max-width: 639px) {
  .product-grid > .product-card--featured ~ :last-child:nth-child(even) { grid-column: span 2; }
}

/* Services hub on tablets: two cards across instead of one oversized card */
@media (min-width: 640px) and (max-width: 1023px) {
  .hub-group .related-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-group .related-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Tablets: a shorter hero photo so the page content starts sooner */
@media (min-width: 640px) and (max-width: 959px) { .page-hero-media { aspect-ratio: 16 / 9; } }

/* Phones: section headings sit closer to the content they introduce */
@media (max-width: 639px) { .section-head { margin-bottom: var(--space-7); } }

/* FAQ answers read one step smaller than the question */
.faq .faq-a { font-size: 1rem; }

/* Legal note boxes: more room for text on small phones */
@media (max-width: 479px) { .legal-callout { padding: var(--space-5); } }

/* Reviews box: a finished solid border, not a dashed placeholder */
.review-empty { border-style: solid; border-color: var(--line); }

/* Mobile menu: Services and About are collapsed sections people open as needed */
.mega-mobile-all { display: none; }
@media (max-width: 1119px) {
  .nav-list .has-menu > .nav-menu-link { display: none; }
  .has-menu > .nav-trigger {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-4);
    min-height: 52px; padding: 0 4px; background: none; border: 0; border-bottom: 1px solid var(--fog);
    font: 600 1rem/1.2 var(--font-body); color: var(--ink); text-align: left; cursor: pointer;
  }
  .has-menu > .nav-trigger::after {
    content: '+'; font-weight: 400; font-size: 1.625rem; line-height: 1; color: var(--blue);
    transition: transform 200ms ease-out;
  }
  .has-menu > .nav-trigger[aria-expanded='true']::after { transform: rotate(45deg); }
  .has-menu > .nav-trigger[data-current] { color: var(--blue); }
  .has-menu .mega { display: none; }
  .has-menu.is-open .mega { display: block; }
  .mega-mobile-all { display: block; }
  .nav-list .mega-mobile-all a { font-weight: 600; }
}
@media (max-width: 1119px) and (prefers-reduced-motion: reduce) { .has-menu > .nav-trigger::after { transition: none; } }

/* Side columns next to long content follow the reader down the page. If a column is
   taller than the screen, main.js lowers its stick point so its bottom stays reachable. */
@media (min-width: 1024px) {
  .contact-side { position: sticky; top: var(--sticky-top, calc(var(--header-h) + 24px)); align-self: start; }
}

/* Review cards: stars, service, quote, then the name pinned to the bottom so cards in a row line up */
.review { margin: 0; grid-template-rows: auto auto 1fr auto; gap: var(--space-3); box-shadow: var(--shadow-sm); }
.review .stars { margin-bottom: var(--space-1); }
.review-service { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.review blockquote { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
.review figcaption { padding-top: var(--space-4); border-top: 1px solid var(--fog); }
.review figcaption strong { color: var(--ink); }
/* Two across: a lone last card spans the row instead of leaving a gap */
@media (min-width: 800px) and (max-width: 1119px) { .review-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* Home page band: three cards; on tablets show them as one column of three */
.home-reviews .review { border-color: transparent; }
@media (min-width: 800px) and (max-width: 1119px) { .home-reviews .review-grid { grid-template-columns: 1fr; } }

/* Images, icons and the logo can't be dragged out or long-press saved */
svg, .logo, picture { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* reCAPTCHA (added by Netlify at deploy): room above the button, and scaled to fit small phones */
.form-captcha:not(:has(iframe, .g-recaptcha, [data-netlify-recaptcha] *)) { display: none; }
.form-captcha .field-error:empty { display: none; }
@media (max-width: 379px) { .form-captcha iframe { transform: scale(0.88); transform-origin: 0 0; } .form-captcha { margin-bottom: -10px; } }

/* Laptops and desktops: render the whole site at 90%, the same as Chrome's 90% zoom.
   Text, spacing, icons and buttons all scale together. The large-screen tiers move
   down by the same 10% so wide screens get the roomier layout they had at 90% zoom.
   Phones and tablets are unchanged. Browsers without CSS zoom keep the 100% design. */
@supports (zoom: 0.9) {
  @media (min-width: 1024px) { :root { --zoom: 0.9; } html { zoom: 0.9; } }
  @media (min-width: 1440px) { :root { --container: 1400px; } html { font-size: 106.25%; } }
  @media (min-width: 1728px) { :root { --container: 1520px; } html { font-size: 112.5%; } }
  @media (min-width: 2160px) { :root { --container: 1760px; } html { font-size: 125%; } }
}

/* Dropdown arrow on Services and About: points down, flips up while the menu is open */
.nav-caret {
  display: inline-block; flex: none; width: 7px; height: 7px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: 0.75; transition: transform 200ms ease-out;
}
.nav-trigger[aria-expanded='true'] .nav-caret { transform: translateY(2px) rotate(225deg); opacity: 1; }
@media (max-width: 1119px) {
  .has-menu > .nav-trigger::after { content: none; }
  .has-menu > .nav-trigger .nav-caret { width: 9px; height: 9px; margin-left: auto; margin-right: 6px; color: var(--blue); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .nav-caret { transition: none; } }

/* Bigger top-level menu items (dropdown links keep their size) */
.nav-list > li > a:not(.btn), .nav-list > li > .nav-trigger { font-size: 1.0625rem !important; }
@media (min-width: 1120px) {
  .nav-list { gap: 6px; }
  .nav-list > li > a:not(.btn), .nav-list > li > .nav-trigger { padding-inline: 13px; font-weight: 600; }
  .nav-list > li > a:not(.btn)::after, .nav-list > li > .nav-trigger::after { left: 13px; right: 13px; }
}

/* Desktop header: logo and quote button sized to match the larger menu items */
@media (min-width: 1120px) {
  :root { --header-h: 82px; }
  .site-header .logo { gap: 14px; }
  .site-header .logo-mark { width: 44px; }
  .site-header .logo-name { font-size: 1.5625rem; }
  .site-header .logo-sub { font-size: 0.75rem; margin-top: 5px; }
  .header-actions .btn { min-height: 46px; padding: 0 26px; font-size: 1.0625rem; }
}

/* Desktop top bar: text and height scaled with the header below it */
@media (min-width: 1120px) {
  .utility-inner { min-height: 40px; font-size: 0.9375rem; }
  .utility-phone { font-size: 1rem; font-weight: 700; }
}
