/* Self-hosted Google Fonts (latin subset): Public Sans + Saira. Licensed under the SIL Open Font License. */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/public-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/public-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/public-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/public-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  font-style: italic;
  font-weight: 700 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/saira-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 600 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(../fonts/saira-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Rider Works Training — prototype stylesheet
   Tokens → base → layout → components → sections → pages → utilities
   ========================================================================== */

:root {
  /* Brand */
  --navy: #001449;
  --navy-700: #0a2266;
  --navy-900: #000c2e;
  --red: #e21c21;
  --red-700: #b9141a;
  --hivis: #d9f03c;

  /* Neutrals */
  --ink: #0e1424;
  --muted: #566078;
  --line: #dce1ea;
  --paper: #f3f5f9;
  --white: #ffffff;
  --tarmac: #1d2129;
  --tarmac-2: #262b35;

  /* Type */
  --font-display: "Saira", "Arial Narrow", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.75rem);
  --step-5: clamp(3rem, 2rem + 5vw, 6.5rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 20, 73, 0.06), 0 12px 32px -12px rgba(0, 20, 73, 0.22);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
@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: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.05; }
h4 { font-size: var(--step-1); line-height: 1.1; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--navy);
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--hivis); color: var(--navy); font-weight: 700;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Layout ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #dfe5f3; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--navy .section-head p { color: #b9c3dd; }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  align-items: end; justify-content: space-between;
}
.section-head--split > div { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-stretch: 100%;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.section--navy .eyebrow, .eyebrow--light { color: var(--hivis); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-stretch: 100%; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--bg); border-radius: 999px;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { --bg: var(--red-700); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--navy); border-color: var(--white); }
.btn--navy { --bg: var(--navy); }
.btn--navy:hover { --bg: var(--navy-700); }
.btn--outline { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--outline:hover { --bg: var(--navy); --fg: var(--white); }
.btn--sm { min-height: 42px; padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-stretch: 100%; font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red); text-decoration: none;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-900); color: #c9d2ea; font-size: 0.8rem; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 40px;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__group { display: flex; align-items: center; gap: 1.4rem; }
.topbar__stars { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--white); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: #ffc93c; }
.stars svg { width: 13px; height: 13px; }
.topbar__loc { font-family: var(--font-display); font-stretch: 100%; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; font-size: 0.74rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__item svg { width: 14px; height: 14px; opacity: 0.8; }
.topbar__social { display: inline-flex; gap: 0.5rem; }
.topbar__social a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white); transition: background 0.2s; }
.topbar__social a:hover { background: var(--red); }
.topbar__social svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .topbar__loc, .topbar__email { display: none; }
}
@media (max-width: 520px) {
  .topbar__social { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; isolation: isolate;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
/* Blur lives on a pseudo-element so it doesn't become the containing block for the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0, 20, 73, 0.4); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 128px; height: auto; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 0.85rem; border-radius: 999px;
  font-family: var(--font-display); font-stretch: 100%; font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--paper); }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__link svg { width: 14px; height: 14px; transition: transform 0.2s; }

.nav__item--drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 340px; padding: 0.6rem; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item--drop:hover .dropdown,
.nav__item--drop:focus-within .dropdown,
.nav__item--drop.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item--drop:hover .nav__link svg,
.nav__item--drop.is-open .nav__link svg { transform: rotate(180deg); }
.dropdown a {
  display: grid; grid-template-columns: 48px 1fr; gap: 0.85rem; align-items: center;
  padding: 0.65rem; border-radius: var(--radius-sm); text-decoration: none;
}
.dropdown a:hover { background: var(--paper); }
.dropdown img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.dropdown strong { display: block; color: var(--navy); font-size: 0.92rem; line-height: 1.25; }
.dropdown span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

.nav__book { display: none; }
.header-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-top, calc(var(--header-h) + 40px)) 0 0; z-index: 99;
    display: block; padding: 1.25rem var(--gutter) 6rem; overflow-y: auto;
    background: var(--white);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1.1rem 0.25rem; font-size: 1.1rem; border-radius: 0; }
  .nav__link:hover { background: none; }
  .dropdown {
    position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0.75rem;
    display: none; opacity: 1; visibility: visible;
  }
  .nav__item--drop.is-open .dropdown { display: block; transform: none; }
  .nav__item--drop:hover .dropdown { transform: none; }
  .header-cta .btn { display: none; }
  .nav__list > li.nav__book { display: block; border: 0; padding-top: 1.5rem; }
  html.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 82vh, 780px);
  display: flex; align-items: flex-end;
  color: var(--white); background: var(--navy);
}
/* Split hero: solid navy panel for the copy, photo on the right fading into it */
.hero__media { position: absolute; inset: 0 0 0 36%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 36%, rgba(0, 20, 73, 0.72) 44%, rgba(0, 20, 73, 0.18) 58%, rgba(0, 20, 73, 0) 70%),
    linear-gradient(0deg, rgba(0, 12, 46, 0.55) 0%, transparent 35%),
    radial-gradient(120% 90% at 0% 100%, rgba(10, 34, 102, 0.9), transparent 60%);
}
/* Phones: photo stacked on top, copy on solid navy below */
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__media { inset: 0 0 auto 0; height: 340px; }
  .hero__media img { object-position: 55% 40%; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0, 20, 73, 0) 0, rgba(0, 20, 73, 0) 200px, var(--navy) 340px);
  }
  .hero .hero__inner { padding-top: 300px; }
}
.hero__inner { position: relative; padding-block: clamp(5rem, 10vw, 7rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero h1 { color: var(--white); max-width: 11ch; margin-bottom: 1.5rem; font-style: italic; }
.hero h1 em { font-style: italic; color: var(--hivis); }
.hero__lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: #dfe6f7; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero__badge {
  position: absolute; right: var(--gutter); bottom: clamp(2rem, 5vw, 3.5rem);
  display: block; width: 210px; border-radius: 12px; overflow: hidden;
  background: var(--white); padding: 10px 12px 8px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease);
}
.hero__badge:hover { transform: translateY(-4px) rotate(-1deg); }
@media (max-width: 860px) { .hero__badge { display: none; } }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--navy);
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3rem, 6vw, 4.5rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 12, 46, 0.95) 0%, rgba(0, 20, 73, 0.8) 50%, rgba(0, 20, 73, 0.45) 100%);
}
.page-hero h1 { color: var(--white); font-size: var(--step-4); font-style: italic; max-width: 18ch; }
.page-hero p { max-width: 60ch; color: #dbe3f5; font-size: var(--step-1); line-height: 1.5; }
.breadcrumb { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.85rem; color: #aab6d4; }
.breadcrumb a { color: #dbe3f5; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.page-hero__facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; padding: 0; list-style: none; }
.page-hero__facts li {
  padding: 0.5rem 1rem; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  font-size: 0.88rem; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px);
}
.page-hero__facts strong { color: var(--white); }

/* Reflective tape — hi-vis stripe used as a divider */
.tape {
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--hivis) 0 22px, #c6dc2b 22px 26px, var(--hivis) 26px 48px);
  position: relative;
}
.tape::after { content: ""; position: absolute; inset: 3px 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: glint 6s linear infinite; mix-blend-mode: soft-light; }
@keyframes glint { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* ---------- Credentials (About) ---------- */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cred { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem); display: flex; gap: 1rem; align-items: center; }
.cred + .cred { border-left: 1px solid var(--line); }
.cred__icon { flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; color: var(--navy); }
.cred__icon svg { width: 44px; height: 44px; }
.cred__icon img { width: 56px; height: auto; border-radius: 4px; }
.cred strong { display: block; font-family: var(--font-display); font-stretch: 75%; font-weight: 750; font-size: 1.45rem; line-height: 1; text-transform: uppercase; color: var(--navy); }
.cred span { display: block; font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.35; }
@media (max-width: 960px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .creds { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--line); }
}

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about__media figcaption {
  position: absolute; left: -1rem; bottom: 1.5rem; max-width: 260px;
  background: var(--navy); color: var(--white); padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; line-height: 1.4; box-shadow: var(--shadow);
}
.about__media figcaption strong { display: block; font-family: var(--font-display); font-stretch: 75%; font-size: 1.6rem; line-height: 1; color: var(--hivis); text-transform: uppercase; margin-bottom: 0.2rem; }
.about__body p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 0.75rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 0.75rem; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media figcaption { left: 1rem; }
}

/* ---------- Course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.course {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.course:hover .course__media img { transform: scale(1.05); }
.course__tag {
  position: absolute; left: 1rem; top: 1rem;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 6px;
}
.course__body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.75rem; }
.course__body h3 { font-size: 1.85rem; margin-bottom: 0.6rem; }
.course__body p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.course__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.course__meta li { font-size: 0.8rem; font-weight: 600; color: var(--navy); background: var(--paper); padding: 0.3rem 0.65rem; border-radius: 6px; }
.course__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .courses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .courses { grid-template-columns: 1fr; } }

/* L-plate price tile — the brand's signature mark */
.lplate {
  position: absolute; right: 1rem; top: 1rem;
  width: 84px; height: 84px; display: grid; place-items: center; text-align: center;
  background: var(--white); border-radius: 10px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 3px var(--white), inset 0 0 0 4px #e8e8e8;
  transform: rotate(4deg);
  transition: transform 0.35s var(--ease);
}
.course:hover .lplate { transform: rotate(-2deg) scale(1.04); }
.lplate b { display: block; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.1rem; line-height: 0.9; color: var(--red); }
.lplate small { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-top: 0.2rem; }
.lplate--lg { position: static; width: 132px; height: 132px; transform: rotate(-3deg); }
.lplate--lg b { font-size: 3.4rem; }
.lplate--lg small { font-size: 0.7rem; }

/* ---------- The road: CBT elements A–E ---------- */
.road { position: relative; background: var(--tarmac); color: #c8cfdd; overflow: hidden; }
.road::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
}
.road h2 { color: var(--white); }
.road .section-head p { color: #9aa3b5; }
.road__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; list-style: none; margin: 0; padding: 0; counter-reset: el; }

.road__step { position: relative; }
.roundel {
  position: relative; z-index: 1;
  width: 94px; height: 94px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 11px solid var(--red);
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--ink);
  box-shadow: 0 0 0 6px var(--tarmac), 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.5rem;
  transform: scale(0.6); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}
.road.is-visible .roundel { transform: none; opacity: 1; }
.road.is-visible .road__step:nth-child(2) .roundel { transition-delay: 0.35s; }
.road.is-visible .road__step:nth-child(3) .roundel { transition-delay: 0.7s; }
.road.is-visible .road__step:nth-child(4) .roundel { transition-delay: 1.05s; }
.road.is-visible .road__step:nth-child(5) .roundel { transition-delay: 1.4s; }
.road__step h3 { color: var(--white); font-size: 1.45rem; margin-bottom: 0.5rem; }
.road__step p { font-size: 0.93rem; line-height: 1.55; color: #a9b1c2; margin: 0; }
.road__kicker { display: block; font-family: var(--font-display); font-stretch: 100%; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hivis); margin-bottom: 0.4rem; }
.road__note {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); background: var(--tarmac-2);
}
.road__note p { margin: 0; color: #c8cfdd; max-width: 70ch; }
.road__note strong { color: var(--white); }
@media (max-width: 960px) {
  .road__track { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .road__step { display: grid; grid-template-columns: 94px 1fr; gap: 1.25rem; padding-bottom: 2rem; }
  .road__step:last-child { padding-bottom: 0; }
  .roundel { margin: 0; }
  .road__step > div { padding-top: 0.75rem; }
}

/* ---------- Instagram wall ---------- */
.insta { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 10px; }
.insta a { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: var(--paper); }
/* 3 large (2×2) + 2 wide (2×1) + 14 singles = 30 cells = 5 full rows of 6 */
.insta a.is-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.insta a.is-wide { grid-column: span 2; aspect-ratio: auto; }
.insta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.insta a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 12, 46, 0.85), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.insta figcaption {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.75rem; z-index: 1;
  color: var(--white); font-size: 0.82rem; line-height: 1.35;
  opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s var(--ease);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.insta a:hover img, .insta a:focus-visible img { transform: scale(1.06); }
.insta a:hover::after, .insta a:focus-visible::after,
.insta a:hover figcaption, .insta a:focus-visible figcaption { opacity: 1; transform: none; }
.insta__reel { position: absolute; right: 0.6rem; top: 0.6rem; z-index: 1; width: 28px; height: 28px; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
@media (max-width: 960px) {
  /* 3 columns: 1 large + 2 wide + 16 singles = 24 cells = 8 full rows */
  .insta { grid-template-columns: repeat(3, 1fr); }
  .insta a.is-lg:not(:first-child) { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .insta { gap: 6px; }
  .insta figcaption { display: none; }
}
.insta-handle { display: inline-flex; align-items: center; gap: 0.6rem; }
.insta-handle img { width: 22px; height: 22px; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.location__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.5rem;
}
.location__card h3 { font-size: 1.7rem; margin: 0; }
.address { font-style: normal; font-size: var(--step-1); line-height: 1.45; color: var(--ink); font-weight: 600; margin: 0; }
.address small { display: block; font-size: 0.85rem; color: var(--muted); font-weight: 500; margin-top: 0.5rem; }
.transit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.transit li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.transit img { width: 52px; height: auto; }
.transit strong { display: block; color: var(--navy); line-height: 1.3; }
.transit span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.bus-routes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.bus-routes b { background: var(--red); color: var(--white); font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; }
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85); }
@media (max-width: 860px) { .location { grid-template-columns: 1fr; } .map { min-height: 320px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0.25rem; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.08rem; color: var(--navy); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red); }
.faq__icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy); transition: transform 0.3s var(--ease), background 0.2s, color 0.2s; }
.faq__icon svg { width: 16px; height: 16px; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--red); color: var(--white); }
/* Padding lives on .faq__inner so the animated .faq__body can shrink fully to 0 */
.faq__body { color: var(--muted); }
.faq__inner { padding: 0 3.5rem 1.5rem 0.25rem; }
.faq__body ul { margin: 0.25rem 0 1rem; padding-left: 1.2rem; }
.faq__body li { margin-bottom: 0.25rem; }
.faq__body ol { margin: 0.25rem 0 1rem; padding-left: 1.3rem; }
.faq__body ol li { margin-bottom: 0.6rem; }
.faq__body ol strong { color: var(--ink); }
.faq__body a:not(.btn) { color: var(--red); font-weight: 600; }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .faq__inner { padding-right: 0.25rem; }
}

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.25rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card__meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 1.35rem; margin: 0; flex: 1; }
.post-card .text-link { margin-top: 0.5rem; }
@media (max-width: 1080px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }

.posts--feature { grid-template-columns: repeat(2, 1fr); }
.posts--feature .post-card:first-child { grid-column: span 2; flex-direction: row; }
.posts--feature .post-card:first-child .post-card__media { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.posts--feature .post-card:first-child .post-card__body { flex: 1; padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
.posts--feature .post-card:first-child h3 { font-size: var(--step-3); flex: 0; }
@media (max-width: 760px) {
  .posts--feature { grid-template-columns: 1fr; }
  .posts--feature .post-card:first-child { grid-column: auto; flex-direction: column; }
  .posts--feature .post-card:first-child .post-card__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem; }
.contact__lines a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); text-decoration: none;
  color: var(--white); font-weight: 600; font-size: 1.05rem; transition: background 0.2s, border-color 0.2s;
}
.contact__lines a:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); }
.contact__lines svg { width: 22px; height: 22px; color: var(--hivis); flex-shrink: 0; }
.contact__lines small { display: block; font-size: 0.75rem; font-weight: 500; color: #aab6d4; letter-spacing: 0.08em; text-transform: uppercase; }

.form { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.form h3, .section--navy .form h3 { font-size: 1.9rem; margin-bottom: 1.5rem; color: var(--navy); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 650; color: var(--navy); }
.field label .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 20, 73, 0.1); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff5f5; }
.field__error { font-size: 0.8rem; color: var(--red-700); font-weight: 600; min-height: 0; }
.form__foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__note { font-size: 0.82rem; color: var(--muted); margin: 0; max-width: 34ch; }
.form__status { grid-column: 1 / -1; margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; display: none; }
.form__status.is-ok { display: block; background: #eef9e6; color: #2b6a12; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding-block: clamp(4rem, 9vw, 7rem); background: var(--navy); }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 20, 73, 0.95), rgba(0, 20, 73, 0.55)); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); font-style: italic; margin: 0; }
.cta-band p { margin: 0.75rem 0 0; color: #d4dcf0; font-size: var(--step-1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aeb9d6; font-size: 0.94rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(3.5rem, 6vw, 5rem) 3rem; }
.footer__brand img.footer__logo { width: 150px; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 34ch; }
.footer__title { font-family: var(--font-display); font-stretch: 100%; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin: 0 0 1.1rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--white); transition: background 0.2s; }
.footer__social a:hover { background: var(--red); }
.footer__social svg { width: 18px; height: 18px; }
.footer__pay { width: 220px; margin-top: 1.25rem; border-radius: 8px; background: var(--white); padding: 4px 8px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem; }
.footer__bar nav { display: flex; gap: 1.5rem; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobile booking bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0.6rem; padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; min-height: 48px; padding-inline: 0.75rem; white-space: nowrap; letter-spacing: 0.06em; font-size: 0.85rem; }
.mobile-bar .btn:last-child { flex: 1.6; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  .site-footer { padding-bottom: 80px; }
}

/* ---------- Content pages (CBT / Gear / Terms / Posts) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.book-card { background: var(--navy); color: #d6def2; border-radius: var(--radius); padding: 1.75rem; position: relative; overflow: hidden; }
.book-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 18px, #c6dc2b 18px 22px); }
.book-card h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 0.25rem; }
.book-card__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.75rem 0 1.25rem; }
.book-card__price b { font-family: var(--font-display); font-stretch: 75%; font-size: 3.6rem; line-height: 1; color: var(--white); }
.book-card__price span { font-size: 0.85rem; }
.book-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.book-card li { display: grid; grid-template-columns: 20px 1fr; gap: 0.6rem; }
.book-card li svg { width: 18px; height: 18px; color: var(--hivis); margin-top: 3px; }
.book-card .btn { width: 100%; }
.help-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.help-card h3, .help-card h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.help-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.75rem; }
.help-card a { display: block; font-weight: 700; color: var(--navy); text-decoration: none; padding: 0.25rem 0; }
.help-card a:hover { color: var(--red); }
@media (max-width: 1000px) {
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}

.prose { font-size: 1.06rem; line-height: 1.75; color: #2b3348; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-3); margin-top: 2.2em; margin-bottom: 0.4em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.8em; margin-bottom: 0.3em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 0; }
.prose li { margin-bottom: 0.45rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a:not(.btn) { color: var(--red); font-weight: 600; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
.prose .lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; border-radius: var(--radius-sm); overflow: hidden; }
.prose th { background: var(--navy); color: var(--white); text-align: left; padding: 0.85rem 1rem; font-family: var(--font-display); font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.prose td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--paper); }
.prose td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.callout { border-left: 4px solid var(--red); background: var(--paper); padding: 1.1rem 1.35rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout--hivis { border-left-color: var(--hivis); background: #fbfde9; }

.feature-list { list-style: none; padding: 0 !important; display: grid; gap: 0.75rem; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 0.8rem; padding: 0 !important; margin: 0 !important; }
.feature-list svg { width: 22px; height: 22px; color: var(--red); margin-top: 4px; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; background: var(--white); }
.mini-card h3, .mini-card h4 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.mini-card p, .mini-card ul { font-size: 0.95rem; color: var(--muted); margin: 0; }
.mini-card ul { padding-left: 1.1rem; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--white); padding: 1.25rem 1.35rem; }
.fact dt { font-family: var(--font-display); font-stretch: 100%; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 0.35rem; }
.fact dd { margin: 0; font-size: 0.97rem; color: var(--ink); line-height: 1.5; }
.fact--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Booking page */
.booking { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.booking__media { position: relative; background: #fff; display: grid; place-items: center; padding: 2rem; }
.booking__media img { width: 100%; max-width: 560px; }
.booking__media .lplate { right: 1.5rem; top: 1.5rem; }
.booking__body { padding: clamp(1.75rem, 4vw, 3rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.booking__body h2 { font-size: var(--step-3); }
.booking__price { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 1.5rem; }
.booking__price b { font-family: var(--font-display); font-stretch: 75%; font-size: 4rem; line-height: 1; color: var(--navy); }
.booking__actions { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.coming { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.coming .mini-card { display: flex; flex-direction: column; gap: 0.75rem; }
.coming .mini-card .text-link { margin-top: auto; }
@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .booking__body { border-left: 0; border-top: 1px solid var(--line); }
  .coming { grid-template-columns: 1fr; }
}

/* Post page */
.post-hero { background: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) 0; }
.post-hero h1 { font-size: var(--step-4); max-width: 22ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.post-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; transform: translateY(3rem); box-shadow: var(--shadow); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding-top: calc(var(--section) + 2rem); }
.post-end { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* Terms */
.terms-nav { columns: 2; column-gap: 2rem; list-style: none; padding: 1.5rem 1.75rem; margin: 0 0 3rem; background: var(--paper); border-radius: var(--radius); font-size: 0.92rem; }
.terms-nav li { break-inside: avoid; padding: 0.25rem 0; }
.terms-nav a { color: var(--navy); text-decoration: none; }
.terms-nav a:hover { color: var(--red); text-decoration: underline; }
.terms-section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.terms-section h2 { font-size: 1.7rem; display: flex; gap: 0.75rem; align-items: baseline; }
.terms-section h2 span { color: var(--red); }
@media (max-width: 640px) { .terms-nav { columns: 1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.terms-section > * + * { margin-top: 1em; }
.prose .terms-section { margin-top: 2.75rem; }
.prose .terms-section h2 { margin-top: 0; }

/* Homepage Instagram preview: one even row (6 → 3 columns on small screens) */
.insta--row { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 960px) { .insta--row { grid-template-columns: repeat(3, 1fr); } }
.faq-wrap .section-head .btn { margin-top: 0.5rem; }

/* Struck-through previous price (£249 → £189) */
.was { text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.7; font-weight: 600; }
.btn .was { text-decoration-color: currentColor; opacity: 0.75; }
.lplate s { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: var(--red); line-height: 1; margin-bottom: 0.1rem; }
.lplate--lg s { font-size: 1.15rem; }
.book-card__price .was { font-family: var(--font-display); font-stretch: 75%; font-size: 1.8rem; color: #aab6d4; text-decoration-color: var(--red); }
.booking__price .was { font-family: var(--font-display); font-stretch: 75%; font-size: 2rem; color: var(--muted); text-decoration-color: var(--red); }
.booking__price b .visually-hidden { font-size: 1rem; }
.dropdown .was { opacity: 0.8; }

/* <picture> wrappers are layout-transparent so existing img selectors keep working */
picture { display: contents; }
/* <source> must never become a grid/flex item once <picture> is display: contents */
picture > source { display: none; }

/* ---------- Click-to-load map ---------- */
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.9rem; padding: 2rem; text-align: center;
  background:
    linear-gradient(rgba(243, 245, 249, 0.86), rgba(243, 245, 249, 0.86)),
    repeating-linear-gradient(0deg, transparent 0 46px, #d4dae6 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, #d4dae6 46px 48px),
    linear-gradient(35deg, transparent 48%, #c5ccd9 48% 52%, transparent 52%);
}
.map__pin { width: 54px; height: 54px; color: var(--red); }
.map__pin svg { width: 100%; height: 100%; }
.map__addr { margin: 0; font-weight: 700; color: var(--navy); max-width: 30ch; }
.map__note { margin: 0; font-size: 0.82rem; color: var(--muted); max-width: 36ch; }
.map__note a { color: var(--red); font-weight: 600; }

/* ---------- Google reviews (click-to-load Elfsight widget) ---------- */
.reviews { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.reviews__score { display: flex; align-items: baseline; gap: 0.75rem; margin: 0.5rem 0 1rem; }
.reviews__score b { font-family: var(--font-display); font-stretch: 75%; font-size: 4.5rem; line-height: 1; color: var(--navy); }
.reviews__score .stars svg { width: 22px; height: 22px; }
.reviews__panel { min-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(1.25rem, 3vw, 2rem); display: grid; place-items: center; text-align: center; }
.reviews__panel img { width: 220px; margin: 0 auto 1rem; }
.reviews__panel p { color: var(--muted); font-size: 0.9rem; margin: 0.75rem 0 0; }
.reviews__panel.is-loaded { display: block; text-align: left; padding: 0.5rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Instagram lightbox ---------- */
.ig-modal { width: min(94vw, 480px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden; }
.ig-modal::backdrop { background: rgba(0, 12, 46, 0.82); }
.ig-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-bottom: 1px solid var(--line); }
.ig-modal__bar a { font-size: 0.85rem; font-weight: 700; color: var(--red); text-decoration: none; }
.ig-modal__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.ig-modal__close svg { width: 20px; height: 20px; }
.ig-modal iframe { display: block; width: 100%; height: min(78vh, 720px); border: 0; }

/* WhatsApp button (only rendered when WHATSAPP_NUMBER is set in build.py) */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 95; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease); }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 760px) { .wa-float { display: none; } }
.mobile-bar .btn.mobile-bar__wa { flex: 0 0 48px; width: 48px; padding: 0; background: #25d366; border-color: #25d366; color: #fff; }
.mobile-bar__wa svg { width: 24px; height: 24px; }

/* Text links on light backgrounds use the darker brand red for WCAG AA contrast */
.prose a:not(.btn), .faq__body a:not(.btn), .map__note a, .callout a, .form__note a { color: var(--red-700); }

/* Competitor price comparison (COMPARE_PRICE in build.py) */
.compare { margin: 0 0 1rem; padding: 0.6rem 0.85rem; border-left: 3px solid var(--hivis); background: #fbfde9; border-radius: 0 6px 6px 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink); }
.compare--dark { background: rgba(255, 255, 255, 0.07); color: #dbe3f5; margin-top: -0.5rem; margin-bottom: 1.25rem; }
.hero__compare { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: -0.75rem 0 1.75rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.88rem; color: #dbe3f5; }
.hero__compare b { background: var(--hivis); color: var(--navy); padding: 0.2rem 0.65rem; border-radius: 999px; font-family: var(--font-display); font-stretch: 100%; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; }

/* Mobile menu toggle: labelled pill; turns solid navy with a white X when open */
.nav-toggle { width: auto; height: 46px; padding: 0 1rem 0 0.8rem; gap: 0.45rem; border-radius: 999px; font-family: var(--font-display); font-stretch: 100%; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.nav-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav-toggle[aria-expanded="true"] svg { width: 22px; height: 22px; }

/* Quick contact links at the bottom of the mobile menu */
.nav__quick { display: none; }
@media (max-width: 1080px) {
  .nav__list > li.nav__quick { display: grid; gap: 0.6rem; border: 0; padding-top: 0.9rem; }
  .nav__quick a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 50px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--navy); }
  .nav__quick a:hover { border-color: var(--navy); }
  .nav__quick svg { width: 20px; height: 20px; }
  .nav__quick a[href*="wa.me"] svg { color: #25d366; }
  body.nav-open .wa-float { display: none; }
}

@media (max-width: 560px) { .hero__compare { border-radius: 14px; } }

/* FAQ: plus icon rotates back as the answer closes */
.faq details.is-closing .faq__icon { transform: none; background: var(--paper); color: var(--navy); }
.faq summary { transition: color 0.2s; }

/* ---------- Scroll animations (data-reveal is set by main.js) ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--rd, 0ms);
}
[data-reveal="up"] { transform: translate3d(0, 32px, 0); }
[data-reveal="left"] { transform: translate3d(-44px, 0, 0); }
[data-reveal="right"] { transform: translate3d(44px, 0, 0); }
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* Sticky FAQ heading must not keep a transform once shown */
.faq-wrap .section-head[data-reveal].is-visible { transform: none; }
@media (max-width: 860px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translate3d(0, 32px, 0); }
}

/* Hero and page-header entrance on load */
@keyframes riseIn { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
.hero__inner > *, .page-hero .container > * { animation: riseIn 0.9s var(--ease) both; }
.hero__inner > :nth-child(1), .page-hero .container > :nth-child(1) { animation-delay: 0.1s; }
.hero__inner > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: 0.2s; }
.hero__inner > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: 0.32s; }
.hero__inner > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: 0.44s; }
.hero__inner > :nth-child(5), .page-hero .container > :nth-child(5) { animation-delay: 0.56s; }
.hero__inner > :nth-child(6), .page-hero .container > :nth-child(6) { animation-delay: 0.68s; }
.hero__badge { animation: riseIn 0.9s var(--ease) 0.8s backwards; }

/* Parallax images are scaled so movement never shows an edge */
.page-hero__media img, .cta-band__media img { transform: scale(1.14); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .page-hero__media img, .cta-band__media img { transform: none !important; }
}

/* Course cards: photo and title open the course page */
a.course__media { display: block; cursor: pointer; }
.course__title { color: inherit; text-decoration: none; }
.course__title:hover { color: var(--red); }
.course__title:focus-visible { outline-offset: 4px; }

/* ---------- Road line: one segment between each pair of roundels (A→B→C→D→E), so it starts and ends exactly on a stop ---------- */
.road__step:not(:last-child)::before,
.road__step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  /* desktop: horizontal, from this roundel's centre to the next one's (column + grid gap) */
  top: 44px; left: 47px; width: calc(100% + 1.25rem); height: 6px;
}
.road__step:not(:last-child)::before { background: repeating-linear-gradient(90deg, #f4f4f0 0 30px, transparent 30px 52px); opacity: 0.9; }
.road__step:not(:last-child)::after {
  background: var(--hivis);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.road .roundel { z-index: 1; }
.road.is-visible .road__step:not(:last-child)::after { transform: none; }
/* each segment fills as the next roundel pops in (roundels are staggered 0.35s apart) */
.road.is-visible .road__step:nth-child(1)::after { transition-delay: 0.15s; }
.road.is-visible .road__step:nth-child(2)::after { transition-delay: 0.5s; }
.road.is-visible .road__step:nth-child(3)::after { transition-delay: 0.85s; }
.road.is-visible .road__step:nth-child(4)::after { transition-delay: 1.2s; }
@media (max-width: 960px) {
  /* phones/tablets: vertical, from this roundel's centre down to the next one's */
  .road__step:not(:last-child)::before,
  .road__step:not(:last-child)::after { top: 47px; left: 44px; width: 6px; height: 100%; }
  .road__step:not(:last-child)::before { background: repeating-linear-gradient(180deg, #f4f4f0 0 26px, transparent 26px 46px); }
  .road__step:not(:last-child)::after { transform: scaleY(0); transform-origin: center top; }
  .road.is-visible .road__step:not(:last-child)::after { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .road__step:not(:last-child)::after { transform: none !important; }
}

/* About photo badge: on phones it hangs off the bottom edge so it doesn't cover the rider */
@media (max-width: 860px) {
  .about__media { margin-bottom: 1.75rem !important; }
  .about__media figcaption { left: 1rem; bottom: -1.75rem; max-width: 230px; padding: 0.7rem 1rem; font-size: 0.82rem; }
  .about__media figcaption strong { font-size: 1.3rem; }
}

/* Reviews: loading state until the Google reviews widget renders, then the widget replaces it */
.reviews__panel { position: relative; }
.reviews__panel.is-loaded .reviews__fallback { display: none; }
.reviews__status { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--muted); }
.reviews__status a { color: var(--red-700); font-weight: 700; text-decoration: none; }
.reviews__spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--red); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Location map: real map preview (OpenStreetMap) with pin; Google Maps loads on request ---------- */
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -92%); color: var(--red); filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35)); z-index: 1; }
.map__pin svg { width: 100%; height: 100%; }
.map__bar {
  position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.85rem; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.7rem 0.7rem 0.7rem 1rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.96); box-shadow: 0 10px 30px -12px rgba(0, 20, 73, 0.45);
}
.map__label { display: flex; flex-direction: column; font-size: 0.82rem; color: var(--muted); line-height: 1.35; min-width: 0; }
.map__label b { color: var(--navy); font-size: 0.95rem; }
.map__credit { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; font-size: 0.68rem; color: #333; background: rgba(255, 255, 255, 0.85); padding: 0.15rem 0.45rem; border-radius: 4px; text-decoration: none; }
.map__img { cursor: pointer; }
@media (max-width: 420px) { .map__bar { flex-direction: column; align-items: stretch; } .map__load { width: 100%; } }
/* Loaded reviews widget has its own card, so drop ours */
.reviews__panel.is-loaded { border-color: transparent; background: transparent; padding: 0; min-height: 0; }

/* Inner-page headers on phones: let the photo show at the top, keep text readable lower down */
@media (max-width: 760px) {
  .page-hero::before {
    background: linear-gradient(180deg, rgba(0, 20, 73, 0.35) 0%, rgba(0, 20, 73, 0.72) 40%, rgba(0, 12, 46, 0.94) 100%);
  }
  .page-hero { padding-top: clamp(7rem, 30vw, 9rem); }
}
/* Eyebrow labels on the light grey sections use the darker red for WCAG AA contrast */
.section--paper .eyebrow { color: var(--red-700); }

/* ---------- Mobile menu: course list as tappable cards ---------- */
@media (max-width: 1080px) {
  .nav__item--drop > .nav__link svg {
    width: 34px; height: 34px; padding: 9px; flex-shrink: 0;
    border-radius: 50%; background: var(--paper); color: var(--navy);
    transition: transform 0.3s var(--ease), background 0.2s, color 0.2s;
  }
  .nav__item--drop.is-open > .nav__link svg { background: var(--navy); color: var(--white); }
  .nav__item--drop.is-open .dropdown { display: grid; gap: 0.5rem; padding: 0 0 1.1rem; }
  .dropdown a {
    grid-template-columns: 56px 1fr 18px; gap: 0.9rem;
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    background: var(--paper); border: 1px solid transparent; border-radius: 14px;
    transition: border-color 0.2s, background 0.2s;
  }
  .dropdown a:hover, .dropdown a:focus-visible { background: var(--white); border-color: var(--line); }
  .dropdown a::after {
    content: ""; justify-self: center; width: 8px; height: 8px;
    border-top: 2.5px solid var(--red); border-right: 2.5px solid var(--red);
    transform: rotate(45deg);
  }
  .dropdown img { width: 56px; height: 56px; border-radius: 10px; }
  .dropdown strong { font-size: 0.98rem; }
  .dropdown span span { margin-top: 0.15rem; }
}

/* ---------- Hero: trust row + phone layout ---------- */
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; margin: 2rem 0 0; padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16); max-width: 640px;
}
.hero__trust li, .hero__trust a { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: #c9d3ec; text-decoration: none; }
.hero__trust b { color: var(--white); font-weight: 700; }
.hero__trust svg { width: 20px; height: 20px; color: var(--hivis); flex-shrink: 0; }
.hero__trust .stars svg { width: 15px; height: 15px; color: #ffc93c; }
.hero__trust a:hover span { text-decoration: underline; }
/* desktop shows the Google badge image, so the reviews item is for phones/tablets */
.hero__trust-reviews { display: none !important; }
@media (max-width: 860px) {
  .hero__trust-reviews { display: inline-flex !important; }
  .hero__trust-kit { display: none !important; }
}

@media (max-width: 860px) {
  /* taller, better-framed photo: whole rider and bike visible */
  .hero__media { height: clamp(320px, 95vw, 440px); }
  .hero__media img { object-position: 50% 30%; transform: none; animation: none; }
  .hero::before {
    background: linear-gradient(180deg, rgba(0, 20, 73, 0) 0, rgba(0, 20, 73, 0) clamp(190px, 62vw, 300px), var(--navy) clamp(320px, 95vw, 440px));
  }
  .hero .hero__inner { padding-top: clamp(270px, 84vw, 390px); padding-bottom: 2.75rem; }
  .hero h1 { font-size: clamp(2.6rem, 12vw, 3.6rem); margin-bottom: 1rem; }
  .hero__lede { font-size: 1.08rem; margin-bottom: 1.4rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
  .hero__actions .btn { width: 100%; }
  .hero__compare { margin-top: 0; margin-bottom: 1.4rem; }
  .hero__trust { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1.6rem; }
}
@media (max-width: 560px) {
  .hero__compare { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.75rem; padding: 0.5rem 0.9rem 0.5rem 0.5rem; font-size: 0.86rem; line-height: 1.35; }
  .hero__compare b { flex-shrink: 0; }
}

/* Desktop hero: fit the whole message (incl. trust row) on one laptop screen */
@media (min-width: 861px) {
  .hero { min-height: clamp(600px, calc(100vh - 116px), 820px); align-items: center; }
  .hero .hero__inner { padding-block: clamp(2.5rem, 5vh, 4rem) clamp(2.5rem, 5vh, 3.5rem); }
  .hero h1 { font-size: clamp(3.2rem, 2rem + 4.2vw, 5.4rem); margin-bottom: 1.1rem; }
  .hero__lede { margin-bottom: 1.5rem; }
  .hero__compare { margin-top: -0.25rem; margin-bottom: 1.5rem; }
  .hero__trust { margin-top: 1.6rem; padding-top: 1.1rem; }
  .hero__badge { bottom: 6rem; }
}
/* Short laptop screens (e.g. 1280×720, 1366×768): compact hero so the trust row stays above the fold */
@media (min-width: 861px) and (max-height: 820px) {
  .hero h1 { font-size: clamp(3rem, 7.4vh, 4.2rem); margin-bottom: 0.8rem; }
  .hero .eyebrow { margin-bottom: 0.7rem; }
  .hero__lede { font-size: 1.1rem; margin-bottom: 1.1rem; max-width: 40ch; }
  .hero__compare { margin-bottom: 1.1rem; }
  .hero .hero__inner { padding-block: 1.75rem; }
  .hero__trust { margin-top: 1.2rem; padding-top: 0.9rem; }
}

/* Booking page price tile: top-left corner, never over the scooter photo */
.booking__media .booking__lplate { position: absolute; top: 1.25rem; left: 1.25rem; right: auto; width: 96px; height: 96px; transform: rotate(-4deg); z-index: 1; }
.booking__media .booking__lplate b { font-size: 2.4rem; }
.booking__media .booking__lplate small { font-size: 0.62rem; }
@media (max-width: 860px) {
  .booking__media { padding: 1.25rem 1.5rem 1.5rem; }
  /* reserve the tile's height above the photo so they can't overlap */
  .booking__media img { margin-top: calc(96px + 0.5rem); }
}

/* ---------- Review cards (Tony's Google reviews, edited in the CMS) ---------- */
.review-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.review-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(0, 20, 73, 0.04); }
.review-card__head { display: flex; align-items: center; gap: 0.8rem; }
.review-card__avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.1rem; }
.review-card figcaption { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review-card figcaption b { color: var(--navy); font-size: 1rem; }
.review-card figcaption span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.review-card .g-logo { width: 14px; height: 14px; }
.review-card__stars { display: flex; gap: 2px; margin: 0.9rem 0 0.6rem; color: #f5b400; }
.review-card__stars svg { width: 18px; height: 18px; }
.review-card blockquote { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--ink); }
@media (max-width: 960px) { .review-cards { grid-template-columns: 1fr; } }

/* ---------- Location page: meeting point (entrance gate) ---------- */
.meet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.meet__map { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.meet__map img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.meet__map:hover img { transform: scale(1.02); }
.meet__body h2 { font-size: var(--step-3); }
.meet__lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin-bottom: 1.4rem; }
.meet__subhead { font-size: 1.35rem; margin: 2rem 0 0.8rem; }
.meet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.meet__list li { display: grid; grid-template-columns: 26px 1fr; gap: 0.6rem; align-items: start; line-height: 1.5; }
.meet__icon { font-weight: 800; font-size: 1.05rem; }
.meet__ok .meet__icon { color: #1a8f3c; }
.meet__no .meet__icon { color: var(--red); }
@media (max-width: 860px) { .meet__grid { grid-template-columns: 1fr; } }

/* Entrance view: Tony's gate photo, or tap-to-load Street View */
.meet__photo, .meet__street { margin: clamp(2rem, 4vw, 3rem) 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.meet__photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.meet__photo figcaption { padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--muted); background: var(--white); }
.meet__street { position: relative; min-height: 380px; background: var(--paper); }
.meet__street.is-loaded { background: #000; }
.meet__street iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.meet__street-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; padding: 2rem; text-align: center;
  background: linear-gradient(rgba(243, 245, 249, 0.9), rgba(243, 245, 249, 0.9)), url("../img/entrance-map.jpg") center / cover; }
.meet__street-placeholder h3 { margin: 0; font-size: 1.6rem; }
.meet__street-placeholder p { margin: 0; max-width: 44ch; color: var(--muted); }
.meet__street-icon { width: 46px; height: 46px; color: var(--red); }
.meet__street-icon svg { width: 100%; height: 100%; }
.meet__street-note { font-size: 0.82rem; }
@media (max-width: 560px) { .meet__street { min-height: 420px; } }

/* ---------- Next CBT dates (CMS) ---------- */
.dates { background: var(--navy); color: #dfe5f3; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dates__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-block: 1rem; }
.dates__label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; color: var(--hivis); }
.dates__label svg { width: 18px; height: 18px; }
.dates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dates li { display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.4rem 0.85rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.92rem; }
.dates li b { color: var(--white); }
.dates li span { color: var(--hivis); font-size: 0.8rem; font-weight: 600; }
.dates li.is-full b { color: #c8cfdd; text-decoration: line-through; }
.dates li.is-full span { color: #c8cfdd; }
.dates .text-link { color: var(--white); margin-left: auto; }
.dates--card { background: none; border: 0; margin: 0 0 1.25rem; }
.dates--card .dates__label { display: block; margin-bottom: 0.5rem; }
@media (max-width: 640px) { .dates .text-link { margin-left: 0; } }

/* ---------- Dropdown extra link ---------- */
.dropdown__extra a { display: block !important; font-size: 0.85rem; font-weight: 700; color: var(--red) !important; padding: 0.7rem 0.9rem !important; border-top: 1px solid var(--line); }

/* ---------- Start here cards (home) ---------- */

/* ---------- Course finder quiz ---------- */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.quiz { background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); min-height: 360px; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; min-height: 2rem; }
.quiz__step { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--red); }
.quiz__back, .quiz__again { background: none; border: 0; padding: 0.4rem 0; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quiz__stage:focus { outline: none; }
.quiz__q { border: 0; padding: 0; margin: 0; }
.quiz__q legend { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1.05; color: var(--navy); margin-bottom: 1.5rem; padding: 0; }
.quiz__opts { display: grid; gap: 0.75rem; }
.quiz__opt { text-align: left; font: inherit; font-weight: 650; font-size: 1.05rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease); }
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--navy); background: var(--white); transform: translateX(4px); }
.quiz__result h2 { font-size: var(--step-3); color: var(--navy); margin: 0.4rem 0 0.75rem; }
.quiz__result p { font-size: 1.08rem; line-height: 1.65; color: #2b3348; }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.quiz__fallback { line-height: 2; }
.quiz-help h2 { font-size: 1.7rem; }
.quiz-help p { color: var(--muted); }
.quiz-help a:not(.btn) { color: var(--red-700); font-weight: 700; }
.quiz-help .btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .quiz-wrap { grid-template-columns: 1fr; } }

/* ---------- Licence ladder ---------- */
.ladder { background: var(--paper); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; }
.section .container > .ladder { margin-top: 0; }
.ladder__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.ladder__head h3 { margin: 0 !important; font-size: 1.6rem; }
.ladder__age { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 650; color: var(--navy); font-size: 0.95rem; }
.ladder__age select { font: inherit; padding: 0.5rem 0.75rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.ladder__rungs { list-style: none !important; padding: 0 !important; margin: 0; display: grid; gap: 0.6rem; }
.ladder__rung { display: grid; grid-template-columns: 64px 1fr 28px; gap: 1rem; align-items: center; padding: 0.85rem 1rem !important; margin: 0 !important; background: transparent; border: 2px dashed #c3cad8; border-radius: var(--radius-sm); transition: background 0.3s, border-color 0.3s; }
.ladder__rung::marker { content: none; }
.ladder__rung.is-on { background: var(--white); border-style: solid; border-color: var(--navy); }
.ladder__rung.is-maybe { background: var(--white); border-color: var(--navy); }
.ladder__rung:not(.is-on):not(.is-maybe) .ladder__badge { border-color: #8a93a8; color: var(--muted); background: transparent; }
.ladder__rung:not(.is-on):not(.is-maybe) strong { color: var(--muted); font-weight: 600; }
.ladder__badge { display: grid; place-items: center; height: 48px; border-radius: 6px; background: var(--white); border: 3px solid var(--red); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--red); }
.ladder__rung strong { display: block; color: var(--ink); line-height: 1.35; font-size: 0.98rem; }
.ladder__rung span:not(.ladder__badge):not(.ladder__ok) { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.15rem; }
.ladder__ok { color: #1a8f3c; visibility: hidden; }
.ladder__ok svg { width: 24px; height: 24px; }
.ladder__rung.is-on .ladder__ok { visibility: visible; }
.ladder__note { font-weight: 650; color: var(--navy); margin: 1rem 0 0.25rem !important; }
.ladder__src { font-size: 0.85rem; color: var(--muted); margin: 0 !important; }
.ladder__src a { color: var(--red-700); }

/* ---------- CBT day timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.25rem; top: 0.6rem; bottom: 0.6rem; width: 3px; background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 18px); }
.timeline__item { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.75rem; padding-bottom: 1.75rem; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: calc(7.25rem - 6px); top: 0.45rem; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 4px solid var(--red); }
.timeline__time { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--red); text-align: right; padding-top: 0.15rem; line-height: 1.2; }
.timeline__item h3 { font-size: 1.4rem; color: var(--navy); margin: 0 0 0.3rem; }
.timeline__item p { margin: 0; color: #2b3348; line-height: 1.6; }
.timeline__item a { color: var(--red); font-weight: 600; }
@media (max-width: 560px) {
  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 2rem; }
  .timeline__item::before { left: 0; }
  .timeline__time { text-align: left; }
}

/* ---------- Welcome video ---------- */
.video-wrap .section-head { margin-inline: auto; text-align: center; }
.video-wrap .eyebrow { justify-content: center; }
.video { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; background: var(--red); color: var(--white); cursor: pointer; display: grid; place-items: center; transition: transform 0.25s var(--ease); }
.video__play:hover { transform: scale(1.08); }
.video__play svg { width: 40px; height: 40px; margin-left: 5px; }
.video__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.6rem; text-align: center; font-size: 0.8rem; color: #fff; background: rgba(0, 0, 0, 0.5); }

/* ---------- Weather ---------- */
.weather { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; max-width: 960px; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: #fbfde9; border-left: 6px solid var(--hivis); }
.weather__icon { font-size: clamp(3rem, 8vw, 5rem); line-height: 1; }
.weather h2 { font-size: var(--step-3); }
.weather p { margin: 0; color: #2b3348; line-height: 1.65; }
.weather a { color: var(--red); font-weight: 600; }
@media (max-width: 560px) { .weather { grid-template-columns: 1fr; } }

/* ---------- Pre-CBT checklist ---------- */
.prep-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.prep-wrap .section-head a { color: var(--red); font-weight: 600; }
.prep__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.prep__list label { display: grid; grid-template-columns: 30px 1fr; gap: 0.85rem; align-items: start; padding: 0.95rem 1.1rem; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; line-height: 1.5; transition: border-color 0.2s; }
.prep__list label:hover { border-color: var(--navy); }
.prep__list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prep__box { width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--navy); display: grid; place-items: center; color: transparent; background: var(--white); transition: background 0.2s, color 0.2s; }
.prep__box svg { width: 18px; height: 18px; }
.prep__list input:checked + .prep__box { background: var(--navy); color: var(--hivis); }
.prep__list input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(86, 96, 120, 0.5); }
.prep__list input:focus-visible + .prep__box { outline: 3px solid var(--red); outline-offset: 2px; }
.prep__list a { color: var(--red); font-weight: 600; }
.prep__done { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.prep.is-done .prep__done { color: #1a8f3c; }
@media (max-width: 860px) { .prep-wrap { grid-template-columns: 1fr; } }

/* ---------- CBT renewal reminder ---------- */
.reminder { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: calc(var(--radius) + 4px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.reminder h2 { font-size: var(--step-3); }
.reminder p { color: var(--muted); line-height: 1.6; }
.reminder__form { display: grid; gap: 0.6rem; }
.reminder__form label { font-weight: 650; color: var(--navy); font-size: 0.9rem; }
.reminder__form input { font: inherit; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.reminder__form input:focus { outline: none; border-color: var(--navy); background: var(--white); }
.reminder__out { color: var(--ink) !important; margin: 0.25rem 0 0; }
.reminder__out a { color: var(--red); font-weight: 700; }
.reminder__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.reminder__actions[hidden] { display: none; }
.reminder__note { font-size: 0.82rem; margin: 0; }
@media (max-width: 860px) { .reminder { grid-template-columns: 1fr; } }

/* ---------- Area pages ---------- */
.areas-line { font-size: 0.9rem; color: var(--muted); margin: 0; }
.areas-line a { color: var(--navy); font-weight: 650; }
.journeys { list-style: none !important; padding: 0 !important; display: grid; gap: 0.6rem; }
.journeys li { display: grid !important; grid-template-columns: 76px 1fr; gap: 1rem; align-items: center; padding: 0.9rem 1rem !important; margin: 0 !important; background: var(--paper); border-radius: var(--radius-sm); line-height: 1.45; }
.journeys li::marker { content: none; }
.journeys__min { font-size: 0.85rem; color: var(--muted); text-align: center; }
.journeys__min b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--red); }
.areas-other { font-size: 0.95rem; color: var(--muted); }

/* ---------- Printable review card ---------- */
.print-page { background: var(--paper); }
.print-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 210mm; margin: 1rem auto; padding: 0 1rem; }
.print-bar p { margin: 0; color: var(--muted); }
.rcards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: 210mm; max-width: 100%; margin: 0 auto 2rem; background: var(--white); }
.rcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 10mm 8mm; border: 1px dashed #b8c0cf; min-height: 140mm; justify-content: center; }
.rcard h2 { font-size: 1.9rem; color: var(--navy); margin: 0.5rem 0 0; }
.rcard p { margin: 0; color: var(--muted); max-width: 30ch; line-height: 1.45; }
.rcard__qr svg { width: 46mm; height: 46mm; }
.rcard__scan { font-weight: 700; color: var(--red) !important; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
@media print {
  @page { size: A4; margin: 0; }
  .print-bar { display: none; }
  .print-page { background: #fff; }
  .rcards { margin: 0; width: 210mm; }
  .rcard { min-height: 148mm; }
}
@media (max-width: 640px) { .rcards { grid-template-columns: 1fr; } }

/* Red links on light-grey sections: darker red for WCAG AA contrast */
.section--paper .text-link, .prep-wrap .section-head a, .prep__list a { color: var(--red-700); }


/* ---------- Mobile polish: every phone from 320px up, portrait and landscape ---------- */
/* Grid columns may shrink below their content's width, so nothing is cut off on narrow phones */
.location > *, .transit li > *, .content-grid > * { min-width: 0; }
@media (max-width: 860px) { .location { grid-template-columns: minmax(0, 1fr); } }
.transit li { grid-template-columns: 52px minmax(0, 1fr); }
.location__card, .transit strong, .address { overflow-wrap: break-word; }
.bus-routes b { white-space: nowrap; }

/* Form fields at 16px or more, so iPhones don't zoom in when they're tapped */
@media (max-width: 760px), (pointer: coarse) { input:not([type=checkbox]):not([type=radio]), select, textarea, .ladder__age select { font-size: max(16px, 1em); } }

/* Bigger tap areas on touch screens (aiming for 44px; text links get extra hit area without moving the layout) */
@media (pointer: coarse) {
  .text-link { padding-block: 0.6rem; margin-block: -0.6rem; }
  .footer__bar nav a { display: inline-block; padding-block: 0.7rem; }
  .footer__social a { width: 44px; height: 44px; }
  .topbar__inner a { padding-block: 0.6rem; margin-block: -0.6rem; }
  .topbar__social a { width: 34px; height: 34px; padding: 0; margin: 0; }
}

/* Small labels stay readable on phones */
@media (max-width: 960px), (pointer: coarse) {
  .fact dt, .road__kicker { font-size: 0.8rem; letter-spacing: 0.12em; }
}

/* Tables in articles: let the first column wrap on narrow phones */
@media (max-width: 480px) {
  .prose td:first-child { white-space: normal; }
  .prose td { padding: 0.75rem 0.7rem; }
}
@media (max-width: 400px) {
  .prose table { table-layout: fixed; font-size: 0.9rem; }
  .prose th, .prose td { padding: 0.6rem 0.5rem; overflow-wrap: break-word; hyphens: auto; }
  .prose th:first-child, .prose td:first-child { width: 26%; }
  .prose th { letter-spacing: 0.04em; overflow-wrap: normal; hyphens: manual; }
}

/* Booking bar on the narrowest phones (320–374px) */
@media (max-width: 374px) {
  .mobile-bar { gap: 0.45rem; padding-inline: 0.75rem; }
  .mobile-bar .btn { padding-inline: 0.5rem; letter-spacing: 0.03em; font-size: 0.78rem; }
  .mobile-bar .btn svg { width: 16px; height: 16px; }
}


/* Landscape phones: photo beside the headline (like desktop) so the copy and Book button are on the first screen */
@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 100svh; align-items: center; }
  .hero__media { inset: 0 0 0 42%; height: auto; }
  .hero__media img { object-position: 50% 35%; }
  .hero::before {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 42%, rgba(0, 20, 73, 0.6) 52%, rgba(0, 20, 73, 0) 68%);
  }
  .hero .hero__inner { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(2rem, 7vh, 2.6rem); margin-bottom: 0.75rem; }
  .hero__lede { max-width: 36ch; font-size: 0.95rem; }
  .hero__inner > * { max-width: 52%; }
}
@media (max-height: 500px) and (orientation: landscape) and (max-width: 960px) { .topbar { display: none; } }

/* Partner promotion on the homepage: hero pill, electric strip, footer link */
.hero__partner {
  display: inline-flex; align-items: center; gap: 0.7rem; margin-top: 1.1rem; max-width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem; border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(217, 240, 60, 0.45); color: var(--white); font-size: 0.92rem; line-height: 1.3;
  transition: background 0.2s, border-color 0.2s;
}
.hero__partner:hover { background: rgba(217, 240, 60, 0.14); border-color: var(--hivis); }
.hero__partner b { color: var(--hivis); }
.hero__partner svg { width: 16px; height: 16px; flex: none; }
.hero__partner-tag { flex: none; background: var(--hivis); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 999px; }

.footer__partner { display: inline-grid; gap: 0.2rem; margin-top: 1.25rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); text-decoration: none; color: var(--white); }
.footer__partner small { color: #8f9bbd; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.footer__partner span { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.footer__partner img { width: 72px; height: auto; background: var(--white); border-radius: 6px; padding: 3px 6px; }
.footer__partner:hover { background: rgba(255, 255, 255, 0.12); }

/* Header: separate "Ride electric" button for the Ride Today partnership */
.nav__link--electric { background: var(--hivis); color: var(--navy); font-weight: 700; margin-inline: 0.25rem; }
.nav__link--electric:hover, .nav__link--electric[aria-current="page"] { background: var(--navy); color: var(--hivis); }
.nav__link, .header-cta .btn { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 1081px) {
  .nav__link { padding-inline: 0.55rem; letter-spacing: 0.06em; font-size: 0.8rem; }
  .nav__link--electric { margin-inline: 0.1rem; }
  .header-cta .btn { padding-inline: 1rem; }
  .site-header .brand img { width: 112px; height: auto; }
}
@media (max-width: 1080px) {
  .nav__list > li.nav__item--electric { border-bottom: 0; padding: 0.75rem 0; }
  .nav__link--electric { justify-content: center; gap: 0.5rem; border-radius: 999px; margin: 0; padding: 0.95rem 1rem; }
  .nav__link--electric:hover { background: var(--navy); }
}


/* Bigger credential icons (DVSA, instructors, riders trained, location) */
.cred__icon { width: 68px; height: 68px; }
.cred__icon svg { width: 56px; height: 56px; }
.cred__icon img { width: 68px; }
@media (max-width: 520px) {
  .cred { gap: 1.25rem; }
  .cred__icon { width: 84px; height: 84px; }
  .cred__icon svg { width: 70px; height: 70px; }
  .cred__icon img { width: 84px; }
}

/* ---------- Partner: Ride Today (short and simple) ---------- */
.today { background: var(--paper); }
.today__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  padding: clamp(1.75rem, 4vw, 3rem); box-shadow: 0 18px 50px rgba(0, 20, 73, 0.08);
}
.today__logo { display: inline-block; line-height: 0; margin-bottom: 1.25rem; }
.today__logo img { width: 150px; height: auto; }
.today__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-style: italic; margin-bottom: 0.9rem; }
.today__title em { color: #d98a2b; }
.today__head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.today__head p { color: var(--muted); max-width: 52ch; margin: 0.6rem 0 0; }
.today__copy p { color: var(--muted); font-size: 1.08rem; max-width: 38ch; margin: 0 0 1.5rem; }
.today__scooter { display: block; line-height: 0; }
.today__scooter img { width: 100%; height: auto; }
@media (max-width: 860px) {
  .today__card { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .today__scooter { order: -1; margin: -0.5rem 0 0; }
  .today__copy .btn { width: 100%; justify-content: center; }
}

/* ---------- Training courses menu: smooth open, arrow follows open/closed ---------- */
/* Hover-to-open only on real mouse screens (a tap shouldn't leave the arrow stuck) */
@media (hover: none), (max-width: 1080px) {
  .nav__item--drop:hover .nav__link svg { transform: none; }
}
.nav__item--drop > .nav__link svg { transition: transform 0.35s var(--ease), background 0.2s, color 0.2s; }
.nav__item--drop.is-open > .nav__link svg,
.nav__item--drop > .nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1081px) {
  .dropdown { transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s; }
}
@media (max-width: 1080px) {
  .dropdown {
    display: grid; gap: 0.5rem; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; padding: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease, padding 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav__item--drop.is-open .dropdown {
    max-height: var(--dd-h, 1400px); opacity: 1; visibility: visible; padding: 0 0 1.1rem;
    transition: max-height 0.45s var(--ease), opacity 0.35s ease 0.05s, padding 0.45s var(--ease), visibility 0s;
  }
}
.dropdown__extra a::after { content: none !important; }

/* iPhone Safari: <picture> wrappers inside grid rows can report hidden overflow that widens the page
   (white strip on the right). Clip it; all visible content stays inside these boxes. */
.transit li, .location__card { overflow: hidden; }

/* ---------- Book page: branded 3-step booking panel (replaces the embedded Wix page) ---------- */
.book-steps {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius); color: #d7def0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
}
.book-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 16px, var(--navy-900) 16px 32px); }
.book-steps__head h2 { color: var(--white); font-size: var(--step-3); margin-bottom: 0.4rem; }
.book-steps__head p { margin: 0; max-width: 52ch; }
.book-steps__list { list-style: none; padding: 0; margin: clamp(1.5rem, 3vw, 2.25rem) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.book-steps__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 1.1rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); line-height: 1.45; font-size: 0.95rem; }
.book-steps__list li > span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--hivis); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.book-steps__list strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 0.2rem; }
.book-steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.book-steps__cta .btn { font-size: 1rem; padding: 1.1rem 2rem; }
.book-steps__cta p { margin: 0; font-size: 0.95rem; }
.book-steps__cta p a { color: var(--hivis); font-weight: 700; }
@media (max-width: 860px) { .book-steps__list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .book-steps__cta .btn { width: 100%; justify-content: center; } }
.book-steps .eyebrow { color: var(--hivis); }

/* ---------- CBT "five elements" road: slower, calmer sequence (A → line → B → … → E, ~5s) ---------- */
.road .roundel { transition: transform 1.1s var(--ease), opacity 0.9s ease; }
.road.is-visible .road__step:nth-child(1) .roundel { transition-delay: 0.2s; }
.road.is-visible .road__step:nth-child(2) .roundel { transition-delay: 1.2s; }
.road.is-visible .road__step:nth-child(3) .roundel { transition-delay: 2.2s; }
.road.is-visible .road__step:nth-child(4) .roundel { transition-delay: 3.2s; }
.road.is-visible .road__step:nth-child(5) .roundel { transition-delay: 4.2s; }
.road__step:not(:last-child)::after { transition: transform 0.9s cubic-bezier(0.45, 0, 0.25, 1); }
.road.is-visible .road__step:nth-child(1)::after { transition-delay: 0.6s; }
.road.is-visible .road__step:nth-child(2)::after { transition-delay: 1.6s; }
.road.is-visible .road__step:nth-child(3)::after { transition-delay: 2.6s; }
.road.is-visible .road__step:nth-child(4)::after { transition-delay: 3.6s; }
/* text under each circle fades in with its circle */
.road__step > div { opacity: 0; transform: translateY(10px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.road.is-visible .road__step > div { opacity: 1; transform: none; }
.road.is-visible .road__step:nth-child(1) > div { transition-delay: 0.5s; }
.road.is-visible .road__step:nth-child(2) > div { transition-delay: 1.5s; }
.road.is-visible .road__step:nth-child(3) > div { transition-delay: 2.5s; }
.road.is-visible .road__step:nth-child(4) > div { transition-delay: 3.5s; }
.road.is-visible .road__step:nth-child(5) > div { transition-delay: 4.5s; }
.no-js .road__step > div { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .road__step > div { opacity: 1; transform: none; } }

/* ---------- Hero title: room for the slanted letters (Android Chrome trimmed them during the rise-in animation) ---------- */
.hero h1, .page-hero h1 { padding: 0.12em 0.2em 0.04em 0.14em; margin-left: -0.14em; }

/* ---------- Phones: more condensed, less scrolling (Tony's feedback) ---------- */
@media (max-width: 640px) {
  :root { --section: 2.9rem; }
  .section-head { margin-bottom: 1.4rem; }
  .section-head p { font-size: 0.98rem; }

  /* Hero: shorter photo, tighter copy, trust points in one compact row */
  .hero__media { height: clamp(220px, 62vw, 280px); }
  .hero::before { background: linear-gradient(180deg, rgba(0, 20, 73, 0) 0, rgba(0, 20, 73, 0) clamp(140px, 40vw, 190px), var(--navy) clamp(220px, 62vw, 280px)); }
  .hero .hero__inner { padding-top: clamp(190px, 54vw, 245px); padding-bottom: 2rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); margin-bottom: 0.7rem; max-width: none; }
  .hero__lede { font-size: 1rem; margin-bottom: 1.1rem; }
  .hero__actions { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero__actions .btn { padding-inline: 0.6rem; font-size: 0.78rem; letter-spacing: 0.06em; }
  .hero__partner { margin-top: 0.9rem; font-size: 0.85rem; }
  .hero__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1.1rem; padding-top: 0.9rem; }
  .hero__trust li, .hero__trust a { font-size: 0.82rem; }
  .hero__trust-kit { display: none !important; }

  /* Swipe sideways instead of scrolling down: courses, reviews, articles */
  .courses, .review-cards, .posts:not(.posts--feature) {
    display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 86%;
    gap: 0.85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 0.25rem var(--gutter) 1rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; align-items: stretch;
  }
  .courses::-webkit-scrollbar, .review-cards::-webkit-scrollbar, .posts:not(.posts--feature)::-webkit-scrollbar { display: none; }
  .courses > *, .review-cards > *, .posts:not(.posts--feature) > * { scroll-snap-align: start; min-width: 0; }
  .course__media { aspect-ratio: 16 / 10; }
  .course__body { padding: 1.1rem 1.15rem 1.2rem; }
  .course__body h3 { font-size: 1.5rem; }
  .course__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.92rem; }
  .course__meta { margin-bottom: 0.8rem; }
  .post-card__media { aspect-ratio: 16 / 9; }

  /* Five elements: smaller stops, tighter rows */
  .road__step { grid-template-columns: 58px 1fr; gap: 0.9rem; padding-bottom: 1.1rem; }
  .road .roundel { width: 58px; height: 58px; border-width: 7px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--tarmac); }
  .road__step:not(:last-child)::before, .road__step:not(:last-child)::after { top: 29px; left: 26px; }
  .road__step > div { padding-top: 0.1rem; }
  .road__step h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
  .road__step p { font-size: 0.86rem; }
  .road__note { margin-top: 1.5rem; }

  /* Credentials 2 x 2, icon above text */
  .creds { grid-template-columns: 1fr 1fr !important; }
  .cred { flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1.1rem 0.8rem; }
  .cred + .cred { border-top: 0; }
  .cred:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .cred:nth-child(n + 3) { border-top: 1px solid var(--line) !important; }
  .cred__icon { width: 60px; height: 60px; }
  .cred__icon svg { width: 52px; height: 52px; }
  .cred__icon img { width: 60px; }
  .cred strong { font-size: 1.15rem; }
  .cred span { font-size: 0.8rem; }

  /* About: shorter photo */
  .about { margin-top: 2rem; gap: 1.5rem; }
  .about__media img { aspect-ratio: 16 / 10; }

  /* Ride Today card, map, call-to-action band */
  .today__card { padding: 1.25rem; gap: 1rem; }
  .today__scooter img { max-height: 190px; width: auto; margin-inline: auto; display: block; }
  .today__logo { margin-bottom: 0.75rem; }
  .today__logo img { width: 120px; }
  .map { min-height: 240px; }
  .location__card { padding: 1.25rem; }
  .cta-band { padding-block: 2.75rem; }

  /* Footer: link lists side by side */
  .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 1.75rem 1.25rem; padding-block: 2.5rem 1.75rem; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hero__actions .btn, .course__foot .btn { white-space: nowrap; }
  .hero__actions { grid-template-columns: 1fr; }
  .hero__actions .btn { padding-block: 0.85rem; font-size: 0.85rem; letter-spacing: 0.08em; }
  .course__foot { gap: 0.6rem; }
  .course__foot .text-link { white-space: nowrap; font-size: 0.78rem; }
  .course__foot .btn { padding-inline: 1rem; }
  .road__note .btn { width: 100%; justify-content: center; padding-block: 0.8rem; font-size: 0.8rem; }
  .road__note div, .road__note p + * { display: grid; gap: 0.6rem; }
  .topbar__inner { flex-wrap: nowrap; }
  .topbar__inner a, .topbar__stars span { white-space: nowrap; font-size: 0.74rem; }
}
