/* Site styles. Colours are tokens; dark mode swaps them (button in the header, or the system setting). */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16191d;
  --muted: #5d6670;
  --line: #dfe3e8;
  --accent: #0b5cad;
  --accent-ink: #ffffff;
  --open: #d9f2e1;   --open-ink: #146c35;
  --busy: #fdf0cf;   --busy-ink: #7a5300;
  --full: #f9dcdc;   --full-ink: #9b1c1c;
  --closed: #eceef1; --closed-ink: #8a929b;
  --error: #b42318;
  --radius: 10px;
  --stripe: #f6e7bf;
  /* Admin board */
  --drop-target: #eef5ff; --half-line: #edf0f3; --now: #d92d20;
  --band-a: #f3f4f6; --band-b: #e9ebee; --block-a: #eceef1; --block-b: #dfe2e6;
  --job-bg: #e8f0fb; --job-line: #9cbbe5; --job-ink: #12345a;
  --job-in-bg: #fff6dc; --job-in-line: #e7c35a; --job-in-ink: #5c4300;
  --job-prog-bg: #dff3e6; --job-prog-line: #6cc08c; --job-prog-ink: #0f4d27;
  --job-parts-bg: #f1e6fb; --job-parts-line: #b78ce0; --job-parts-ink: #4a2470;
  --job-done-bg: #eef0f2; --job-done-line: #c4c9cf; --job-done-ink: #59616b;
  --job-off-bg: #fbeaea; --job-off-line: #e6a5a5; --job-off-ink: #7a1f1f;
  --toast: #1d2939; --shade: rgba(0,0,0,.08);
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
}
:root[data-theme="dark"] {
  --bg: #0f1318;
  --surface: #171c23;
  --text: #e6e9ee;
  --muted: #9aa4af;
  --line: #2b323c;
  --accent: #5aa3ea;
  --accent-ink: #07121d;
  --open: #163a25;   --open-ink: #8adba7;
  --busy: #3b2f12;   --busy-ink: #f0c75e;
  --full: #44201f;   --full-ink: #f4a4a4;
  --closed: #20252c; --closed-ink: #7c8590;
  --error: #f97066;
  --stripe: #4a3b16;
  --drop-target: #16263a; --half-line: #222932; --now: #f97066;
  --band-a: #1b2028; --band-b: #20262f; --block-a: #20252c; --block-b: #272d36;
  --job-bg: #15283f; --job-line: #3f6ea3; --job-ink: #cfe2f8;
  --job-in-bg: #352a0e; --job-in-line: #a8862a; --job-in-ink: #f3d98a;
  --job-prog-bg: #11301e; --job-prog-line: #3f9462; --job-prog-ink: #a9e4bf;
  --job-parts-bg: #2a1c3b; --job-parts-line: #8a62b3; --job-parts-ink: #dcc6f3;
  --job-done-bg: #1f242b; --job-done-line: #3c434d; --job-done-ink: #9aa4af;
  --job-off-bg: #351819; --job-off-line: #8f4a4a; --job-off-ink: #f0b4b4;
  --toast: #e6e9ee; --shade: rgba(255,255,255,.1);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1318;
    --surface: #171c23;
    --text: #e6e9ee;
    --muted: #9aa4af;
    --line: #2b323c;
    --accent: #5aa3ea;
    --accent-ink: #07121d;
    --open: #163a25;   --open-ink: #8adba7;
    --busy: #3b2f12;   --busy-ink: #f0c75e;
    --full: #44201f;   --full-ink: #f4a4a4;
    --closed: #20252c; --closed-ink: #7c8590;
    --error: #f97066;
    --stripe: #4a3b16;
    --drop-target: #16263a; --half-line: #222932; --now: #f97066;
    --band-a: #1b2028; --band-b: #20262f; --block-a: #20252c; --block-b: #272d36;
    --job-bg: #15283f; --job-line: #3f6ea3; --job-ink: #cfe2f8;
    --job-in-bg: #352a0e; --job-in-line: #a8862a; --job-in-ink: #f3d98a;
    --job-prog-bg: #11301e; --job-prog-line: #3f9462; --job-prog-ink: #a9e4bf;
    --job-parts-bg: #2a1c3b; --job-parts-line: #8a62b3; --job-parts-ink: #dcc6f3;
    --job-done-bg: #1f242b; --job-done-line: #3c434d; --job-done-ink: #9aa4af;
    --job-off-bg: #351819; --job-off-line: #8f4a4a; --job-off-ink: #f0b4b4;
    --toast: #e6e9ee; --shade: rgba(255,255,255,.1);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
[hidden] { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.error { color: var(--error); min-height: 0; margin: .4em 0; }
.error:empty { display: none; }

/* Header / hero */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.site-header nav { display: flex; gap: 16px; align-items: center; }
.site-header nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
@media (max-width: 560px) { .site-header nav a:not(.btn) { display: none; } }

/* Phones: Book now moves from the header to a pulsing button at the bottom of the screen.
   Hidden while the booking form is on screen (hero.js), so it never covers the form. */
.btn.book-fab { display: none; }
@media (max-width: 560px) {
  .site-header nav .nav-book { display: none; }
  .btn.book-fab { display: block; position: fixed; z-index: 20; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%); padding: 13px 34px; border-radius: 999px; font-size: 1.05rem; font-weight: 700;
    white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .25); animation: fab-pulse 1.8s ease-out infinite;
    transition: opacity .25s, transform .25s; }
  .btn.book-fab.away { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; animation: none; }
  .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@keyframes fab-pulse {
  0% { box-shadow: 0 6px 18px rgb(0 0 0 / .25), 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 6px 18px rgb(0 0 0 / .25), 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 6px 18px rgb(0 0 0 / .25), 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .btn.book-fab { animation: none; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.points { padding-inline-start: 1.2em; margin: 16px 0 24px; }
.section { padding: 40px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 680px) { .two-col { grid-template-columns: 1fr; } }

/* Buttons & form controls */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 8px;
  padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--surface); color: var(--accent); }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; }
.btn.danger { background: var(--error); border-color: var(--error); }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
label.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-weight: 400;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
label.inline select { width: auto; margin: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-weight: 400; font-size: .85rem; margin-top: 3px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 680px) { .grid-3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Booking card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (max-width: 560px) { .card { padding: 14px; } }
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: step; }
.stepper li { flex: 1; font-size: .85rem; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; counter-increment: step; }
.stepper li::before { content: counter(step) ". "; }
.stepper li.active { color: var(--text); font-weight: 700; border-color: var(--accent); }
.stepper li.done { border-color: var(--accent); }
@media (max-width: 560px) { .stepper li { font-size: 0; } .stepper li::before { font-size: .85rem; } .stepper li.active { font-size: .85rem; } }
.booking-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.booking-nav #btn-next, .booking-nav #btn-submit { margin-inline-start: auto; }

.svc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 4px; margin: 0; }
.svc-group legend { font-weight: 700; padding: 0 4px; }
.svc { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; font-weight: 400; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); cursor: pointer; }
.svc:first-of-type { border-top: 0; }
.svc input { width: 18px; height: 18px; margin: 2px 0 0; grid-row: span 2; }
.svc-name { font-weight: 600; }
.svc-meta { color: var(--muted); font-size: .85rem; }
.job-summary { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding: 12px 14px; background: var(--bg); border-radius: 8px; }

.review { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 18px; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }
.done { text-align: center; padding: 20px 0; }
.done .big { font-size: 1.25rem; font-weight: 700; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Calendar */
.calendar { margin-top: 8px; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-tabs button { border: 0; background: var(--surface); color: var(--text); padding: 7px 14px; font: inherit; cursor: pointer; }
.cal-tabs button.active { background: var(--accent); color: var(--accent-ink); }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-title { font-weight: 700; min-width: 11em; text-align: center; }
button.icon { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; width: 34px; height: 34px; font-size: 1.2rem; cursor: pointer; }
button.icon:disabled { opacity: .35; cursor: default; }
.cal-body.loading, .loading { opacity: .5; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .78rem; color: var(--muted); padding: 2px 0; }
.cal-cell { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 58px; padding: 5px 6px;
  border: 1px solid transparent; border-radius: 6px; font: inherit; text-align: start; cursor: pointer; }
.cal-cell .num { font-weight: 700; }
.cal-cell .lbl { font-size: .7rem; line-height: 1.1; }
.cal-cell.outside { opacity: .45; }
.cal-cell.today .num { text-decoration: underline; }
.cal-cell.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-cell:disabled { cursor: default; }
@media (max-width: 480px) { .cal-cell { min-height: 44px; padding: 4px; } .cal-cell .lbl { display: none; } }
.s-open { background: var(--open); color: var(--open-ink); }
.s-busy { background: var(--busy); color: var(--busy-ink); }
.s-full { background: var(--full); color: var(--full-ink); }
.s-closed, .s-unavailable { background: var(--closed); color: var(--closed-ink); }
.cal-cell.s-busy:not(.fits) { background: repeating-linear-gradient(135deg, var(--busy), var(--busy) 6px, var(--stripe) 6px, var(--stripe) 12px); }
.cal-day { margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.cal-hint { margin-top: 14px; color: var(--muted); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slots.stack { flex-direction: column; flex-wrap: nowrap; }
.slot { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 6px; padding: 6px 10px; font: inherit; font-size: .9rem; cursor: pointer; }
.slot.selected { background: var(--accent); color: var(--accent-ink); }
.slot.more { border-style: dashed; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 700px) { .cal-week { grid-template-columns: 1fr; } }
.cal-wcol { border-radius: 8px; padding: 6px; background: var(--closed); }
.cal-wcol.selected { box-shadow: 0 0 0 2px var(--accent) inset; }
.cal-whead { display: flex; flex-direction: column; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; padding: 2px 2px 6px; cursor: pointer; }
.cal-whead .dow { font-size: .78rem; }
.cal-whead .num { font-weight: 700; }
.cal-whead .lbl { font-size: .75rem; }
.cal-wcol .slot { font-size: .82rem; padding: 4px 6px; width: 100%; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .8rem; }
.cal-legend .lg { padding: 2px 8px; border-radius: 4px; }

/* Lists */
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); max-width: 360px; }

.site-footer { padding: 24px 0; color: var(--muted); font-size: .9rem; }

/* Manage page */
.manage { max-width: 680px; margin: 32px auto; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--open); color: var(--open-ink); }
.status-pill.cancelled { background: var(--full); color: var(--full-ink); }

/* Feedback page */
.fb-note { background: var(--bg); border-radius: 8px; padding: 10px 14px; }
.rating { border: 0; padding: 0; margin: 0 0 16px; }
.rating legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rating-opt { margin: 0; }
.rating-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-opt span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 600; }
.rating-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rating-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.rating-opt.wide span { min-width: 72px; }
.rating-ends { margin-inline-start: 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: auto; margin-top: 4px; }

/* Dark mode toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Hero: the garage animation (public/img/hero-frames, made by scripts/upscale-hero.mjs) plays as
   you scroll. The hero is taller than the screen; .hero-pin stays put while hero.js draws the frame
   for the scroll position. At the last frame the Book now button pops in the empty bay. Wide
   screens: the picture keeps its height and its side edges fade into a blurred fill.
   No JS / reduced motion: the last frame as a still, button showing, no pinning. */
/* clip (not hidden) so the sliding text panels can't widen the page, without breaking the sticky pin */
.hero { overflow-x: clip; position: relative; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); }
.hero.pinned { height: calc(100svh - 60px + 110svh); }
.hero-pin { display: flex; flex-direction: column; }
.hero.pinned .hero-pin { position: sticky; top: 60px; height: calc(100svh - 60px); min-height: 460px; justify-content: center; }
.hero-text { padding-top: clamp(14px, 4vh, 40px); padding-bottom: 14px; width: 100%; }
.hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); margin-bottom: .25em; letter-spacing: -.01em; }
.hero .lead { margin: 0; }
.hero .points { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 12px 0 0; font-weight: 600; font-size: .95rem; }
.hero .points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-inline-end: 6px; }
@media (max-width: 560px) { .hero .lead { font-size: 1rem; } .hero .points { font-size: .85rem; } }
@media (max-height: 760px) and (min-width: 561px) { .hero .points { display: none; } }

.hero-scene { position: relative; overflow: hidden; height: clamp(280px, 48vw, 78svh); }
.hero.pinned .hero-scene { flex: 1; height: auto; min-height: 240px; }
/* Phones: don't let the picture get so tall that the sides are cut off. */
@media (max-width: 700px) { .hero.pinned .hero-scene { flex: 0 1 auto; height: min(100%, 86vw); } }
.hero-fill { position: absolute; inset: -60px; background: url("/img/garage-hero-start.jpg") center / cover no-repeat;
  filter: blur(30px) saturate(1.1) brightness(.92); }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; object-position: 60% 70%; }
.hero-canvas { opacity: 0; transition: opacity .2s; }
.hero-scene.live .hero-canvas { opacity: 1; }
.hero-scene.live .hero-poster { visibility: hidden; }
:root[data-theme="dark"] .hero-poster, :root[data-theme="dark"] .hero-canvas { filter: brightness(.72) saturate(.9); }
:root[data-theme="dark"] .hero-fill { filter: blur(30px) brightness(.55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-poster, :root:not([data-theme="light"]) .hero-canvas { filter: brightness(.72) saturate(.9); }
  :root:not([data-theme="light"]) .hero-fill { filter: blur(30px) brightness(.55); }
}

/* Two-line button: small question, bigger action. */
.hero-book { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 26px 12px; border-radius: 14px; line-height: 1.1; white-space: nowrap; box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  left: 50%; bottom: 18px; transform: translateX(-50%); }
.hero-book small { font-size: .82rem; font-weight: 600; opacity: .92; }
.hero-book strong { font-size: 1.45rem; font-weight: 800; letter-spacing: .01em; }
@media (max-width: 560px) { .hero-book { padding: 8px 18px 10px; } .hero-book small { font-size: .74rem; } .hero-book strong { font-size: 1.2rem; } }
.hero-scene.js .hero-book { bottom: auto; transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.hero-scene.js .hero-book.show { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

.scroll-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2; display: none; flex-direction: column;
  align-items: center; padding: 4px 12px 2px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: .8rem; font-weight: 700; transition: opacity .3s; }
.scroll-hint span { font-size: 1.3rem; line-height: .6; animation: hint 1.2s ease-in-out infinite; }
.hero.pinned .scroll-hint { display: flex; }
@media (max-width: 560px) { .scroll-hint { bottom: auto; top: 10px; } } /* clear of the bottom Book now button */
.scroll-hint.hide { opacity: 0; }
@keyframes hint { 50% { transform: translateY(4px); } }
#book { scroll-margin-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  .hero-book, .scroll-hint span { transition: none; animation: none; }
}

/* Hero text panels: slide sideways in step with the scroll animation (hero.js). Stacked in one
   grid cell so the block keeps the height of the tallest panel and nothing jumps. */
.hero-panels { display: grid; }
.hero-panel { grid-area: 1 / 1; min-width: 0; }
.hero-panel:empty { display: none; }
.hero-panels.js .hero-panel { opacity: 0; transform: translateX(56px); visibility: hidden; pointer-events: none;
  transition: opacity .35s, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .55s; }
.hero-panels.js .hero-panel.past { transform: translateX(-56px); }
.hero-panels.js .hero-panel.on { opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity .45s .1s, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.hero-eyebrow { margin: 0 0 .3em; color: var(--accent); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-title { margin: 0 0 .45em; font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-chips li { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.hero-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; list-style: none; padding: 0; margin: 0; }
.hero-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 12px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; }
.hero-prices b { color: var(--accent); white-space: nowrap; }
.hero-prices + .small { margin: 8px 0 0; }
@media (max-width: 860px) { .hero-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hero-prices { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-prices li { flex-direction: column; gap: 0; padding: 5px 9px; font-size: .8rem; }
  .hero-prices li:nth-child(n+5) { display: none; }
  .hero-chips li { font-size: .8rem; padding: 4px 10px; }
}
.hero-dots { display: none; gap: 6px; margin-top: 12px; }
.hero-panels.js + .hero-dots { display: flex; }
.hero-dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .3s, background .3s; }
.hero-dots i.on { width: 22px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .hero-panels.js .hero-panel { transition: none; } }

/* Language picker */
.lang-picker { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 0; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; font-size: .85rem; flex: none; }
.lang-picker:hover, .lang-picker:focus-within { border-color: var(--accent); color: var(--accent); }
.lang-picker select { width: auto; margin: 0; padding: 0 2px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.lang-picker select:focus { outline: none; }
.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; }
@media (max-width: 560px) { .lang-picker svg { display: none; } .site-header nav { gap: 8px; } }
/* Hide the English text for a moment while another language loads (theme.js / i18n.js). */
.i18n-pending main, .i18n-pending .site-header nav, .i18n-pending .site-footer, .i18n-pending .book-fab { visibility: hidden; }

/* Right-to-left (Arabic) */
[dir='rtl'] button.icon { transform: scaleX(-1); }
[dir='rtl'] .hero-panels.js .hero-panel { transform: translateX(-56px); }
[dir='rtl'] .hero-panels.js .hero-panel.past { transform: translateX(56px); }
[dir='rtl'] .hero-panels.js .hero-panel.on { transform: none; }
[dir='rtl'] input[type='email'], [dir='rtl'] input[type='tel'], [dir='rtl'] #f-year, [dir='rtl'] #f-mileage, [dir='rtl'] #f-plate { direction: ltr; text-align: right; }
:lang(ar) body { font-family: system-ui, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; }
:lang(zh) body { font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }
