/* ==========================================================================
   M.G Roadside Towing Inc. - Core stylesheet

   Built from the "M.G Roadside Towing" design system made in Claude Design,
   using its light theme (Nov 2026: the owner moved from the dark "asphalt"
   theme to white pages). White pages, near-black text, the logo's red for
   buttons and accents; the closing call panel and footer stay asphalt grey,
   as the design system keeps them in both themes. One typeface
   (Overpass, the road-sign face), mostly square corners, and one signature
   element: the red/white conspicuity stripe, exactly twice per page (under
   the header, above the footer). Phone first; desktop from 900px.
   ========================================================================== */

/* Overpass, self-hosted (assets/fonts/OFL.txt): one variable file, 400-900 */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/overpass-latin-wght.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   1. Tokens (values from the design system's tokens.json, light theme)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* On white the logo red reads as text (6.5:1), so --signal (stars, icons,
     link underlines and hover) is simply the red. Never red text on the
     asphalt panel and footer (2.4:1); none is used there. */
  --red:            #BE0B1A;
  --red-pressed:    #9A0914;
  --on-red:         #FFFFFF;
  --signal:         #BE0B1A;  /* 6.5:1 on surface, 5.8:1 on surface-alt */

  --surface:        #FFFFFF;
  --surface-alt:    #F2F3F4;  /* alternate bands, picker buttons */
  --surface-dark:   #202326;  /* closing panel and footer */
  --ink:            #202326;  /* 15.8:1 on surface */
  --ink-muted:      #4A4F55;  /* 8.3:1 on surface, 7.4:1 on surface-alt */
  --on-dark:        #FFFFFF;
  --on-dark-muted:  #B9BEC4;
  --line:           #C4C8CC;  /* decorative rules only */
  --line-strong:    #202326;  /* borders that mean something */
  --photo-slot:     #E3E5E7;
  --photo-slot-text:#4A4F55;
  --focus:          #202326;

  /* Aliases kept for inline styles in the generated pages */
  --text: var(--ink);
  --surface-2: var(--surface-alt);
  --hairline: var(--line);

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 4px;   /* buttons, picker, cards */
  --radius-md: 8px;   /* photos */

  --gutter: 16px;
  --header-h: 64px;
  --callbar-h: 64px;
  --t: 120ms;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* Room for the pinned call bar on phones */
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
ul, ol { list-style: none; padding: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

::selection { background: var(--red); color: var(--on-red); }

/* --------------------------------------------------------------------------
   3. Type scale (phone, then desktop in section 16)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); text-wrap: balance; }
h1 { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 28px; line-height: 32px; font-weight: 800; margin-bottom: 24px; }
h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
h4 { font-size: 18px; line-height: 24px; font-weight: 700; }

p { text-wrap: pretty; }
p + p { margin-top: 16px; }

.lead { font-size: 20px; line-height: 28px; color: var(--ink); }
.muted { color: var(--ink-muted); }
.text-red { color: var(--signal); }

.prose a, .faq a, .muted a, .areas a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prose a:hover, .faq a:hover, .muted a:hover { color: var(--signal); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1328px;   /* 1200px of content plus the 64px desktop gutters */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: 48px; }
.section--tight { padding-block: 40px; }
.section--alt { background: var(--surface-alt); }
.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 0; }
.section-head h2 + .lead { margin-top: 16px; }
.two { display: grid; gap: 32px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* The conspicuity stripe: red/white tape from the back of a tow truck */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 20px, #FFFFFF 20px 40px);
  border-block: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 15px 24px 12px;   /* Overpass sits high: 3px extra on top centres it */
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t), border-color var(--t);
}
.btn--call { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn--call:hover, .btn--call:active { background: var(--red-pressed); border-color: var(--red-pressed); }
.btn--call:focus-visible { outline-color: var(--on-red); outline-offset: -6px; }
.btn--outline { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover, .btn--outline:active { background: var(--surface-alt); }
.btn--sm { min-height: 48px; padding: 11px 20px 8px; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* Text link with an arrow, for "see more" moments */
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-arrow::after { content: "\2192"; margin-left: 6px; text-decoration: none; }

/* --------------------------------------------------------------------------
   6. Header and menu
   -------------------------------------------------------------------------- */
.header { background: var(--surface); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand__mark { width: auto; height: 40px; flex: none; }
.brand__name { font-size: 17px; line-height: 20px; font-weight: 800; color: var(--ink); }
.brand__name small { display: block; font-size: 15px; line-height: 18px; font-weight: 700; color: var(--ink-muted); }

.nav { display: none; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__call { display: none; }

.burger {
  min-width: 44px;
  min-height: 44px;
  padding: 3px 12px 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.drawer {
  position: fixed;
  inset: 0;
  top: calc(var(--header-h) + 12px);
  z-index: 99;
  padding: 8px var(--gutter) 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 150ms, visibility 150ms;
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-top: 3px;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer__foot { margin-top: 24px; display: grid; gap: 12px; }

/* --------------------------------------------------------------------------
   7. Heroes
   -------------------------------------------------------------------------- */
.hero { padding: 32px 0 40px; }
.hero__grid { display: grid; gap: 32px; }
.hero h1 { margin-bottom: 12px; }
.hero .lead { margin-bottom: 24px; }
.hero .btn-row { margin-bottom: 32px; }
.hero--page .btn-row { margin-bottom: 16px; }

.hero__open { display: inline-block; font-weight: 700; margin-bottom: 16px; }
.hero__open::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background: var(--red);
  border-radius: 2px;
  vertical-align: 1px;
}

/* "What happened?" picker: four big tap-to-call targets */
.pick__title { font-weight: 700; margin-bottom: 12px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 15px 16px 12px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--t);
}
.pick a:hover { background: var(--surface); }
.pick small { margin-top: 2px; font-size: 16px; line-height: 20px; font-weight: 400; color: var(--ink-muted); }

/* The owner's photos, shown at their own shape and never stretched past
   their real size (max-width is set inline from the file's width). */
.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
/* Portrait phone shots stay a sensible height instead of filling a column */
.photo--portrait { width: auto; max-height: 520px; justify-self: center; }

/* A photo slot still waiting for its file (SHOW_PHOTO_PLACEHOLDERS in _shell.py) */
.photo-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--photo-slot);
  color: var(--photo-slot-text);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  overflow-wrap: anywhere;
}
.prose > .photo, .prose > .photo-slot, .prose > .photo-ai { margin-block: 32px 8px; }

/* AI-generated photos carry a visible label, so nobody takes them for the
   owner's own trucks or crew (REAL_PHOTO_SLOTS in _shell.py lists the real ones) */
.photo-ai { position: relative; margin: 0; }
/* Kept quiet on purpose, but never invisible: a label nobody can find does
   not count as telling people. White on a 65% dark chip stays above 4.5:1
   even over a white truck. */
.photo-ai figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px 0;
  border-radius: 3px;
  background: rgba(20, 22, 24, .65);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: .01em;
}

/* Content-page hero (about, contact, areas, legal) */
.page-hero { padding: 40px 0; border-bottom: 1px solid var(--line); }
.page-hero__bg { display: none; }
.page-hero__inner > * { max-width: 760px; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   8. Quick facts
   -------------------------------------------------------------------------- */
.facts { background: var(--surface-alt); padding-block: 32px; }
.facts__panel {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line-strong);
  background: var(--surface);
}
.facts__panel li { padding: 15px 16px 12px; font-weight: 700; }
.facts__panel li + li { border-top: 2px solid var(--line-strong); }
.facts__panel li > span:last-child { display: block; font-size: 16px; line-height: 22px; font-weight: 400; color: var(--ink-muted); }
.facts__stars { display: inline-flex; align-items: center; gap: 8px; }

.stars { display: inline-flex; gap: 2px; color: var(--signal); }
.stars svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   9. Services, promises, steps
   -------------------------------------------------------------------------- */
.svc { display: grid; gap: 40px; }
.svc__label { margin-bottom: 12px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); }
.svc__list { border-top: 2px solid var(--line-strong); }
.svc__list li { border-bottom: 1px solid var(--line); }
.svc__row { display: block; padding: 15px 0 12px; text-decoration: none; }
.svc__row h3::after { content: "\2192"; margin-left: .3em; }
.svc__row span { display: block; color: var(--ink-muted); }
.svc__row:hover h3 { color: var(--signal); }
.svc__note { margin-top: 24px; }

/* Services page: each row leads with a small photo */
.svc__row--thumb { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.svc__row--thumb .svc__thumb { margin-top: 4px; }
.svc__thumb {
  display: block;
  width: 96px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.svc__thumb--empty { border: 2px dashed var(--line); background: var(--photo-slot); }

.promises { display: grid; gap: 24px; }
.promises li { padding-top: 12px; border-top: 4px solid var(--red); }
.promises h3 { margin-bottom: 4px; }

/* A real sequence, so it gets real numbers */
.steps { display: grid; gap: 20px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding-top: 4px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--on-red);
  font-size: 24px;
  font-weight: 900;
}
.steps h3 { margin-bottom: 4px; }

/* --------------------------------------------------------------------------
   10. Reviews
   -------------------------------------------------------------------------- */
.rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 700; }
.reviews { display: grid; gap: 16px; }
.reviews li {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.reviews blockquote { margin-bottom: 12px; }
.reviews cite { margin-top: auto; font-style: normal; font-weight: 700; }
.reviews cite span { display: block; font-weight: 400; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   11. Areas
   -------------------------------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; margin: 4px 0 24px; }
.areas li {
  margin-right: 12px;
  padding: 6px 12px 4px 0;
  border-right: 1px solid var(--line);
  font-weight: 700;
}
.areas li:last-child { border-right: 0; }
.hwy { display: flex; gap: 12px; margin-top: 8px; }
.hwy span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 48px;
  padding-top: 3px;
  border: 3px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 900;
}
.areas__more { margin-top: 24px; }

/* Tags on the area pages */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
a.chip:hover { border-color: var(--line-strong); }

/* --------------------------------------------------------------------------
   12. Long-form content (service, area, about, legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 680px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin: 40px 0 0; }
.prose h3 { margin-top: 32px; }
.prose h2 + p, .prose h3 + p { margin-top: 12px; }
.prose .intro, .prose > .lead { font-size: 20px; line-height: 30px; color: var(--ink); }
.prose strong { font-weight: 700; }

.checklist { display: grid; gap: 12px; margin-top: 16px; }
.checklist li { display: flex; gap: 12px; }
.checklist li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--signal); }

.split { display: grid; gap: 40px; align-items: start; }

.aside-card {
  padding: 24px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.aside-card h3 { margin-bottom: 8px; }
.aside-card p { color: var(--ink-muted); margin-bottom: 20px; }
.aside-card .btn { display: flex; width: 100%; }
.aside-card .btn + .btn { margin-top: 12px; }
.aside-card__list { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.aside-card__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.aside-card__list a:hover { color: var(--signal); }
.aside-card__list a svg { width: 16px; height: 16px; flex: none; color: var(--signal); }

/* Cards (contact, areas hub, 404) */
.grid { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background: var(--surface);
}
.card__icon { display: none; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-muted); }
.card__link { margin-top: auto; padding-top: 12px; }
.card .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.card .btn--ghost svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   13. FAQ: answers shown, nothing to tap open
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; border-top: 2px solid var(--line-strong); }
.faq__item { padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.faq__item h3 { margin-bottom: 6px; }
.faq__body p { color: var(--ink); }

/* --------------------------------------------------------------------------
   14. Closing call panel and footer (the dark asphalt bands)
   -------------------------------------------------------------------------- */
.close { padding-block: 48px; background: var(--surface-dark); color: var(--on-dark); }
.close h2 { color: var(--on-dark); margin-bottom: 16px; }
.close__phone {
  display: block;
  margin-bottom: 8px;
  font-size: 40px;
  line-height: 44px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
}
.close__phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.close__lead { font-size: 20px; line-height: 28px; color: var(--on-dark-muted); }
.close .btn-row { margin: 24px 0; }
.close .btn--outline { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.close .btn--outline:hover { background: rgba(255, 255, 255, .12); }
.close__small { font-size: 16px; line-height: 24px; color: var(--on-dark-muted); }
.close a:focus-visible { outline-color: var(--on-dark); }

.footer { padding: 32px 0 24px; background: var(--surface-dark); color: var(--on-dark-muted); font-size: 16px; line-height: 24px; }
.footer__grid { display: grid; gap: 24px; }
.footer__name { margin-bottom: 8px; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--on-dark); }
.footer address { font-style: normal; margin-bottom: 12px; }
.footer address a { color: var(--on-dark); font-weight: 700; }
.footer h4 { margin-bottom: 4px; color: var(--on-dark); }
.footer__links { display: flex; flex-direction: column; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover, .footer address a:hover { color: var(--on-dark); }
.footer a:focus-visible { outline-color: var(--on-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #3C4146;
}
.footer__legal { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer__legal a, .footer__legal button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-muted);
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   15. Pinned call bar (phone) and privacy notice
   -------------------------------------------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 98;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--red);
  border-top: 2px solid var(--on-red);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 3px;
  color: var(--on-red);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.callbar a + a { border-left: 2px solid var(--on-red); }
.callbar a:active { background: var(--red-pressed); }
.callbar a:focus-visible { outline-color: var(--on-red); outline-offset: -5px; }

/* Cookie consent: both choices equally easy, never covering the call bar */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--callbar-h) + 12px);
  z-index: 97;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 16px;
  line-height: 22px;
}
.consent a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn { width: 100%; font-size: 16px; }

/* Certificate copy and "to be added" notices on the rights page */
.cert { display: block; max-width: 100%; height: auto; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
.notice {
  padding: 14px 16px 12px;
  border: 2px dashed var(--signal);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.notice a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Cookie table on the cookie policy */
.table-wrap { overflow-x: auto; margin-top: 16px; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 22px; }
.legal-table th, .legal-table td { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { border-bottom: 2px solid var(--line-strong); font-weight: 700; }
.legal-table code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; }

/* --------------------------------------------------------------------------
   15b. Insurance strip, collision guide and its popup
   -------------------------------------------------------------------------- */
.insure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 760px;
  margin-top: 40px;
  padding: 20px 24px 16px;
  border-left: 4px solid var(--red);
  background: var(--surface-alt);
}
.section--alt .insure { background: var(--surface); }
.insure > svg { color: var(--red); margin-top: 2px; }
.insure h3 { margin-bottom: 4px; }

.collision__grid { display: grid; gap: 40px; }
.collision .lead { margin-bottom: 32px; }
.collision .steps { margin-bottom: 32px; }
.collision .btn-row { align-items: center; }

/* The reporting-centre card: red top edge like the promises, dark rules */
.crc {
  border: 2px solid var(--line-strong);
  border-top: 6px solid var(--red);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.crc__title { margin: 0; padding: 18px 20px 14px; border-bottom: 2px solid var(--line-strong); font-size: 22px; line-height: 26px; font-weight: 800; }
.crc__body { padding: 20px; }
.crc h4 { margin: 24px 0 10px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink-muted); }
.crc__body > h4:first-child { margin-top: 0; }
.crc__when { display: grid; gap: 8px; }
.crc__when li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.crc__when svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--surface);
}
.crc__stuck {
  margin-top: 24px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-dark);
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 24px;
}
.crc__stuck h4 { margin: 0 0 6px; font-size: 18px; color: var(--on-dark); }
.crc__stuck p { margin-bottom: 16px; }
.crc__stuck .btn--outline { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.crc__stuck .btn--outline:hover { background: rgba(255, 255, 255, .12); }
.crc__stuck a:focus-visible { outline-color: var(--on-dark); }
.crc__bring { display: flex; flex-wrap: wrap; gap: 8px; }
.crc__bring li {
  padding: 6px 10px 3px;
  border: 2px solid var(--line-strong);
  border-radius: 3px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}
.crc__places li + li { border-top: 1px solid var(--line); }
.crc__places a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 15px;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding-top: 3px;
  color: var(--ink-muted);
  text-decoration: none;
}
.crc__places strong { margin-right: 4px; color: var(--ink); }
.crc__places a:hover strong { color: var(--signal); }
.crc__places svg:first-child { color: var(--ink); }
.crc__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px 20px 13px;
  border-top: 2px solid var(--line-strong);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 22px;
  text-decoration: none;
}
.crc__more strong { color: var(--ink); }
.crc__more:hover strong { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 4px; }
.crc__more svg { flex: none; color: var(--ink); }

/* Popup: a copy of the guide, once per visit (main.js). The close button
   comes first so it gets focus; Escape and a tap outside also close it. */
.crc-dialog {
  width: min(1080px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;   /* the reset above removes the browser's centring */
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 64px rgba(20, 22, 24, .35);
}
.crc-dialog::backdrop { background: rgba(20, 22, 24, .6); }
html:has(.crc-dialog[open]) { overflow: hidden; }
.crc-dialog__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 22px;
}
.crc-dialog__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 3px 14px 0;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 700;
  flex: none;
}
.crc-dialog__close:hover { background: var(--surface-alt); }
.crc-dialog .section { padding-block: 24px 32px; }

/* --------------------------------------------------------------------------
   15c. Motion: light and only where it explains something. One entrance for
   the first screen, a soft rise as content scrolls in, and a press on taps.
   All of it is off for people who ask their device for reduced motion.
   -------------------------------------------------------------------------- */
.btn, .pick a { transition: background-color var(--t), border-color var(--t), transform var(--t); }
.btn:active, .pick a:active { transform: translateY(1px) scale(.98); }
.svc__row h3::after, .link-arrow::after { display: inline-block; transition: transform 180ms ease; }
.svc__row:hover h3::after, .link-arrow:hover::after { transform: translateX(4px); }
.svc__thumb { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
.svc__row--thumb:hover .svc__thumb { transform: scale(1.04); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes mg-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes mg-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mg-live { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
  @keyframes mg-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

  /* First screen: the copy rises in order, the photo fades in beside it */
  .hero__grid > div > *, .page-hero__inner > * { animation: mg-rise 600ms cubic-bezier(.16, 1, .3, 1) both; }
  .hero__grid > div > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: 70ms; }
  .hero__grid > div > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: 140ms; }
  .hero__grid > div > :nth-child(4) { animation-delay: 210ms; }
  .hero__grid > div > :nth-child(n+5) { animation-delay: 280ms; }
  .hero__grid > :not(div) { animation: mg-fade 900ms 150ms ease both; }

  /* "Open now": the red square breathes, because the line really is live */
  .hero__open::before { animation: mg-live 2.4s ease-in-out infinite; }

  /* Scroll-in (main.js adds .reveal and .is-in; without JS nothing hides) */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.16, 1, .3, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }

  .crc-dialog[open] { animation: mg-pop 260ms cubic-bezier(.16, 1, .3, 1); }
  .crc-dialog[open]::backdrop { animation: mg-fade 260ms ease; }
}

/* --------------------------------------------------------------------------
   16. Desktop (900px and up)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  :root { --gutter: 64px; --header-h: 80px; }

  body { padding-bottom: 0; }
  .callbar { display: none; }
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 420px; }

  h1 { font-size: 60px; line-height: 64px; letter-spacing: -0.015em; max-width: 640px; }
  h2 { font-size: 40px; line-height: 44px; margin-bottom: 32px; }
  .lead { font-size: 22px; line-height: 32px; max-width: 640px; }
  .prose h2 { font-size: 32px; line-height: 36px; }

  .section { padding-block: 96px; }
  .section--tight { padding-block: 64px; }
  .two { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .stripe { height: 12px; }

  /* Header */
  .brand__mark { height: 56px; }
  .brand__name { font-size: 20px; line-height: 22px; }
  /* Full menu from 1240px; below that, "Menu" + call button */
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 3px 14px 0;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
  }
  .nav__link:hover { background: var(--surface-alt); }
  .nav__link[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
  }
  .header__call { display: inline-flex; }

  /* Heroes */
  .hero { padding: 64px 0 80px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
  .hero__grid--solo { grid-template-columns: 1fr; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .pick { max-width: 640px; }
  .page-hero { padding: 64px 0; }

  /* Sections */
  .facts__panel { flex-direction: row; }
  .facts__panel li { flex: 1; padding: 23px 24px 16px; }
  .facts__panel li + li { border-top: 0; border-left: 2px solid var(--line-strong); }
  .svc { grid-template-columns: 1fr 1fr; gap: 64px; }
  .svc__row--thumb { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
  .svc__thumb { width: 160px; }
  .promises { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps { gap: 24px; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
  .collision__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
  .crc-dialog { max-height: calc(100dvh - 64px); }
  .crc-dialog .section { padding-block: 32px 40px; }
  .aside-card { position: sticky; top: 24px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  /* Closing panel and footer */
  .close { padding-block: 96px; }
  .close__phone { font-size: 88px; line-height: 92px; letter-spacing: -0.02em; }
  .close__lead { font-size: 22px; line-height: 32px; }
  .footer { padding: 48px 0 32px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 64px; }
}

/* Six menu links plus the call button need about 1240px on one line */
@media (min-width: 1240px) {
  .nav { display: flex; gap: 4px; }
  .nav__link { white-space: nowrap; }
  .burger, .drawer { display: none; }
}

@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   17. Accessibility and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .stripe { background: CanvasText; }
}

@media print {
  .header, .callbar, .drawer, .consent, .stripe { display: none !important; }
  body { padding: 0; }
  .close, .footer { background: #fff; color: #000; }
}
