/* =====================================================================
   Tops Tyres – stylesheet
   Brand: red / black / white livery with diagonal tyre-tread streaks.
   Display type is a stand-in for the brand font "Race Sport" – see the
   @font-face block below to switch once the font files are added.
   ===================================================================== */

:root {
  /* Palette – taken from the van livery and logo */
  --red:         #E01E23;
  --red-bright:  #EA3A34;
  --red-deep:    #A3121A;
  --red-tint:    #FCE9EA;
  --black:       #0E0E0E;
  --black-soft:  #1A1B1C;
  --ink:         #1B1D1F;
  --ink-soft:    #3E4246;
  --steel:       #5C6166;
  --steel-light: #9AA0A6;
  --line:        #DCDEE0;
  --line-dark:   #2C2E31;
  --chalk:       #F4F4F2;
  --white:       #FFFFFF;
  --hi-vis:      #FFD100;
  --whatsapp:    #25D366;
  --whatsapp-deep: #1DA851;
  --ok:          #1E8E3E;
  --warn:        #B26A00;
  --bad:         #C62828;

  --font-display: "Exo 2", "Arial Black", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 76px;
  --tread-strip: repeating-linear-gradient(-35deg,
      var(--red) 0 16px, var(--black) 16px 28px,
      #fff 28px 31px, var(--black) 31px 46px);
}

/* --- Brand font -------------------------------------------------------
   Race Sport is an all-capitals face with a built-in slant, so it is used
   upright at its natural weight: both descriptors below point at the same
   file, which stops browsers adding a synthetic bold or a second slant. */
@font-face {
  font-family: "Race Sport";
  src: url("../fonts/RaceSport.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Race Sport";
  src: url("../fonts/RaceSport.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root { --font-display: "Race Sport", "Exo 2", "Arial Black", Impact, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--chalk);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-deep); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); }
h3 { font-weight: 700; font-size: 1.2rem; }

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-white { background: var(--white); }
.section-dark {
  position: relative;
  isolation: isolate;
  background: var(--black);
  color: #fff;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/tread-pattern.jpg"), url("../assets/tread-pattern.svg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.22;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.small { font-size: 0.9rem; }
.muted { color: var(--steel); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--hi-vis);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* --- Section headings -------------------------------------------------- */
.section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 62ch;
}
.section-dark .section-head p { color: rgba(255, 255, 255, 0.82); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  background: var(--red);
  transform: skewX(-25deg);
}
.section-dark .eyebrow { color: var(--red-bright); }
.section-dark .eyebrow::before { background: var(--red-bright); }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-whatsapp { background: var(--whatsapp); color: #06301A; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: var(--whatsapp-deep); border-color: var(--whatsapp-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: var(--black-soft); }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--black);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
  color: #fff;
}
.brand img { height: 64px; width: auto; }
.brand-mark { width: 160px; height: 60px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }
.btn-call { padding: 10px 16px; }
.btn-call .txt { font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand-mark { width: 132px; height: 50px; }
  .brand img { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .site-nav ul {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--black);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open ul { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .btn-call .txt { display: none; }
  .btn-call { padding: 10px 12px; }
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background-color: var(--black);
  /* the tyre-tread artwork; the SVG underneath is a stand-in if the JPEG is ever missing */
  background-image: url("../assets/tread-pattern.jpg"), url("../assets/tread-pattern.svg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
/* keeps the copy legible over the brighter streaks, fading out towards the van */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      rgba(14, 14, 14, 0.86) 0%,
      rgba(14, 14, 14, 0.7) 38%,
      rgba(14, 14, 14, 0.25) 62%,
      rgba(14, 14, 14, 0.08) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 36px;
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.hero-copy {
  display: grid;
  gap: 22px;
}
.hero-strap {
  justify-self: start;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.1rem, 0.9rem + 1.2vw, 1.6rem);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  background: var(--red);
  padding: 0.42em 0.9em 0.28em 0.75em;
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}
.hero h1 { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.25rem); }
.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { padding: 13px 18px; }
.hero-tag {
  justify-self: start;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.55em;
  background: #fff;
  color: var(--black);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1;
  /* the brand font is all capitals with no descenders: bias the padding so the letters sit centred */
  padding: 0.6em 1em 0.42em;
  clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
}
.hero-tag b { color: var(--red); }

/* Tyreman's column: he walks in from the right and stays put */
.hero-figure {
  align-self: center;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
/* still-image mode: slides in from off-screen with a bobbing walk */
.mascot-walk {
  position: relative;
  width: min(78%, 520px);
  margin-right: 4%;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(160%);
}
.mascot-walk img {
  width: 100%;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}
.hero.has-mascot .mascot-walk {
  visibility: visible;
  animation: mascot-walk-in 2.3s cubic-bezier(0.25, 0.6, 0.3, 1) 0.2s both;
}
.hero.has-mascot .mascot-walk img { animation: mascot-bob 0.36s ease-in-out 0.2s 6 alternate; }
@keyframes mascot-walk-in {
  from { transform: translateX(160%); }
  to   { transform: translateX(0); }
}
@keyframes mascot-bob {
  from { transform: translateY(0) rotate(-3deg); }
  to   { transform: translateY(-10px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.has-mascot .mascot-walk { transform: none; }
}
/* clip mode: the keyed clip supplies the motion and freezes on its last frame */
.mascot-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mascot-canvas { width: 100%; height: auto; display: block; opacity: 0; transition: opacity 0.4s ease; }
.mascot-walk.is-live .mascot-canvas { opacity: 1; }
/* The frame is pinned to the right edge of the screen so he really walks in from
   the edge, and made wider than his column: the extra width is empty (keyed-out)
   green, so it can overlap the copy without hiding anything or catching clicks. */
.hero .mascot-walk.is-video {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(56vw, 760px);
  margin: 0;
  visibility: visible;
  animation: none;
  transform: translate(0, -50%); /* vertically centred in the hero */
}
/* a wide (21:9) clip gets a wider frame so he ends up the same size but further into the page */
@media (min-width: 900px) {
  /* Anchor the character rather than the frame: the frame is placed so his gun tip lands
     just right of the copy column (which ends at 50% of the hero minus half the grid gap).
     The empty green to his right may run off the screen. --stop-left is where he stands
     in the clip's last frame, as a fraction of the frame width: re-measure if the clip changes. */
  .hero .mascot-walk.is-video.is-wide {
    --frame: min(92vw, 1330px);
    --stop-left: 0.31;
    width: var(--frame);
    right: auto;
    left: calc(50% - 6px - var(--stop-left) * var(--frame));
  }
}
.hero .mascot-walk.is-video img { display: none; }
@media (max-width: 899px) {
  .hero::before {
    background: linear-gradient(180deg,
        rgba(14, 14, 14, 0.25) 0%,
        rgba(14, 14, 14, 0.75) 42%,
        rgba(14, 14, 14, 0.94) 100%);
  }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 24px; padding-bottom: 56px; }
  .hero-figure { order: -1; min-height: 0; justify-content: center; }
  .mascot-walk { width: min(60%, 280px); margin: 0; }
  .hero .mascot-walk.is-video {
    position: relative;
    top: auto;
    width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter));
    transform: none;
  }
  /* wide clip on a phone: the frame is twice the screen width and hangs half a screen
     off the right edge, so he enters from beyond the edge, stops mid-screen and is
     twice the size; the empty green either side is off-screen or keyed out */
  .hero-figure.is-wide { position: relative; height: 77vw; }
  .hero .mascot-walk.is-video.is-wide {
    position: absolute;
    top: 0;
    right: -50vw;
    width: 200vw;
    margin: 0;
  }
  .hero-actions .btn { flex: 1 1 100%; }
}

.tread-strip { height: 14px; background: var(--black) var(--tread-strip); }

/* --- Services ---------------------------------------------------------- */
.services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service p { color: var(--ink-soft); font-size: 1rem; }
.service-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
}
.service-icon svg { width: 28px; height: 28px; }
.service--featured {
  grid-column: span 2;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.service--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/tread-pattern.jpg"), url("../assets/tread-pattern.svg");
  background-size: cover, cover;
  background-position: right center, right center;
  background-repeat: no-repeat, no-repeat;
  opacity: 0.35;
}
.service--featured .service-icon { background: var(--red); }
.service--featured p { color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.service--featured h3 { font-size: 1.5rem; }
.service-cta { margin-top: 6px; justify-self: start; }
/* the van rides along in the featured card, over its tread background */
.service--featured {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px 24px;
  align-items: end;
}
.service-body { display: grid; gap: 12px; align-content: start; }
.service-van {
  width: 100%;
  height: auto;
  align-self: end;
  margin: 0 -8px -10px 0;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.6));
}
@media (max-width: 1023px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .service--featured { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .service-van { max-width: 360px; margin: 6px auto -6px; }
}

/* --- How it works ------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
}
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--red-bright);
}
.step h3 { font-size: 1.3rem; }
.step p { color: rgba(255, 255, 255, 0.82); }
.how-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.how-cta p { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 767px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* --- Coverage / map ---------------------------------------------------- */
/* "Do we cover you?" postcode search – sits in the hero, straight after the lead */
.hero-check { display: grid; gap: 10px; max-width: 540px; }
.postcode-check {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.postcode-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.1;
  color: #fff;
}
.postcode-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.postcode-row input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  /* colours set explicitly so the field looks the same whatever colour scheme the browser applies */
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  caret-color: var(--hi-vis);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  color-scheme: dark;
}
.postcode-row input::placeholder { text-transform: none; font-weight: 500; font-size: 1rem; color: rgba(255, 255, 255, 0.65); opacity: 1; }
.postcode-row input:focus { border-color: var(--hi-vis); background: rgba(255, 255, 255, 0.16); outline: none; }
.postcode-result {
  display: none;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border-left: 5px solid var(--steel);
  border-radius: var(--radius);
}
.postcode-result.is-visible { display: grid; }
.postcode-result.is-covered { border-color: var(--ok); }
.postcode-result.is-edge { border-color: var(--warn); }
.postcode-result.is-outside, .postcode-result.is-inside-m25, .postcode-result.is-invalid { border-color: var(--bad); }
.postcode-result strong { font-size: 1.05rem; }
.postcode-result .btn { justify-self: start; padding: 10px 16px; font-size: 0.95rem; }
.postcode-result small { color: var(--steel); }

/* Towns we regularly cover */
.town-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.town-list li {
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.town-list--large { gap: 10px; }
.town-list--large li { padding: 9px 16px; font-size: 1rem; }
.town-list small { color: var(--steel); font-weight: 500; }
.area-note { margin-top: 18px; }
@media (max-width: 899px) {
  /* phones: the search goes straight under the headline so it sits on the first screen */
  .hero-check { max-width: none; order: 3; }
  .hero-strap { order: 1; }
  .hero h1 { order: 2; }
  .hero-lead { order: 4; }
  .hero-actions { order: 5; }
  .hero-tag { order: 6; }
}

/* Leaflet overrides */
.leaflet-container { font-family: var(--font-body); font-size: 0.9rem; }
.leaflet-container a { color: var(--red-deep); }
.base-marker { background: none !important; border: none !important; }
.base-marker .pin {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.base-marker .pin svg { width: 22px; height: 22px; transform: rotate(45deg); color: #fff; }
.point-marker { background: none !important; border: none !important; }
.point-marker .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hi-vis);
  border: 3px solid var(--black);
  box-shadow: 0 0 0 4px rgba(255, 209, 0, 0.35);
}
.leaflet-tooltip.town-label {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  padding: 3px 7px;
}
.leaflet-popup-content { font-size: 0.95rem; line-height: 1.4; }
.leaflet-popup-content-wrapper { border-radius: var(--radius); }

/* --- Enquiry form ------------------------------------------------------ */
.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}
.form {
  display: grid;
  gap: 30px;
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.form legend {
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.3rem;
}
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--red); }
.hint { font-size: 0.85rem; color: var(--steel); }
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--steel-light);
  border-radius: var(--radius);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231B1D1F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form input:user-invalid, .form select:user-invalid { border-color: var(--bad); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.size-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.size-row input { text-align: center; font-weight: 700; font-size: 1.15rem; }
@media (max-width: 599px) { .row-2 { grid-template-columns: minmax(0, 1fr); } }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 9px 14px;
  border: 1.5px solid var(--steel-light);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.choice input:checked + span { background: var(--black); color: #fff; border-color: var(--black); }
.choice input:focus-visible + span { outline: 3px solid var(--hi-vis); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: grid; gap: 12px; }
.form-status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}
.form-status.is-error { display: block; background: #FDECEC; color: #8B1A1A; border: 1px solid #F3B9B9; }
.form-status.is-info { display: block; background: #FFF6D6; color: #6B5300; border: 1px solid #F1DFA0; }
.form-success {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 40px);
  background: #fff;
  border: 2px solid var(--ok);
  border-radius: var(--radius);
}
.form-success h3 { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.6rem; }
.form-success .ok-icon { width: 48px; height: 48px; color: var(--ok); }
.form-success .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.size-guide {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--black);
  color: #fff;
  border-radius: var(--radius);
}
.size-guide h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
}
.size-guide p { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; }
.size-decoder {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2px 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}
.sd { display: grid; gap: 4px; text-align: center; }
.sd b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.sd b.is-red { color: var(--red-bright); }
.sd small { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.sd-sep {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  padding-bottom: 18px;
}
.size-guide ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; display: grid; gap: 6px; }
.size-guide .btn { justify-self: start; }
.mascot { width: min(210px, 60%); justify-self: end; margin-top: 8px; }
@media (max-width: 899px) {
  .enquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .size-guide { position: static; }
}
.enquiry-grid > * { min-width: 0; }

/* --- FAQ --------------------------------------------------------------- */
.faq-list { display: grid; gap: 10px; max-width: 840px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq-list details[open] { border-color: var(--black); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--red);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 70ch; }

/* --- Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.contact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
}
.contact-card h3 svg { width: 22px; height: 22px; color: var(--red-bright); flex: none; }
.contact-card p { color: rgba(255, 255, 255, 0.82); }
.contact-card a { color: #fff; font-weight: 700; }
.contact-big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.contact-card .btn { justify-self: start; margin-top: 4px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: rgba(255, 255, 255, 0.82); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
}
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 22px; height: 22px; }
.social a[hidden] { display: none; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: #070707;
  color: rgba(255, 255, 255, 0.72);
  padding-block: 28px;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Mobile action bar ------------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--black);
  border-top: 1px solid var(--line-dark);
}
.mobile-bar .btn { padding: 12px 8px; font-size: 0.95rem; }
@media (max-width: 899px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 72px; }
}

/* --- Simple pages (privacy) ------------------------------------------- */
.prose { max-width: 72ch; display: grid; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* --- Hidden attribute must win over component display rules ---------- */
[hidden] { display: none !important; }

/* --- Staff area (admin.html) ------------------------------------------- */
.admin-title {
  margin-left: 18px;
  margin-right: auto;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.admin-main { padding-block: clamp(32px, 5vw, 64px); }
.admin-login-form { max-width: 460px; margin-inline: auto; gap: 18px; }
.admin-login-form h1 { font-size: 2rem; }
.admin-lead { color: var(--ink-soft); }
.admin-login-form code { font-size: 0.9em; background: var(--chalk); padding: 1px 5px; border-radius: 3px; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--steel-light); }
.btn-outline:hover { border-color: var(--ink); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-chip {
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.admin-chip.is-active { background: var(--black); color: #fff; border-color: var(--black); }
.admin-search {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  font: inherit;
  border: 1.5px solid var(--steel-light);
  border-radius: var(--radius);
}
.admin-actions { display: flex; gap: 8px; margin-left: auto; }
.admin-actions .btn { padding: 10px 16px; font-size: 0.95rem; }
.admin-summary { color: var(--steel); font-size: 0.95rem; margin-bottom: 14px; }
.admin-list { display: grid; gap: 14px; }
.admin-empty { color: var(--steel); }
.admin-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--steel-light);
  border-radius: var(--radius);
}
.admin-card:has(.is-new) { border-left-color: var(--red); }
.admin-card:has(.is-contacted) { border-left-color: var(--warn); }
.admin-card:has(.is-booked) { border-left-color: #1565C0; }
.admin-card:has(.is-done) { border-left-color: var(--ok); }
.admin-card:has(.is-spam) { border-left-color: var(--steel-light); opacity: 0.7; }
.admin-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.admin-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--steel);
}
.admin-pill.is-new { background: var(--red); }
.admin-pill.is-contacted { background: var(--warn); }
.admin-pill.is-booked { background: #1565C0; }
.admin-pill.is-done { background: var(--ok); }
.admin-when { font-size: 0.88rem; color: var(--steel); font-variant-numeric: tabular-nums; }
.admin-name { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }
.admin-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.admin-contact a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
.admin-contact a:hover { color: var(--red-deep); }
.admin-contact svg { width: 18px; height: 18px; color: var(--red); }
.admin-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-facts span { padding: 4px 10px; background: var(--chalk); border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.admin-line { font-size: 0.95rem; color: var(--ink-soft); }
.admin-message { white-space: pre-wrap; padding: 10px 12px; background: var(--chalk); border-radius: var(--radius); font-size: 0.95rem; }
.admin-card-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-top: 6px; }
.admin-card-tools label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; color: var(--steel); }
.admin-card-tools select, .admin-card-tools textarea {
  font: inherit;
  padding: 8px 10px;
  border: 1.5px solid var(--steel-light);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}
.admin-card-tools textarea { resize: vertical; min-height: 40px; }
.admin-card-tools .btn { padding: 9px 14px; font-size: 0.9rem; }
@media (max-width: 699px) {
  .admin-actions { margin-left: 0; width: 100%; }
  .admin-card-tools { grid-template-columns: minmax(0, 1fr); }
}
