/* TBM Auto Appraiser — shared site styles */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
/* Metric-matched fallback to limit layout shift while the web font loads */
@font-face {
  font-family: "Jakarta Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 96%;
  descent-override: 24%;
}

:root {
  --navy: #0b1224;
  --navy-2: #111a33;
  --navy-3: #070c1a;
  --ink: #0b1224;
  --text: #2a3145;
  --muted: #5b6378;
  --on-dark: #c9d1e6;
  --on-dark-muted: #9aa4bd;
  --line: #d9def0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --bg: #ffffff;
  --tint: #eef1fb;
  --blue: #2a66db;
  --blue-hover: #1e56b8;
  --blue-soft: #e3eafc;
  --hl-dark: #b8c7ff;
  --danger: #d92d20;
  --danger-on-dark: #ff9b93;
  --success: #3ccf8e;
  --star: #fbbc04;

  --font: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 2px 16px rgba(11, 18, 36, 0.06), 0 1px 3px rgba(11, 18, 36, 0.05);
  --shadow-lg: 0 24px 60px rgba(11, 18, 36, 0.28);
  --container: 1200px;
  --gutter: 20px;
  --section-y: clamp(72px, 9vw, 120px);
  --topbar-h: 44px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.hl { color: var(--blue); }
.section-dark .hl, .hero .hl, .page-hero .hl { color: var(--hl-dark); }

/* Zero-size rather than display:none, so gradients and text paths inside symbols render everywhere. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.1em; height: 1.1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-xl { width: 52px; height: 52px; }
.visually-hidden {
  position: absolute; 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: -100px; z-index: 200;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 10px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(42, 102, 219, .35); }
.btn-primary:hover { background: var(--blue-hover); color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; box-shadow: none; }
.btn-lg { min-height: 58px; padding: 16px 34px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
/* Phone button under the CTA in the mobile menu only; the top bar already shows the number on desktop. */
.nav-call { display: none; }
@media (max-width: 1100px) {
  .nav-call { display: inline-flex; margin-top: -4px; background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
  .nav-call:hover { background: var(--navy-2); color: #fff; }
  .nav-call .icon { width: 18px; height: 18px; }
}
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- CTA block + trust badges ---------- */
.cta-block { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 44px; }
.section-head + .cta-block { margin: 0 0 64px; }
.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px;
  font-size: .75rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
}
.trust-badges li { display: inline-flex; align-items: center; gap: 8px; }
.trust-badges span { display: grid; text-align: left; font-weight: 500; }
.trust-badges b { font-weight: 800; }
.trust-badges .icon { width: 20px; height: 20px; color: var(--blue); }
.trust-badges .laurel { width: 15px; height: 35px; color: currentColor; }
.trust-badges .laurel-r { transform: scaleX(-1); }
/* Gold money-back seal: its colors live in the #i-guarantee symbol, so it reads the same on light and dark. */
.trust-badges .seal { width: 35px; height: 35px; flex: none; }
.badge-laurel { gap: 6px !important; }
.section-dark .trust-badges, .hero .trust-badges, .page-hero .trust-badges { color: #e6ebf7; }
.section-dark .trust-badges .icon, .hero .trust-badges .icon, .page-hero .trust-badges .icon { color: var(--hl-dark); }
.hero-head > .trust-badges { justify-content: flex-start; flex-wrap: nowrap; gap: 14px 18px; margin-bottom: 22px; font-size: .75rem; }
.hero-head > .trust-badges .icon { width: 24px; height: 24px; }
.hero-head > .trust-badges .laurel { width: 16px; height: 38px; }
.hero-head > .trust-badges .seal { width: 34px; height: 34px; }

/* ---------- Top bar (sticky, always visible) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: linear-gradient(90deg, #3d74e6 0%, var(--blue-hover) 100%);
  color: #fff;
}
.topbar-inner {
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.topbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  /* Full bar height is tappable */
  padding: 12px 8px; margin: -12px -8px;
  color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
}
.topbar-phone:hover { color: #fff; text-decoration: underline; }
.topbar-phone .icon { width: 16px; height: 16px; }
.topbar-license {
  padding-left: 16px; border-left: 1px solid rgba(255,255,255,.4);
  font-weight: 600; font-size: .875rem; letter-spacing: .01em; white-space: nowrap;
}
.topbar-license a { color: inherit; text-decoration: none; }
.topbar-license a:hover { text-decoration: underline; }
@media (max-width: 360px) {
  .topbar-inner { gap: 12px; }
  .topbar-phone { font-size: .9375rem; }
  .topbar-license { padding-left: 12px; font-size: .8125rem; }
}

/* ---------- Header (docks under top bar, hides on scroll down) ---------- */
.site-header {
  position: sticky; top: var(--topbar-h); z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 1px)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo-mark { font-size: 1.65rem; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.03em; }
.logo-word { font-size: .8125rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark); white-space: nowrap; }
/* "Auto Appraiser" is long: tighten tracking so the wordmark stays on one line on the smallest phones. */
@media (max-width: 359px) { .logo-word { letter-spacing: .16em; } }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list > li > a, .menu-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0; background: none; border: 0; cursor: pointer;
  font: 600 .9688rem/1 var(--font); color: #e6ebf7; text-decoration: none;
}
.nav-list > li > a:hover, .menu-toggle:hover { color: #fff; }
.menu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.has-menu { position: relative; }
.services-menu { display: none; }
.services-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.services-menu a:hover { background: var(--tint); color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: #fff;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1101px) {
  .header-inner { position: relative; }
  .has-menu { position: relative; align-self: stretch; display: flex; align-items: center; }
  .services-menu {
    position: absolute; top: 100%; left: 50%; z-index: 10;
    width: 560px; transform: translateX(-50%);
    padding: 20px 16px 12px; background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg);
  }
  .has-menu:hover .services-menu,
  .menu-toggle[aria-expanded="true"] + .services-menu { display: block; }
  .menu-groups {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px;
    grid-template-areas: "insurance vehicle" "special vehicle";
    align-items: start;
  }
  .menu-group--insurance { grid-area: insurance; }
  .menu-group--vehicle { grid-area: vehicle; }
  .menu-group--special { grid-area: special; }
  .services-menu a { padding: 7px 12px; }
  .services-menu .menu-all { display: flex; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--topbar-h) - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .menu-toggle { width: 100%; min-height: 52px; justify-content: space-between; border-bottom: 1px solid var(--line-dark); font-size: 1.0625rem; }
  .menu-toggle[aria-expanded="true"] + .services-menu { display: block; padding: 8px 0 16px; }
  .services-menu a { color: var(--on-dark); padding: 10px 12px; }
  .services-menu a:hover { background: var(--navy-2); color: #fff; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { margin: 0; font-size: 1.125rem; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 18, 36, .96) 0%, rgba(11, 18, 36, .85) 50%, rgba(11, 18, 36, .7) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 460px; gap: 72px; } }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, max-content); gap: 16px 28px; margin: 0 0 22px; }
@media (max-width: 420px) { .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; } .hero-stats strong { font-size: 1.5rem; } .hero-stats span { font-size: .8125rem; } }
.hero-stats li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--hl-dark); }
.hero-stats strong { color: #fff; font-size: 1.75rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.hero-stats span { color: var(--on-dark-muted); font-size: .875rem; font-weight: 500; }
@media (min-width: 1000px) {
  .hero--badged { --hero-h1: clamp(2.6rem, 4.2vw, 3.75rem); }
  .hero--badged .hero-grid { align-items: start; }
  .hero--badged h1 { font-size: var(--hero-h1); margin-bottom: 26px; }

  /* Badges span exactly the H1's first line. Column 1 is sized by line 1 (and the badges);
     lines 2-3 also span the flexible column 2, so they can't widen column 1. */
  .hero-head { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
  .hero-head > * { grid-column: 1 / -1; }
  .hero--badged h1 { display: grid; grid-template-columns: subgrid; }
  .hero--badged .h1-line { grid-column: 1 / -1; }
  .hero--badged .h1-line:first-child { grid-column: 1; }

  /* Scaled off the H1 size so the badges always fit inside line 1, with an 11px floor. */
  .hero-head > .trust-badges { grid-column: 1; justify-content: space-between; gap: 0 1em; font-size: max(.6875rem, calc(var(--hero-h1) * .24)); }
  .hero-head > .trust-badges .icon { width: 1.9em; height: 1.9em; }
  .hero-head > .trust-badges .laurel { width: 1.3em; height: 3em; }
  .hero-head > .trust-badges .seal { width: 3em; height: 3em; }
}
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 58ch; margin-bottom: 28px; }
.lead strong { color: #fff; font-weight: 700; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
  color: #fff; font-weight: 600; font-size: .9375rem;
}
.hero-chips .icon { color: var(--hl-dark); width: 16px; height: 16px; }

/* ---------- Hero form ----------
   A solid white panel with the owner's face at every width: it reads as "a form"
   instantly and pops off the navy. Three trust signals sit inside it, under a hairline. */
.form-card {
  padding: 20px 22px 16px; background: #fff; color: var(--text); border-radius: 18px;
  box-shadow: 0 32px 70px -24px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08);
}
@media (max-width: 420px) { .form-card { padding: 18px 16px 14px; } }
.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.form-avatar { display: block; flex: none; }
.form-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hl-dark); }
.form-title { margin: 0; color: var(--ink); font-size: 1.3125rem; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.form-title u { text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.field { position: relative; display: flex; flex-direction: column; margin-bottom: 7px; min-width: 0; }
.field label {
  position: absolute; top: 7px; left: 16px; right: 40px; z-index: 1; pointer-events: none;
  font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .02em; color: #4a5268;
}
.field-optional { font-weight: 500; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 21px 14px 3px;
  font: 500 1rem/1.4 var(--font); color: var(--ink);
  background-color: #f4f6fb; border: 1.5px solid #dde2ee; border-radius: 8px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6378' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder { color: #7b8399; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background-color: #fff; box-shadow: 0 0 0 3px rgba(42, 102, 219, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 5px 0 0; font-size: .8125rem; font-weight: 600; color: var(--danger); }
.form-card .btn-lg { min-height: 50px; margin-top: 5px; padding-top: 12px; padding-bottom: 12px; }
.form-status { margin: 10px 0 0; font-size: .9375rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); font-weight: 600; }
.form-note { margin: 10px 0 0; font-size: .75rem; line-height: 1.5; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 32px 4px; color: var(--text); }
.form-success .icon { color: var(--success); margin: 0 auto 14px; }
.form-success-title { margin: 0 0 10px; color: var(--ink); font-size: 1.6rem; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.form-success a { color: var(--blue); font-weight: 700; }

/* Trust row: Google rating | money-back guarantee | $ recovered. Icon-left in one row;
   when the card gets too narrow for that (phones), each item stacks icon over text. */
.form-trust { container-type: inline-size; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding-top: 12px; border-top: 1px solid #e6e9f2; color: var(--ink); }
.form-trust li { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 0; padding: 0 6px; }
.form-trust li + li { border-left: 1px solid #e6e9f2; }
.form-trust-logo { width: 24px; height: 24px; flex: none; }
.form-trust-seal { width: 30px; height: 30px; flex: none; }
.form-trust-icon { width: 26px; height: 26px; color: var(--blue); }
.form-trust-text { display: grid; justify-items: start; gap: 4px; line-height: 1; white-space: nowrap; }
.form-trust-text b { font-size: .875rem; font-weight: 800; letter-spacing: -.01em; }
.form-trust-stars { display: flex; gap: 2px; color: #fbbc04; }
.form-trust-stars svg { width: 14px; height: 14px; fill: currentColor; }
.form-trust-label { font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4a5268; }
/* Home form: Google rating | I-CAR Platinum logo | BBB A+ Accredited (partials/form-trust-icar.html). Stays a row at every width.
   The badges span the full card width: outer items sit on the edges, and ::before/::after are the dividers, centered in the two gaps. */
.form-trust:has(.form-trust-icar) { grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto; }
.form-trust:has(.form-trust-icar) li { padding: 0; }
.form-trust:has(.form-trust-icar) li + li { border-left: 0; }
.form-trust:has(.form-trust-icar)::before,
.form-trust:has(.form-trust-icar)::after { content: ""; justify-self: center; width: 1px; background: #e6e9f2; }
.form-trust:has(.form-trust-icar) li:nth-child(1) { order: 1; }
.form-trust:has(.form-trust-icar)::before { order: 2; }
.form-trust:has(.form-trust-icar) li:nth-child(2) { order: 3; }
.form-trust:has(.form-trust-icar)::after { order: 4; }
.form-trust:has(.form-trust-icar) li:nth-child(3) { order: 5; }
.form-trust .form-trust-icar { flex-direction: row; gap: 10px; text-align: left; }
.form-trust-icar picture { flex: none; }
.form-trust-icar img { display: block; width: 44px; height: auto; aspect-ratio: 800 / 737; }
.form-trust .form-trust-icar .form-trust-text { justify-items: start; gap: 3px; width: min-content; white-space: normal; } /* "I-CAR" / "Platinum" on two lines */
.form-trust-bbb a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.form-trust-bbb a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.form-trust-bbb-logo { flex: none; width: 24px; height: 41px; color: #005f86; }
@container (max-width: 410px) {
  .form-trust .form-trust-icar { flex-direction: column; gap: 6px; text-align: center; }
  .form-trust .form-trust-icar .form-trust-text { justify-items: center; }
  .form-trust-bbb a { flex-direction: column; gap: 6px; text-align: center; }
  .form-trust .form-trust-bbb .form-trust-text { justify-items: center; }
}
@container (max-width: 410px) {
  .form-trust li { flex-direction: column; gap: 6px; text-align: center; }
  .form-trust-text { justify-items: center; }
}
@container (max-width: 270px) {
  .form-trust li { padding: 0 2px; }
  .form-trust-text b { font-size: .75rem; }
  .form-trust-label { font-size: .625rem; letter-spacing: .03em; }
}

/* ---------- Desktop hero ----------
   The whole form + rating fits above the fold down to a 1366x768 laptop's real
   browser viewport (~657px tall once tabs and the address bar are counted). */
@media (min-width: 1000px) {
  .hero { padding-top: 24px; padding-bottom: 56px; }
  .hero.hero--badged { padding-top: 56px; } /* breathing room between the nav and the badges */

  .hero--badged .lead { max-width: 34em; color: #c3cbe0; font-size: 1.125rem; line-height: 1.65; margin-bottom: 0; }
}
/* Atlanta skyline: retain city detail while keeping the white copy legible. */
.hero--atlanta .hero-bg img { opacity: 1; object-position: center 48%; }
.hero--atlanta::after {
  background: linear-gradient(90deg, rgba(11, 18, 36, .86) 0%, rgba(11, 18, 36, .68) 40%, rgba(11, 18, 36, .28) 72%, rgba(11, 18, 36, .38) 100%);
}
@media (max-width: 999px) {
  .hero--atlanta .hero-bg img { object-position: 44% center; }
  .hero--atlanta::after { background: linear-gradient(180deg, rgba(11, 18, 36, .76), rgba(11, 18, 36, .64) 45%, rgba(11, 18, 36, .9)); }
}
/* Short laptop screens (e.g. 1366x768 -> ~657px viewport): tighten so the form stays above the fold. */
@media (min-width: 1000px) and (max-height: 720px) {
  .hero { padding-top: 18px; }
  .hero.hero--badged { padding-top: 32px; }
  .form-head { margin-bottom: 10px; }
  .form-avatar img { width: 44px; height: 44px; }
  .field { margin-bottom: 6px; }
  .field input, .field select { min-height: 47px; padding-top: 19px; padding-bottom: 2px; }
  .field label { top: 6px; }
  .form-trust { margin-top: 10px; padding-top: 10px; }
}

/* ---------- Professional qualifications (band styles: credentials.css) ---------- */
.contact-qualifications { max-width: 48ch; font-size: .9375rem; color: var(--on-dark); }
.contact-qualifications a { color: #fff; text-underline-offset: 4px; }

/* ---------- Proof pillars (right under the hero) ----------
   Phones: compact icon-left rows. Tablet: 2x2. Desktop: 4 columns with hairline dividers.
   From tablet up, each pillar is a 3-row subgrid so icons, headings and text line up across columns. */
.pillars { display: grid; text-align: center; }
.pillar { display: grid; justify-items: center; align-content: start; }
.pillar-icon { width: 60px; height: 60px; margin: 12px 0; stroke-width: 1.6; color: var(--blue); }
.pillar-seal { width: 84px; height: 84px; }
.pillar h3 { margin: 20px 0 12px; font-size: 1.375rem; line-height: 1.2; }
.pillar p { margin: 0; max-width: 30ch; }
@media (max-width: 639px) {
  .pillars { text-align: left; }
  .pillar { grid-template-columns: 56px 1fr; column-gap: 16px; justify-items: start; padding: 22px 0; }
  .pillar:first-child { padding-top: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .pillar > svg { grid-row: span 2; justify-self: center; }
  .pillar-icon { width: 44px; height: 44px; margin: 4px 0 0; }
  .pillar-seal { width: 56px; height: 56px; }
  .pillar h3 { margin: 0 0 6px; font-size: 1.125rem; }
  .pillar p { max-width: none; font-size: .9375rem; }
}
@media (min-width: 640px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .pillar { grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 48px; }
}
@media (min-width: 1000px) {
  .pillars { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .pillar { padding: 0 28px; }
  .pillar + .pillar { border-left: 1px solid var(--line); }
  .pillars + .cta-block { margin-top: 64px; }
}

/* ---------- Guarantee (right before the final CTA) ---------- */
.guarantee { --seal: clamp(148px, 17vw, 196px); }
.guarantee-seal { display: block; width: var(--seal); height: var(--seal); margin: 0 auto 32px; }
.guarantee h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.08; margin-bottom: 20px; }
.guarantee h2 .hl { white-space: nowrap; } /* "Your Money Back." always stays on one line */
.guarantee-body { max-width: 40em; margin: 0 auto; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.65; color: var(--muted); }
.guarantee-note { margin: 28px 0 0; font-size: .9375rem; font-weight: 700; color: var(--ink); }
/* Inline icon so it stays next to the first word when the line wraps on phones. */
.guarantee-note .icon { width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; color: var(--blue); }

/* ---------- Claim cards: total loss + diminished value side by side (home) ---------- */
.claim-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .claim-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.claim-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.claim-icon { width: 48px; height: 48px; margin-bottom: 18px; stroke-width: 1.6; color: var(--blue); }
.claim-card h2 { margin-bottom: 16px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.claim-card .check-list { margin: 0 0 28px; }
/* margin-top: auto pins the quote and link to the bottom, so the two cards line up. */
.claim-quote {
  align-self: stretch; margin: auto 0 22px; padding: 18px 20px;
  border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--tint);
}
.claim-quote blockquote { margin: 0 0 10px; }
.claim-quote p { margin: 0; font-weight: 600; line-height: 1.5; color: var(--ink); }
.claim-quote figcaption { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.claim-quote-g { width: 18px; height: 18px; flex: none; }
.claim-stars { display: inline-flex; gap: 1px; margin-left: 2px; }
.claim-stars svg { width: 14px; height: 14px; fill: var(--star); }
/* Inline (not inline-flex) so the arrow follows the last word when the link wraps on phones. */
.claim-card .text-link { display: inline; }
.claim-card .text-link .icon { margin-left: 6px; vertical-align: -3px; }

/* ---------- Service area band (home) ---------- */
.section.area-band { padding: clamp(56px, 7vw, 88px) 0; }
.area-band h2 { margin-bottom: 16px; }
.area-lead { max-width: 44em; margin: 0 auto 28px; color: var(--on-dark); }
/* 960px fits the 16 cities as two rows of 8 on desktop, so none sits alone. */
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 960px; margin: 0 auto; }
.area-chips li {
  padding: 6px 16px; border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: #fff; font-size: .9375rem; font-weight: 600;
}
.area-band .text-link { margin-top: 28px; color: #fff; }
.area-band .text-link .icon { color: var(--hl-dark); }

/* ---------- Why ---------- */
.why-list { display: grid; gap: 20px; }
.why-item {
  display: flex; gap: 22px; align-items: center;
  padding: 22px; border-radius: var(--radius-lg); background: var(--navy-2);
}
.why-icon {
  flex: none; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid var(--blue); color: #fff;
}
.why-icon .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.why-item h3 { margin-bottom: 6px; font-size: 1.2rem; }
.why-item p { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }
@media (max-width: 560px) {
  .why-item { flex-direction: column; align-items: flex-start; }
  .why-icon { width: 64px; height: 64px; }
}

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 18px; grid-auto-flow: dense; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); } .service-wide { grid-column: span 2; } }
@media (min-width: 1040px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-wide { background: linear-gradient(135deg, #fff 0%, var(--blue-soft) 100%); }
.service h3 { margin-bottom: 10px; font-size: 1.1875rem; }
.service-wide h3 { font-size: 1.375rem; }
.service h3 a { color: var(--ink); text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service p { flex: 1; margin-bottom: 16px; color: var(--muted); font-size: .9688rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 700; color: var(--blue); }
.more .icon { width: 16px; height: 16px; transition: transform .2s; }
.service:hover .more .icon { transform: translateX(3px); }

/* ---------- Diminished value ---------- */
.dv-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .dv-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; } }
.dv-copy h2 { margin-bottom: 20px; }
.answer { font-size: 1.125rem; }
.answer strong { color: var(--ink); }
.check-list { display: grid; gap: 10px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list .icon { color: var(--blue); margin-top: 5px; stroke-width: 2.6; }
.fine-print { font-size: .875rem; color: var(--muted); margin: 0; }

.report-card { margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.pill { font-size: .75rem; font-weight: 700; color: var(--blue-hover); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.report-rows { margin: 0; }
.report-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.report-rows dt { color: var(--muted); }
.report-rows dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.report-total {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--navy); color: var(--on-dark); font-weight: 600;
}
.report-total strong { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.report-card figcaption { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
/* Smallest phones (320px): the card's min-content was wider than the screen. */
@media (max-width: 360px) {
  .report-card { padding: 20px 16px; }
  .report-total { padding: 14px; }
  .report-total strong { font-size: 1.6rem; }
}

/* ---------- Process ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 28px; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid var(--line-dark); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }

/* ---------- About ---------- */
.about { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: 1fr 400px; gap: 80px; } }
.about h2 { margin-bottom: 20px; }
.about-photo img { width: 100%; max-width: 400px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Reviews (laid out like Google review cards) ---------- */
#reviews-title { text-wrap: balance; }
#reviews-title .hl { white-space: nowrap; }
.reviews { column-gap: 20px; }
@media (min-width: 760px) { .reviews { columns: 2; } }
.g-review {
  --g-name: #1f1f1f; --g-meta: #70757a; --g-body: #3c4043;
  break-inside: avoid; margin-bottom: 20px; padding: 24px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  font-family: Roboto, Arial, var(--font); letter-spacing: 0;
}
.g-review-head { display: flex; align-items: center; gap: 14px; }
.g-avatar {
  position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  border-radius: 50%; color: #fff; font-size: 1.25rem; font-weight: 500; line-height: 1;
}
.g-avatar--pink { background: #d6487e; }
.g-avatar--green { background: #1d5944; }
.g-avatar--purple { background: #7e57c2; }
.g-avatar--default { overflow: hidden; background: #c9ccd1; }
.g-avatar--default svg { width: 38px; height: 38px; margin-top: 10px; fill: #fff; }
.g-guide-badge {
  position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center;
  width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #f29900;
}
.g-guide-badge svg { width: 10px; height: 10px; fill: #fff; }
.g-review-who { flex: 1; min-width: 0; line-height: 1.35; }
.g-review-name { display: block; color: var(--g-name); font-size: 1.0625rem; font-weight: 500; }
.g-review-meta { display: block; color: var(--g-meta); font-size: .875rem; }
.g-logo { flex: none; align-self: flex-start; width: 24px; height: 24px; }
.g-review-rating { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--g-meta); font-size: .875rem; }
.g-stars { display: inline-flex; gap: 1px; }
.g-stars svg { width: 18px; height: 18px; fill: var(--star); }
.g-review-text { margin: 0; color: var(--g-body); font-size: 1rem; line-height: 1.6; }
.g-review-text p { margin: 0 0 1.1em; }
.g-review-text p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue); font-size: 1.25rem; font-weight: 700; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-size: 1.0625rem; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: radial-gradient(800px 360px at 50% 0%, rgba(42, 102, 219, .35), transparent 70%), var(--navy); }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { font-size: 1.125rem; margin: 0; }

/* ---------- Simple page hero (service pages, 404) ---------- */
.page-hero { background: radial-gradient(900px 420px at 50% 0%, rgba(42, 102, 219, .3), transparent 70%), var(--navy); color: var(--on-dark); padding: clamp(72px, 10vw, 128px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
.page-hero-sub { margin: 20px auto 0; max-width: 56ch; font-size: 1.125rem; }
.page-hero-sub a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: var(--on-dark-muted); padding: 72px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { max-width: 38ch; margin: 18px 0 20px; }
.footer-contact { display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--hl-dark); }
.footer-brand .footer-license { display: flex; align-items: center; gap: 12px; max-width: 38ch; margin: 0 0 20px; font-size: .8125rem; line-height: 1.5; }
.footer-license .seal { flex: none; width: 40px; height: 40px; }
.footer-license strong { display: block; color: #fff; }
/* Official BBB dynamic seal (hotlinked, unmodified, per BBB seal rules). */
.footer-bbb { display: block; width: max-content; margin: 0 0 32px; }
.footer-bbb img { display: block; width: 200px; height: 42px; }
.footer-title { margin: 0 0 16px; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.footer-grid ul { display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }
.footer-bottom p { margin: 0; }
.footer-location { display: grid; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer-location p { margin: 0 0 16px; }
.footer-location strong { color: var(--on-dark); }
.footer-location iframe { display: block; width: 100%; height: 300px; border-radius: var(--radius); }
@media (min-width: 900px) { .footer-location { grid-template-columns: 1fr 2fr; gap: 40px; } }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 480px) {
  .btn-lg { width: 100%; padding-left: 12px; padding-right: 12px; }
  .trust-badges { gap: 12px 18px; }
}
/* Keep "Get My Free Case Review" on one line inside the form card on the smallest phones. */
@media (max-width: 359px) {
  .btn-lg { font-size: 1rem; }
  .btn-lg .icon { display: none; }
}

/* ---------- Grouped services dropdown ---------- */
.menu-group-title { margin: 0 0 4px; padding: 0 12px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.menu-all { align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; color: var(--blue) !important; }
@media (max-width: 1100px) {
  .menu-group { margin-top: 12px; }
  .menu-group-title { color: var(--hl-dark) !important; }
  .menu-all { display: inline-flex; margin-top: 12px; color: #fff !important; }
}

/* ---------- Hero chips as links ---------- */
.hero-chips a, .hero-chips span { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.hero-chips li:has(a):hover { border-color: var(--hl-dark); background: rgba(255, 255, 255, .1); }

/* ---------- Service-page hero (no photo) ---------- */
.hero-service { background: radial-gradient(900px 480px at 15% 0%, rgba(42, 102, 219, .32), transparent 65%), var(--navy); }
.hero-service::after { content: none; }
.hero-service h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: .875rem; color: var(--on-dark-muted); }
.page-hero .breadcrumb ol { justify-content: center; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Content layouts ---------- */
.prose-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .prose-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.prose h2 { margin-bottom: 20px; }
.prose h3 { margin: 28px 0 12px; font-size: 1.25rem; }
.prose .text-link { margin-top: 8px; }
.callout { padding: 28px; border-radius: var(--radius-lg); background: var(--tint); border: 1px solid var(--line); }
.section-tint .callout { background: #fff; }
.callout h3 { margin-bottom: 16px; font-size: 1.2rem; }
.callout dl { margin: 0; }
.callout dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.callout dl div:last-child { border-bottom: 0; }
.callout dt { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.callout dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.number-list { display: grid; gap: 14px; counter-reset: num; }
.number-list li { position: relative; padding-left: 44px; counter-increment: num; }
.number-list li::before {
  content: counter(num); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .875rem; font-weight: 800;
}
.number-list strong { color: var(--ink); }
.section-link { margin: 40px 0 0; }

/* ---------- Home: grouped service directory (each item keeps an H2) ---------- */
.svc-groups { display: grid; gap: 40px 28px; }
@media (min-width: 900px) { .svc-groups { grid-template-columns: 1fr 1fr; } .svc-group--wide { grid-column: 1 / -1; } }
.svc-group-head { margin-bottom: 14px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.svc-item h3, .svc-tile h3 { margin: 0 0 2px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.svc-item h3 a, .svc-tile h3 a { color: var(--ink); text-decoration: none; }
.svc-item h3 a::after, .svc-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc-item p, .svc-tile p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.45; text-wrap: pretty; }
.svc-item h3 a:focus-visible, .svc-tile h3 a:focus-visible { outline: none; }
.svc-item:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.svc-tile:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Text groups: one bordered list, rows split by hairlines. */
.svc-list { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.svc-item {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; transition: background-color .2s;
}
.svc-item + .svc-item { border-top: 1px solid var(--line); }
.svc-item > div { flex: 1; min-width: 0; }
.svc-item > .icon { width: 18px; height: 18px; color: var(--blue); transition: transform .2s; }
.svc-item:has(a):hover { background: var(--tint); }
.svc-item:hover > .icon { transform: translateX(3px); }

/* Vehicle group: icon tiles. */
.svc-tiles { display: grid; gap: 10px; }
@media (min-width: 640px) { .svc-tiles { gap: 14px; } }
@media (min-width: 640px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-tiles { grid-template-columns: repeat(3, 1fr); } }
.svc-tile {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.svc-tile:has(a):hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-tile-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue); }
.svc-tile-icon .icon { width: 32px; height: 32px; stroke-width: 1.75; }
@media (max-width: 639px) { .svc-item { padding: 16px 18px; } .svc-tile { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .svc-tile:hover { transform: none; } .svc-item:hover > .icon { transform: none; } }

/* ---------- Path cards (two core services) ---------- */
.path-grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .path-grid { grid-template-columns: 1fr 1fr; } }
.path-card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff 0%, var(--blue-soft) 100%); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.path-card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.path-q { margin: 0 0 6px; font-weight: 700; color: var(--blue-hover); }
.path-card h3 { margin-bottom: 12px; font-size: 1.6rem; }
.path-card h3 a { color: var(--ink); text-decoration: none; }
.path-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.path-card > p:not(.path-q) { flex: 1; color: var(--muted); }

/* ---------- Services overview groups ---------- */
.service-group + .service-group { margin-top: 64px; }
.service-group h2 { margin-bottom: 24px; font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ---------- Related services ---------- */
.related-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .related-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.related-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.related-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.related-card p { flex: 1; margin-bottom: 10px; color: var(--muted); }
.related-card h3 { margin-bottom: 14px; }
.related-card h3 a { color: var(--ink); text-decoration: none; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Issues + comparison (core service pages) ---------- */
.issue-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .issue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .issue-grid { grid-template-columns: repeat(3, 1fr); } }
.issue { padding: 26px; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid var(--line-dark); }
.issue .icon { width: 28px; height: 28px; margin-bottom: 14px; color: var(--hl-dark); }
.issue h3 { margin-bottom: 8px; }
.issue p { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }
.compare-grid { display: grid; gap: 20px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card { padding: 30px; border-radius: var(--radius-lg); background: var(--navy-2); border: 1px solid var(--line-dark); }
.compare-card-good { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.compare-card h3 { margin-bottom: 18px; font-size: 1.3rem; }
.compare-list { display: grid; gap: 12px; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; }
.compare-list .icon { margin-top: 5px; color: #ff9b93; }
.compare-card-good .compare-list .icon { color: var(--success); }

/* ---------- Why row + light steps (about) ---------- */
.why-list-row { margin-bottom: 8px; }
@media (min-width: 1040px) { .why-list-row { grid-template-columns: repeat(3, 1fr); } .why-list-row .why-item { flex-direction: column; align-items: flex-start; } }
/* Smallest phones (320px): keep the callout padding from pushing past the screen. */
@media (max-width: 360px) { .callout { padding: 22px 16px; } }
.steps-light li { background: #fff; border-color: var(--line); }
.steps-light h3 { color: var(--ink); }
.steps-light p { color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-list { display: grid; gap: 14px; margin: 8px 0 32px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list .icon { color: var(--hl-dark); }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.125rem; }
.contact-list a:hover { text-decoration: underline; }
.have-ready { padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); }
.have-ready h2 { margin-bottom: 12px; font-size: 1.2rem; color: #fff; }
.have-ready .check-list { margin: 0 0 8px; }
.have-ready .check-list li { color: var(--on-dark); font-weight: 500; }
.have-ready .check-list .icon { color: var(--hl-dark); }
.have-ready .form-note { text-align: left; margin: 0; }

/* ---------- Footer with service groups ---------- */
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr .8fr; gap: 40px; } }

.hero-service .hero-grid { align-items: start; }
.hero-service .hero-copy { padding-top: 12px; }
