/* ============================================================================
   ABBOTSINCH SERVICE CENTRE — styles.css
   Demo website. Tokens per docs/03-DESIGN-BRIEF.md (approved).
   Mobile-first 360 base → 768 → 1024/1280. No frameworks.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   1. Design tokens — :root custom properties (03-DESIGN-BRIEF §Color)
   --------------------------------------------------------------------------- */
:root {
  /* Colour */
  --ink:      #141B33;  /* MOT-sign deep blue: hero bg, footer bg, display text on light */
  --ink-2:    #1D2747;  /* raised panels on ink */
  --paper:    #F5F4EF;  /* workshop off-white page bg */
  --white:    #FFFFFF;  /* cards on paper */
  --plate:    #FFD60A;  /* plate yellow — reg widget, primary CTA, small accents ONLY */
  --steel:    #8A8F9C;  /* captions, secondary text on ink */
  --slate:    #3E4557;  /* body text on paper */
  --tick:     #2E7D4F;  /* service checkmarks, success accents only */

  /* Typography families (loaded via <link> in HTML) */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Barlow", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 */
  --s-4:  0.25rem;
  --s-8:  0.5rem;
  --s-12: 0.75rem;
  --s-16: 1rem;
  --s-24: 1.5rem;
  --s-32: 2rem;
  --s-48: 3rem;
  --s-64: 4rem;
  --s-96: 6rem;

  /* Layout */
  --maxw: 1120px;
  --gutter: 16px;       /* 360 base */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-lg: 12px;

  /* Focus ring */
  --focus: 3px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

ul { list-style: none; }

/* ---------------------------------------------------------------------------
   3. Accessibility primitives
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  background: var(--plate);
  color: var(--ink);
  font-weight: 600;
  padding: var(--s-12) var(--s-24);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: var(--focus) solid var(--plate);
  outline-offset: 2px;
}
.btn--primary:focus-visible,
.plate__input:focus-visible,
.skip-link:focus-visible {
  outline-color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   4. Layout helpers
   --------------------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--s-64);
}
@media (min-width: 768px) {
  .section { padding-block: var(--s-96); }
}

/* ---------------------------------------------------------------------------
   5. Typography utilities
   --------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display--hero {
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.02;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.h2--on-ink { color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow--on-ink { color: var(--plate); }

.lede {
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 52ch;
}
.lede--on-ink { color: var(--steel); }

.mono { font-family: var(--font-mono); }

.section-head {
  margin-bottom: var(--s-48);
}
.section-head .eyebrow { margin-bottom: var(--s-12); display: block; }
.section-head .h2 { max-width: 18ch; }

/* ---------------------------------------------------------------------------
   6. Nav
   --------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  min-height: 64px;
  padding-block: var(--s-8);
}
.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
}
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 3px;
}
.nav__links {
  display: none;
  align-items: center;
  gap: var(--s-32);
}
.nav__links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.82);
  transition: color 0.18s var(--ease-out);
}
.nav__links a:hover { color: var(--white); }
.nav__links .nav__phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--white);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-12);
}
.nav__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: var(--radius-sm);
  color: var(--white);
}
.nav__phone-icon:hover { border-color: var(--plate); color: var(--plate); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__phone-icon { display: none; }
}

/* ---------------------------------------------------------------------------
   7. Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 28px;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out),
              background 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}
.btn--primary {
  background: var(--plate);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(0,0,0,0.18); }

.btn--ghost-light {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost-light:hover { background: rgba(20,27,51,0.06); }

.btn--ghost-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn--block { display: flex; width: 100%; }

.btn--nav {
  padding: 12px 20px;
  min-height: 44px;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink) url("assets/hero.webp") center right / cover no-repeat;
  color: var(--white);
  padding-block: var(--s-64) var(--s-96);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: none;
}
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(20,27,51,0.97) 0%, rgba(20,27,51,0.72) 48%, rgba(20,27,51,0.28) 100%);
  pointer-events: none;
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__media { display: block; }
}

/* Stacked hero (portrait tablets, 768–1023): let the video breathe.
   The plate widget loses its solid card so it doesn't blank out the car,
   the overlay runs vertical (dark top for copy, lighter below), and extra
   bottom padding opens a clear window onto the workshop scene. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero { padding-bottom: clamp(200px, 26vh, 320px); }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(20,27,51,0.96) 0%,
      rgba(20,27,51,0.78) 42%,
      rgba(20,27,51,0.30) 78%,
      rgba(20,27,51,0.14) 100%);
  }
}
@media (min-width: 768px) {
  .hero { padding-block: var(--s-96) var(--s-96); }
}
.hero__grid {
  display: grid;
  gap: var(--s-48);
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--s-64);
    align-items: center;
  }
}
.hero__copy { min-width: 0; }
.hero__eyebrow {
  display: block;
  margin-bottom: var(--s-24);
}
.hero h1 { color: var(--white); }
.hero__lede {
  margin-top: var(--s-24);
  color: var(--steel);
}
.hero__cta {
  display: flex;
  width: fit-content;
  margin-top: var(--s-32);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.hero__phone {
  margin-top: var(--s-24);
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--white);
  border-bottom: 2px solid var(--plate);
  padding-bottom: 4px;
}
.hero__phone:hover { color: var(--plate); }
.hero__phone svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   9. Plate widget (SIGNATURE component)
   --------------------------------------------------------------------------- */
.plate {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  padding: var(--s-24);
}
@media (min-width: 768px) {
  .plate { padding: var(--s-32); }
}
.plate__label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s-12);
}
.plate__field {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--plate);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.12);
  overflow: hidden;
}
.plate__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--plate);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  padding-inline: 10px;
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}
.plate__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 18px 16px;
  min-width: 0;
  text-align: center;
  caret-color: var(--ink);
}
.plate__input::placeholder {
  color: rgba(20,27,51,0.32);
  text-transform: uppercase;
}
.plate__input:focus { outline: var(--focus) solid var(--ink); outline-offset: -3px; }
.plate__hint {
  margin-top: var(--s-12);
  font-size: 0.8125rem;
  color: var(--steel);
}
.plate__cta {
  margin-top: var(--s-16);
}

/* Vehicle chip (home hero) — demo lookup result under the plate */
.vehicle-chip {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-12);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 125, 79, 0.18);
  border: 1px solid rgba(46, 125, 79, 0.55);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #7FD6A4;
}
.vehicle-chip[hidden] { display: none; }

/* Vehicle card (booking) — demo lookup result under the reg field */
.vehicle-card {
  margin-top: var(--s-12);
  background: var(--ink);
  border-radius: var(--radius);
  padding: var(--s-16) var(--s-24);
}
.vehicle-card__plate {
  display: inline-block;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(20,27,51,0.5);
}
.vehicle-card__title {
  margin-top: var(--s-8);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.15;
}
.vehicle-card__meta {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--steel);
}
.vehicle-card__mot {
  margin-top: var(--s-8);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--plate);
}

/* ---------------------------------------------------------------------------
   10. Trust strip
   --------------------------------------------------------------------------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid rgba(20,27,51,0.08);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-16) var(--s-32);
  padding-block: var(--s-24);
  text-align: center;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}
.trust__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--tick); }

/* ---------------------------------------------------------------------------
   11. Services job-card grid
   --------------------------------------------------------------------------- */
.services { background: var(--paper); }
.services__grid {
  display: grid;
  gap: var(--s-16);
}
@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-24); }
}

.job-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s-24);
  display: flex;
  gap: var(--s-16);
  align-items: flex-start;
  border: 1px solid rgba(20,27,51,0.06);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20,27,51,0.08);
}
.job-card__tick {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(46,125,79,0.12);
  color: var(--tick);
  margin-top: 2px;
}
.job-card__tick svg { width: 16px; height: 16px; }
.job-card__body { min-width: 0; }
.job-card__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.3;
}
.job-card__desc {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   12. How-it-works 3-step strip
   --------------------------------------------------------------------------- */
.steps {
  background: var(--ink);
  color: var(--white);
}
.steps__grid {
  display: grid;
  gap: var(--s-32);
}
@media (min-width: 768px) {
  .steps__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}
.step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--white);
  line-height: 1.1;
}
.step__desc {
  font-size: 0.9375rem;
  color: var(--steel);
  line-height: 1.55;
  max-width: 32ch;
}

/* ---------------------------------------------------------------------------
   12b. Workshop imagery band
   --------------------------------------------------------------------------- */
.workshop { background: var(--white); }
.workshop__grid {
  display: grid;
  gap: var(--s-16);
}
@media (min-width: 768px) {
  .workshop__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-24); }
}
.workshop__item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.workshop__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.workshop__item figcaption {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plate);
  background: var(--ink);
  padding: var(--s-12) var(--s-16);
}
.workshop__note {
  margin-top: var(--s-24);
  font-size: 0.8125rem;
  color: var(--steel);
}

/* ---------------------------------------------------------------------------
   12c. Team — the faces you'll meet
   --------------------------------------------------------------------------- */
.team {
  background: var(--ink);
  color: var(--white);
}
.team__grid {
  display: grid;
  gap: var(--s-24);
}
@media (min-width: 768px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-32); }
}
.team__card {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  padding: var(--s-32);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-16);
}
.team__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--plate);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
}
.team__card img.team__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
}
.team__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--white);
}
.team__desc {
  font-size: 0.9375rem;
  color: var(--steel);
  line-height: 1.55;
  max-width: 40ch;
}
.team__note {
  margin-top: var(--s-32);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--steel);
}

/* ---------------------------------------------------------------------------
   13. Contact block
   --------------------------------------------------------------------------- */
.contact { background: var(--paper); }
.contact__grid {
  display: grid;
  gap: var(--s-32);
}
@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-48); align-items: start; }
}
.contact__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s-32);
  border: 1px solid rgba(20,27,51,0.06);
}
.contact__row {
  display: flex;
  gap: var(--s-16);
  align-items: flex-start;
  padding-block: var(--s-16);
  border-bottom: 1px solid rgba(20,27,51,0.06);
}
.contact__row:last-child { border-bottom: none; }
.contact__row:first-child { padding-top: 0; }
.contact__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--ink);
  margin-top: 3px;
}
.contact__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 4px;
}
.contact__value {
  font-size: 1.0625rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.contact__value a { color: var(--ink); border-bottom: 2px solid var(--plate); }
.contact__value a:hover { color: var(--tick); }
.contact__note {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--slate);
  max-width: 44ch;
}
.contact__cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

/* ---------------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--steel);
  padding-block: var(--s-48) var(--s-32);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  align-items: center;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__credit {
  font-size: 0.8125rem;
  color: var(--steel);
}
.footer__demo-note {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(138,143,156,0.6);
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------------------------------------------------------------------------
   15. Motion — hero load + scroll reveals (reduced-motion guarded)
   --------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hero load: staggered rise+fade */
  .anim-rise {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.6s var(--ease-out) forwards;
  }
  .anim-rise--d1 { animation-delay: 0.08s; }
  .anim-rise--d2 { animation-delay: 0.16s; }
  .anim-rise--d3 { animation-delay: 0.24s; }
  .anim-rise--d4 { animation-delay: 0.32s; }
  .anim-rise--d5 { animation-delay: 0.40s; }   /* plate widget last */

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Scroll reveal — gated on .js so content never hides without JS */
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* stagger cards */
  .reveal:nth-child(2)    { transition-delay: 0.06s; }
  .reveal:nth-child(3)    { transition-delay: 0.12s; }
  .reveal:nth-child(4)    { transition-delay: 0.18s; }
  .reveal:nth-child(5)    { transition-delay: 0.24s; }
  .reveal:nth-child(6)    { transition-delay: 0.30s; }
  .reveal:nth-child(7)    { transition-delay: 0.36s; }
  .reveal:nth-child(8)    { transition-delay: 0.42s; }
}

/* When reduced motion is preferred, everything visible immediately */
@media (prefers-reduced-motion: reduce) {
  .anim-rise { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* ---------------------------------------------------------------------------
   16. Booking page — form, fields, confirmation card
   (Task B; tokens + nav/footer/buttons/plate shared from §1–15)
   --------------------------------------------------------------------------- */

/* --- Page intro --- */
.booking-hero {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--s-48) var(--s-64);
}
@media (min-width: 768px) {
  .booking-hero { padding-block: var(--s-64) var(--s-96); }
}
.booking-hero .eyebrow { color: var(--plate); margin-bottom: var(--s-16); display: block; }
.booking-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 16ch;
}
.booking-hero__note {
  margin-top: var(--s-16);
  font-size: 1rem;
  color: var(--steel);
  max-width: 48ch;
  line-height: 1.55;
}

/* --- Form layout --- */
.booking-form {
  background: var(--paper);
  padding-block: var(--s-48);
}
@media (min-width: 768px) {
  .booking-form { padding-block: var(--s-64); }
}
.booking-form__card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-24);
  border: 1px solid rgba(20,27,51,0.08);
}
@media (min-width: 768px) {
  .booking-form__card { padding: var(--s-32) var(--s-48); }
}

/* --- Form fields --- */
.field { margin-bottom: var(--s-24); }
.field:last-child { margin-bottom: 0; }
.field__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: var(--s-8);
}
.field__label .opt {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--steel);
  margin-left: var(--s-4);
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(20,27,51,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: rgba(62,69,87,0.4);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--ink);
  outline: var(--focus) solid var(--ink);
  outline-offset: 1px;
}
.field__textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}
.field__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23141B33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* --- Error state --- */
.field[data-invalid="true"] .field__input,
.field[data-invalid="true"] .field__select,
.field[data-invalid="true"] .field__textarea {
  border-color: #B91C1C;
}
.field[data-invalid="true"] .field__input:focus,
.field[data-invalid="true"] .field__select:focus,
.field[data-invalid="true"] .field__textarea:focus {
  outline-color: #B91C1C;
  border-color: #B91C1C;
}
.field__hint {
  margin-top: var(--s-8);
  font-size: 0.8125rem;
  color: var(--steel);
}
.field__error {
  display: none;
  font-size: 0.8125rem;
  color: #B91C1C;
  margin-top: var(--s-8);
  font-weight: 500;
}
.field[data-invalid="true"] .field__error {
  display: block;
}
.field__error::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #B91C1C;
  margin-right: var(--s-8);
  vertical-align: middle;
}

/* --- Error summary (focus-moved on submit) --- */
.error-summary {
  display: none;
  background: rgba(185,28,28,0.06);
  border: 2px solid #B91C1C;
  border-radius: var(--radius-sm);
  padding: var(--s-16) var(--s-24);
  margin-bottom: var(--s-32);
}
.error-summary__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #B91C1C;
  margin-bottom: var(--s-8);
}
.error-summary__list {
  list-style: disc;
  padding-left: var(--s-24);
}
.error-summary__list li {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 4px;
}
.error-summary__list a {
  color: #B91C1C;
  text-decoration: underline;
}

/* --- Radio group (time window / drop-off) --- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-8);
}
.radio-pill {
  position: relative;
  display: inline-flex;
}
.radio-pill__input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-pill__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid rgba(20,27,51,0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.16s var(--ease-out), background 0.16s var(--ease-out);
  user-select: none;
}
.radio-pill__label:hover {
  border-color: var(--ink);
}
.radio-pill__input:focus-visible + .radio-pill__label {
  outline: var(--focus) solid var(--ink);
  outline-offset: 2px;
}
.radio-pill__input:checked + .radio-pill__label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  font-weight: 600;
}
/* error state on the group */
.radio-group[data-invalid="true"] .radio-pill__label {
  border-color: #B91C1C;
}

/* --- Checkbox --- */
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-12);
}
.check__input {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  accent-color: var(--ink);
  cursor: pointer;
}
.check__label {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.5;
  cursor: pointer;
}

/* --- Reg plate field on booking (reuses .plate__field from §9) --- */
.booking-plate .plate__field {
  max-width: 360px;
}
.booking-plate .plate__input {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
}

/* --- Submit button row --- */
.booking-form__submit {
  margin-top: var(--s-32);
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.booking-form__submit .btn--primary {
  font-size: 1.0625rem;
  min-height: 56px;
}

/* --- noscript fallback --- */
.noscript-note {
  display: block;
  background: rgba(255,214,10,0.15);
  border: 2px solid var(--plate);
  border-radius: var(--radius-sm);
  padding: var(--s-16) var(--s-24);
  margin-bottom: var(--s-24);
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}
.noscript-note a {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* --- Confirmation card --- */
.confirm {
  background: var(--paper);
  padding-block: var(--s-48);
  min-height: 50vh;
}
@media (min-width: 768px) {
  .confirm { padding-block: var(--s-64); }
}
.confirm__card {
  max-width: 560px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-32) var(--s-24);
  border: 1px solid rgba(20,27,51,0.08);
  text-align: center;
}
@media (min-width: 768px) {
  .confirm__card { padding: var(--s-48) var(--s-48); }
}
.confirm__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(46,125,79,0.12);
  color: var(--tick);
  margin-bottom: var(--s-24);
}
.confirm__icon svg { width: 28px; height: 28px; }
.confirm__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: var(--s-16);
}
.confirm__ref {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink);
  letter-spacing: 0.06em;
  margin-bottom: var(--s-16);
}
.confirm__status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #92400E;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: var(--s-32);
}
.confirm__status::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D97706;
}
.confirm__summary {
  text-align: left;
  background: var(--paper);
  border-radius: var(--radius);
  padding: var(--s-24);
  margin-bottom: var(--s-32);
  border: 1px solid rgba(20,27,51,0.06);
}
.confirm__summary-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--s-16);
}
.confirm__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-16);
  padding-block: var(--s-12);
  border-bottom: 1px solid rgba(20,27,51,0.06);
}
.confirm__row:last-child { border-bottom: none; padding-bottom: 0; }
.confirm__row:first-of-type { padding-top: 0; }
.confirm__row-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
  flex-shrink: 0;
}
.confirm__row-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-align: right;
}
.confirm__row-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.confirm__copy {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: var(--s-32);
  max-width: 44ch;
  margin-inline: auto;
}
.confirm__actions {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  align-items: center;
}
.confirm__actions .btn--ghost-light {
  min-width: 200px;
}
.confirm__home-link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 2px;
  transition: color 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}
.confirm__home-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* --- Hidden state for form/confirm swap --- */
[hidden] { display: none !important; }

/* --- Booking form entrance (reduced-motion guarded) --- */
@media (prefers-reduced-motion: no-preference) {
  .booking-form__card,
  .confirm__card {
    animation: rise 0.5s var(--ease-out) forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-form__card,
  .confirm__card { animation: none; }
}
