/* =========================================================
   DMV Headlight Restore
   Mobile first. Base styles target ~390px; media queries scale up.
   ========================================================= */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --white: #ffffff;
  --primer: #eff0f1;      /* light gray panels */
  --line: #d9dbde;        /* rules on light */
  --steel: #62676e;       /* secondary text on light (5.6:1) */
  --black: #000000;       /* night sections, ink */
  --graphite: #1f2226;    /* surfaces on black */
  --graphite-line: #33373c;
  --fog: #a3a8ae;         /* secondary text on black (8:1) */
  --red: #d0101c;         /* brake light: CTA fill, white text 5.6:1 */
  --red-press: #a90c16;
  --red-lit: #ff4b55;     /* red for text/marks on black */

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wide: 112%;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --display-1: clamp(2.5rem, 10.6vw, 5.75rem);
  --display-2: clamp(2rem, 8.4vw, 3.75rem);

  /* Space */
  --gutter: 20px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;

  /* Shape */
  --r-img: 20px;
  --r-card: 16px;
  --r-btn: 14px;
  --r-field: 12px;

  --bar-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + var(--safe-b));
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.section--night :focus-visible, .menu :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--black); color: var(--white); padding: 12px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type ---------- */
.display-2 {
  font-size: var(--display-2);
  font-weight: 800;
  font-stretch: var(--wide);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lede { margin-top: var(--s-4); color: var(--steel); max-width: 34ch; font-size: var(--step-1); line-height: 1.4; }
.section--night .section-lede { color: var(--fog); }

.placeholder-flag {
  display: inline-block; font-style: normal; font-size: 0.75rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; margin-left: 6px; vertical-align: 2px;
  background: #fff3b0; color: #4a3b00;
}
.dev-note {
  margin-top: var(--s-4); padding: 10px 14px; border-radius: 10px;
  background: #fff3b0; color: #4a3b00; font-size: var(--step--1); max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px;
  border-radius: var(--r-btn); border: 2px solid transparent;
  font-size: var(--step-0); font-weight: 700; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-press); }
.btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.section--night .btn--ghost { color: var(--white); border-color: var(--white); }
.section--night .btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: var(--step--1); }
.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 12px 0; cursor: pointer;
  font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.link-btn--light { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: 60px; }

.wordmark {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none; text-transform: uppercase;
  font-stretch: 125%; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.04em;
  line-height: 1; white-space: nowrap;
}
.wordmark__dmv { font-weight: 900; }
.wordmark__rest { font-weight: 500; }
.site-header .wordmark { margin-right: auto; }

.desktop-nav, .desktop-only { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 12px; margin-right: -4px;
  background: none; border: 0; cursor: pointer; font-weight: 600; font-size: var(--step--1);
}
.menu-toggle__bars { display: grid; gap: 6px; width: 22px; }
.menu-toggle__bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out); }
.menu-toggle__bars span:last-child { width: 14px; justify-self: end; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { width: 22px; transform: translateY(-4px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 60px 0 0 0; z-index: 39;
  background: var(--black); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
  animation: menu-in .28s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu__nav { display: flex; flex-direction: column; min-height: 100%; padding-top: var(--s-6); padding-bottom: calc(var(--s-6) + var(--safe-b)); }
.menu__links a {
  display: block; padding: 6px 0; text-decoration: none;
  font-size: clamp(2rem, 9.5vw, 3rem); font-weight: 800; font-stretch: var(--wide);
  letter-spacing: -0.02em; line-height: 1.1;
}
.menu__links a:hover { color: var(--red-lit); }
.menu__foot { margin-top: auto; padding-top: var(--s-7); display: grid; gap: var(--s-4); }
.menu__phone { color: var(--fog); text-underline-offset: 4px; text-align: center; padding: 8px; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--white); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s-5); }
.hero__title {
  font-size: var(--display-1);
  font-weight: 800;
  font-stretch: var(--wide);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; animation: line-rise .9s var(--ease-out) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .08s; }
.hero__title .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes line-rise { from { transform: translateY(105%); } }

.hero__offer {
  margin-top: var(--s-4);
  font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em;
}
.hero__sub { margin-top: var(--s-2); color: var(--steel); max-width: 36ch; }

.hero__compare { margin-top: var(--s-5); }
@media (max-width: 599px) {
  /* Wider on phones so the whole before/after fits on the first screen. */
  .hero__compare .compare { aspect-ratio: 3 / 2; }
}
.hero__caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding-top: var(--s-3); font-size: var(--step--1); color: var(--steel);
}
.hero__caption > span:first-child { color: var(--black); font-weight: 600; }
.hero__hint { white-space: nowrap; }

.hero__details { padding-top: var(--s-5); padding-bottom: var(--s-8); }
.actions { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin-top: var(--s-5); }

/* Spec sheet rows (hero) */
.spec { border-top: 2px solid var(--black); }
.spec__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--steel); }
.spec dd { font-weight: 700; text-align: right; }
.spec__row--price dt { color: var(--black); font-weight: 600; }
.spec__row--price dd { font-size: 2.5rem; font-weight: 800; font-stretch: var(--wide); line-height: 1; letter-spacing: -0.03em; }

/* ---------- Before / after compare ---------- */
.compare {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--graphite);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: var(--white);
  box-shadow: 0 0 12px rgba(255,255,255,.7);
  pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  display: grid; place-items: center;
  transition: transform .2s var(--ease-out);
}
.compare__knob::before {
  content: ''; width: 26px; height: 26px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 7l-6 6 6 6M17 7l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M9 7l-6 6 6 6M17 7l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.compare.is-dragging .compare__knob, .compare:focus-within .compare__knob { transform: scale(1.12); }
.compare__tag {
  position: absolute; top: 14px; z-index: 1;
  padding: 5px 10px; border-radius: 8px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.2;
  background: rgba(0,0,0,.6); color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none; transition: opacity .2s;
}
.compare__tag--before { left: 14px; }
.compare__tag--after { right: 14px; background: rgba(255,255,255,.88); color: var(--black); }
.compare[data-near="start"] .compare__tag--before,
.compare[data-near="end"] .compare__tag--after { opacity: 0; }
.compare__range {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 1px;
  opacity: 0; margin: 0; pointer-events: none;
}
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Night sections ---------- */
.section--night { background: var(--black); color: var(--white); }
.section-head { padding-top: var(--s-8); padding-bottom: var(--s-6); }

/* ---------- Results ---------- */
.results { padding-bottom: var(--s-8); }
.results__list { display: grid; gap: var(--s-7); padding-inline: 0; }
.result__compare { border-radius: 0; }
.result__caption {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  padding: var(--s-3) var(--gutter) 0; font-size: var(--step--1); color: var(--fog);
}
.result__vehicle { color: var(--white); font-weight: 600; font-size: var(--step-0); }
.result .compare img { opacity: 0; transition: opacity .5s; }
.result .compare.is-loaded img { opacity: 1; }
.results__more-wrap { padding-top: var(--s-6); }
.results__more { width: 100%; }

/* ---------- About ---------- */
.about { padding-block: var(--s-8); }
.about__grid { display: grid; gap: var(--s-6); }
.about__photo { margin-inline: calc(var(--gutter) * -1); }
.photo-placeholder {
  aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
  padding: var(--s-5);
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(0,0,0,.035) 18px 36px),
    var(--primer);
  color: var(--steel); font-weight: 600;
}
.photo-placeholder .placeholder-flag { margin-left: 0; }
.about__img { width: 100%; height: auto; }
.about__copy { display: grid; gap: var(--s-4); max-width: 34rem; }
.about__lead { font-size: var(--step-2); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.about__copy p:not(.about__lead) { color: #33373c; }
.about__sign { font-weight: 600; }
.about__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

/* ---------- Journey (how it works) ---------- */
.journey-section { background: var(--primer); padding-bottom: var(--s-8); }
.journey { position: relative; display: grid; gap: var(--s-7); }
.journey::before, .journey::after {
  content: ''; position: absolute; left: calc(var(--gutter) + 5px); top: 10px; bottom: 10px; width: 2px;
}
.journey::before { background: var(--line); }
.journey::after {
  background: var(--red);
  transform-origin: top; transform: scaleY(var(--progress, 0));
}
.journey__step { position: relative; padding-left: 40px; }
.journey__step::before {
  content: ''; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--primer); border: 2px solid var(--line); z-index: 1;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.journey__step.is-lit::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(208,16,28,.14); }
.journey__num {
  display: block; font-size: 3.5rem; font-weight: 800; font-stretch: var(--wide);
  line-height: .9; letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1.5px #b7bbc0;
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.journey__step.is-lit .journey__num { color: var(--black); -webkit-text-stroke-color: var(--black); }
.journey__title { margin-top: var(--s-3); font-size: 1.625rem; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.015em; line-height: 1.1; }
.journey__step > p { margin-top: var(--s-2); color: #33373c; max-width: 34ch; }

.stages { margin-top: var(--s-5); display: grid; gap: 2px; background: var(--line); border-radius: var(--r-card); overflow: hidden; }
.stages__item {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 14px 16px; background: var(--white);
}
.stages__item strong { font-weight: 700; }
.stages__item > span:last-child { color: var(--steel); font-size: var(--step--1); }
.stages__bar {
  height: 4px; border-radius: 2px; margin-bottom: 8px;
  background: linear-gradient(to right, var(--red) calc(var(--n) * 25%), var(--primer) 0);
}

/* ---------- Promise ---------- */
.promise { padding-block: var(--s-9); }
.promise__title {
  font-size: clamp(2.75rem, 13vw, 7.5rem);
  font-weight: 900; font-stretch: var(--wide);
  line-height: .95; letter-spacing: -0.04em;
}
.promise__body { margin-top: var(--s-6); color: var(--fog); max-width: 44ch; }

/* ---------- Reviews ---------- */
.reviews { padding-bottom: var(--s-8); }
.section-head--row { display: grid; gap: var(--s-5); align-items: end; }
.section-head--row .btn { justify-self: start; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 380px);
  gap: var(--s-3);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) var(--s-3);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) {
  .reviews__track { padding-inline: calc((100vw - 1200px) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - 1200px) / 2 + var(--gutter)); }
}
.review-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--r-card);
  background: var(--primer); min-height: 260px;
}
.review-card__photo { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) 0; aspect-ratio: 4 / 3; object-fit: cover; width: calc(100% + var(--s-5) * 2); max-width: none; border-radius: var(--r-card) var(--r-card) 0 0; }
.review-card blockquote { margin: 0; font-size: var(--step-1); line-height: 1.4; font-weight: 500; flex: 1; }
.review-card__who { font-size: var(--step--1); color: var(--steel); }
.review-card__who strong { color: var(--black); font-weight: 700; display: block; font-size: var(--step-0); }
.review-card--placeholder { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.03) 14px 28px), var(--primer); }
.review-card--placeholder blockquote { color: var(--steel); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; }
.stars .on { fill: var(--red); }
.stars .off { fill: none; stroke: #b7bbc0; stroke-width: 1.5; }
.reviews__empty { padding: var(--s-5); border-radius: var(--r-card); background: var(--primer); grid-column: 1 / -1; }

/* ---------- Pricing (window sticker) ---------- */
.pricing { padding-block: var(--s-8); background: var(--primer); }
.pricing__grid { display: grid; gap: var(--s-6); }
.hours { padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); max-width: 36ch; }
.hours__title { font-size: var(--step-0); font-weight: 700; }
.hours p { color: #33373c; }

.sticker {
  background: var(--white); border-radius: var(--r-card);
  border: 2px solid var(--black); overflow: hidden;
  display: grid;
}
.sticker__head { background: var(--black); color: var(--white); padding: 14px var(--s-5); display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.sticker__brand { text-transform: uppercase; font-stretch: 125%; font-weight: 800; font-size: 0.75rem; letter-spacing: .04em; }
.sticker__service { font-size: var(--step--1); color: var(--fog); }
.sticker__price { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); padding: var(--s-5); border-bottom: 2px solid var(--black); }
.sticker__price span { font-size: var(--step-1); font-weight: 700; padding-bottom: 10px; }
.sticker__price strong { font-size: clamp(4.5rem, 22vw, 6.5rem); font-weight: 900; font-stretch: var(--wide); line-height: .85; letter-spacing: -0.05em; }
.sticker__block { padding: var(--s-5); border-bottom: 1px solid var(--line); }
.sticker__label { font-size: var(--step--1); font-weight: 700; color: var(--steel); margin-bottom: var(--s-3); }
.sticker__fine { margin-top: var(--s-3); font-size: var(--step--1); color: var(--steel); }
.sticker__note { margin: calc(var(--s-2) * -1) 0 var(--s-3); font-size: var(--step--1); color: var(--steel); }
.sticker > .btn { margin: var(--s-5); width: auto; }

.checklist { display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.rows > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.rows > div:first-child { padding-top: 0; }
.rows dt { color: #33373c; }
.rows dd { font-weight: 700; text-align: right; }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--s-8); }
.faq__grid { display: grid; gap: var(--s-6); }
.faq__list { border-top: 2px solid var(--black); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 18px 0; min-height: 60px;
  font-size: var(--step-1); font-weight: 700; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: #33373c; max-width: 60ch; }
.faq details[open] p { animation: faq-open .3s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Schedule / forms ---------- */
.schedule { padding-block: var(--s-8); }
.schedule__grid { display: grid; gap: var(--s-6); }
.schedule__alt { margin-top: var(--s-4); color: var(--fog); }
.schedule__alt a { color: var(--white); font-weight: 700; text-underline-offset: 4px; }

.booking { background: var(--white); color: var(--black); border-radius: var(--r-img); padding: var(--s-5) var(--s-4); margin-inline: calc(var(--s-2) * -1); }

.form { display: grid; gap: var(--s-6); }
.form__group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-4); min-width: 0; }
.form__group legend { padding: 0; margin-bottom: var(--s-3); font-size: var(--step-1); font-weight: 800; font-stretch: var(--wide); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--step--1); }
.optional { color: var(--steel); font-weight: 400; margin-left: 4px; }
.field__hint { font-size: var(--step--1); color: var(--steel); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field-row--car { grid-template-columns: 5.5rem 1fr; }

.field input:not([type="radio"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%; min-height: 54px; padding: 14px 14px;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--primer); border: 2px solid transparent; border-radius: var(--r-field);
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.4; }
.field input[type="date"] { display: block; min-width: 0; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field input::placeholder, .field textarea::placeholder { color: #a3a8ae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--red) !important; }
.file-input { font-size: var(--step--1); padding: 12px; border-radius: var(--r-field); background: var(--primer); width: 100%; }
.file-input::file-selector-button {
  font: inherit; font-weight: 700; margin-right: 12px; padding: 10px 14px; border-radius: 10px;
  border: 2px solid var(--black); background: var(--white); cursor: pointer;
}
.day-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.day-chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--white);
  font-weight: 600; font-size: var(--step--1); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.day-chip:hover { border-color: var(--black); }
.day-chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.form__error { color: var(--red); font-weight: 600; }

.summary { background: var(--primer); border-radius: var(--r-card); padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-3); font-size: var(--step--1); color: #33373c; }
.rows--summary { font-size: var(--step-0); margin-bottom: var(--s-2); }
.rows--summary > div { border-bottom-color: var(--line); }
.rows--summary > div:first-child dd { font-size: var(--step-2); font-weight: 800; }

.booking-next { display: grid; gap: var(--s-4); }
.booking-next:focus { outline: none; }
.booking-next__title { font-size: var(--step-2); font-weight: 800; font-stretch: var(--wide); line-height: 1.15; }
.deposit { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-4); background: var(--primer); border-radius: var(--r-card); }
.deposit__lead { font-weight: 700; }
.booking-fallback { display: grid; gap: var(--s-3); font-size: var(--step--1); }
.booking-fallback__text { margin: 0; white-space: pre-wrap; font: inherit; background: var(--primer); padding: var(--s-4); border-radius: var(--r-field); }
.booking-next .link-btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer { padding-top: var(--s-8); padding-bottom: var(--s-6); border-top: 1px solid var(--graphite-line); }
.footer__grid { display: grid; gap: var(--s-6); }
.wordmark--footer { font-size: 1rem; flex-wrap: wrap; }
.footer__line { margin-top: var(--s-3); color: var(--fog); max-width: 30ch; }
.footer__label { font-size: var(--step--1); color: var(--fog); }
.footer__phone { display: inline-block; margin-top: 2px; font-size: 1.75rem; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.01em; text-decoration: none; }
.footer__phone:hover { color: var(--red-lit); }
.footer__hours { margin-top: var(--s-2); color: var(--fog); font-size: var(--step--1); }
.footer__save { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.footer__save:hover { color: var(--red-lit); }
.footer__actions { display: grid; gap: var(--s-2); justify-items: start; }
.footer__actions .btn { width: 100%; }
.footer__copy { margin-top: var(--s-7); font-size: var(--step--1); color: #6f747a; }

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--s-3);
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(0,0,0,.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--white);
  transition: transform .35s var(--ease-out);
}
.action-bar.is-hidden { transform: translateY(110%); }
.action-bar__text {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--graphite-line); border-radius: var(--r-btn);
}
.action-bar__cta { min-height: 52px; }

/* ---------- Review dialog ---------- */
.review-dialog {
  width: 100%; max-width: 560px; max-height: 100dvh; margin: auto auto 0;
  padding: 0; border: 0; border-radius: 22px 22px 0 0;
  background: var(--white); color: var(--black);
}
.review-dialog::backdrop { background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.review-dialog[open] { animation: sheet-up .35s var(--ease-out); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.review-dialog__inner { position: relative; padding: var(--s-6) var(--gutter) calc(var(--s-5) + var(--safe-b)); }
.review-dialog__close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--primer); cursor: pointer;
}
.review-dialog__title { font-size: 1.75rem; font-weight: 800; font-stretch: var(--wide); line-height: 1.1; letter-spacing: -0.02em; padding-right: 48px; }
.review-dialog__lede { margin-top: calc(var(--s-4) * -1); color: var(--steel); }
.review-done { display: grid; gap: var(--s-4); }
.review-done:focus { outline: none; }
.review-done p { color: #33373c; }
.review-done > div { display: grid; gap: var(--s-4); }
body.dialog-open { overflow: hidden; }

.stars-input { border: 0; padding: 0; margin: 0; }
.stars-input legend { font-weight: 600; font-size: var(--step--1); margin-bottom: 6px; }
.stars-input__row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label {
  width: 48px; height: 48px; cursor: pointer; display: block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='none' stroke='%23b7bbc0' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 36px no-repeat;
  transition: transform .15s var(--ease-out);
}
.stars-input input:checked ~ label,
.stars-input label:hover, .stars-input label:hover ~ label {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z' fill='%23d0101c' stroke='%23d0101c' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.stars-input label:active { transform: scale(.9); }
.stars-input input:focus-visible + label { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 8px; }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .actions { grid-template-columns: auto auto; justify-content: start; }
  .compare { aspect-ratio: 4 / 3; }
  .hero__compare .compare { border-radius: var(--r-img); }
  .hero__compare { padding-inline: var(--gutter); max-width: 1200px; margin-inline: auto; }
  .hero__caption { padding-inline: 0; }
  .results__list { padding-inline: var(--gutter); grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); }
  .result .compare { border-radius: var(--r-img); }
  .result__caption { padding-inline: 0; }
  .about__photo { margin-inline: 0; }
  .photo-placeholder { border-radius: var(--r-img); }
  .about__img { border-radius: var(--r-img); }
  .booking { padding: var(--s-6); margin-inline: 0; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .footer__actions .btn { width: auto; }
  .results__more { width: auto; }
  .section-head--row { grid-template-columns: 1fr auto; }
  .section-head--row .btn { justify-self: end; }
  .review-dialog { margin: auto; border-radius: 22px; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --bar-h: 0px; }
  html { scroll-padding-top: 84px; }
  .site-header__inner { height: 72px; }
  .wordmark { font-size: 0.875rem; }
  .desktop-nav { display: flex; gap: 22px; margin-right: 8px; }
  .desktop-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 8px 0; }
  .desktop-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .desktop-only { display: inline-flex; }
  .menu-toggle, .menu, .action-bar { display: none !important; }

  .hero {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas: "copy compare" "details compare";
    grid-template-rows: auto 1fr;
    column-gap: var(--s-7);
    max-width: 1200px; margin-inline: auto; padding: var(--s-7) var(--gutter) var(--s-8);
  }
  .hero__copy { grid-area: copy; padding: 0; }
  .hero__details { grid-area: details; padding: var(--s-6) 0 0; }
  .hero__compare { grid-area: compare; margin: 0; padding: 0; }
  .hero__compare .compare { aspect-ratio: 4 / 5; }
  .hero__caption { padding-inline: 0; }
  .hero__title { font-size: clamp(3.25rem, 5.6vw, 5.25rem); }


  .about__grid { grid-template-columns: 5fr 6fr; grid-template-areas: "photo title" "photo copy"; grid-template-rows: auto 1fr; column-gap: var(--s-8); row-gap: var(--s-5); }
  .about__title { grid-area: title; align-self: end; }
  .about__photo { grid-area: photo; }
  .about__copy { grid-area: copy; align-self: start; }

  .journey-section .section-head { padding-bottom: var(--s-7); }
  .journey { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); align-items: start; }
  .journey::before, .journey::after { left: var(--gutter); right: var(--gutter); top: 5px; bottom: auto; width: auto; height: 2px; }
  .journey::after { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .journey__step { padding-left: 0; padding-top: 40px; }
  .journey__step::before { top: 0; }
  .stages { grid-template-columns: 1fr; }

  .pricing__grid { grid-template-columns: 1fr minmax(0, 460px); grid-template-rows: auto 1fr; align-items: start; column-gap: var(--s-8); }
  .pricing__intro { grid-column: 1; grid-row: 1; }
  .sticker { grid-column: 2; grid-row: 1 / span 2; }
  .hours { grid-column: 1; grid-row: 2; }
  .faq__grid { grid-template-columns: 1fr 2fr; gap: var(--s-8); }
  .schedule__grid { grid-template-columns: 1fr minmax(0, 560px); gap: var(--s-8); align-items: start; }
  .schedule__intro { position: sticky; top: 120px; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; align-items: start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
