/* ==========================================================================
   Car Services Tipton
   1  Design tokens      6  Hero           11  Contact        16  Reservation
   2  Base               7  Services       12  Footer and     17  Motion
   3  Backdrop           8  How it works       phone dock     18  Fallbacks and
   4  Glass material     9  About                                 the real glass
   5  Buttons and nav   10  Gallery
   ========================================================================== */

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

  /* Colour: deep navy text on pearl, one muted teal accent, and a red kept for errors */
  --navy: #14233a;
  --navy-soft: #4a5a70;
  --teal: #1e6b67;
  --teal-dark: #164f4c;
  --teal-tint: rgba(30, 107, 103, 0.09);
  --error: #a8261f;
  --pearl: #f4f6f8;
  --white: #ffffff;
  --line: rgba(20, 35, 58, 0.12);
  --line-strong: rgba(20, 35, 58, 0.3);

  /* Background light */
  --ice: #dfeaf3;
  --silver: #e4e8ee;
  --warm: #fbf6ee;

  /* Glass */
  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-blur: 22px;
  --glass-saturate: 140%;
  --glass-shadow: 0 1px 2px rgba(20, 35, 58, 0.04), 0 18px 48px rgba(20, 35, 58, 0.08);
  --glass-solid: rgba(255, 255, 255, 0.94);

  /* Radius */
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-pill: 999px;

  /* Spacing: an 8px scale, with 4 for fine adjustments */
  --s-half: 4px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --gutter: 16px;
  --section: clamp(96px, 11vw, 160px);
  --max: 1200px;

  /* Type */
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

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

@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%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--navy);
  font: 400 17px/1.65 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: 600; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* Browsers flash a grey box on tap and select text on a quick double press. Buttons answer with a small press instead (section 5). */
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.6vw, 20px); line-height: 1.6; color: var(--navy-soft); max-width: 32em; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.skip { position: absolute; left: var(--s-2); top: -80px; z-index: 100; padding: var(--s-1) var(--s-2); background: var(--navy); color: var(--white); border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: var(--s-2); }
.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(--navy-soft); }
.tag { display: inline-block; padding: 0 8px; border: 1.5px dashed currentColor; border-radius: 6px; font: 500 13px/1.5 var(--sans); letter-spacing: 0; vertical-align: middle; color: var(--navy-soft); }

/* Section heads: heading, one line, and a note */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); max-width: 40em; margin-bottom: var(--s-5); }
.section-head p:not(.ph-note) { font-size: 18px; color: var(--navy-soft); }
.section-head--row { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); max-width: none; }

/* 3  Backdrop ------------------------------------------------------------------
   A pale gradient mesh that drifts very slowly, and three large, faint shapes.
   Fixed, so the glass always has something soft to refract. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--pearl); }
.mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 36% at 18% 22%, var(--ice), transparent 70%),
    radial-gradient(36% 32% at 82% 14%, var(--warm), transparent 70%),
    radial-gradient(44% 40% at 72% 78%, var(--silver), transparent 70%),
    radial-gradient(34% 30% at 26% 82%, #e8f0f2, transparent 70%);
  animation: mesh-drift 60s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes mesh-drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(-2deg); }
  to { transform: translate3d(3%, 3%, 0) rotate(2deg) scale(1.04); }
}
.shape { position: absolute; border: 1px solid rgba(255, 255, 255, 0.7); }
.shape-1 {
  top: -16vmax;
  right: -12vmax;
  width: 58vmax;
  height: 58vmax;
  border-radius: 22%;
  transform: rotate(-14deg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(214, 227, 238, 0.25) 70%);
}
.shape-2 {
  bottom: -22vmax;
  left: -16vmax;
  width: 54vmax;
  height: 54vmax;
  border-radius: 24%;
  transform: rotate(18deg);
  background: linear-gradient(30deg, rgba(222, 231, 240, 0.7), rgba(255, 255, 255, 0) 75%);
}
.shape-3 {
  top: 38%;
  right: 6vw;
  width: 16vmax;
  height: 48vmax;
  border-radius: var(--radius-pill);
  transform: rotate(28deg);
  background: linear-gradient(180deg, rgba(251, 244, 232, 0.9), rgba(251, 244, 232, 0));
}

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

/* 5  Buttons, links and navigation --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 48px;
  padding: 0 var(--s-3);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  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), box-shadow var(--fast) var(--ease);
}
.btn-lg { min-height: 56px; padding: 0 var(--s-4); font-size: 17px; }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 1px 2px rgba(20, 35, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: rgba(255, 255, 255, 0.6); border-color: var(--line-strong); color: var(--navy); }
.btn-secondary:hover { background: var(--white); border-color: var(--navy); }
.btn.is-ph { border-style: dashed; }
.text-link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color var(--fast) var(--ease); }
.text-link:hover { color: var(--teal-dark); }
.text-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-weight: 600;
  color: var(--teal);
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.text-btn:hover { color: var(--teal-dark); }

/* 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, .text-link:active, .nav-links a:active, .booking-toggle:active { opacity: 0.65; }

/* Floating pill nav, centred */
.nav-wrap { position: sticky; top: var(--s-2); z-index: 50; display: flex; justify-content: center; padding-inline: var(--s-2); margin-top: var(--s-2); }
.nav {
  /* More white than the tiles: the nav's text has to stay readable over anything that scrolls under it */
  --glass-fill: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-half);
  width: 100%;
  max-width: 980px;
  padding: 6px 6px 6px var(--s-3);
  border-radius: var(--radius-l);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  min-height: 44px;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { font-weight: 300; color: var(--navy-soft); }
.nav-links { display: none; order: 3; flex-basis: 100%; padding: var(--s-1) 0 var(--s-2); }
.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-2); background: none; border: 0; font-weight: 600; }
html:not(.js) .nav-links { display: block; }
html:not(.js) .nav-toggle { display: none; }
.nav-reserve { min-height: 44px; padding: 0 var(--s-3); }
.nav-back { padding-right: var(--s-2); color: var(--navy); }
.nav-back-short { display: none; }
/* Narrow phones: "Home" keeps the booking page's bar on one line */
@media (max-width: 419px) {
  .nav-back-full { display: none; }
  .nav-back-short { display: inline; }
}
/* 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; border-radius: var(--radius-pill); }
  .nav-toggle { display: none; }
  .nav-links { display: flex; order: 0; flex-basis: auto; gap: var(--s-half); padding: 0; margin-right: auto; }
  .nav-links a { min-height: 44px; padding: 0 var(--s-2); border-radius: var(--radius-pill); transition: background-color var(--fast) var(--ease); }
  .nav-links a:hover { background: rgba(20, 35, 58, 0.06); }
  .nav-reserve { min-height: 46px; }
}

/* 6  Hero ---------------------------------------------------------------------- */
.hero { padding-top: var(--s-5); }
.hero-grid { display: grid; gap: var(--s-5); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.hero h1 { font-size: clamp(40px, 10.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 span { display: block; font-weight: 300; color: var(--navy-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); width: 100%; }
.trust li { display: flex; align-items: center; gap: var(--s-1); font-weight: 500; font-size: 16px; }
.trust li::before { content: ""; width: 14px; height: 1.5px; background: var(--teal); flex: none; }
/* The hero photo sits in a frosted frame. The photo inside drifts a little on scroll (site.js). */
.hero-frame {
  padding: 10px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
.hero-photo { position: relative; overflow: hidden; border-radius: 27px; aspect-ratio: 4 / 3; background: var(--silver); }
.hero-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }

@media (min-width: 960px) {
  .hero { padding-top: var(--s-6); }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); align-items: center; }
  .hero-copy { grid-column: 1 / span 6; }
  .hero-frame { grid-column: 7 / -1; }
  .hero-photo { aspect-ratio: 5 / 6; }
}

/* 7  Services: a bento grid of glass tiles ---------------------------------------- */
.bento { display: grid; gap: var(--s-2); }
.tile { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); border-radius: var(--radius-l); transition: transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--glass-edge), 0 1px 2px rgba(20, 35, 58, 0.05), 0 24px 56px rgba(20, 35, 58, 0.12); }
}
.tile-photo { margin: calc(-1 * var(--s-1)) calc(-1 * var(--s-1)) var(--s-2); overflow: hidden; border-radius: var(--radius-m); }
.tile-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-title { font-size: 24px; }
.tile-desc { flex: 1; color: var(--navy-soft); max-width: 30em; }
.tile-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-2); margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
.tile-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); }
.tile-price { font: 600 20px/1.3 var(--display); letter-spacing: -0.01em; }
.tile-time { font-size: 15px; font-weight: 500; color: var(--navy-soft); }
.tile .btn { min-height: 44px; padding: 0 var(--s-3); }
.cards-other { margin-top: var(--s-3); color: var(--navy-soft); }
.cards-other a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--teal); text-underline-offset: 4px; }

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--large, .tile--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: var(--s-3); }
  .tile { padding: var(--s-4); }
  .tile--large { grid-row: span 2; }
  .tile--large .tile-photo { flex: 1; min-height: 220px; }
  .tile--large .tile-photo img { height: 100%; aspect-ratio: auto; }
  .tile--large .tile-title { font-size: 32px; }
  .tile--large .tile-desc { flex: none; }
  .tile--wide .tile-desc { max-width: 26em; }
}

/* 8  How it works ------------------------------------------------------------------ */
.steps { display: grid; gap: var(--s-4); }
.steps li { display: flex; flex-direction: column; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line-strong); }
.step-num { font: 300 56px/1 var(--display); letter-spacing: -0.04em; color: var(--teal); margin-bottom: var(--s-1); }
.steps p { color: var(--navy-soft); max-width: 26em; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
}

/* 9  About --------------------------------------------------------------------------- */
.about-grid { display: grid; gap: var(--s-5); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l); }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.about-copy .lead { color: var(--navy); font-size: clamp(20px, 2vw, 24px); font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.45; }
.about-copy p:not(.lead):not(.ph-note) { color: var(--navy-soft); max-width: 34em; }
@media (min-width: 640px) {
  .about-photo { max-width: 440px; }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); align-items: center; }
  .about-photo { grid-column: 1 / span 5; max-width: none; }
  .about-copy { grid-column: 7 / -1; }
}

/* 10  Gallery -------------------------------------------------------------------- */
.shots { display: grid; gap: var(--s-2); }
.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-3); }
}

/* 11  Contact --------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-5); }
.contact-details { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-details h2 { margin-bottom: var(--s-1); }
.contact-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-half); }
.contact-block h3, .contact-hours h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; color: var(--navy-soft); }
.contact-block address, .contact-phone { font: 500 24px/1.35 var(--display); letter-spacing: -0.01em; }
.contact-phone a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.contact-email a, .contact-social a { display: inline-flex; align-items: center; min-height: 44px; margin-right: var(--s-2); overflow-wrap: anywhere; color: var(--teal); text-underline-offset: 4px; }
.contact-hours { display: flex; flex-direction: column; gap: var(--s-2); }
.hours > div { display: flex; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-1); 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(--teal); }
.map { display: grid; place-items: center; min-height: 300px; padding: var(--s-3); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); text-align: center; color: var(--navy-soft); background: rgba(255, 255, 255, 0.4); }
.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)); column-gap: var(--s-4); }
  .map { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s-3); }
  .contact-details { grid-column: 1 / span 4; }
  .contact-hours { grid-column: 5 / span 3; padding-top: 92px; }
  .map { grid-column: 8 / -1; min-height: 520px; }
}

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

/* A solid bar, not glass: glass is kept for the nav, tiles and booking surfaces */
.dock {
  position: fixed;
  left: var(--s-2);
  right: var(--s-2);
  bottom: calc(var(--s-2) + env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-1);
  padding: 6px;
  background: var(--glass-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
}
.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; }
}

/* 16  Reservation ------------------------------------------------------------------- */
.page-reserve { display: flex; flex-direction: column; min-height: 100svh; }
.page-reserve .footer { margin-top: 0; }
.reserve-main { flex: 1; padding-block: var(--s-4) var(--s-7); }
.reserve-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s-3); margin-bottom: var(--s-3); }
.reserve-head h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.reserve-call { color: var(--navy-soft); }
.reserve-call a { display: inline-block; padding-block: 11px; font-weight: 600; color: var(--teal); text-underline-offset: 4px; }
.reserve-grid { display: grid; gap: var(--s-2); align-items: start; }

/* Your booking */
.booking-card { padding: var(--s-1) var(--s-2); border-radius: var(--radius-l); }
.booking-title { font-size: 20px; }
.booking-card .booking-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.booking-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); width: 100%; min-height: 56px; padding: var(--s-1); background: none; border: 0; text-align: left; }
.booking-toggle-text { display: flex; flex-direction: column; min-width: 0; }
.booking-toggle-label { font: 600 16px/1.3 var(--display); }
.booking-line { font-size: 15px; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-toggle-action { flex: none; font-weight: 600; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.booking-body { padding: 0 var(--s-1) var(--s-2); }
.booking-card[data-collapsed="true"] .booking-body { display: none; }
.booking-list > div { display: grid; grid-template-columns: 84px 1fr; gap: var(--s-2); padding-block: 10px; border-top: 1px solid var(--line); }
.booking-list dt { font-size: 15px; color: var(--navy-soft); }
.booking-list dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.booking-list dd.is-empty { font-weight: 400; color: var(--navy-soft); }
.booking-list dd small { display: block; font-size: 14px; font-weight: 400; color: var(--navy-soft); }
.booking-note { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); font-size: 14px; color: var(--navy-soft); }

.panel { padding: var(--s-3) var(--s-2); border-radius: var(--radius-l); scroll-margin-top: 96px; }

/* Slim progress bar: four segments, each a way back to its step */
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: var(--s-4); }
.progress button { display: block; width: 100%; min-height: 44px; padding: 10px 0 0; background: none; border: 0; border-top: 3px solid var(--line); border-radius: 0; font-size: 14px; font-weight: 500; line-height: 1.25; text-align: left; color: var(--navy-soft); transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.progress button:disabled { cursor: not-allowed; }
.progress button.is-done { border-top-color: var(--teal); color: var(--navy); }
.progress button:not(:disabled):hover { color: var(--teal); }
.progress button[aria-current="step"] { border-top-color: var(--teal); color: var(--navy); font-weight: 600; }

/* Steps */
.step { display: flex; flex-direction: column; gap: var(--s-3); 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(28px, 6.4vw, 40px); line-height: 1.12; }
.step-count { display: block; margin-bottom: var(--s-1); font: 600 13px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-soft); }
.step-note { margin-top: calc(-1 * var(--s-1)); color: var(--navy-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(--navy-soft); }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s-2);
  background: rgba(255, 255, 255, 0.86);
  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), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 104px; padding: 12px var(--s-2); line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6b7789; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: var(--navy-soft); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; background: var(--white); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.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-3); }

/* Step 1: choosing a service. Flat tints, as the panel behind them is already the glass. */
.options { display: grid; gap: var(--s-1); }
.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-half) var(--s-2);
  height: 100%;
  padding: var(--s-2);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.option:hover .option-box { background: var(--white); border-color: var(--line-strong); }
.option input:checked + .option-box { background: var(--white); border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.option input:focus-visible + .option-box { outline: 2px solid var(--teal); outline-offset: 3px; }
.option-name { font: 600 18px/1.3 var(--display); letter-spacing: -0.01em; }
.option-tick { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px 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(--teal); border-color: var(--teal); color: var(--white); }
.option-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); font-size: 15px; font-weight: 500; color: var(--navy-soft); }

/* Step 2: calendar */
.when { display: grid; gap: var(--s-3); }
.calendar { margin-top: var(--s-1); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1); margin-bottom: var(--s-1); }
.cal-title { font: 600 18px/1.2 var(--display); }
.cal-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line-strong); border-radius: 50%; font-size: 18px; line-height: 1; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.cal-nav:hover:not(:disabled) { background: var(--white); }
.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-half); font-size: 13px; font-weight: 500; color: var(--navy-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: var(--white); }
.cal-day[aria-current="date"] { border-color: var(--line-strong); }
.cal-day[aria-pressed="true"], .cal-day[aria-pressed="true"]:hover { background: var(--teal); color: var(--white); font-weight: 600; }
.cal-day:disabled { color: rgba(20, 35, 58, 0.36); 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: 96px; }
.time-hint { color: var(--navy-soft); }
.time-notice { font-weight: 500; color: var(--teal); }
.time-notice:empty { display: none; }
.slot-title { margin-top: var(--s-2); margin-bottom: var(--s-1); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-soft); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--s-1); }
.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.7); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); 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: var(--white); }
.slot input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); font-weight: 600; }
.slot input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Actions under each step */
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); padding-top: var(--s-3); 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(20, 35, 58, 0.06); border-color: var(--line-strong); color: var(--navy-soft); box-shadow: none; cursor: not-allowed; }
.btn-next[aria-busy="true"] { background: var(--teal); color: var(--white); cursor: progress; }
.still-needed { flex-basis: 100%; font-size: 15px; color: var(--navy-soft); }
.still-needed:empty { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { padding: 12px var(--s-2); border: 1px solid var(--error); border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.8); font-weight: 500; color: var(--error); }

/* Review and confirmation: one block per section, each with its own Edit */
.review { display: flex; flex-direction: column; }
.review-section { padding-block: var(--s-2); border-top: 1px solid var(--line); }
.review-section:last-child { border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.review-head h3 { font: 600 13px/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-soft); }
.review-section dl > div { display: grid; grid-template-columns: 88px 1fr; gap: var(--s-2); padding-top: var(--s-half); }
.review-section dt { color: var(--navy-soft); }
.review-section dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.review-section dd small { display: block; font-size: 15px; font-weight: 400; color: var(--navy-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-1) 2px 0; padding: 0 8px; background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 5px; font: 700 15px/1.6 var(--display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.confirmation { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); animation: step-in var(--slow) var(--ease); }
.confirmation h2 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; }
.confirmation .review { width: 100%; }
.proto-note { padding: 12px var(--s-2); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s); font-size: 15px; background: rgba(255, 255, 255, 0.6); }
.reserve-grid.is-done .booking-card { display: none; }

@media (min-width: 560px) {
  .panel { padding: var(--s-4); }
  .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); }
  .review-section dl > div { grid-template-columns: 120px 1fr; }
  .btn-next { flex: 0 0 auto; min-width: 200px; }
  .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-1)); }
  .cal-grid td { padding: 1px 0; }
}
@media (min-width: 1040px) {
  .reserve-main { padding-block: var(--s-5) var(--s-7); }
  .reserve-head { margin-bottom: var(--s-4); }
  .reserve-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-3); }
  .panel { grid-column: 1; grid-row: 1; padding: var(--s-5); }
  .booking-card { grid-column: 2; grid-row: 1; position: sticky; top: 104px; padding: var(--s-3); }
  .booking-card .booking-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; margin-bottom: var(--s-2); }
  .booking-toggle { display: none; }
  .booking-body { padding: 0; }
  .booking-card[data-collapsed="true"] .booking-body { display: block; }
  .reserve-grid.is-done { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .when { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
}

/* 17  Motion ---------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Tiles lift on hover too, so their reveal mustn't hold a transform once it's done */
.js .tile.reveal.is-in { transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), box-shadow var(--slow) var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .mesh { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo img { transform: none; }
  .spinner { animation: none; border-top-color: rgba(255, 255, 255, 0.35); }
  .tile:hover { transform: none; }
}

/* 18  Fallbacks and the real glass ---------------------------------------------------------
   Only browsers that support backdrop-filter get the see-through version. Everyone else
   keeps the solid, slightly translucent surface from section 4. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (prefers-reduced-transparency: no-preference) {
    .glass {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)), var(--glass-fill);
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
      backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    }
    .hero-frame {
      background: rgba(255, 255, 255, 0.42);
      -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, html:not(.js) .booking-card { display: none; }
@media (forced-colors: active) {
  .glass, .hero-frame, .dock { border-color: CanvasText; }
  .cal-day[aria-pressed="true"], .slot input:checked + span, .option input:checked + .option-box { outline: 2px solid Highlight; }
}
