/* ==========================================================
   The Campus Car Guy — site styles
   Brand: navy + white, black for text. Type: Archivo (one family,
   wide/heavy for headlines, normal width for reading).
   ========================================================== */

:root {
  --navy: #074c80;          /* sampled from the logo */
  --navy-deep: #05223a;     /* dark sections */
  --navy-tint: #e6eef5;     /* light navy wash */
  --ink: #0d1620;           /* body text */
  --steel: #4f5f6d;         /* secondary text (5.9:1 on white) */
  --line: #d3dce4;
  --paper: #f2f5f8;         /* cool off-white section bg */
  --white: #ffffff;
  --sky: #a9cbe8;           /* highlights on dark navy */

  --radius-s: 4px;
  --radius-m: 10px;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.5rem, 6.2vw, 4.6rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--white); color: var(--navy);
  padding: 10px 16px; z-index: 100; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 900; font-variation-settings: "wdth" 125; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 110; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--steel); }
.on-dark .lede { color: var(--sky); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-s);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-primary { background: var(--white); color: var(--navy-deep); }
.on-dark .btn-primary:hover { background: var(--sky); }
.on-dark .btn-outline { border-color: var(--white); color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy-deep); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; min-height: 100px;
}
.brand { grid-column: 2; grid-row: 1; }
.brand img { height: 72px; width: auto; }

.nav-toggle {
  display: none;
  min-width: 48px; min-height: 48px;
  border: 0; background: transparent; color: var(--navy);
  cursor: pointer; padding: 0;
}
.nav-toggle svg { width: 28px; height: 28px; margin: auto; }

/* desktop: nav splits around the centered logo */
.main-nav { display: contents; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
  grid-row: 1;
}
.main-nav .nav-left { grid-column: 1; justify-self: start; }
.main-nav .nav-right { grid-column: 3; justify-self: end; }
.main-nav a {
  display: block; padding: 10px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-radius: var(--radius-s);
}
.main-nav a:hover { background: var(--navy-tint); color: var(--navy); }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--navy); border-radius: 0; }
.main-nav .nav-call { margin-left: 8px; }
.main-nav .nav-call a {
  background: var(--navy); color: var(--white);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
}
.main-nav .nav-call a:hover { background: var(--navy-deep); color: var(--white); }
.main-nav .nav-call svg { width: 18px; height: 18px; }

@media (max-width: 1040px) {
  .site-header .wrap { grid-template-columns: 48px 1fr 48px; min-height: 84px; }
  .brand { justify-self: center; }
  .brand img { height: 58px; }
  .nav-toggle { display: grid; grid-column: 3; grid-row: 1; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul, .main-nav .nav-left, .main-nav .nav-right { flex-direction: column; align-items: stretch; padding: 0 var(--gutter); gap: 0; justify-self: stretch; width: 100%; }
  .main-nav .nav-left { padding-top: 8px; }
  .main-nav .nav-right { padding-bottom: 20px; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--navy); padding-left: 14px; }
  .main-nav .nav-call { margin: 16px 0 0; }
  .main-nav .nav-call a { justify-content: center; border-bottom: 0; border-radius: var(--radius-s); }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 9vw, 112px); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }

/* ---------- Home hero ---------- */

.hero {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 112px);
  overflow: hidden;
  position: relative;
}
/* the wrench from the badge logo (lettering removed), ghosted behind the hero */
.hero::before {
  content: "";
  position: absolute;
  /* centered behind both the headline and the photo */
  left: 50%; top: 50%;
  width: clamp(560px, 98%, 1600px);
  aspect-ratio: 2561 / 1031;
  background: url("img/wrench.png") center / contain no-repeat;
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  /* --wrench-y / --wrench-r are set by site.js while scrolling */
  transform: translate3d(-50%, calc(-50% + var(--wrench-y, 0px)), 0) rotate(var(--wrench-r, 0deg));
  will-change: transform;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
@media (max-width: 520px) { .hero h1 { font-size: 2.15rem; font-variation-settings: "wdth" 108; } }
.hero h1 span { display: block; color: var(--sky); }
.hero .lede { margin-bottom: 32px; color: #d7e6f3; }

.hero-photo .photo-slot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  /* --photo-y is set by site.js while scrolling */
  transform: translate3d(0, var(--photo-y, 0px), 0);
  will-change: transform;
}

.area-line {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  max-width: 560px;
  margin-top: 28px; padding: 0; list-style: none;
  color: #d7e6f3; font-weight: 600;
}
.area-line li { display: inline-flex; align-items: center; gap: 8px; }
.area-line svg { width: 18px; height: 18px; color: var(--sky); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo .photo-slot { aspect-ratio: 4 / 3; transform: none; }
}

/* ---------- Photo placeholders (swap for real <img>) ---------- */

.photo-slot {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 14px, transparent 14px 28px),
    var(--navy);
  color: var(--white);
  border-radius: var(--radius-m);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.photo-slot span {
  max-width: 24ch;
  font-weight: 600;
  font-size: var(--step--1);
  opacity: 0.85;
}
.photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.section-paper .photo-slot, .photo-slot.light {
  background:
    repeating-linear-gradient(135deg, rgba(7,76,128,0.06) 0 14px, transparent 14px 28px),
    var(--navy-tint);
  color: var(--navy);
}

/* ---------- Promise strip ---------- */

.promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.promise > div {
  padding: 28px 28px 28px 0;
}
.promise > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.promise svg { width: 28px; height: 28px; color: var(--navy); margin-bottom: 12px; }
.promise h3 { margin-bottom: 6px; }
.promise p { color: var(--steel); margin: 0; }
@media (max-width: 760px) {
  .promise { grid-template-columns: 1fr; }
  .promise > div, .promise > div + div { padding: 22px 0; border-left: 0; }
  .promise > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Service list (rows, not cards) ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px; align-items: center;
  padding: 22px 4px;
  color: var(--ink); text-decoration: none;
  transition: background-color 160ms ease;
}
.service-list a:hover { background: var(--navy-tint); }
.service-list .ico { width: 40px; height: 40px; color: var(--navy); }
.service-list h3 { margin: 0 0 2px; }
.service-list p { margin: 0; color: var(--steel); }
.service-list .price { font-weight: 700; color: var(--navy); white-space: nowrap; font-variation-settings: "wdth" 110; }
@media (max-width: 600px) {
  .service-list a { grid-template-columns: 36px 1fr; gap: 14px; }
  .service-list .ico { width: 32px; height: 32px; }
  .service-list .price { grid-column: 2; }
}

/* ---------- How it works (a real sequence) ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--sky); color: var(--white);
  font-weight: 800; font-size: var(--step-1);
  margin-bottom: 18px;
}
.steps p { color: #d7e6f3; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Repair order (the signature element) ---------- */

.ticket-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .ticket-wrap { grid-template-columns: 1fr; } }

.ticket {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-s);
  position: relative;
  transform: rotate(-0.6deg);
  box-shadow: 8px 8px 0 var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  .ticket { transition: transform 300ms ease; }
  .ticket:hover { transform: rotate(0deg); }
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-bottom: 2px solid var(--ink);
}
.ticket-head img { height: 44px; width: auto; }
.ticket-head .ticket-title {
  text-align: right;
  font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: var(--step-1); line-height: 1.1;
}
.ticket-head .ticket-title small {
  display: block; font-weight: 500; font-size: var(--step--1);
  font-variation-settings: "wdth" 100; color: var(--steel);
}
.ticket-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}
.ticket-meta div { padding: 10px 22px; font-size: var(--step--1); }
.ticket-meta div + div { border-left: 1px solid var(--ink); }
.ticket-meta strong { display: block; font-size: var(--step-0); }
.ticket table { width: 100%; border-collapse: collapse; }
.ticket th, .ticket td { padding: 13px 22px; text-align: left; vertical-align: top; }
.ticket thead th {
  font-size: var(--step--1); font-weight: 700; color: var(--steel);
  border-bottom: 1px solid var(--ink);
}
.ticket tbody tr + tr td { border-top: 1px dashed var(--line); }
.ticket td:last-child, .ticket th:last-child { text-align: right; white-space: nowrap; }
.ticket td small { display: block; color: var(--steel); font-size: var(--step--1); }
.ticket .amt { font-weight: 700; color: var(--navy); }
.ticket-foot {
  border-top: 2px solid var(--ink);
  padding: 16px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: var(--step--1);
}
.ticket-foot .sig {
  font-family: "Yellowtail", cursive; font-size: 1.9rem; line-height: 1;
  color: var(--navy);
}
@media (max-width: 520px) {
  .ticket th, .ticket td, .ticket-meta div, .ticket-head, .ticket-foot { padding-inline: 14px; }
  .ticket { transform: none; box-shadow: 5px 5px 0 var(--navy); }
}

.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px;
  padding: 8px 0;
}
.check-list svg { width: 22px; height: 22px; color: var(--navy); margin-top: 3px; }
.on-dark .check-list svg { color: var(--sky); }

/* ---------- Split (text + photo) ---------- */

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split .photo-slot { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Stat row ---------- */

.stats {
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  margin: 28px 0 32px; padding: 0; list-style: none;
}
.stats li { line-height: 1.2; }
.stats strong {
  display: block;
  font-size: var(--step-3); font-weight: 900; font-variation-settings: "wdth" 125;
  color: var(--navy);
}
.on-dark .stats strong { color: var(--white); }
.stats span { color: var(--steel); font-size: var(--step--1); }
.on-dark .stats span { color: var(--sky); }

/* ---------- Reviews ---------- */

.reviews {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.review {
  margin: 0;
  padding: 28px;
  border-left: 4px solid var(--navy);
  background: var(--white);
}
.review blockquote { margin: 0 0 16px; font-size: var(--step-1); line-height: 1.45; }
.review figcaption { color: var(--steel); font-size: var(--step--1); }
.review figcaption strong { color: var(--ink); display: block; font-size: var(--step-0); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--navy-deep); color: var(--white);
  padding-block: clamp(48px, 8vw, 96px);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; right: -12%; top: 50%;
  width: min(900px, 110vw); aspect-ratio: 2561 / 1031;
  transform: translateY(-50%);
  background: url("img/wrench.png") center / contain no-repeat;
  opacity: 0.06; filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.page-hero .lede { color: #d7e6f3; margin: 0; }

/* ---------- Service detail ---------- */

.service-detail {
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 44px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.service-detail:first-of-type { border-top: 2px solid var(--ink); }
.service-detail .side .ico { width: 44px; height: 44px; color: var(--navy); margin-bottom: 14px; }
.service-detail .side .price {
  font-size: var(--step-2); font-weight: 900; font-variation-settings: "wdth" 120;
  color: var(--navy); line-height: 1.1;
}
.service-detail .side .price small {
  display: block; font-size: var(--step--1); font-weight: 500;
  font-variation-settings: "wdth" 100; color: var(--steel);
}
.service-detail h2 { font-size: var(--step-2); }
.service-detail ul { margin: 0 0 8px; padding-left: 20px; }
.service-detail li { margin-bottom: 4px; }
@media (max-width: 700px) { .service-detail { grid-template-columns: 1fr; } }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.jump-links a {
  display: inline-block; padding: 9px 16px; min-height: 44px;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px;
  color: var(--white); text-decoration: none; font-weight: 600; font-size: var(--step--1);
  line-height: 24px;
}
.jump-links a:hover { background: var(--white); color: var(--navy-deep); }

/* ---------- About ---------- */

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--navy); }
.timeline li { position: relative; padding: 0 0 32px 32px; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--navy);
}
.timeline .when {
  display: block; font-weight: 800; font-variation-settings: "wdth" 120;
  color: var(--navy); margin-bottom: 4px;
}
.timeline p { margin: 0; }

.photo-trio {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
}
.photo-trio .photo-slot:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.photo-trio .photo-slot { aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
  .photo-trio { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-trio .photo-slot:first-child { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
}

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 40px;
}
.area-grid > div { padding: 24px 0; border-top: 2px solid var(--navy); }
.area-grid h3 { font-size: var(--step-2); }
.area-grid p { color: var(--steel); margin: 0; }

.map-frame {
  width: 100%; aspect-ratio: 16 / 9; border: 0;
  border-radius: var(--radius-m); background: var(--navy-tint);
}

.city-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--navy);
}
.city-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 112;
}
.city-list svg { width: 22px; height: 22px; color: var(--navy); flex: none; }

.where-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 32px;
  list-style: none; padding: 0; margin: 0;
}
.where-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-weight: 600; font-size: var(--step-1); }
.where-list svg { width: 24px; height: 24px; color: var(--sky); margin-top: 2px; }
@media (max-width: 860px) { .where-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .where-list, .city-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px);
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-methods { list-style: none; margin: 0; padding: 0; }
.contact-methods li { border-bottom: 1px solid var(--line); }
.contact-methods li:first-child { border-top: 2px solid var(--ink); }
.contact-methods a {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center;
  padding: 20px 4px; text-decoration: none; color: var(--ink);
}
.contact-methods a:hover { background: var(--navy-tint); }
.contact-methods .ico {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}
.contact-methods .ico svg { width: 24px; height: 24px; }
.contact-methods strong { display: block; font-size: var(--step-1); font-variation-settings: "wdth" 112; }
.contact-methods span { color: var(--steel); }

.text-template {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 20px 22px;
  max-width: 440px;
}
.text-template p { margin: 0; }
.text-template p + p { margin-top: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; min-height: 44px;
  font-weight: 700; font-size: var(--step-1); font-variation-settings: "wdth" 108;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--navy); transition: transform 200ms ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 4px 22px; color: var(--steel); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

/* ---------- CTA band ---------- */

.cta-band .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 8px 0 0; color: var(--sky); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink); color: #c5d0da;
  padding-block: 56px 32px;
  font-size: var(--step--1);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
}
.footer-logo { width: 210px; margin-bottom: 16px; }
.site-footer h2 {
  font-size: var(--step-0); color: var(--white); margin-bottom: 12px;
  font-variation-settings: "wdth" 112;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: #c5d0da; text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid #3a4856; border-radius: 50%; padding: 0;
}
.social a:hover { background: var(--white); color: var(--ink); text-decoration: none; }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid #2a3542; margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Placeholder marker (remove once filled in) ---------- */

.todo {
  background: #fff4c2;
  color: #5a4500;
  padding: 0 4px;
  border-radius: 3px;
}
.on-dark .todo, .section-dark .todo, .hero .todo, .page-hero .todo { background: #ffe680; color: #3d2f00; }

/* ---------- Travel fee note ---------- */

.fee-note {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  margin: 24px 0 0; padding: 16px 18px;
  background: var(--navy-tint);
  border-left: 4px solid var(--navy);
  max-width: none;
}
.fee-note svg { width: 22px; height: 22px; color: var(--navy); margin-top: 2px; }

/* ---------- Drop-off option (service area, dark section) ---------- */

.dropoff {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.dropoff h3 { margin-bottom: 6px; }
.dropoff p { color: #d7e6f3; margin: 0; }

/* ---------- Recent jobs (work log) ---------- */

.job-log { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.job-log li { border-bottom: 1px solid var(--line); }
.job-log a {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 8px 24px; align-items: baseline;
  padding: 20px 4px; color: var(--ink); text-decoration: none;
  transition: background-color 160ms ease;
}
.job-log a:hover { background: var(--navy-tint); }
.job-car { font-weight: 800; font-variation-settings: "wdth" 115; color: var(--navy); }
.job-work strong { display: block; }
.job-work { color: var(--steel); }
.job-work strong { color: var(--ink); }
.job-link { font-weight: 600; color: var(--navy); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .job-log a { grid-template-columns: 1fr; }
}

/* ---------- Real photos ---------- */

.photo-slot.has-photo { padding: 0; background: var(--navy-tint); }
.on-dark .photo-slot.has-photo, .hero .photo-slot.has-photo { background: var(--navy); }

.captioned { margin: 0; }
.captioned .photo-slot { aspect-ratio: 4 / 3; }
.captioned figcaption { margin-top: 10px; color: var(--steel); font-size: var(--step--1); }

.photo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 32px;
}
.photo-strip .photo-slot { aspect-ratio: 3 / 4; border-radius: var(--radius-s); }

.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.gallery .photo-slot { aspect-ratio: 1; border-radius: var(--radius-s); }
@media (max-width: 760px) {
  .photo-strip, .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.about-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.flyer-logo { width: clamp(220px, 28vw, 340px); flex: none; }
@media (max-width: 700px) { .flyer-logo { display: none; } }

.where-photo { margin-bottom: 36px; }
.where-photo .photo-slot { aspect-ratio: 2 / 1; }
@media (max-width: 600px) { .where-photo .photo-slot { aspect-ratio: 4 / 3; } }

.truck-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.truck-row .photo-slot { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .truck-row { grid-template-columns: 1fr; } }

/* ---------- Policies (services page) ---------- */

.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.policy-grid svg { width: 30px; height: 30px; color: var(--sky); margin-bottom: 12px; }
.policy-grid p { color: #d7e6f3; margin: 0; }
@media (max-width: 760px) { .policy-grid { grid-template-columns: 1fr; } }

/* ---------- Price breakdown table (services) ---------- */

.breakdown { width: 100%; max-width: 560px; border-collapse: collapse; margin-top: 20px; }
.breakdown caption { text-align: left; font-weight: 700; padding-bottom: 8px; font-variation-settings: "wdth" 110; }
.breakdown th, .breakdown td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.breakdown thead th { font-size: var(--step--1); color: var(--steel); border-bottom: 2px solid var(--ink); }
.breakdown td:not(:first-child) { font-weight: 700; color: var(--navy); }
.breakdown-note { color: var(--steel); font-size: var(--step--1); margin-top: 8px; }
@media (max-width: 480px) { .breakdown th, .breakdown td { padding: 8px 6px; } }

/* ---------- Header: drifting wrench pattern behind the logo and nav ---------- */

.site-header::before {
  content: "";
  position: absolute; inset: 0;
  background: url("img/wrench-tile.png") 0 0 / 180px 110px repeat;
  opacity: 0.09;
  pointer-events: none;
}
.site-header .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .site-header::before { animation: wrench-drift 30s linear infinite; }
}
@keyframes wrench-drift { to { background-position: -180px 0; } }

/* ---------- Live TikTok feed (homepage) ---------- */
.social-feed { margin-top: 36px; display: flex; justify-content: center; }
.social-feed .tiktok-embed { margin: 0; width: 100%; }

/* ---------- "Schedule service" button next to the menu (tablet/phone) ---------- */
.header-cta { display: none; }
@media (max-width: 1040px) {
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .header-cta, .nav-toggle { grid-row: 1; }
  .header-cta {
    display: inline-flex; align-items: center; justify-content: center;
    grid-column: 3; justify-self: end; margin-right: 56px;
    min-height: 44px; padding: 8px 16px;
    background: var(--navy); color: var(--white);
    border-radius: var(--radius-s);
    font-weight: 700; font-size: var(--step--1); text-decoration: none; white-space: nowrap;
  }
  .header-cta:hover { background: var(--navy-deep); }
  .nav-toggle { grid-column: 3; justify-self: end; }
}
@media (max-width: 560px) {
  /* not enough room to center the logo next to the button: logo goes left */
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .brand { grid-column: 1; justify-self: start; }
  .brand img { height: 46px; }
  .header-cta, .nav-toggle { grid-column: 2; }
  .header-cta { margin-right: 52px; padding: 8px 12px; }
}

/* ---------- Home hero: gears instead of the big wrench ---------- */
.hero::before { display: none; }
.hero-gears {
  position: absolute; left: 50%; top: 50%;
  width: clamp(640px, 100%, 1700px);
  color: var(--white); opacity: 0.08;
  pointer-events: none;
  /* --wrench-y is set by site.js while scrolling */
  transform: translate3d(-50%, calc(-50% + var(--wrench-y, 0px)), 0);
  will-change: transform;
}
.hero-gears svg { display: block; width: 100%; height: auto; }
/* each gear turns with scroll; --ratio keeps the teeth meshing */
.hero-gears .gear {
  transform-box: fill-box; transform-origin: center;
  transform: rotate(calc(var(--gear-spin, 0deg) * var(--ratio)));
}
.main-nav a { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1041px) {
  .main-nav a { padding: 10px 10px; }
  .main-nav .nav-call a { padding: 10px 14px; }
  .brand img { height: 64px; }
}

/* ---------- Home hero: headline centered across the full width ---------- */
.hero h1 {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 auto clamp(8px, 2vw, 24px);
  max-width: 20ch;
}

/* ---------- Service request form (contact page) ---------- */
#request { scroll-margin-top: 100px; }
.request-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .request-wrap { grid-template-columns: 1fr; } }
.vin-help { margin-top: 20px; padding: 16px 18px; background: var(--white); border-left: 4px solid var(--navy); color: var(--steel); }
.vin-help strong { color: var(--ink); }
.request-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(20px, 4vw, 36px);
}
.request-form .field { margin: 0 0 20px; border: 0; padding: 0; }
.request-form label, .request-form legend { display: block; font-weight: 700; margin-bottom: 6px; }
.request-form input[type="text"], .request-form input[type="tel"], .request-form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9aa9b6; border-radius: var(--radius-s);
}
.request-form textarea { resize: vertical; min-height: 110px; }
.request-form input:focus-visible, .request-form textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.request-form [aria-invalid="true"] { border-color: #b42318; }
.request-form .help { margin: 6px 0 0; font-size: var(--step--1); color: var(--steel); }
.request-form .error { margin: 6px 0 0; font-size: var(--step--1); color: #b42318; font-weight: 600; }
.request-form #rf-vin { text-transform: uppercase; letter-spacing: 0.06em; }
.request-form .choice label { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; cursor: pointer; margin: 0; }
.request-form .choice input { width: 20px; height: 20px; accent-color: var(--navy); }
.request-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form button { width: 100%; }
.request-form button:disabled { opacity: 0.7; cursor: progress; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #1a6b3c; }
.form-status.is-error { color: #b42318; }

/* ---------- Privacy policy / long-form text ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--step-2); margin-top: 40px; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.request-form .consent { font-size: var(--step--1); color: var(--steel); margin: 0 0 14px; }

/* ---------- Home hero: flyer logo in place of the photo ---------- */
.hero-logo {
  width: 100%; max-width: 560px; height: auto; margin-inline: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  /* --photo-y is set by site.js while scrolling */
  transform: translate3d(0, var(--photo-y, 0px), 0);
  will-change: transform;
}
@media (max-width: 860px) {
  .hero-logo { max-width: 420px; transform: none; }
}

/* mobile bar: one "Request service" button now */
@media (max-width: 760px) { .mobile-bar { grid-template-columns: 1fr; } }

#travel-fee { scroll-margin-top: 120px; }

/* ---------- About: portrait in the top banner ---------- */
.about-portrait {
  width: clamp(200px, 24vw, 300px); height: auto; flex: none;
  border-radius: var(--radius-m);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
@media (max-width: 700px) {
  .about-hero { flex-direction: column-reverse; align-items: flex-start; }
  .about-portrait { width: min(260px, 70vw); }
}

/* ---------- Job photo carousel (services) ---------- */
.carousel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.carousel-controls { display: flex; gap: 10px; flex: none; }
.carousel-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid var(--navy); border-radius: 50%;
  background: var(--white); color: var(--navy); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.carousel-btn:hover { background: var(--navy); color: var(--white); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; background: var(--white); color: var(--navy); }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-track {
  list-style: none; margin: 0; padding: 0 0 6px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 16px) / 3);
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.slide { scroll-snap-align: start; margin: 0; }
.slide img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-m); background: var(--navy-tint);
}
.slide-caption { margin: 10px 2px 0; font-weight: 600; }
.carousel-count { margin: 14px 0 0; color: var(--steel); font-size: var(--step--1); }
@media (max-width: 860px) { .carousel-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 520px) {
  .carousel-track { grid-auto-columns: 85%; }
  .carousel-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

/* ---------- Availability chips (request form) ---------- */
.request-form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.request-form .chip { position: relative; margin: 0; cursor: pointer; font-weight: 600; }
.request-form .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.request-form .chip span {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px;
  border: 1.5px solid #9aa9b6; border-radius: 999px; background: var(--white);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.request-form .chip small { font-weight: 500; color: var(--steel); }
.request-form .chip abbr { text-decoration: none; }
.request-form .chip:hover span { border-color: var(--navy); }
.request-form .chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.request-form .chip input:checked + span small { color: var(--sky); }
.request-form .chip input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.request-form .avail.is-invalid .chip span { border-color: #b42318; }
.request-form .optional { font-weight: 500; color: var(--steel); }

/* ---------- Book vs quote toggle (request form) ---------- */
.request-form [hidden] { display: none !important; }
.request-form .type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-form .type-toggle label { position: relative; margin: 0; cursor: pointer; }
.request-form .type-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.request-form .type-toggle span {
  display: block; height: 100%; padding: 14px 16px;
  border: 1.5px solid #9aa9b6; border-radius: var(--radius-s); background: var(--white);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.request-form .type-toggle strong { display: block; }
.request-form .type-toggle small { display: block; font-weight: 500; color: var(--steel); margin-top: 2px; }
.request-form .type-toggle label:hover span { border-color: var(--navy); }
.request-form .type-toggle input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.request-form .type-toggle input:checked + span small { color: var(--sky); }
.request-form .type-toggle input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.request-form .request-type { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

/* TikTok feed + Instagram reel side by side */
.social-feed { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.social-feed .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 420px !important; justify-self: center; }
@media (max-width: 900px) { .social-feed { grid-template-columns: 1fr; } }

/* hero: logo centers on the intro + buttons; cities sit on their own row */
.hero-grid { grid-template-columns: 1.05fr 0.95fr; row-gap: 0; }
.hero-grid > .area-line { grid-column: 1; margin-top: 28px; }
.hero-logo { max-width: 600px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > .area-line { grid-row: 3; margin-top: 20px; }
  .hero-photo { grid-row: 4; margin-top: 28px; }
}

/* hero logo stays put with the text (no scroll motion) */
.hero-logo { transform: none !important; will-change: auto; }

/* travel fee zones (service area) */
.fee-table { border-collapse: collapse; margin-top: 8px; width: 100%; }
.fee-table th, .fee-table td { padding: 6px 0; border-top: 1px solid rgba(7,76,128,0.15); text-align: left; font-weight: 500; }
.fee-table td { text-align: right; font-weight: 700; color: var(--navy); white-space: nowrap; padding-left: 16px; }

/* confirmation after the request form is sent */
.request-done {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(28px, 5vw, 48px); text-align: center;
}
.request-done[hidden] { display: none; }
.request-done:focus { outline: none; }
.request-done svg { width: 56px; height: 56px; color: #1a6b3c; margin: 0 auto 12px; display: block; }
.request-done h3 { font-size: var(--step-2); margin-bottom: 8px; }
.request-done p { margin: 0 auto 24px; color: var(--steel); }

/* pop-up after a request is sent */
.sent-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 32px 28px 28px;
  border: 0; border-radius: var(--radius-m); text-align: center;
  color: var(--ink); background: var(--white);
  box-shadow: 0 24px 60px rgba(5, 34, 58, 0.35);
}
.sent-dialog::backdrop { background: rgba(5, 34, 58, 0.6); }
.sent-dialog svg { width: 56px; height: 56px; color: #1a6b3c; margin: 0 auto 12px; display: block; }
.sent-dialog h2 { font-size: var(--step-2); margin-bottom: 8px; }
.sent-dialog p { margin: 0 auto 24px; color: var(--steel); }
.sent-actions { display: grid; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .sent-dialog[open] { animation: sent-in 180ms ease-out; }
  @keyframes sent-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
}

/* About banner: two photos side by side */
.about-photos { display: flex; gap: 16px; flex: none; }
.about-photos .about-portrait { width: clamp(170px, 18vw, 250px); aspect-ratio: 2 / 3; object-fit: cover; }
.about-photos .about-portrait:last-child { transform: translateY(24px); }
@media (max-width: 700px) {
  .about-photos { width: 100%; gap: 12px; }
  .about-photos .about-portrait { width: calc(50% - 6px); }
  .about-photos .about-portrait:last-child { transform: none; }
}
