/* ==========================================================================
   Driving School WA - mockup stylesheet
   Implements 03-design/design-system.md exactly.
   Motif: the L-plate (black on amber) + the dual-control bar.
   Radius is zero everywhere. No glass, no blur, no ambient motion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (:root) - copied from the design system token block
   -------------------------------------------------------------------------- */
:root {
  /* Type families */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* Fluid type scale */
  --fs-display: clamp(2.625rem, 1.6rem + 4.55vw, 4.5rem);
  --fs-h1:      clamp(2.125rem, 1.55rem + 2.55vw, 3.052rem);
  --fs-h2:      clamp(1.75rem, 1.36rem + 1.73vw, 2.441rem);
  --fs-h3:      clamp(1.5rem, 1.28rem + 0.98vw, 1.953rem);
  --fs-h4:      clamp(1.313rem, 1.2rem + 0.5vw, 1.563rem);
  --fs-h5:      clamp(1.125rem, 1.07rem + 0.24vw, 1.25rem);
  --fs-h6:      1rem;
  --fs-lead:    clamp(1.125rem, 1.0rem + 0.55vw, 1.375rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.13vw, 1.0625rem);
  --fs-small:   0.875rem;
  --fs-xs:      0.75rem;
  --fs-overline:0.8125rem;

  /* Line heights */
  --lh-tight: 1.02;
  --lh-display: 1.06;
  --lh-heading: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.65;
  --lh-lead: 1.5;

  /* Letter spacing */
  --ls-tighter: -0.02em;
  --ls-tight: -0.015em;
  --ls-snug: -0.005em;
  --ls-normal: 0;
  --ls-wide: 0.01em;
  --ls-overline: 0.14em;

  /* Surfaces */
  --bg: #F7F8F9;
  --surface: #FFFFFF;
  --surface-2: #EEF0F2;
  --surface-dark: #16181C;
  --surface-dark-2: #23262C;

  /* Ink */
  --ink: #16181C;
  --ink-soft: #3A3F47;
  --muted: #6B7280;
  --faint: #9CA3AE;
  --ink-invert: #F7F8F9;
  --ink-invert-soft: #C2C6CC;

  /* Accent: L-plate amber */
  --accent: #F4B400;
  --accent-strong: #C77F00;
  --accent-ink: #8A5A00;
  --accent-tint: #FDF3D6;
  --on-accent: #16181C;

  /* Secondary accent: pass green */
  --success: #1F6E54;
  --success-strong: #16513E;
  --success-tint: #E3F0EA;
  --on-success: #FFFFFF;

  /* Status */
  --danger: #B42318;
  --danger-tint: #FBEAE8;

  /* Lines */
  --line: #D7D9DC;
  --line-strong: #16181C;
  --line-dark: #3A3F47;

  /* Focus */
  --focus: #16181C;
  --focus-on-dark: #F4B400;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --section-y: clamp(3rem, 2rem + 5vw, 6rem);

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 0.5rem + 2.5vw, 2rem);

  /* Radius (zero: the L-plate) */
  --radius: 0;

  /* Borders */
  --border-hairline: 1px solid var(--line);
  --border-frame: 2px solid var(--line-strong);

  /* Elevation (hard offset, no blur) */
  --shadow-1: 0 1px 0 var(--line);
  --shadow-2: 0 2px 0 rgba(22, 24, 28, 0.08);
  --shadow-card: 6px 6px 0 var(--line-strong);
  --shadow-card-amber: 6px 6px 0 var(--accent);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 260ms;

  /* Breakpoints (reference) */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1080px;
  --bp-xl: 1280px;
  --bp-2xl: 1440px;
}

/* --------------------------------------------------------------------------
   2. Reset + base. Radius enforced to zero on every element.
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: var(--radius) !important; /* enforce the L-plate constraint */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-ink); }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-display); letter-spacing: var(--ls-tight); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--ls-snug); font-weight: var(--fw-extrabold); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: var(--ls-snug); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-weight: var(--fw-bold); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-snug); font-weight: var(--fw-bold); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-snug); letter-spacing: var(--ls-wide); font-weight: var(--fw-bold); text-transform: uppercase; }

p { margin: 0 0 1rem; max-width: 68ch; }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
  max-width: 56ch;
}

.overline {
  font-family: var(--font-display);
  font-size: var(--fs-overline);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-block;
  margin: 0 0 var(--space-3);
}

small, .text-small { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--surface-dark); color: var(--ink-invert); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--ink-invert); }
.section--dark .lead { color: var(--ink-invert-soft); }
.section--dark p { color: var(--ink-invert-soft); }
.section--dark .overline { color: var(--accent); }

.section__head { max-width: 60ch; margin-bottom: var(--space-7); }

.stack > * + * { margin-top: var(--space-4); }

.skip-only { /* visually hidden but reachable to AT */
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. The dual-control bar motif
   -------------------------------------------------------------------------- */
.dual-rule {
  position: relative;
  height: 10px;
  border: 0;
  margin: 0;
  background: transparent;
}
.dual-rule::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: var(--line-strong);
}
.dual-rule::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 6px;
  height: 4px;
  background: var(--accent);
}

.dual-underline {
  position: relative;
  padding-bottom: 0.6rem;
}
.dual-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 6px;
  background:
    linear-gradient(var(--line-strong) 0 0) left  / 64px 6px no-repeat,
    linear-gradient(var(--accent)     0 0) left 8px bottom / 48px 4px no-repeat;
}
.section--dark .dual-underline::after {
  background:
    linear-gradient(var(--ink-invert) 0 0) left  / 64px 6px no-repeat,
    linear-gradient(var(--accent)     0 0) left 8px bottom / 48px 4px no-repeat;
}

.divider { margin-block: var(--section-y); }
.divider--single { border: 0; border-top: var(--border-frame); margin-block: var(--space-7); }
.divider--amber { border: 0; border-top: 4px solid var(--accent); width: 64px; margin-block: var(--space-5); }

/* --------------------------------------------------------------------------
   5. Skip link + focus
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -3rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.section--dark :focus-visible,
.surface-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-on-dark);
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--border-frame);
  transition: box-shadow var(--dur) var(--ease), min-height var(--dur) var(--ease);
}
.site-header.is-condensed { box-shadow: var(--shadow-2); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 72px;
  padding-block: var(--space-2);
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-condensed .site-header__inner { min-height: 60px; }

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.site-header__logo img { height: 40px; width: auto; display: block; }
.site-header.is-condensed .site-header__logo img { height: 34px; }
.site-header__logo-text {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-header__logo-text span { color: var(--accent-strong); }

/* The little square L-plate lockup in the logo (CSS, on-brand) */
.lplate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: 1.25rem;
  line-height: 1;
  border: 2px solid var(--ink);
  flex: 0 0 auto;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
  margin-inline: auto;
}
.nav__item { position: relative; }
.nav__link {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-3) var(--space-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__link:hover { color: var(--accent-strong); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--space-2); right: var(--space-2); bottom: 6px;
  height: 4px;
  background: var(--accent);
}
.nav__caret { font-size: 0.7em; }

/* Dropdown */
.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: var(--border-frame);
  box-shadow: var(--shadow-card);
  min-width: 248px;
  padding: var(--space-2);
  display: none;
  z-index: 120;
}
.nav__item--has-menu:hover > .nav__menu,
.nav__item--has-menu:focus-within > .nav__menu { display: block; }
.nav__menu a {
  display: block;
  padding: var(--space-3);
  min-height: 44px;
  font-size: var(--fs-small);
  font-family: var(--font-body);
  color: var(--ink);
  text-decoration: none;
}
.nav__menu a:hover { background: var(--accent-tint); color: var(--accent-ink); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone {
  display: none;
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
}
.header-phone:hover { color: var(--accent-strong); }
.header-phone .ico { color: var(--accent-strong); }

.header-call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--accent);
  text-decoration: none;
}
.header-actions .btn { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  width: 48px; height: 48px;
  background: var(--ink);
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--accent);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -7px; left: 0; }
.nav-toggle__bar::after  { position: absolute; top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Mobile menu panel (slide in)
   -------------------------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 420px);
  background: var(--surface-dark);
  color: var(--ink-invert);
  border-left: 6px solid var(--accent);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
  padding: var(--space-6) var(--space-5) var(--space-9);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.mobile-menu__close {
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid var(--line-dark);
  color: var(--ink-invert);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu a {
  color: var(--ink-invert);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu__group-label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-overline);
  color: var(--accent);
  margin-top: var(--space-5);
}
.mobile-menu__sub { padding-left: var(--space-4); }
.mobile-menu__sub a { font-weight: var(--fw-regular); font-family: var(--font-body); font-size: var(--fs-small); }
.mobile-menu .btn { margin-top: var(--space-5); }
.mobile-menu__contact {
  margin-top: var(--space-6);
  font-size: var(--fs-small);
  color: var(--ink-invert-soft);
}
.mobile-menu__contact a { display: inline; border: 0; min-height: 0; color: var(--accent); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 28, 0.55);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. Mobile sticky bottom action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  border-top: var(--border-frame);
}
.action-bar a {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  text-decoration: none;
}
.action-bar__call { background: var(--ink); color: var(--ink-invert); }
.action-bar__book { background: var(--accent); color: var(--on-accent); }
.action-bar__call:hover { background: var(--surface-dark-2); }
.action-bar__book:hover { background: var(--accent-strong); }

/* Make room above the bottom bar on mobile so content is not hidden */
body { padding-bottom: 56px; }

/* --------------------------------------------------------------------------
   9. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn--primary:hover { background: var(--accent-strong); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--accent);
}
.btn--secondary:hover { background: var(--ink); color: var(--ink-invert); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--accent); }
.btn--secondary:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--accent); }

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  min-height: 44px;
  box-shadow: none;
  padding-inline: var(--space-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}
.btn--ghost:hover { color: var(--accent-strong); }

.section--dark .btn--secondary {
  background: transparent;
  color: var(--ink-invert);
  border-color: var(--ink-invert);
  box-shadow: 4px 4px 0 var(--accent);
}
.section--dark .btn--secondary:hover { background: var(--ink-invert); color: var(--ink); }
.section--dark .btn--ghost { color: var(--ink-invert); }
.section--dark .btn--ghost:hover { color: var(--accent); }

.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.section--dark .btn:focus-visible { outline-color: var(--focus-on-dark); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--surface-dark);
  color: var(--ink-invert);
  overflow: hidden;
}
.hero__media-wrap { position: absolute; inset: 0; z-index: 0; }
.hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(22,24,28,0.94) 0%,
    rgba(22,24,28,0.80) 48%,
    rgba(22,24,28,0.40) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
}
.hero .overline { color: var(--accent); }
.hero h1 {
  color: var(--ink-invert);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tighter);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-5);
}
.hero__subhead { font-size: var(--fs-lead); color: var(--ink-invert-soft); max-width: 54ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }

.hero__trust {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 4px solid var(--accent);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--ink-invert);
  list-style: none;
}
.hero__trust li { list-style: none; display: flex; align-items: center; gap: var(--space-2); }
.hero__trust .dot { color: var(--accent); font-weight: var(--fw-black); }

/* Page hero (interior pages: simpler dark band, no photo required) */
.page-hero {
  background: var(--surface-dark);
  color: var(--ink-invert);
  border-bottom: 6px solid var(--accent);
}
.page-hero .overline { color: var(--accent); }
.page-hero h1 { color: var(--ink-invert); margin-bottom: var(--space-5); }
.page-hero__sub { font-size: var(--fs-lead); color: var(--ink-invert-soft); max-width: 60ch; }
.page-hero__actions { margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   11. Grids
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }

/* --------------------------------------------------------------------------
   12. Service / lesson cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: var(--border-hairline);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--line-strong);
}
.card::after {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 4px; height: 0;
  background: var(--accent);
  transition: height var(--dur-slow) var(--ease);
}
.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-card); border-color: var(--line-strong); }
.card:hover::after { height: 100%; }
.card:focus-within::after { height: 100%; }
.card__title { font-size: var(--fs-h4); margin: 0; }
.card__body { color: var(--ink-soft); font-size: var(--fs-body); flex: 1; margin: 0; }
.card__link {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--accent-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
}
.card__link::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.card__link:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.card:hover .card__link::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   13. Feature / why-us blocks
   -------------------------------------------------------------------------- */
.feature {
  background: var(--surface);
  border: var(--border-hairline);
  border-top: 6px solid var(--ink);
  padding: var(--space-6);
  height: 100%;
}
.feature__num {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h3);
  color: var(--accent-strong);
  line-height: 1;
  margin-bottom: var(--space-3);
}
.feature h3 { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.feature p { margin: 0; color: var(--ink-soft); }

/* Plain icon-led fact list */
.facts { list-style: none; display: grid; gap: var(--space-4); }
.facts li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding-left: 0;
}
.facts .tick {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  background: var(--success);
  color: var(--on-success);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-black); font-family: var(--font-display);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   14. Media + figure framing
   -------------------------------------------------------------------------- */
.framed { border: 2px solid var(--ink); display: block; }
.framed--shadow { box-shadow: var(--shadow-card); }

.media-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
.media-text__media img { width: 100%; object-fit: cover; }

/* Steve / instructor lead block */
.lead-person {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}
.lead-person__photo {
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card-amber);
}
.lead-person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.lead-person__badge {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: var(--fw-black);
  text-transform: uppercase; letter-spacing: var(--ls-wide);
  font-size: var(--fs-small);
  padding: var(--space-2) var(--space-4);
}

/* --------------------------------------------------------------------------
   15. Category cards (hubs)
   -------------------------------------------------------------------------- */
.cat-card {
  position: relative;
  display: block;
  background: var(--surface);
  border: var(--border-frame);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cat-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: var(--border-frame);
}
.cat-card__label {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h5);
  letter-spacing: -0.01em;
  padding: var(--space-3) var(--space-5);
  text-transform: uppercase;
}
.cat-card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-card); }
.cat-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   16. Pricing
   -------------------------------------------------------------------------- */
.price-conflict-note {
  background: var(--accent-tint);
  border: 2px solid var(--accent);
  border-left-width: 6px;
  padding: var(--space-4) var(--space-5);
  color: var(--accent-ink);
  font-size: var(--fs-small);
}
.price-conflict-note strong { color: var(--ink); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border-frame);
  background: var(--surface);
  min-width: 520px;
}
.price-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h5);
  margin-bottom: var(--space-3);
  color: var(--ink);
}
.price-table th,
.price-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-hairline);
  vertical-align: top;
}
.price-table thead th {
  background: var(--ink);
  color: var(--ink-invert);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .price {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h4);
  white-space: nowrap;
  color: var(--ink);
}
.price-table .price small { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--muted); }
.price-table tbody tr:hover td { background: var(--accent-tint); }
.price-table .meta { color: var(--muted); font-size: var(--fs-small); }

/* Package feature cards */
.price-card {
  background: var(--surface);
  border: var(--border-frame);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}
.price-card--feature { box-shadow: var(--shadow-card-amber); }
.price-card__flag {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: var(--space-2) var(--space-3);
}
.price-card__name { font-size: var(--fs-h4); margin: 0; }
.price-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h2);
  color: var(--ink);
  line-height: 1;
}
.price-card__save {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--success);
  font-size: var(--fs-small);
}
.price-card p { margin: 0; color: var(--ink-soft); }
.price-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   17. Testimonials / results
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--surface);
  border: var(--border-hairline);
  border-left: 6px solid var(--accent);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  height: 100%;
}
.testimonial__quote {
  font-size: var(--fs-h5);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.testimonial__quote::before { content: "\201C"; color: var(--accent-strong); font-weight: var(--fw-black); }
.testimonial__quote::after { content: "\201D"; color: var(--accent-strong); font-weight: var(--fw-black); }
.testimonial__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: auto;
}
.pass-flag {
  background: var(--success);
  color: var(--on-success);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: 2px var(--space-2);
  display: inline-block;
}

.pass-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}
.pass-wall figure { margin: 0; }
.pass-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); display: block; }
.pass-wall figcaption {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--muted);
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   18. Instructor wall
   -------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.team-card {
  background: var(--surface);
  border: var(--border-hairline);
  text-align: center;
  padding-bottom: var(--space-4);
}
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); display: block; }
.team-card__name { font-family: var(--font-display); font-weight: var(--fw-bold); margin-top: var(--space-3); display: block; }
.team-card__role { font-size: var(--fs-small); color: var(--muted); }

/* --------------------------------------------------------------------------
   19. Steps (numbered process)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-5); counter-reset: step; list-style: none; }
.step {
  background: var(--surface);
  border: var(--border-hairline);
  border-left: 6px solid var(--accent);
  padding: var(--space-5) var(--space-6);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--ink); color: var(--accent);
  font-family: var(--font-display); font-weight: var(--fw-black);
  font-size: var(--fs-h5);
  margin-bottom: var(--space-3);
}
.step h3 { font-size: var(--fs-h5); margin-bottom: var(--space-2); }
.step p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   20. Callout panels
   -------------------------------------------------------------------------- */
.callout {
  background: var(--accent-tint);
  border: 2px solid var(--accent);
  border-left-width: 6px;
  padding: var(--space-6);
}
.callout h3 { color: var(--ink); }
.callout p { color: var(--accent-ink); margin-bottom: 0; }

.panel {
  background: var(--surface);
  border: var(--border-frame);
  padding: var(--space-6);
}
.panel--dark { background: var(--surface-dark-2); color: var(--ink-invert); border-color: var(--line-dark); }
.panel--dark p { color: var(--ink-invert-soft); }

.info-list { list-style: none; display: grid; gap: var(--space-3); }
.info-list li { display: flex; gap: var(--space-3); }
.info-list dt, .info-list .k {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  min-width: 110px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   21. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); max-width: 560px; }
.field { display: grid; gap: var(--space-2); }
.field label, .field .field__label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  color: var(--ink);
}
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 0.75rem var(--space-4);
  min-height: 48px;
  width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 132px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent);
}
.field--error .input { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.field--required > label::after,
.field--required > .field__label::after { content: " *"; color: var(--danger); }

.choices { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.choice { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-body); }
.choice input { width: 22px; height: 22px; accent-color: var(--accent-strong); }

.form__note { font-size: var(--fs-small); color: var(--muted); }
.form__note a { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   22. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-invert);
  border-top: 6px solid var(--accent);
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.footer-col h3 {
  color: var(--ink-invert);
  font-size: var(--fs-h6);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  color: var(--ink-invert-soft);
  text-decoration: none;
  padding: var(--space-2) 0;
  min-height: 40px;
  font-size: var(--fs-small);
}
.footer-col a:hover { color: var(--accent); }
.footer-brand__lock { display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }
.footer-brand__lock .lplate { width: 36px; height: 36px; font-size: 1.4rem; }
.footer-brand__name { font-family: var(--font-display); font-weight: var(--fw-black); font-size: 1.125rem; color: var(--ink-invert); }
.footer-tag { font-size: var(--fs-small); color: var(--ink-invert-soft); margin-bottom: var(--space-4); max-width: 32ch; }
.footer-nap { font-size: var(--fs-small); color: var(--ink-invert-soft); line-height: 1.7; }
.footer-nap a { color: var(--accent); padding: 0; display: inline; min-height: 0; }
.footer-nap a:hover { text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line-dark);
  color: var(--ink-invert);
  padding: 0;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-base {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--ink-invert-soft);
}
.footer-base a { color: var(--ink-invert-soft); }
.footer-base a:hover { color: var(--accent); }
.footer-base p { margin: 0; max-width: none; }

/* --------------------------------------------------------------------------
   23. Licensing-centre list
   -------------------------------------------------------------------------- */
.centre-list { border: var(--border-frame); background: var(--surface); list-style: none; }
.centre-list__item {
  display: flex; align-items: baseline; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-hairline);
  min-height: 56px;
}
.centre-list__item:last-child { border-bottom: 0; }
.centre-list__name { font-family: var(--font-display); font-weight: var(--fw-bold); }
.centre-list__addr { color: var(--muted); font-size: var(--fs-small); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-display); font-weight: var(--fw-bold);
  font-size: var(--fs-small);
  padding: var(--space-2) var(--space-3); min-height: 36px;
}
.section--dark .chip { background: var(--surface-dark-2); border-color: var(--line-dark); color: var(--ink-invert); }

/* --------------------------------------------------------------------------
   24. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--fs-small); color: var(--ink-invert-soft); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--ink-invert-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--accent); }

/* --------------------------------------------------------------------------
   25. Scroll-reveal (single, gentle; disabled under reduced motion)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   26. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 60ch; }
.eyebrow-amber { color: var(--accent-strong); }
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   27. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .pass-wall { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .media-text { grid-template-columns: 1fr 1fr; }
  .lead-person { grid-template-columns: 320px 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(4, 1fr); }
  .pass-wall { grid-template-columns: repeat(4, 1fr); }
  .header-actions .btn { display: inline-flex; }
  .header-call-icon { display: none; }
  .header-phone { display: inline-flex; }
}

@media (min-width: 1080px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   28. Reduced motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .btn:hover, .btn:active { transform: none; }
  .cat-card:hover { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .action-bar, .nav-toggle, .hero__media-wrap,
  .mobile-menu, .menu-backdrop, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-bottom: 0; }
  .section--dark, .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .section--dark h1, .section--dark h2, .hero h1, .page-hero h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #333; }
  .btn { border: 1px solid #000; box-shadow: none; }
}
