/* ==========================================================================
   BPA Car Service
   1  Design tokens      6  Hero           11  Contact        16  Fallbacks and
   2  Base               7  Services       12  Footer and         the real glass
   3  Glass material     8  How it works       phone dock
   4  Buttons and links  9  Why BPA        13  Reservation
   5  Navigation        10  Gallery        14  Motion
   ========================================================================== */

/* 1  Design tokens --------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour: a graphite base, a steel-blue accent and one signal red for errors, plus neutrals */
  --ink: #0f1215;
  --steel: #8db3d8;
  --steel-light: #b0cbe6;
  --error: #ffa197;
  --text: #eef1f3;
  --text-soft: #b9c2c9;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.4);
  --plate: #f3f2ed; /* number plates in the booking summary */

  /* Glass */
  --glass-top: rgba(255, 255, 255, 0.13);
  --glass-bottom: rgba(255, 255, 255, 0.06);
  --glass-tint: rgba(15, 18, 21, 0.28); /* sits behind the white fill so text always has something dark under it */
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-edge: rgba(255, 255, 255, 0.3);
  --glass-inner: rgba(255, 255, 255, 0.04);
  --glass-blur: 22px;
  --glass-saturate: 125%;
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px rgba(0, 0, 0, 0.4);
  --glass-solid: rgba(31, 36, 41, 0.96);

  /* Radius */
  --radius-s: 8px;
  --radius-btn: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --gutter: 16px;
  --section: clamp(96px, 11vw, 152px);
  --max: 1320px;

  /* Type */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
  --fast: 200ms;
  --slow: 400ms;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* 2  Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { line-height: 0.92; }
h2 { font-size: clamp(52px, 6.6vw, 96px); line-height: 0.95; }
h3 { font-size: 28px; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }

/* Browsers flash a blue box on tap and select text on a quick double press. Buttons answer with a small press instead (section 4). */
html { -webkit-tap-highlight-color: transparent; }
a, button, label { touch-action: manipulation; }
button, label, .btn { -webkit-user-select: none; user-select: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-top: var(--section); }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--text-soft); max-width: 27em; text-wrap: pretty; }
.skip { position: absolute; left: var(--s-3); top: -80px; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--steel); color: var(--ink); border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: var(--s-3); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Clearly marked placeholders */
.ph { border-bottom: 1.5px dashed currentColor; padding-bottom: 1px; }
.ph-note { font-size: 15px; color: var(--text-soft); }
.tag { display: inline-block; padding: 0 8px; border: 1.5px dashed currentColor; border-radius: 6px; font: 500 13px/1.5 var(--sans); text-transform: none; letter-spacing: 0; vertical-align: middle; }

/* Soft light across the graphite, like overhead strip lights in a workshop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 90% -5%, rgba(141, 179, 216, 0.16), transparent 70%),
    linear-gradient(172deg, transparent 40%, rgba(255, 255, 255, 0.04) 52%, transparent 64%),
    radial-gradient(70% 50% at 0% 100%, rgba(141, 179, 216, 0.07), transparent 70%),
    var(--ink);
}
/* Fine grain stops dark gradients from banding */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3  Glass material --------------------------------------------------------
   Solid first, so browsers without backdrop-filter still get a readable
   surface. The real glass is added in section 16. */
.glass {
  position: relative;
  background: var(--glass-solid);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 28px var(--glass-inner), var(--glass-shadow);
}

/* Gentle sheen that follows the pointer on hover (position set in site.js) */
[data-sheen]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--slow) var(--ease);
}
@media (hover: hover) {
  [data-sheen]:hover::after { opacity: 1; }
}

/* 4  Buttons and links ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn-lg { min-height: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn-primary { background: var(--steel); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { background: var(--steel-light); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-quiet:hover { border-color: var(--steel); color: var(--steel-light); }
.btn.is-ph { border-style: dashed; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.link-arrow .u { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.link-arrow:hover { color: var(--steel-light); }
.text-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 500;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color var(--fast) var(--ease);
}
.text-btn:hover { color: var(--steel-light); }

/* The press */
.btn:active, .option:active .option-box, .slot:active span, .cal-nav:active:not(:disabled), .cal-day:active:not(:disabled) { transform: scale(0.97); }
.nav-toggle:active, .text-btn:active, .link-arrow:active, .nav-links a:active { opacity: 0.65; }

/* 5  Navigation -------------------------------------------------------------- */
.nav-wrap { position: sticky; top: var(--s-3); z-index: 50; padding-inline: var(--s-3); margin-top: var(--s-3); }
.nav {
  /* Darker tint than the cards: the nav's text has to stay readable over anything that scrolls under it */
  --glass-tint: rgba(15, 18, 21, 0.62);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  max-width: calc(var(--max) + 2 * var(--s-5));
  margin-inline: auto;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-radius: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  min-height: 44px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 6.4vw, 25px);
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark span { color: var(--steel); }
.nav-links { display: none; order: 3; flex-basis: 100%; padding: var(--s-2) 0; }
.nav-links.is-open { display: block; }
.nav-links a { display: flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; }
.nav-toggle { min-height: 44px; padding: 0 var(--s-3); background: none; border: 0; font-weight: 500; }
html:not(.js) .nav-links { display: block; }
html:not(.js) .nav-toggle { display: none; }
.nav-reserve { min-height: 44px; padding: 0 var(--s-4); }
.nav-back { padding-right: var(--s-3); }
/* On phones the dock at the bottom carries Reserve, so the top bar doesn't repeat it */
@media (max-width: 767px) {
  .page-home .nav-reserve { display: none; }
}

@media (min-width: 960px) {
  .nav { flex-wrap: nowrap; gap: var(--s-2); padding-left: var(--s-5); }
  .wordmark { font-size: 28px; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; order: 0; flex-basis: auto; gap: var(--s-1); padding: 0; margin-right: var(--s-3); }
  .nav-links a { min-height: 44px; padding: 0 var(--s-3); border-radius: var(--radius-s); transition: background-color var(--fast) var(--ease); }
  .nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
  .nav-reserve { min-height: 48px; padding: 0 var(--s-5); }
}

/* 6  Hero ---------------------------------------------------------------------- */
.hero { position: relative; padding-top: var(--s-7); }
.hero-grid { display: grid; gap: var(--s-7); }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
.hero h1 { font-size: clamp(44px, 13.2vw, 104px); white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-1); }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); width: 100%; max-width: 30em; margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.hero-facts dt { font-size: 15px; color: var(--text-soft); }
.hero-facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.hero-facts dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--steel-light); text-underline-offset: 4px; }
.hero-photo { position: relative; overflow: hidden; border-radius: var(--radius-l); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* A measuring scale under the hero: the one drawn flourish on the page */
.ruler {
  height: 16px;
  margin-top: var(--s-8);
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px) 0 100% / 80px 16px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px) 0 100% / 16px 8px repeat-x;
}

@media (min-width: 960px) {
  .hero { padding-top: var(--s-8); }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: center; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero h1 { font-size: clamp(72px, 7.9vw, 118px); }
  .hero-photo { grid-column: 8 / -1; }
  .hero-photo img { aspect-ratio: 4 / 5; }
}

/* 7  Services ------------------------------------------------------------------ */
.services { position: relative; isolation: isolate; overflow: clip; padding-bottom: var(--s-8); }
/* Soft bands of steel and white light behind the cards. This is what the glass refracts. */
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(172deg,
    rgba(141, 179, 216, 0) 0, rgba(141, 179, 216, 0.24) 80px, rgba(141, 179, 216, 0) 160px,
    rgba(255, 255, 255, 0) 160px, rgba(255, 255, 255, 0.08) 240px, rgba(255, 255, 255, 0) 320px);
  -webkit-mask-image: radial-gradient(60% 46% at 64% 52%, #000 30%, transparent 100%);
  mask-image: radial-gradient(60% 46% at 64% 52%, #000 30%, transparent 100%);
}
.services-grid { display: grid; gap: var(--s-6); }
.services-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.services-head p:first-of-type { font-size: 18px; }
.makes { color: var(--text-soft); }
.makes span { color: var(--text); }
.cards { display: grid; gap: var(--s-4); }
.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--radius-m); transition: transform var(--slow) var(--ease), border-color var(--slow) var(--ease); }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.26); }
}
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
/* min-width and break-word keep a long title inside the card if the display font hasn't loaded and a wider fallback shows */
.card-title { min-width: 0; overflow-wrap: break-word; }
.card-price { flex: none; font: 700 24px/1.05 var(--display); text-transform: uppercase; color: var(--steel-light); }
.card-desc { flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.card-time { font-weight: 500; color: var(--text-soft); }
.card .btn { position: relative; z-index: 1; }
.cards-other { margin-top: var(--s-5); color: var(--text-soft); }
.cards-other a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text); text-underline-offset: 4px; }
.cards-other a:hover { color: var(--steel-light); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .services-head { grid-column: 1 / span 4; position: sticky; top: 112px; }
  .cards-wrap { grid-column: 5 / -1; }
  .cards { gap: var(--s-5); }
  .card { padding: var(--s-6); min-height: 248px; }
  .card--wide { min-height: 0; }
  .card--wide .card-desc { max-width: 36em; }
  h3.card-title { font-size: 34px; }
  .card-price { font-size: 30px; }
}

/* 8  How it works ------------------------------------------------------------------ */
.step-num { display: block; font: 700 56px/1 var(--display); color: var(--steel); font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: var(--s-6); margin-top: var(--s-7); }
.steps li { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.steps p { color: var(--text-soft); max-width: 26em; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .steps h3 { font-size: 34px; }
}

/* 9  Why BPA ------------------------------------------------------------------------ */
.why-grid { display: grid; gap: var(--s-6); }
.why-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.why-list { display: grid; gap: var(--s-5); }
.why-list li { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.why-list .step-num { font-size: 36px; color: var(--text-soft); }
.why-list p { color: var(--text-soft); max-width: 28em; }
@media (min-width: 640px) {
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5); row-gap: var(--s-6); }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .why-head { grid-column: 1 / span 4; }
  .why-list { grid-column: 5 / -1; }
}

/* 10  Gallery -------------------------------------------------------------------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); }
.shots { display: grid; gap: var(--s-3); }
.shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
@media (min-width: 560px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
}

/* 11  Contact --------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-6); }
.contact-details { display: flex; flex-direction: column; gap: var(--s-5); }
.contact-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.contact-block h3, .contact-hours h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none; color: var(--text-soft); }
.contact-block address, .contact-phone { font: 700 34px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.contact-phone a { display: inline-flex; align-items: center; min-height: 44px; color: var(--steel-light); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-email a, .contact-block p a { display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--s-4); overflow-wrap: anywhere; }
.contact-hours { display: flex; flex-direction: column; gap: var(--s-3); }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-2); border-top: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 1px solid var(--line); }
.hours dd { font-variant-numeric: tabular-nums; }
.hours .is-today { font-weight: 600; color: var(--steel-light); }
.map { display: grid; place-items: center; min-height: 300px; padding: var(--s-5); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-m); text-align: center; color: var(--text-soft); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }
.map.has-map { padding: 0; border: 0; overflow: hidden; }
@media (min-width: 720px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); }
  .contact-details { grid-column: 1 / span 4; }
  .contact-hours { grid-column: 5 / span 3; padding-top: 106px; }
  .map { grid-column: 8 / -1; min-height: 520px; }
}

/* 12  Footer and phone dock ------------------------------------------------------------ */
.footer { margin-top: var(--section); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); font-size: 15px; color: var(--text-soft); }
.footer .wordmark { margin: 0; font-size: 22px; color: var(--text); }
.footer p a { display: inline-block; padding-block: 12px; text-underline-offset: 3px; }

.dock {
  --glass-tint: rgba(15, 18, 21, 0.62);
  position: fixed;
  left: var(--s-3);
  right: var(--s-3);
  bottom: calc(var(--s-3) + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: 18px;
}
.dock .btn { min-height: 50px; }
@media (max-width: 767px) {
  .page-home { padding-bottom: 92px; } /* room for the dock, so it never covers the footer */
}
@media (min-width: 768px) {
  .dock { display: none; }
}

/* 13  Reservation ------------------------------------------------------------------- */
.page-reserve { display: flex; flex-direction: column; min-height: 100svh; }
.page-reserve .backdrop {
  background:
    repeating-linear-gradient(172deg,
      rgba(141, 179, 216, 0) 0, rgba(141, 179, 216, 0.13) 110px, rgba(141, 179, 216, 0) 220px,
      rgba(255, 255, 255, 0) 220px, rgba(255, 255, 255, 0.05) 330px, rgba(255, 255, 255, 0) 440px),
    var(--ink);
}
.page-reserve .footer { margin-top: 0; }
.reserve-main { flex: 1; padding-block: var(--s-6) var(--s-8); }
.reserve-grid { display: grid; gap: var(--s-5); }
.reserve-side { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); }
.reserve-side h1 { font-size: clamp(56px, 16.5vw, 92px); text-wrap: balance; }
.reserve-call a { display: inline-block; padding-block: 11px; font-weight: 600; color: var(--steel-light); text-underline-offset: 4px; }
.so-far { display: none; width: 100%; }
.so-far > div { display: flex; flex-direction: column; padding-block: var(--s-3); border-top: 1px solid var(--line); }
.so-far > div:last-child { border-bottom: 1px solid var(--line); }
.so-far dt { font-size: 15px; color: var(--text-soft); }
.so-far dd { font-weight: 600; }
.so-far dd.is-empty { font-weight: 400; color: var(--text-soft); }

.panel { --glass-tint: rgba(15, 18, 21, 0.48); padding: var(--s-4); border-radius: var(--radius-l); scroll-margin-top: 92px; }

/* Progress */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-bottom: var(--s-6); }
.progress button { display: flex; flex-wrap: wrap; gap: 0 5px; width: 100%; min-height: 44px; padding: 10px 0 0; background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: left; color: var(--text-soft); transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.progress button span { font-weight: 400; }
.progress button:disabled { cursor: not-allowed; }
.progress button.is-done { border-top-color: var(--steel); color: var(--text); }
.progress button:not(:disabled):hover { color: var(--steel-light); }
.progress button[aria-current="step"] { border-top-color: var(--steel); color: var(--text); font-weight: 600; }

/* Steps */
.step { display: flex; flex-direction: column; gap: var(--s-5); animation: step-in var(--slow) var(--ease); }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.step h2 { font-size: clamp(40px, 11vw, 60px); line-height: 0.98; }
.step-count { display: block; margin-bottom: var(--s-2); font: 500 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-soft); }
.step-note { margin-top: calc(-1 * var(--s-2)); color: var(--text-soft); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > legend { padding: 0; font-weight: 600; font-size: 16px; }
.hint { font-size: 15px; color: var(--text-soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-4);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  font-size: 17px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.field textarea { min-height: 104px; padding: var(--s-3) var(--s-4); line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-soft); opacity: 1; }
.field input:hover, .field textarea:hover { background: rgba(255, 255, 255, 0.11); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--steel); outline-offset: 1px; background: rgba(255, 255, 255, 0.11); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 40px #2a3036 inset; caret-color: var(--text); }
.plate-input { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.plate-input::placeholder { font-weight: 400; }
.error { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--error); }
.error:empty { display: none; }
.pair { display: grid; gap: var(--s-5); }

/* Step 1: choosing a service. Flat tinted cards, as the panel behind them is already the glass. */
.options { display: grid; gap: var(--s-3); }
.option { position: relative; display: block; }
.option:last-child:nth-child(odd) { grid-column: 1 / -1; } /* no empty cell when the count is odd */
.option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.option-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: var(--s-1) var(--s-4);
  height: 100%;
  padding: var(--s-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.option:hover .option-box { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }
.option input:checked + .option-box { background: rgba(141, 179, 216, 0.13); border-color: var(--steel); box-shadow: inset 0 0 0 1px var(--steel); }
.option input:focus-visible + .option-box { outline: 2px solid var(--steel); outline-offset: 3px; }
.option-name { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.option-tick { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; color: transparent; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.option input:checked + .option-box .option-tick { background: var(--steel); border-color: var(--steel); color: var(--ink); }
.option-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-4); color: var(--text-soft); font-weight: 500; }

/* Step 2: calendar */
.when { display: grid; gap: var(--s-5); }
.calendar { margin-top: var(--s-3); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.cal-title { font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-size: 18px; line-height: 1; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.cal-nav:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { padding-bottom: var(--s-1); font-size: 14px; font-weight: 500; color: var(--text-soft); }
.cal-grid td { padding: 1px; text-align: center; }
.cal-day { display: block; width: 100%; height: 44px; padding: 0; background: none; border: 1px solid transparent; border-radius: var(--radius-s); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.cal-day:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.cal-day[aria-current="date"] { border-color: var(--line-strong); }
.cal-day[aria-pressed="true"], .cal-day[aria-pressed="true"]:hover { background: var(--steel); color: var(--ink); font-weight: 600; }
.cal-day:disabled { color: rgba(238, 241, 243, 0.42); font-weight: 400; text-decoration: line-through; cursor: not-allowed; }
.cal-day.is-past:disabled { text-decoration: none; }

/* Step 2: drop-off times */
.time-field { scroll-margin-top: 92px; }
.time-hint { color: var(--text-soft); }
.time-notice { font-weight: 500; color: var(--steel-light); }
.time-notice:empty { display: none; }
.slot-title { margin-top: var(--s-3); margin-bottom: var(--s-2); font-size: 15px; color: var(--text-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s-2); }
.slot { position: relative; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-strong); border-radius: var(--radius-s); font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.slot:hover span { background: rgba(255, 255, 255, 0.14); }
.slot input:checked + span { background: var(--steel); border-color: var(--steel); color: var(--ink); font-weight: 600; }
.slot input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: 2px; }

/* Actions under each step */
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.btn-next { flex: 1; min-height: 54px; font-size: 17px; }
.step-actions [data-back] { min-height: 54px; }
.btn-next[aria-disabled="true"] { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--text-soft); box-shadow: none; cursor: not-allowed; }
.btn-next[aria-busy="true"] { background: var(--steel); color: var(--ink); cursor: progress; }
.still-needed { flex-basis: 100%; font-size: 15px; color: var(--text-soft); }
.still-needed:empty { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(15, 18, 21, 0.3); border-top-color: var(--ink); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { padding: var(--s-3) var(--s-4); border: 1px solid var(--error); border-radius: var(--radius-s); font-weight: 500; color: var(--error); }

/* Review and confirmation */
.summary { width: 100%; }
.summary > div { display: grid; grid-template-columns: 76px 1fr auto; align-items: baseline; gap: var(--s-1) var(--s-3); padding-block: var(--s-2); border-top: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 1px solid var(--line); }
.summary dt { color: var(--text-soft); }
.summary dd { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.summary dd small { display: block; font-size: 15px; font-weight: 400; color: var(--text-soft); }
/* The registration, set like a number plate */
.car-model { display: inline-block; } /* moves to its own line as a whole rather than splitting beside the plate */
.plate { display: inline-block; margin: 2px var(--s-2) 2px 0; padding: 0 9px; background: var(--plate); color: #111; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55); font: 700 19px/1.4 var(--display); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.confirmation { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); animation: step-in var(--slow) var(--ease); }
.confirmation h2 { font-size: clamp(52px, 8vw, 92px); }
.confirmation .summary > div { grid-template-columns: 76px 1fr; }
.proto-note { padding: var(--s-3) var(--s-4); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 15px; }
.reserve-grid.is-done .reserve-side { display: none; }

@media (min-width: 560px) {
  .panel { padding: var(--s-6); }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair-car { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .summary > div { grid-template-columns: 110px 1fr auto; }
  .confirmation .summary > div { grid-template-columns: 110px 1fr; }
  .btn-next { flex: 0 0 auto; min-width: 180px; }
  .still-needed { flex: 1 1 14em; }
}
/* Narrow phones: the calendar borrows some of the panel's padding so every day stays a full 44px wide */
@media (max-width: 420px) {
  .calendar { margin-inline: calc(-1 * var(--s-2)); }
  .cal-grid td { padding: 1px 0; }
}
@media (min-width: 1040px) {
  .reserve-main { padding-block: var(--s-7) var(--s-8); }
  .reserve-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-5); align-items: start; }
  .reserve-side { grid-column: 1 / span 4; position: sticky; top: 112px; gap: var(--s-5); }
  .reserve-side h1 { font-size: clamp(72px, 6.4vw, 100px); }
  .so-far { display: block; }
  .panel { grid-column: 5 / -1; }
  .is-done .panel { grid-column: 1 / span 8; }
  .when { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .step h2 { font-size: 64px; }
}

/* 14  Motion ---------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Cards move on hover too, so their reveal mustn't hold a transform once it's done */
.js .card.reveal.is-in { transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), border-color var(--slow) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .spinner { animation: none; border-top-color: rgba(15, 18, 21, 0.3); }
  .card:hover { transform: none; }
}

/* 16  Fallbacks and the real glass ---------------------------------------------------------
   Only browsers that support backdrop-filter get the see-through version. Everyone else
   keeps the solid translucent surface from section 3. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (prefers-reduced-transparency: no-preference) {
    .glass {
      background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom)), var(--glass-tint);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
  }
}
/* Without JavaScript the booking can't run, so it steps aside */
html:not(.js) .panel { display: none; }
@media (forced-colors: active) {
  .glass { border-color: CanvasText; }
  .cal-day[aria-pressed="true"], .slot input:checked + span, .option input:checked + .option-box { outline: 2px solid Highlight; }
}
