/*
 * TFT Services Inc. company page.
 *
 * The colours are the logo's navy, #012154, and its silver, with the amber of
 * a tow truck's beacon for the one thing the page does: call. Colour tokens are
 * defined once per theme. scripts/check.mjs reads both blocks and fails the
 * build if any text pair drops below 4.5:1, so add a new pair to its list when
 * you add a new text colour here.
 *
 * Fonts are Barlow and Barlow Condensed (SIL Open Font License, src/fonts/
 * OFL.txt), served from this site. Nothing is loaded from Google or any other
 * host, so a visit still tells nobody else anything.
 *
 * Motion is CSS only, since the page runs no script. It is all at the end of
 * this file, inside prefers-reduced-motion: no-preference, and the scroll-
 * linked part inside @supports (animation-timeline: view()). Anyone who asks
 * for less motion, or whose browser has no scroll timelines, gets the page as
 * it rests, with nothing hidden.
 */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f2f4f8;
  --text: #0f1b2d;
  --heading: #012154;
  --muted: #4a5566;
  --border: #d5dae1;
  --accent: #012154;
  --accent-hover: #0b3a82;
  --on-accent: #ffffff;
  --eyebrow: #0b3a82;
  /* The navy bands: the hero, the service area and the footer. */
  --brand: #012154;
  --brand-deep: #00133a;
  --brand-glow: #0b3a82;
  --brand-line: #23477f;
  --on-brand: #ffffff;
  --on-brand-muted: #c3ccda;
  --brand-accent: #f5b301;
  --silver: #b1b2b4;
  /* The call: amber, navy on it. */
  --cta: #f5b301;
  --cta-hover: #ffc933;
  --on-cta: #012154;
  --alert-bg: #fdeeee;
  --alert-text: #8a1515;
  --alert-border: #eebcbc;
  /* The logo is navy on white, so on navy or a dark page it sits on a white plate. */
  --logo-plate: transparent;
  --plate: #ffffff;
  --header-shadow: rgb(1 33 84 / 0.14);
  --card-shadow: rgb(1 33 84 / 0.1);

  /* The service illustrations. They are drawing, never text. */
  --art-panel: #edf1f6;
  --art-ink: #012154;
  --art-steel: #8a94a3;
  --art-silver: #c5ccd6;
  --art-glass: #ffffff;
  --art-light: #ffffff;
  --art-amber: #f0a202;
  --art-road: #dce2ea;
  --art-shade: #d3dae4;

  /* The hero's night scene. The hero is navy in both themes, so these do not change. */
  --night-city: #0a3170;
  --night-window: #f5b301;
  --night-moon: #e9edf5;
  --night-star: #c3ccda;
  --night-road: #00102b;
  --night-lane: #f5b301;
  --night-cab: #f5b301;
  --night-car: #dfe5ee;
  --night-deck: #8a94a3;
  --night-bed: #b1b2b4;
  --night-glass: #0b3a82;
  --night-tyre: #050d1f;
  --night-hub: #b1b2b4;
  --night-beacon: #ffe08a;
  --night-shade: #000a1f;

  --radius: 12px;
  --radius-lg: 20px;
  --gutter: 16px;
  --max: 1180px;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08111f;
    --surface: #0e1a2d;
    --text: #edf1f7;
    --heading: #ffffff;
    --muted: #b4bfce;
    --border: #22324b;
    --accent: #a9c2ee;
    --accent-hover: #c9d9f6;
    --on-accent: #041430;
    --eyebrow: #f5b301;
    --brand: #012154;
    --brand-deep: #00102b;
    --brand-glow: #0b3a82;
    --brand-line: #23477f;
    --on-brand: #ffffff;
    --on-brand-muted: #c3ccda;
    --brand-accent: #f5b301;
    --silver: #8e97a6;
    --cta: #f5b301;
    --cta-hover: #ffc933;
    --on-cta: #012154;
    --alert-bg: #2b1515;
    --alert-text: #ffcaca;
    --alert-border: #5c2828;
    --logo-plate: #ffffff;
    --plate: #ffffff;
    --header-shadow: rgb(0 0 0 / 0.5);
    --card-shadow: rgb(0 0 0 / 0.35);

    --art-panel: #0f1d33;
    --art-ink: #a9c2ee;
    --art-steel: #5f6e88;
    --art-silver: #2e3f5e;
    --art-glass: #0f1d33;
    --art-light: #d9e2f1;
    --art-amber: #f5b52e;
    --art-road: #17284a;
    --art-shade: #0a1528;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Room for the call bar fixed to the foot of a phone's screen. */
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.625rem;
  letter-spacing: 0.005em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 16px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A section's small capital label, with the beacon's bar before it. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--eyebrow);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--cta);
}

.section-lead {
  max-width: 40rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.1875rem;
}

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Top strip: the hours and the area, and the number on wider screens */

.topbar {
  background: var(--brand-deep);
  color: var(--on-brand-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 36px;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

.topbar-call {
  display: none;
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.topbar-call:hover {
  text-decoration: underline;
}

.topbar :focus-visible {
  outline-color: var(--on-brand);
}

/* Header: the logo, the menu and the line */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  min-height: 68px;
  padding-block: 8px 0;
}

.brand {
  line-height: 0;
}

.brand a {
  display: inline-block;
  border-radius: 10px;
}

.brand img {
  display: block;
  width: auto;
  height: 48px;
  padding: 4px 8px;
  border-radius: 10px;
  background: var(--logo-plate);
  transform-origin: left center;
}

/*
 * On a phone the menu is a row of links under the logo that scrolls sideways
 * on its own, so every section is one tap away with no script to open it.
 */
.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  display: flex;
  gap: 8px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--border);
}

/* On a phone the header shows the handset alone; the number is still read out. */
.header-call {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-weight: 700;
  text-decoration: none;
}

.header-call:hover {
  background: var(--cta-hover);
}

.header-call-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hero: a navy band at night, with the truck on its way */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-top: 40px;
  background:
    radial-gradient(120% 90% at 90% 10%, var(--brand-glow) 0%, transparent 60%),
    var(--brand);
  color: var(--on-brand);
}

.hero :focus-visible {
  outline-color: var(--on-brand);
}

.hero .eyebrow {
  color: var(--brand-accent);
}

.hero h1 {
  max-width: 15ch;
  color: var(--on-brand);
  font-size: clamp(2.75rem, 1.7rem + 3.6vw, 4.5rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lead {
  max-width: 36rem;
  margin-top: 18px;
  color: var(--on-brand-muted);
  font-size: 1.25rem;
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-brand);
  font-weight: 600;
}

.checklist svg {
  flex: none;
  margin-top: 3px;
  padding: 2px;
  border-radius: 50%;
  background: var(--brand-accent);
  fill: none;
  stroke: var(--brand);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* The phone link: the one thing on the page that does anything. */

.call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--cta);
  color: var(--on-cta);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
}

.call:hover {
  background: var(--cta-hover);
}

.call-icon {
  flex: none;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 22px;
  border: 2px solid var(--on-brand-muted);
  border-radius: var(--radius);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.ghost:hover {
  border-color: var(--on-brand);
}

/* Spaced capitals, as the logo sets SERVICES INC. */
.hours {
  margin-top: 14px;
  color: var(--on-brand-muted);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.emergency {
  max-width: 460px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--alert-border);
  border-radius: var(--radius);
  background: var(--alert-bg);
  color: var(--alert-text);
  font-weight: 600;
}

.hero-copy {
  padding-bottom: 32px;
}

.hero-media {
  margin-inline: calc(var(--gutter) * -1);
  line-height: 0;
}

/* The road runs past the drawing's edges to the band's, where the hero clips it. */
.hero-art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-plain {
  padding-block: 56px 72px;
}

.hero-plain h1 {
  max-width: 18ch;
}

/* The night scene's colours. */
.hero-art .h-city { fill: var(--night-city); }
.hero-art .h-window { fill: var(--night-window); opacity: 0.75; }
.hero-art .h-moon { fill: var(--night-moon); }
.hero-art .h-stars { fill: var(--night-star); }
.hero-art .h-road { fill: var(--night-road); }
.hero-art .h-lane { fill: none; stroke: var(--night-lane); stroke-width: 6px; stroke-dasharray: 44 32; opacity: 0.6; }
.hero-art .h-shade { fill: var(--night-shade); opacity: 0.6; }
.hero-art .h-deck { fill: var(--night-deck); }
.hero-art .h-bed { fill: var(--night-bed); }
.hero-art .h-car { fill: var(--night-car); }
.hero-art .h-glass { fill: var(--night-glass); }
.hero-art .h-cab { fill: var(--night-cab); }
.hero-art .h-amber { fill: var(--night-beacon); }
.hero-art .h-steel { fill: var(--night-deck); }
.hero-art .h-hub { fill: var(--night-hub); }
.hero-art .h-lug { fill: var(--night-tyre); }
.hero-art .h-tyre { fill: var(--night-tyre); stroke: var(--night-road); stroke-width: 4px; }
.hero-art .h-strap { fill: none; stroke: var(--night-deck); stroke-width: 4px; stroke-linecap: round; }
.hero-art .h-line { fill: none; stroke: var(--night-glass); stroke-width: 3px; }
.hero-art .h-beacon { fill: var(--night-beacon); }

.hero-art .h-wheel {
  transform-box: fill-box;
  transform-origin: center;
}

/* What happened? A tap on any of these calls the line. */

.quick {
  position: relative;
  z-index: 2;
  padding-block: 24px 8px;
}

.quick-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 18px 40px var(--card-shadow);
}

.quick-card h2 {
  font-size: 1.375rem;
  letter-spacing: 0.04em;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.quick-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.quick-list a:hover {
  border-color: var(--cta);
  background: var(--cta);
  color: var(--on-cta);
}

.quick-list svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Services: one section each, in order, the picture beside the words */

/*
 * The pictures slide in from beside the column, so the section clips sideways:
 * otherwise a picture still waiting off to the right widens the page, and a
 * phone scrolls sideways. clip, not hidden: hidden makes a scroll container,
 * and the scroll motion would follow it instead of the page.
 */
.services {
  overflow-x: clip;
  padding-block: 56px 72px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 32px;
  counter-reset: service;
}

.service {
  display: grid;
  align-items: center;
  gap: 24px;
  counter-increment: service;
}

.service-media {
  overflow: hidden;
  overflow: clip;
  border-radius: 24px;
  background: var(--art-panel);
}

/* 01, 02 ... in spaced figures; read by nobody, since the list already counts. */
.service-body::before {
  content: counter(service, decimal-leading-zero);
  content: counter(service, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service h3 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  text-transform: uppercase;
}

.service p {
  max-width: 30rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.25rem;
}

.service-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 22px;
  padding: 10px 22px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.service-call:hover {
  background: var(--accent);
  color: var(--on-accent);
}

/* The illustrations take their colours from the theme. */

.art {
  display: block;
  width: 100%;
  height: auto;
}

.art .a-ink { fill: var(--art-ink); }
.art .a-steel { fill: var(--art-steel); }
.art .a-silver { fill: var(--art-silver); }
.art .a-glass { fill: var(--art-glass); }
.art .a-light { fill: var(--art-light); }
.art .a-amber { fill: var(--art-amber); }
.art .a-road { fill: var(--art-road); }
.art .a-shade { fill: var(--art-shade); }

.art .a-tyre {
  fill: var(--art-ink);
  stroke: var(--art-panel);
  stroke-width: 4px;
}

.art .s-ink,
.art .s-steel,
.art .s-amber,
.art .s-glass {
  fill: none;
}

.art .s-ink { stroke: var(--art-ink); }
.art .s-steel { stroke: var(--art-steel); }
.art .s-amber { stroke: var(--art-amber); }
.art .s-glass { stroke: var(--art-glass); }

.art .jump-cable {
  stroke-linecap: round;
  stroke-dasharray: 1;
}

.art .wheel,
.art .tire,
.art .tire-wrench,
.art .jump-bolt,
.art .lock {
  transform-box: fill-box;
  transform-origin: center;
}

.art .tire-jack {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

/* Towing: the three reasons a vehicle moves, as the request asks them */

.towing {
  padding-block: 64px 72px;
  background: var(--surface);
}

.type-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.type-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: inset 0 4px 0 var(--cta);
}

.type-icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  fill: none;
  stroke: var(--heading);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-card p {
  margin-top: 10px;
  color: var(--muted);
}

/* The limit the app shows with the same option, kept beside it. */
.type-card .type-limit {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--alert-bg);
  color: var(--alert-text);
  font-size: 1rem;
  font-weight: 700;
}

.kinds {
  margin-top: 40px;
}

.kinds h3 {
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kind-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.kind-list li {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--heading);
  font-weight: 600;
}

/* How it works: three numbered steps */

.steps {
  padding-block: 64px 72px;
}

.step-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 28px;
  border-top: 4px solid var(--border);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  content: counter(step, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--cta);
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* Why call TFT */

.why {
  padding-block: 64px 72px;
  background: var(--surface);
}

.why-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.why-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.why-icon {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  padding: 11px;
  border-radius: 50%;
  background: var(--cta);
  fill: none;
  stroke: var(--on-cta);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card p {
  margin-top: 10px;
  color: var(--muted);
}

/* Service area: navy again, the places as markers */

.area {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: 64px 80px;
  background:
    radial-gradient(90% 120% at 0% 100%, var(--brand-glow) 0%, transparent 55%),
    var(--brand);
  color: var(--on-brand);
}

/* The logo's road: a dashed centre line along the foot of the band. */
.area::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--silver) 0 40px, transparent 40px 72px);
  opacity: 0.45;
  pointer-events: none;
}

.area .eyebrow {
  color: var(--brand-accent);
}

.area h2 {
  color: var(--on-brand);
}

.area .section-lead {
  color: var(--on-brand-muted);
}

.area-grid {
  display: grid;
  gap: 28px;
}

.place-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
}

.place-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  color: var(--on-brand);
  font-weight: 600;
}

.place-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
}

/* Call again, at the end */

.call-us {
  padding-block: 64px;
}

.call-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  padding: 40px 20px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--cta);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 40px var(--card-shadow);
  text-align: center;
}

.call-us p:not(.emergency) {
  max-width: 38rem;
  margin-top: 14px;
  color: var(--muted);
}

.call-us .call {
  margin-top: 28px;
}

/* Footer: the menu again, the services, and the line */

.site-footer {
  border-top: 4px solid var(--silver);
  background: var(--brand);
  color: var(--on-brand-muted);
  font-size: 1rem;
}

.site-footer :focus-visible {
  outline-color: var(--on-brand);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: 48px 32px;
}

/* On a phone, the two link lists sit side by side; the brand and the line
   take the full width. */
.footer-brand,
.footer-col:last-child {
  grid-column: 1 / -1;
}

.footer-logo {
  line-height: 0;
}

.footer-logo img {
  width: auto;
  height: 64px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--plate);
}

.footer-brand p:not(.footer-logo) {
  margin-top: 14px;
}

.footer-col h2 {
  margin-bottom: 10px;
  color: var(--on-brand);
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}

.footer-col a {
  display: inline-block;
  padding-block: 6px;
  color: var(--on-brand-muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--on-brand);
  text-decoration: underline;
}

.footer-col .footer-phone {
  color: var(--on-brand);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.footer-911 {
  margin-top: 10px;
  color: var(--on-brand);
  font-weight: 600;
}

.footer-base {
  padding-block: 16px 20px;
  border-top: 1px solid var(--brand-line);
  font-size: 0.875rem;
}

/* The call bar, fixed to the foot of a phone's screen */

.sticky-call {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 18px;
  border-radius: 16px;
  background: var(--cta);
  color: var(--on-cta);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.32);
}

.sticky-call:hover {
  background: var(--cta-hover);
}

.sticky-call:focus-visible {
  outline-color: var(--on-cta);
}

.sticky-hours {
  padding-left: 10px;
  border-left: 2px solid var(--on-cta);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }

  .topbar .wrap {
    justify-content: space-between;
  }

  .topbar-call {
    display: inline;
  }

  .brand img {
    height: 56px;
  }

  .header-call {
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 8px 20px;
    white-space: nowrap;
  }

  .header-call-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .call {
    width: auto;
    display: inline-flex;
  }

  .quick-card {
    padding: 24px 28px;
  }

  .why-list,
  .type-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 760px) {
  .quick-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .service-list {
    gap: 112px;
    margin-top: 48px;
  }

  .service {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
  }

  /* Every other section puts its picture on the right. */
  .service:nth-child(even) .service-media {
    order: 2;
  }

  .type-list,
  .why-list,
  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .area-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 56px;
  }
}

/*
 * From here the menu fits beside the logo, the header stays in reach as the
 * page scrolls, and the call bar gives way to the header's own button.
 */
@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }

  [id] {
    scroll-margin-top: 104px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-row {
    flex-wrap: nowrap;
    min-height: 84px;
    padding-block: 10px;
  }

  .brand img {
    height: 64px;
  }

  .site-nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .site-nav ul {
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav a {
    background: transparent;
  }

  .site-nav a:hover {
    background: var(--surface);
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 32px;
  }

  /* Clear of the road, which runs the band's full width under the drawing. */
  .hero-copy {
    padding-bottom: 128px;
  }

  .hero-media {
    margin-inline: 0 calc(var(--gutter) * -1);
  }

  .quick {
    margin-top: -40px;
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: auto;
  }

  .sticky-call {
    display: none;
  }
}

/* ------------------------------------------------------------------ Motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
}

@keyframes slide-from-left {
  from { opacity: 0; transform: translateX(-56px) scale(0.96); }
}

@keyframes slide-from-right {
  from { opacity: 0; transform: translateX(56px) scale(0.96); }
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.3); }
}

@keyframes header-lift {
  to { box-shadow: 0 8px 24px var(--header-shadow); }
}

@keyframes logo-settle {
  to { transform: scale(0.84); }
}

@keyframes drive-in {
  from { transform: translateX(-110px); }
}

@keyframes hero-drive-in {
  from { transform: translateX(-160px); }
}

@keyframes wheel-spin {
  from { transform: rotate(-262deg); }
}

@keyframes hero-wheel-spin {
  from { transform: rotate(-380deg); }
}

@keyframes beacon {
  50% { opacity: 0.25; }
}

@keyframes shackle-open {
  to { transform: translateY(-38px); }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
}

@keyframes roll-in {
  from { transform: translateX(150px) rotate(119deg); }
}

@keyframes jack-rise {
  from { transform: translateY(40px); opacity: 0; }
}

@keyframes spin-in {
  from { opacity: 0; transform: rotate(-135deg) scale(0.6); }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* The hero settles in once, as the page opens, and the truck drives on. */
  .hero .eyebrow,
  .hero h1 {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero .lead {
    animation: rise 700ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .checklist {
    animation: rise 700ms 160ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-actions {
    animation: rise 700ms 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-art .hero-truck {
    animation: hero-drive-in 1400ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-art .h-wheel {
    animation: hero-wheel-spin 1400ms 200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  /* Three flashes and still: nothing on the page moves for more than 5 s. */
  .hero-art .h-beacon,
  .live-dot {
    animation: beacon 1400ms ease-in-out 3;
  }

  .quick-card {
    animation: rise 700ms 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  /*
   * Everything else follows the scroll. Each range ends by the time its
   * element is fully in view, or soon after, with page left below it to
   * scroll, so nothing can be left half-shown at the foot of the page.
   */
  @supports (animation-timeline: view()) {
    .site-header {
      animation: header-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }

    .brand img {
      animation: logo-settle linear both;
      animation-timeline: scroll(root);
      animation-range: 0 140px;
    }

    .services > .wrap > .eyebrow,
    .services > .wrap > h2,
    .towing > .wrap > *:not(.type-list),
    .steps > .wrap > *:not(.step-list),
    .why > .wrap > *:not(.why-list),
    .area-grid > *,
    .call-us .wrap > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .type-card,
    .step,
    .why-card {
      animation: rise ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    .type-card:nth-child(2),
    .step:nth-child(2),
    .why-card:nth-child(2) {
      animation-range: entry 10% entry 100%;
    }

    .type-card:nth-child(3),
    .step:nth-child(3),
    .why-card:nth-child(3) {
      animation-range: entry 20% entry 100%;
    }

    .service {
      view-timeline: --service block;
    }

    .service-media {
      animation: slide-from-left ease-out both;
      animation-timeline: --service;
      animation-range: entry 0% entry 80%;
    }

    .service:nth-child(even) .service-media {
      animation-name: slide-from-right;
    }

    .service-body::before,
    .service-body > * {
      animation: rise ease-out both;
      animation-timeline: --service;
      animation-range: entry 10% entry 100%;
    }

    .service-body > p {
      animation-range: entry 20% entry 100%;
    }

    .service-body > a {
      animation-range: entry 30% entry 100%;
    }

    .art-tow .tow-truck {
      animation: drive-in ease-out both;
      animation-timeline: --service;
      animation-range: entry 20% contain 30%;
    }

    .art-tow .wheel {
      animation: wheel-spin ease-out both;
      animation-timeline: --service;
      animation-range: entry 20% contain 30%;
    }

    .art-lock .lock {
      animation: pop ease-out both;
      animation-timeline: --service;
      animation-range: entry 30% entry 100%;
    }

    .art-lock .lock-shackle {
      animation: shackle-open ease-in-out both;
      animation-timeline: --service;
      animation-range: contain 0% contain 35%;
    }

    .art-jump .jump-cable {
      animation: draw linear both;
      animation-timeline: --service;
      animation-range: entry 30% contain 15%;
    }

    .art-jump .jump-clamp {
      animation: fade linear both;
      animation-timeline: --service;
      animation-range: contain 5% contain 20%;
    }

    .art-jump .jump-bolt {
      animation: pop ease-out both;
      animation-timeline: --service;
      animation-range: contain 10% contain 35%;
    }

    .art-tire .tire {
      animation: roll-in ease-out both;
      animation-timeline: --service;
      animation-range: entry 20% contain 30%;
    }

    .art-tire .tire-jack {
      animation: jack-rise ease-out both;
      animation-timeline: --service;
      animation-range: entry 50% contain 25%;
    }

    .art-tire .tire-wrench {
      animation: spin-in ease-out both;
      animation-timeline: --service;
      animation-range: entry 40% contain 30%;
    }

    .kind-list li,
    .place-list li {
      animation: pop ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
