/* ==========================================================================
   TL Motors — "Job Card" design system
   Built by GD Technology · https://gdtecho.com/
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Colour: graphite workshop floor, hi-vis amber, MOT-pass green */
  --ink:        #14181c;
  --ink-2:      #1e252b;
  --ink-3:      #2b343c;
  --steel:      #5d6b75;
  --steel-2:    #8b979f;
  --paper:      #f2f4f3;
  --paper-2:    #ffffff;
  --line:       #dfe4e5;
  --line-dark:  #333d45;
  --hi-vis:     #ffb020;
  --hi-vis-dk:  #e09000;
  --pass:       #0e7a46;
  --pass-soft:  #e6f3ec;
  --fail:       #c33127;
  --fail-soft:  #fbeceb;
  --plate:      #ffd400;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, .06), 0 2px 8px rgba(20, 24, 28, .05);
  --shadow-md: 0 4px 12px rgba(20, 24, 28, .09), 0 12px 32px rgba(20, 24, 28, .08);
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* overflow-x is set with `clip` further down — never `hidden` here, which
     would make body a scroll container and break the sticky header on iOS. */
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.022em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); font-weight: 800; font-stretch: 108%; letter-spacing: -.018em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--hi-vis);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
}
.skip:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Layout -------------------------------------------------------------- */
.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--dark { background: var(--ink); color: #e9edee; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--paper { background: var(--paper-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--hi-vis); flex: none;
}
.section--dark .eyebrow { color: var(--steel-2); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--steel); max-width: 62ch; }
.section--dark .lede { color: #a9b4bb; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 1rem; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--hi-vis);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .01em;
  padding: .85rem 1.5rem;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 24, 28, .18); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--onDark { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--onDark:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }
.btn--ink { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--danger { --btn-bg: var(--fail); --btn-fg: #fff; }
.btn--pass { --btn-bg: var(--pass); --btn-fg: #fff; }

/* --- Header -------------------------------------------------------------- */
.topbar {
  background: var(--ink); color: #b9c3c9;
  font-size: .82rem; padding: .45rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: space-between; }
.topbar a:hover { color: var(--hi-vis); }
.topbar__open { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pass); flex: none; }
.dot--shut { background: var(--fail); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
/* NOTE: backdrop-filter must NOT be applied here at mobile widths. Any element with
   a filter or backdrop-filter becomes the containing block for its position:fixed
   descendants, which traps the .nav drawer inside the header box on iOS Safari.
   It is therefore applied only above the drawer breakpoint. */
@media (min-width: 861px) {
  .header {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}
.header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text { font-weight: 800; font-size: 1.28rem; letter-spacing: .01em; font-stretch: 112%; line-height: 1; }
.logo__text span { color: var(--hi-vis-dk); }
.logo__sub {
  display: block; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .19em; text-transform: uppercase; color: var(--steel); font-weight: 500; margin-top: 3px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  padding: .55rem .8rem; border-radius: var(--radius);
  font-weight: 600; font-size: .93rem; color: var(--ink-2);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
  height: 2px; background: var(--hi-vis); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: .6rem; margin-left: .4rem; }
.header__phone {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
}

.burger {
  display: none; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .6rem; cursor: pointer; margin-left: auto;
  position: relative; z-index: 95; flex: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.burger:focus-visible { outline: 3px solid var(--hi-vis); outline-offset: 2px; }

/* Drawer head — the burger sits under the scrim once open, so the drawer
   carries its own close control. */
.nav__head { display: none; }
.nav__close {
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  font-size: 1.4rem; line-height: 1; color: var(--ink-2); flex: none;
}

/* Scrim behind the mobile drawer */
.scrim {
  position: fixed; inset: 0; background: rgba(20, 24, 28, .5);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
  z-index: 85; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.scrim.is-open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* CRITICAL stacking note: .header is position:sticky WITH a z-index, so it
   creates its own stacking context. The .nav drawer lives inside the header,
   which means its z-index:90 only competes *within* that context — against the
   page, the whole header stack is judged on the header's own z-index of 60.
   The scrim (85) sits outside the header, so it would paint straight over the
   open drawer. Lifting the header above the scrim while the drawer is open is
   what keeps the drawer clickable and visible. */
body.nav-open .header { z-index: 95; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(255, 176, 32, .16), transparent 65%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero__inner {
  position: relative; display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.05fr .95fr; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--hi-vis); }
.hero__lede { color: #aab5bc; font-size: clamp(1.02rem, 1.7vw, 1.18rem); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__points {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .88rem; color: #93a0a8;
}
.hero__points li { display: flex; align-items: center; gap: .45rem; }
.hero__points li::before {
  content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--pass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.6 3.2 8.4l1.1-1.1 2.1 2.1 5-5 1.1 1.1z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.6 3.2 8.4l1.1-1.1 2.1 2.1 5-5 1.1 1.1z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Signature: the job card ---------------------------------------------- */
.jobcard {
  background: var(--paper-2); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  overflow: hidden;
  position: relative;
  transform: rotate(-1.1deg);
}
.jobcard::after {
  /* perforated tear-off edge */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: radial-gradient(circle at 6px -3px, transparent 6px, var(--paper-2) 6.5px) repeat-x;
  background-size: 12px 12px;
}
.jobcard__head {
  background: var(--ink-2); color: #fff;
  padding: .85rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.jobcard__head .k {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--steel-2);
}
.jobcard__ref { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: var(--hi-vis); }
.jobcard__body { padding: 1.15rem 1.15rem 1.6rem; }
.jobcard__meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line);
}
.jobcard__meta .k {
  font-family: var(--font-mono); font-size: .63rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--steel); display: block;
}
.jobcard__meta .v { font-weight: 700; font-size: .96rem; }

/* Number plate — the signature detail */
.plate {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--plate); color: #111;
  border: 2px solid #111; border-radius: 5px;
  padding: .28rem .7rem .28rem .28rem;
  font-family: var(--font-display); font-weight: 800; font-stretch: 88%;
  font-size: 1.22rem; letter-spacing: .06em; line-height: 1.15;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.plate::before {
  content: 'UK'; display: grid; place-items: end center;
  background: #0b3d91; color: #fff;
  font-family: var(--font-mono); font-size: .55rem; font-weight: 700; letter-spacing: .04em;
  width: 22px; align-self: stretch; border-radius: 3px; padding-bottom: 3px;
}
.plate--sm { font-size: .95rem; padding: .18rem .5rem .18rem .18rem; }
.plate--sm::before { width: 16px; font-size: .45rem; }
.plate--lg { font-size: 1.7rem; }

/* --- Status ladder ------------------------------------------------------- */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li {
  display: grid; grid-template-columns: 26px 1fr; gap: .8rem;
  position: relative; padding-bottom: 1.1rem;
}
.ladder li:last-child { padding-bottom: 0; }
.ladder li::before {
  content: ''; position: absolute; left: 12px; top: 24px; bottom: 0;
  width: 2px; background: var(--line);
}
.ladder li:last-child::before { display: none; }
.ladder__dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; color: var(--steel-2);
  position: relative; z-index: 1;
}
.ladder__label { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.ladder__when { font-family: var(--font-mono); font-size: .72rem; color: var(--steel); }
.ladder__note { font-size: .87rem; color: var(--steel); margin-top: .2rem; }

.ladder li.is-done .ladder__dot { background: var(--pass); border-color: var(--pass); color: #fff; }
.ladder li.is-done::before { background: var(--pass); }
.ladder li.is-current .ladder__dot {
  background: var(--hi-vis); border-color: var(--hi-vis); color: var(--ink);
  box-shadow: 0 0 0 5px rgba(255, 176, 32, .22);
}
.ladder li.is-current .ladder__label { color: var(--ink); }
.ladder li.is-todo .ladder__label { color: var(--steel-2); font-weight: 600; }
.ladder li.is-alert .ladder__dot { background: var(--fail); border-color: var(--fail); color: #fff; }

/* --- Split layouts (main + aside) ----------------------------------------
   These MUST be classes, never inline styles: an inline grid-template-columns
   cannot be overridden by a media query, which is what previously left the
   tracking page rendering two columns on a 390px phone with the content
   overlapping. ------------------------------------------------------------- */
.split {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.split > * { min-width: 0; }               /* stops long text blowing the column out */
.split--roomy   { gap: 2.5rem; }
.split--340     { grid-template-columns: minmax(0, 1fr) 340px; }
.split--300     { grid-template-columns: minmax(0, 1fr) 300px; }
.split--left    { grid-template-columns: 340px minmax(0, 1fr); }
.split--auto    { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.split--head    { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.split--admin   { gap: 1.5rem; }

/* Horizontal scroll container for wide tables on narrow screens.
   Applied automatically by site.js / admin markup. */
.tablewrap {
  overflow-x: auto; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; max-width: 100%;
}
.tablewrap > .table { min-width: 460px; }
.tablewrap--tight > .table { min-width: 0; }

/* --- Trust strip --------------------------------------------------------- */
.trust { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2.2rem; }
.trust__label {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--steel);
}
.badge-accred {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .4rem .7rem; background: var(--paper);
  filter: grayscale(1); opacity: .85; transition: .2s var(--ease);
}
.badge-accred:hover { filter: none; opacity: 1; border-color: var(--hi-vis); }

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d1d3; }

.svc { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.svc::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--hi-vis);
  transform: scaleY(0); transform-origin: bottom; transition: transform .22s var(--ease);
}
.svc:hover::before { transform: scaleY(1); }
.svc__icon { width: 40px; height: 40px; color: var(--ink-2); margin-bottom: .9rem; }
.svc h3 { margin-bottom: .35rem; }
.svc p { color: var(--steel); font-size: .92rem; margin-bottom: 1rem; }
.svc__foot {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between;
  gap: .8rem; padding-top: .9rem; border-top: 1px dashed var(--line);
}
.svc__price { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; }
.svc__price small { font-family: var(--font-body); font-weight: 500; font-size: .68rem;
  color: var(--steel); display: block; letter-spacing: .04em; text-transform: uppercase; }
.svc__go { font-weight: 700; font-size: .87rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .3rem; }
.svc:hover .svc__go { color: var(--hi-vis-dk); }
.tag-offer {
  position: absolute; top: 0; right: 0;
  background: var(--hi-vis); color: var(--ink);
  font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: .25rem .6rem;
  border-bottom-left-radius: var(--radius);
}

/* --- Steps (how tracking works) ------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.step { position: relative; padding-top: 1.9rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
  color: var(--hi-vis); letter-spacing: .1em;
}
.step::after {
  content: ''; position: absolute; top: .55rem; left: 2.3rem; right: -.6rem;
  height: 1px; background: var(--line-dark);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; color: #fff; }
.step p { font-size: .88rem; color: #98a4ac; margin: 0; }

/* --- Booking wizard ------------------------------------------------------ */
.wizard { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.wizard__bar {
  display: flex; background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.wizard__bar li {
  flex: 1; list-style: none; padding: .8rem .5rem; text-align: center;
  color: #7b8891; border-bottom: 3px solid transparent; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.wizard__bar li.is-active { color: var(--hi-vis); border-bottom-color: var(--hi-vis); }
.wizard__bar li.is-done { color: #cfd6da; border-bottom-color: var(--pass); }
.wizard__panel { padding: clamp(1.2rem, 3vw, 2rem); }
.wizard__head { margin-bottom: 1.3rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; }
.wizard__head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.wizard__back {
  background: none; border: 0; cursor: pointer; padding: .35rem 0;
  font-weight: 700; font-size: .88rem; color: var(--steel);
  display: inline-flex; align-items: center; gap: .35rem;
}
.wizard__back:hover { color: var(--ink); }

.pick-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.pick {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem .9rem; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: .3rem; min-height: 118px;
  transition: .16s var(--ease); position: relative;
}
.pick:hover { border-color: var(--ink); background: var(--paper-2); transform: translateY(-2px); }
.pick.is-selected { border-color: var(--hi-vis); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--hi-vis); }
.pick__icon { width: 30px; height: 30px; color: var(--ink-2); margin-bottom: .2rem; }
.pick__name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; line-height: 1.2; }
.pick__desc { font-size: .78rem; color: var(--steel); line-height: 1.4; }
.pick__price { margin-top: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }

/* Calendar */
.cal__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal__month { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal__dow {
  text-align: center; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding: .3rem 0;
}
.day {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; padding: .2rem;
  transition: .14s var(--ease); min-height: 56px;
}
.day__n { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1; }
.day__n small { display: block; font-family: var(--font-mono); font-size: .55rem; font-weight: 500;
  color: var(--pass); letter-spacing: .02em; margin-top: 3px; text-transform: uppercase; }
.day:hover:not(.is-off) { border-color: var(--ink); transform: translateY(-2px); background: var(--paper-2); }
.day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-selected small { color: var(--hi-vis); }
.day.is-off { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.day.is-empty { border: 0; background: none; cursor: default; }
.day.is-today { box-shadow: inset 0 0 0 2px var(--hi-vis); }

/* Slots */
.slot-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.slot {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 1.1rem .6rem; cursor: pointer; text-align: center;
  font-family: var(--font-mono); font-weight: 600; font-size: .92rem;
  transition: .14s var(--ease);
}
.slot:hover:not([disabled]) { border-color: var(--ink); background: var(--paper-2); transform: translateY(-2px); }
.slot.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot[disabled] { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.slot small { display: block; font-family: var(--font-body); font-size: .68rem; color: var(--steel); margin-top: .25rem; }
.slot.is-selected small { color: var(--hi-vis); }

/* Booking form + summary */
.book-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr 300px; align-items: start; }
.summary {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 1.3rem; position: sticky; top: 90px;
}
.summary h3 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.summary dl { margin: 0; display: grid; gap: .75rem; }
.summary dt {
  font-family: var(--font-mono); font-size: .63rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel-2);
}
.summary dd { margin: .15rem 0 0; font-weight: 700; font-size: 1rem; }
.summary__total {
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line-dark);
  display: flex; align-items: baseline; justify-content: space-between;
}
.summary__total b { font-family: var(--font-display); font-size: 1.5rem; color: var(--hi-vis); }
.summary__note { font-size: .74rem; color: #8d99a1; margin-top: .5rem; line-height: 1.5; }

/* --- Forms --------------------------------------------------------------- */
.field { margin-bottom: 1rem; }
.field > label, .label {
  display: block; font-weight: 700; font-size: .82rem; margin-bottom: .35rem;
  letter-spacing: .01em;
}
.field .req { color: var(--fail); }
.input, .select, .textarea {
  width: 100%; background: var(--paper-2);
  border: 1px solid #cfd6d8; border-radius: var(--radius);
  padding: .72rem .85rem; font-size: .97rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: #a9b4b8; }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 176, 32, .3);
}
.textarea { min-height: 110px; resize: vertical; }
.input--plate {
  background: var(--plate); border: 2px solid #111; color: #111;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.input--plate::placeholder { color: rgba(0, 0, 0, .35); letter-spacing: .06em; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.hint { font-size: .78rem; color: var(--steel); margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .28rem; width: 18px; height: 18px; flex: none; accent-color: var(--hi-vis); }
.hp { position: absolute; left: -9999px; }

.notice {
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.2rem;
  font-size: .92rem; border-left: 3px solid;
}
.notice--ok   { background: var(--pass-soft); border-color: var(--pass); color: #0b5c35; }
.notice--bad  { background: var(--fail-soft); border-color: var(--fail); color: #97241c; }
.notice--info { background: #fff6e6; border-color: var(--hi-vis); color: #6b4700; }

/* --- Tables -------------------------------------------------------------- */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel); font-weight: 600;
}
.table--hours td { padding: .55rem 0; }
.table--hours td:last-child { text-align: right; font-family: var(--font-mono); font-size: .88rem; }

.pill {
  display: inline-block; padding: .18rem .55rem; border-radius: 100px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.pill--wait  { background: #fff2d9; color: #7a5200; }
.pill--ok    { background: var(--pass-soft); color: #0b5c35; }
.pill--work  { background: #e7eef6; color: #1d4c7a; }
.pill--alert { background: var(--fail-soft); color: #97241c; }
.pill--done  { background: #e9ecee; color: #45525a; }
.pill--dead  { background: #e9ecee; color: #79868e; text-decoration: line-through; }

/* --- Reviews ------------------------------------------------------------- */
.quote { display: flex; flex-direction: column; height: 100%; }
.stars { color: var(--hi-vis-dk); letter-spacing: .12em; font-size: .95rem; margin-bottom: .6rem; }
.quote p { font-size: 1rem; }
.quote footer { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--steel); }
.quote footer b { display: block; color: var(--ink); font-size: .92rem; }

/* --- Location ------------------------------------------------------------ */
.map-frame {
  border: 0; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  filter: grayscale(.35) contrast(1.05);
}

/* --- Footer -------------------------------------------------------------- */
.footer { background: var(--ink); color: #9aa6ae; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: .9rem; }
.footer h4 {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: #fff; margin: 0 0 .9rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a:hover { color: var(--hi-vis); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: .82rem;
}
.footer__dev { display: inline-flex; align-items: center; gap: .5rem; }
.footer__dev a { color: #fff; font-weight: 700; border-bottom: 1px solid var(--hi-vis); }
.footer__dev a:hover { color: var(--hi-vis); }

/* --- Mobile action bar --------------------------------------------------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--paper-2); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(20, 24, 28, .1);
  padding: .5rem; gap: .5rem;
  padding-bottom: calc(.5rem + env(safe-area-inset-bottom));
}

/* --- Breadcrumbs --------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--steel); padding: .9rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: #b9c1c4; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* --- Page head ----------------------------------------------------------- */
.pagehead { background: var(--ink-2); color: #fff; padding: clamp(2rem, 5vw, 3.4rem) 0; }
.pagehead h1 { color: #fff; margin-bottom: .5rem; }
.pagehead p { color: #a3aeb5; max-width: 60ch; margin: 0; }

/* --- Prose --------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li { margin-bottom: .4rem; }
.prose a { color: var(--ink); border-bottom: 2px solid var(--hi-vis); font-weight: 600; }
.prose a:hover { background: #fff6e6; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700;
  font-family: var(--font-display); font-size: 1.02rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.3rem; color: var(--hi-vis-dk); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 1.1rem; color: var(--steel); }

/* --- Utilities ----------------------------------------------------------- */
.mono { font-family: var(--font-mono); }
.muted { color: var(--steel); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; }
.flex { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.spinner {
  width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--hi-vis);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Entrance animation for the hero card */
@keyframes stampIn {
  from { opacity: 0; transform: rotate(-4deg) scale(.94) translateY(14px); }
  to   { opacity: 1; transform: rotate(-1.1deg) scale(1) translateY(0); }
}
.jobcard { animation: stampIn .6s var(--ease) both .15s; }

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: riseIn .5s var(--ease) both; }

/* --- Overflow safety ------------------------------------------------------
   Root causes are fixed properly above. This is a backstop so that a long
   registration, email address or URL can never make the whole page pan. ----- */
/* `clip` deliberately, NOT `hidden`: overflow-x:hidden on html/body turns the
   body into a scroll container and silently breaks the sticky header. */
html, body { overflow-x: clip; }
.wrap, .card, .panel { min-width: 0; }
p, li, dd, td, h1, h2, h3 { overflow-wrap: break-word; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  /* Every split collapses to a single column well before phone widths, so the
     aside never squeezes the main column into an unreadable strip. */
  .split, .split--340, .split--300, .split--left, .split--admin {
    grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
  }
  .split--left > :first-child { order: 2; }   /* filter panel below the results */
}

@media (max-width: 700px) {
  .split--head { grid-template-columns: minmax(0, 1fr); gap: .9rem; align-items: start; }
  .split--auto { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .jobcard { transform: none; max-width: 460px; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 330px); max-width: 100%;
    height: 100vh; height: 100dvh;            /* dvh keeps it right when iOS chrome hides */
    background: var(--paper-2);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: calc(.9rem + env(safe-area-inset-top)) 1.1rem
             calc(1.5rem + env(safe-area-inset-bottom));
    gap: 0; margin: 0;
    transform: translateX(101%); transition: transform .28s var(--ease);
    box-shadow: -10px 0 40px rgba(20, 24, 28, .18);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    z-index: 90;
  }
  .nav.is-open { transform: none; }
  .nav__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line);
    flex: none;
  }
  .nav__head span {
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--steel);
  }
  .nav a {
    padding: .9rem .5rem; border-bottom: 1px solid var(--line);
    font-size: 1.02rem; border-radius: 0; flex: none;
  }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--hi-vis-dk); }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav .header__cta {
    display: flex; flex-direction: column; align-items: stretch;
    margin: 1.2rem 0 0; gap: .7rem; flex: none;
  }
  .nav .header__phone { justify-content: center; font-size: 1.15rem; }
  .nav .btn { justify-content: center; }
  .actionbar { display: grid; }
  body { padding-bottom: 68px; }
  .step::after { display: none; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  /* The number plate is the widest fixed element on the page — scale it so a
     7-character reg can never push the layout sideways. */
  .plate { font-size: 1.05rem; letter-spacing: .04em; }
  .plate--lg { font-size: 1.32rem; }
  .table { font-size: .86rem; }
  .table th, .table td { padding: .55rem .45rem; }
  .pagehead h1 { hyphens: auto; }
  /* Comfortable thumb targets */
  .btn { min-height: 44px; }
  .nav a { min-height: 48px; display: flex; align-items: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .jobcard__meta { grid-template-columns: 1fr 1fr; }
  .wizard__bar li { font-size: .6rem; padding: .7rem .25rem; letter-spacing: .04em; }
  .cal__grid { gap: .25rem; }
  .day { min-height: 46px; }
  .day__n { font-size: .88rem; }
  .day__n small { font-size: .48rem; }
  .topbar__inner { justify-content: center; font-size: .76rem; }
}

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

@media print {
  .header, .topbar, .footer, .actionbar, .btn, .crumbs { display: none !important; }
  body { background: #fff; }
  .jobcard { box-shadow: none; border: 1px solid #000; transform: none; }
}
