/* Shared by every page: the logo's colours and typeface, the header, buttons, the booking form and the footer.
   Each page adds its own sheet: strip-down.css on the home page, service.css on the service pages. */
@font-face { font-family: "Overpass"; src: url("fonts/Overpass-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/Overpass-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/Overpass-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --bg: #000;
  --ink: #f4f3f0; /* Warm white */
  --soft: #c9cbce;
  --muted: #8d9198;
  --faint: #4a4e55;
  --rule: #202327;
  --accent: #e0302a; /* LS Red */
  --accent-deep: #c4241e; /* LS Red, pressed */
  --night: #0e0f11; /* Night: panels that sit over the black ground, such as the services menu */
  --go: #3ec46d; /* the one green: the dot beside "Open now" in the header, and nothing else */
  --font: "Overpass", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(16px, 3vw, 44px); /* side margin, shared by the header and the opening view */
  --head: 64px; /* header height */
  --brand-h: 40px; /* the logo's height once it has settled in the header */
  color-scheme: dark;
}
@media (max-width: 959px) {
  :root {
    --head: 60px;
    --brand-h: 32px;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; background: var(--bg); caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: var(--faint) var(--bg); }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #000; padding: 8px 12px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* The header stays at the top once the page has its logo in place (is-branded); without that it scrolls away. */
.site-head {
  position: absolute; inset: 0 0 auto; z-index: 10; height: var(--head);
  display: flex; justify-content: flex-end; align-items: center;
  padding: 0 var(--edge); background: var(--bg);
}
.is-branded .site-head { position: fixed; }
/* Below the header the page scrolls under it, so the content fades out into it rather than being cut off. */
.site-head::after {
  content: ""; position: absolute; inset: 100% 0 auto; height: 20px; pointer-events: none;
  background: linear-gradient(var(--bg), transparent); opacity: 0; transition: opacity 0.2s;
}
.site-head.is-over::after { opacity: 1; }
.site-head nav > a, .nav-svc { margin-left: 22px; }
.site-head nav > a, .nav-svc__link {
  display: inline-block; padding: 10px 0; text-decoration: none; color: var(--muted); font-size: 0.95rem;
}
.site-head nav > a:hover, .site-head nav > a[aria-current="page"], .nav-svc__link:hover { color: var(--ink); }
/* Narrow phones without script (with it, the menu button below takes the links' place): "Under the bonnet" leaves the
   header (the footer links to it), the other links close up, and on the narrowest Services goes, since the logo
   leads back to them too. */
@media (max-width: 559px) {
  .site-head nav .nav-bonnet { display: none; }
}
@media (max-width: 400px) {
  .site-head nav > a, .nav-svc { margin-left: 16px; }
  .site-head nav > a, .nav-svc__link { font-size: 0.9rem; }
}
/* The narrowest phones that still show Services: the links close up a little more, so they clear the logo. */
@media (max-width: 374px) {
  .site-head nav > a, .nav-svc { margin-left: 12px; }
}
@media (max-width: 349px) {
  .site-head .nav-svc { display: none; }
}

/* ---------- Open now: the workshop's status in the header, live from its opening hours (open-now.js) ---------- */
/* Before the links, set off from them by a hairline. Below 960 px, where the links sit close to the logo, it drops
   under them (or under the menu button) in smaller type, so the header keeps its height. Where even that is short of
   room, the script keeps only "Open now" or "Closed now". */
.open-now {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap;
  color: var(--muted); font-size: 0.85rem; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.open-now[hidden] { display: none; }
.open-now__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); translate: 0 -0.12em; } /* level with the capitals */
.open-now.is-open .open-now__dot { background: var(--go); }
.open-now__state { color: var(--soft); font-weight: 700; }
.open-now.is-open .open-now__state { color: var(--ink); }
.open-now.is-short .open-now__next { display: none; }
@media (min-width: 960px) {
  .open-now { padding-right: 22px; border-right: 1px solid #2a2d33; }
}
@media (max-width: 959px) {
  .open-now { position: absolute; right: var(--edge); bottom: 5px; gap: 6px; font-size: 0.75rem; pointer-events: none; }
  .open-now__dot { width: 6px; height: 6px; }
  .site-head.has-status nav { margin-bottom: 18px; } /* the links rise a little to make room under them */
}

/* ---------- The services menu, under "Services" in the header ---------- */
/* "Services" opens a box with all ten. Without script it stays a plain link to the list on the home page; with it,
   the html element carries "js" from the first paint, so the button takes the link's place with no jump. */
.nav-svc { display: inline-block; }
.nav-svc__btn { display: none; }
.js .nav-svc__link { display: none; }
.js .nav-svc__btn {
  display: inline-flex; align-items: center; gap: 5px; position: relative; margin: 0; padding: 10px 0; border: 0;
  background: none; color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer;
}
.nav-svc__btn:hover, .nav-svc.is-open .nav-svc__btn, .nav-svc[data-current] .nav-svc__btn { color: var(--ink); }
.i-chev {
  width: 12px; height: 12px; margin-top: -1px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; transition: rotate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-svc.is-open .i-chev { rotate: 180deg; color: var(--accent); }
/* While it is open, the button reaches down to the box, so the mouse can cross the gap without it closing. */
.nav-svc.is-open .nav-svc__btn::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 22px; }

/* The box hangs under the header, against its right edge, and holds the ten names in two columns, each a full-width
   row with its arrow, ruled like the list at the foot of the service pages. (On phones the menu button's panel
   lists them instead.) */
.svc-menu {
  position: absolute; z-index: 1; top: calc(100% + 8px); right: var(--edge);
  width: min(670px, calc(100vw - 2 * var(--edge)));
  max-height: calc(100vh - var(--head) - 24px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--faint) var(--night);
  padding: 6px 10px; background: var(--night); border: 1px solid #2a2d33; border-radius: 6px;
  box-shadow: 0 26px 50px -14px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.55);
  visibility: hidden; opacity: 0; translate: 0 -6px;
  transition: opacity 0.14s ease-in, translate 0.14s ease-in, visibility 0s 0.14s;
}
/* The svh height sits in @supports: beside var(), a browser that doesn't know svh would drop it rather than fall back. */
@supports (height: 1svh) { .svc-menu { max-height: calc(100svh - var(--head) - 24px); } }
.svc-menu[hidden] { display: none; }
.nav-svc.is-open .svc-menu {
  visibility: visible; opacity: 1; translate: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), translate 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.svc-menu__list {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 28px;
}
.svc-menu__list li { display: grid; } /* so each row's link fills the row, even beside a name that wraps */
.svc-menu__list li + li { border-top: 1px solid var(--rule); }
.svc-menu__list li:nth-child(6) { border-top: 0; }
.svc-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 11px 10px;
  border-radius: 4px; color: var(--soft); font-size: 0.95rem; font-weight: 700; line-height: 1.3; text-decoration: none;
  text-wrap: balance; transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.svc-menu__list .i-arrow { flex: none; width: 15px; height: 15px; color: var(--muted); transition: translate 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
.svc-menu__list a:hover, .svc-menu__list a:focus-visible { color: var(--ink); background: #17191c; }
.svc-menu__list a:hover .i-arrow, .svc-menu__list a:focus-visible .i-arrow { color: var(--accent); translate: 3px 0; }
/* The focus ring sits inside its row, clear of the words, with the buttons' corners. */
.svc-menu__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
/* The page you're on: greyed, with no arrow, as in the list at the foot of the service pages. */
.svc-menu__list a[aria-current="page"] { color: var(--muted); background: none; }
.svc-menu__list a[aria-current="page"] .i-arrow { visibility: hidden; }
/* Short screens: tighter rows, so all ten fit under the header without the box having to scroll. */
@media (max-height: 620px) {
  .svc-menu__list a { min-height: 42px; padding-block: 9px; }
}
@media (max-height: 440px) {
  .svc-menu__list a { min-height: 36px; padding-block: 7px; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-menu, .nav-svc.is-open .svc-menu { translate: none; }
  .i-chev, .svc-menu__list a, .svc-menu__list .i-arrow { transition: none; }
}

/* ---------- Phones: the menu button, and the panel it opens ---------- */
/* Where the header has no room for its links (under 560 px, and on the home page under 960 px), one button at the
   top right takes their place and opens them all in a panel under the header: the ten services, Under the bonnet,
   Contact and Book. Its icon is three hex bolts instead of three lines; while the panel is open they cross into an
   X in LS Red, as the Services chevron turns red. Without script the links stay in the header. */
/* The box runs 8px past the words on each side (and the negative margin keeps the words on the header's edge), so
   the focus ring can sit inside it, as on the panel's rows: outside it, the ring would run off the top of the
   screen and through the "Open now" line under the button. */
.nav-menu {
  display: none; align-items: center; gap: 9px; position: relative; margin: 0 -8px 0 0; padding: 8px; border: 0;
  border-radius: 4px; background: none; color: var(--soft); font: inherit; font-size: 0.95rem; line-height: 1.25;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-menu::before { content: ""; position: absolute; inset: -5px -4px; } /* a target a thumb can't miss */
.nav-menu:focus-visible { outline-offset: -2px; }
.nav-menu:hover, .nav-menu[aria-expanded="true"] { color: var(--ink); }
.i-bolts { flex: none; width: 22.8px; height: 19px; margin-top: -1px; overflow: visible; fill: currentColor; transition: color 0.2s; }
.i-bolts path { transform-box: view-box; transform-origin: 50% 50%; transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s; }
.nav-menu[aria-expanded="true"] .i-bolts { color: var(--accent); }
.nav-menu[aria-expanded="true"] .i-bolts path:nth-child(1) { transform: rotate(45deg) translateY(6.6px); }
.nav-menu[aria-expanded="true"] .i-bolts path:nth-child(2) { opacity: 0; transform: translateX(6px); }
.nav-menu[aria-expanded="true"] .i-bolts path:nth-child(3) { transform: rotate(-45deg) translateY(-6.6px); }
@media (max-width: 559px) {
  .js .site-head nav > .nav-svc, .js .site-head nav > a { display: none; }
  .js .nav-menu { display: inline-flex; }
}

/* The panel covers the screen under the header, black like it, and scrolls on its own if it has to, while the page
   behind it is held still. The rows are the services box's, a little larger for thumbs. On a short screen the list
   scrolls under the Book button, which stays in view at the bottom. */
html.menu-open { overflow: hidden; scrollbar-gutter: stable; }
.site-menu {
  position: fixed; inset: var(--head) 0 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--faint) var(--bg);
  padding: 8px calc(var(--edge) - 10px) 0; background: var(--bg); border-top: 1px solid var(--rule);
  visibility: hidden; opacity: 0; transition: opacity 0.16s ease-in, visibility 0s 0.16s;
}
.site-menu[hidden] { display: none; }
.site-head.menu-open .site-menu { visibility: visible; opacity: 1; transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s; }
/* --nudge (from menu.js) moves the list a little on a short screen, so the row going out of sight under Book is
   cut part-way instead of ending on a clean edge, which would look like the end of the list. (flow-root, so the
   nudge adds to the label's own margin instead of collapsing into it.) */
.site-menu__body { display: flow-root; max-width: 760px; margin-top: var(--nudge, 0px); translate: 0 -8px; transition: translate 0.16s ease-in; }
.site-head.menu-open .site-menu__body { translate: none; transition: translate 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
.site-menu__label { margin: 12px 10px 4px; color: var(--muted); font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.site-menu__list { list-style: none; margin: 0; padding: 0; }
.site-menu__list li { display: grid; }
.site-menu__list li + li { border-top: 1px solid var(--rule); }
.site-menu__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 10px;
  border-radius: 4px; color: var(--soft); font-size: 1rem; font-weight: 700; line-height: 1.3; text-decoration: none;
  text-wrap: balance; transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.site-menu__list .i-arrow { flex: none; width: 15px; height: 15px; color: var(--muted); transition: translate 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s; }
.site-menu__list a:hover, .site-menu__list a:focus-visible { color: var(--ink); background: #17191c; }
.site-menu__list a:hover .i-arrow, .site-menu__list a:focus-visible .i-arrow { color: var(--accent); translate: 3px 0; }
.site-menu__list a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.site-menu__list a[aria-current="page"] { color: var(--muted); background: none; }
.site-menu__list a[aria-current="page"] .i-arrow { visibility: hidden; }
/* The services end on a rule of their own; then a gap and a stronger rule start Under the bonnet and Contact, so the
   break sits between the two groups and no row looks taller than the rest. */
.site-menu__svc { border-bottom: 1px solid var(--rule); }
.site-menu__pages { margin-top: 18px; border-top: 1px solid rgba(244, 243, 240, 0.34); }
.site-menu__book { position: sticky; bottom: 0; margin: 0; padding: 22px 10px 28px; background: var(--bg); }
.site-menu__book .btn { display: block; text-align: center; }
/* While more of the list is out of sight under Book, the rows fade into the black just above it (has-more, from
   menu.js), so the list reads as going on. */
.site-menu__book::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 36px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), var(--bg)); opacity: 0; transition: opacity 0.2s;
}
.site-menu.has-more .site-menu__book::before { opacity: 1; }
/* Tablets (the home page's panel): two columns of five, as in the services box, and the pages side by side. */
@media (min-width: 560px) {
  .site-menu__svc, .site-menu__pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .site-menu__svc { grid-template-rows: repeat(5, auto); grid-auto-flow: column; }
  .site-menu__svc li:nth-child(6), .site-menu__pages li + li { border-top: 0; }
  .site-menu__book .btn { display: inline-block; }
}
/* Short screens: tighter rows, so more of the list fits before the panel has to scroll. */
@media (max-height: 700px) {
  .site-menu__list a { min-height: 44px; padding-block: 10px; }
  .site-menu__label { margin-top: 8px; }
  .site-menu__pages { margin-top: 14px; }
  .site-menu__book { padding-block: 16px 20px; }
}
@media (max-height: 440px) {
  .site-menu__list a { min-height: 40px; padding-block: 8px; line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .i-bolts, .i-bolts path, .site-menu__body, .site-head.menu-open .site-menu__body, .site-menu__list a, .site-menu__list .i-arrow,
  .site-menu__book::before { transition: none; }
  .site-menu__body { translate: none; }
}

/* The logo in the header. The full drawing and the small one (for under 60 px tall) share one box, so one can
   replace the other in place. On the home page a script moves it from the opening view into the corner. */
.brand {
  display: block; position: absolute; left: var(--edge); top: calc((var(--head) - var(--brand-h)) / 2);
  height: var(--brand-h); aspect-ratio: 407.686 / 104.227; transform-origin: 0 0; visibility: hidden;
}
.brand img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.brand__lg { opacity: 0; }
.is-branded .brand { visibility: visible; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 22px 11px; border-radius: 4px; border: 0; font: inherit; font-weight: 700; letter-spacing: 0.01em;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--accent-deep); }
.btn[disabled] { opacity: 0.45; background: var(--accent); }

/* A small arrow after a link that opens another page. */
.i-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Booking and footer ---------- */
.book { max-width: 640px; margin: 0 auto; padding: 96px 20px 64px; }
.book h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.1; margin: 0 0 8px; }
.book__lead { color: var(--soft); margin: 0 0 4px; }
.book__note { color: var(--muted); margin: 0 0 28px; }
.book__form { display: grid; gap: 16px; }
.book__form label { display: grid; gap: 6px; color: var(--soft); font-size: 0.95rem; }
.book__form input, .book__form select {
  font: inherit; color: var(--ink); background: #111214; border: 1px solid #2c2f34; border-radius: 4px; padding: 11px 12px;
}
/* iPhones zoom the page in when a field set smaller than 16px is tapped, so on them the fields are 16px. */
@supports (-webkit-touch-callout: none) {
  .book__form input, .book__form select { font-size: 16px; }
}
.book__form input::placeholder { color: var(--muted); opacity: 1; }
/* Until a service is chosen, the list reads as a prompt, like the placeholders. */
.book__form select:invalid { color: var(--muted); }
.book__form select option { color: var(--ink); }
.book__form select option:disabled { color: var(--muted); }
/* The date field's calendar button, drawn in the site's grey instead of the browser's own icon. */
.book__form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 18px; height: 18px; padding: 2px; margin-right: -2px; cursor: pointer; opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%238d9198' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='13' height='12' rx='1.5'/%3E%3Cpath d='M2.5 7.5h13M6 1.75v3.5M12 1.75v3.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.book__form input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23f4f3f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='13' height='12' rx='1.5'/%3E%3Cpath d='M2.5 7.5h13M6 1.75v3.5M12 1.75v3.5'/%3E%3C/svg%3E");
}
.book__form .btn { justify-self: start; margin-top: 8px; }
.site-foot { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 40px 16px 48px; border-top: 1px solid #16181b; }
.site-foot__mark { display: block; width: auto; height: 48px; margin: 0 auto 14px; }
.site-foot p { margin: 0; }
.site-foot .site-foot__link { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; margin-top: 14px; font-size: 0.95rem; }
.site-foot__link a { display: inline-block; padding: 8px 0; color: var(--soft); font-weight: 700; text-decoration: none; }
.site-foot__link .i-arrow {
  display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.35em; vertical-align: -0.04em;
  color: var(--accent); transition: translate 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-foot__link a:hover, .site-foot__link a:focus-visible {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px;
}
.site-foot__link a:hover .i-arrow, .site-foot__link a:focus-visible .i-arrow { translate: 3px 0; }
