/* ==========================================================================
   Adelaide Confident Driving Academy
   Design system: Deep Canvas / Electric Cobalt / Adelaide Sun Gold
   Hand-rolled, no framework. ~1 request, cached hard.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --deep-canvas:  #0B132B;
  --midnight:     #1C2541;
  --slate-deep:   #131C38;
  --cobalt:       #3A86FF;
  --cobalt-dark:  #2563EB;
  --cobalt-soft:  #E8F0FF;
  --gold:         #FFB703;
  --gold-deep:    #C98A00;
  --gold-soft:    #FFF6E0;
  --whatsapp:     #25D366;
  --whatsapp-dark:#128C7E;

  /* Plate colour system: SA learner (yellow/black) and P1 (red/white) plates,
     used to colour-code the CBT&A and VORT pathways everywhere they appear. */
  --l-yellow:   #FFD500;   /* SA learner plate */
  --l-ink:      #111111;
  --p-red:      #E4002B;   /* SA P1 plate, decorative use only (no text on top) */
  --p-red-text: #C4001F;   /* darkened for AA contrast under small white text */
  --p-ink:      #FFFFFF;

  /* Surfaces */
  --ghost:        #F8FAFC;
  --white:        #FFFFFF;
  --stroke:       #E2E8F0;
  --stroke-dark:  rgba(255,255,255,.10);

  /* Text */
  --ink:          #0F172A;
  --ink-muted:    #475569;
  --ink-faint:    #64748B;
  --on-dark:      #FFFFFF;
  --on-dark-mut:  #A9B4CA;

  /* Type */
  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* Elevation */
  --shadow-soft:  0 10px 30px -10px rgba(11,19,43,.10), 0 4px 6px -2px rgba(11,19,43,.05);
  --shadow-hover: 0 20px 40px -15px rgba(58,134,255,.22), 0 8px 16px -4px rgba(11,19,43,.08);
  --shadow-float: 0 25px 50px -12px rgba(11,19,43,.28);

  /* Rhythm */
  --gutter: 24px;
  --max: 1200px;
  --sect-y: clamp(64px, 9vw, 128px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-swift: cubic-bezier(.85,0,.15,1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ghost);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--cobalt-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
ul, ol { padding-left: 1.25em; }
:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { text-wrap: pretty; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--sect-y); position: relative; }
.section--dark { background: var(--deep-canvas); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-mut); }
.section--tint { background: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--cobalt); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cobalt-dark);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--gold); }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-muted); max-width: 62ch; }
.section--dark .lede { color: var(--on-dark-mut); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: .97rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease);
  will-change: transform;
  line-height: 1.2;
  min-height: 52px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary   { background: var(--cobalt-dark); color: #fff; box-shadow: 0 8px 20px -8px rgba(37,99,235,.6); }
.btn--primary:hover { background: #1D5FD8; box-shadow: 0 14px 28px -10px rgba(37,99,235,.7); }

.btn--whatsapp  { background: var(--whatsapp); color: #05341C; box-shadow: 0 8px 20px -8px rgba(37,211,102,.6); }
.btn--whatsapp:hover { background: #1FBE5B; box-shadow: 0 14px 28px -10px rgba(37,211,102,.7); }

.btn--ghost {
  background: rgba(255,255,255,.06);
  color: var(--on-dark);
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

.btn--outline { border-color: var(--deep-canvas); color: var(--deep-canvas); background: transparent; }
.btn--outline:hover { background: var(--deep-canvas); color: #fff; }

.btn--gold { background: var(--gold); color: #33260B; box-shadow: 0 8px 20px -8px rgba(255,183,3,.6); }
.btn--gold:hover { background: #F0AB00; }

.btn--wide { width: 100%; }
.btn--sm { padding: 10px 18px; min-height: 44px; font-size: .88rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.pulse { position: relative; }
.pulse::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: inherit; border: 2px solid var(--whatsapp);
  animation: ping 2.6s var(--ease) infinite; pointer-events: none;
}
@keyframes ping {
  0%   { transform: scale(1);    opacity: .75; }
  70%  { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

/* --------------------------------------------------------------------------
   5. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,19,43,.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--stroke-dark);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { background: rgba(11,19,43,.96); box-shadow: 0 8px 30px -12px rgba(0,0,0,.6); }

.nav { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  color: #fff; letter-spacing: -.01em;
}
.brand-text span { font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 9px 13px; border-radius: var(--r-sm);
  color: var(--on-dark-mut); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(58,134,255,.18); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 9px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  transition: background .2s var(--ease);
}
.nav-call:hover { background: rgba(255,255,255,.1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.2); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease-swift), opacity .2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--deep-canvas);
    border-bottom: 1px solid var(--stroke-dark);
    padding: 16px var(--gutter) 26px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    max-height: calc(100dvh - 76px); overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 1rem; }
  .nav-cta .nav-call span { display: none; }
}
.brand-text b, .brand-text span { white-space: nowrap; }

/* Below 760px the sticky bottom bar already provides Call and WhatsApp,
   so the header drops them and keeps only the brand and the menu. */
@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .nav-cta .btn--whatsapp, .nav-cta .nav-call { display: none; }
  .brand img { width: 36px; height: 36px; }
  .brand-text b { font-size: .88rem; }
  .nav-links { inset-block-start: 64px; max-height: calc(100dvh - 64px); }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 380px) {
  .brand-text b { font-size: .8rem; }
  .brand-text span { font-size: .6rem; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--deep-canvas); color: #fff;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 112px);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(920px 520px at 12% -8%,  rgba(58,134,255,.30), transparent 62%),
    radial-gradient(760px 480px at 96% 8%,   rgba(255,183,3,.14),  transparent 60%),
    radial-gradient(700px 520px at 60% 110%, rgba(37,211,102,.10), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1000px 620px at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 620px at 50% 20%, #000 20%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid; gap: clamp(36px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #C6D0E4; font-size: clamp(1.04rem, 1.7vw, 1.22rem); margin-bottom: 30px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 9px 9px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  margin-bottom: 22px; text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
a.rating-badge:hover { background: rgba(255,255,255,.13); border-color: rgba(255,183,3,.5); }
.rating-badge .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.rating-badge .rb-text { font-size: .84rem; color: #DCE4F2; font-weight: 500; }
.rating-badge .rb-text b { color: #fff; }
.rating-badge .rb-chip {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--gold); color: #33260B; padding: 6px 11px; border-radius: var(--r-pill);
}

.microstats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px; margin-top: 38px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg); overflow: hidden;
}
.microstats div { background: rgba(11,19,43,.7); padding: 18px 16px; }
.microstats b {
  display: block; font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.microstats > div > span { display: block; font-size: .78rem; color: var(--on-dark-mut); letter-spacing: .02em; }
.microstats b span { font: inherit; color: inherit; letter-spacing: inherit; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #CBD9F5; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); font-size: .95rem; }
.card .card-link {
  margin-top: auto; padding-top: 18px;
  font-weight: 600; font-size: .9rem; color: var(--cobalt-dark);
  text-decoration: none; display: block;
}
.card .card-link::after { content: '\2192'; display: inline-block; margin-left: 7px; transition: transform .25s var(--ease); }
.card:hover .card-link::after { transform: translateX(4px); }

.card--dark {
  background: var(--midnight);
  border-color: rgba(255,255,255,.09);
  box-shadow: none;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-mut); }
.card--dark:hover { border-color: rgba(58,134,255,.45); }

.card-icon {
  width: 50px; height: 50px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--cobalt-soft); color: var(--cobalt-dark);
  flex: none;
}
.card--dark .card-icon { background: rgba(58,134,255,.16); color: #8FBAFF; }
.card--dark .card-link { color: #8FBAFF; }
.card-icon svg { width: 24px; height: 24px; }

/* Ambient card glow. The blur radius is fixed (never animated -- only opacity
   and transform move, so this stays on the compositor and off the paint
   thread). isolation:isolate scopes the pseudo-element's z-index to this card
   alone so it can sit behind the card's own background without depending on
   ancestor stacking contexts. */
.card-glow { position: relative; isolation: isolate; }
.card-glow::before {
  content: '';
  position: absolute; inset: -10px; z-index: -1;
  border-radius: inherit;
  filter: blur(22px);
  opacity: .22;
  transform: scale(.93);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card-glow--yellow::before { background: var(--l-yellow); }
.card-glow--red::before    { background: var(--p-red); }
.card-glow--cobalt::before { background: var(--cobalt); }

@media (prefers-reduced-motion: no-preference) {
  .card-glow::before {
    animation: cardGlowPulse 4s ease-in-out infinite;
    animation-delay: var(--glow-delay, 0s);
  }
}
@keyframes cardGlowPulse {
  0%, 100% { opacity: .2;  transform: scale(.92); }
  50%      { opacity: .46; transform: scale(1.03); }
}
/* On hover the pulse stops and settles into a single intensified glow, rather
   than continuing to breathe. Dropping the animation here lets the transition
   declared above take over smoothly. */
.card-glow:hover::before {
  animation: none;
  opacity: .62;
  transform: scale(1.06);
}

.chip {
  display: inline-block; padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  background: var(--cobalt-soft); color: var(--cobalt-dark);
}
.chip--gold { background: var(--gold-soft); color: #7A5400; }
.chip--dark { background: var(--midnight); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Plate-colour chips for CBT&A (learner, yellow/black) and VORT (P1, red/white).
   Black on --l-yellow is ~14.8:1. White on --p-red-text is ~6.2:1, both comfortably
   past WCAG AA for this chip's small (.72rem) text -- do not swap in the lighter
   --p-red here, it only clears AA at 16px+ semibold. */
.chip--plate-yellow { background: var(--l-yellow); color: var(--l-ink); }
.chip--plate-red    { background: var(--p-red-text); color: var(--p-ink); }

/* Bento */
.bento { display: grid; gap: 20px; grid-template-columns: repeat(12, 1fr); }
.bento > * { grid-column: span 12; }
@media (min-width: 780px) {
  .bento > * { grid-column: span 6; }
  .bento > .bento-wide { grid-column: span 12; }
}
@media (min-width: 1040px) {
  .bento > .bento-wide { grid-column: span 7; }
  .bento > .bento-tall { grid-column: span 5; }
}

/* --------------------------------------------------------------------------
   8. Reviews
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  padding: 10px 17px; border-radius: var(--r-pill);
  border: 1px solid var(--stroke); background: var(--white);
  font-size: .87rem; font-weight: 600; color: var(--ink-muted);
  transition: all .2s var(--ease); min-height: 42px;
}
.filter-btn:hover { border-color: var(--cobalt); color: var(--cobalt-dark); }
.filter-btn[aria-pressed="true"] { background: var(--deep-canvas); border-color: var(--deep-canvas); color: #fff; }

.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.review {
  background: var(--white); border: 1px solid var(--stroke);
  border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.review[hidden] { display: none; }
.review .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.review blockquote { margin: 0; font-size: .96rem; color: var(--ink-muted); line-height: 1.62; }
.review blockquote::before { content: '\201C'; }
.review blockquote::after  { content: '\201D'; }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review .avatar {
  width: 40px; height: 40px; border-radius: var(--r-pill); flex: none;
  background: var(--deep-canvas); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.review .who b { display: block; font-size: .9rem; color: var(--ink); }
.review .who span { font-size: .76rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   9. Booking funnel
   -------------------------------------------------------------------------- */
.booking {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px);
  box-shadow: var(--shadow-float);
  position: relative;
}
.section--dark .booking { border-color: rgba(255,255,255,.14); }

.booking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.booking-head h2,
.booking-head h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 4px; color: var(--ink); }
.booking-head p { font-size: .87rem; color: var(--ink-faint); }
.booking-step-count {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--cobalt-dark); background: var(--cobalt-soft);
  padding: 7px 12px; border-radius: var(--r-pill); white-space: nowrap; flex: none;
}

.progress { height: 8px; border-radius: var(--r-pill); background: #E8EDF6; overflow: hidden; margin-bottom: 26px; }
.progress i {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--cobalt), #6FA8FF);
  border-radius: var(--r-pill);
  transition: width .45s var(--ease);
}

.step { display: none; border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.step > legend, .step .step-q {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); margin-bottom: 4px; padding: 0;
}
.step .step-hint { font-size: .85rem; color: var(--ink-faint); margin-bottom: 16px; }

.opt-list { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.opt-list--2 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 17px; border: 2px solid var(--stroke); border-radius: var(--r-md);
  font-size: .93rem; font-weight: 500; cursor: pointer;
  color: var(--ink); background: #fff;
  transition: all .2s var(--ease); min-height: 56px;
}
.opt span::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 2px solid #C3CDDE; transition: all .2s var(--ease);
}
.opt span:hover { border-color: #B9CDF3; background: #FAFCFF; }
.opt input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); color: var(--cobalt-dark); font-weight: 600; }
.opt input:checked + span::before { border-color: var(--cobalt); border-width: 6px; }
.opt input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.field label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px;
}
.field input[type="text"] {
  width: 100%; padding: 15px 17px; min-height: 56px;
  border: 2px solid var(--stroke); border-radius: var(--r-sm);
  background: var(--ghost); transition: all .2s var(--ease);
}
.field input[type="text"]:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(58,134,255,.14); }

.suburb-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.suburb-hints button {
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--stroke);
  font-size: .8rem; color: var(--ink-muted); background: #fff; transition: all .2s var(--ease);
}
.suburb-hints button:hover { border-color: var(--cobalt); color: var(--cobalt-dark); background: var(--cobalt-soft); }

.booking-nav { display: flex; gap: 12px; margin-top: 26px; }
.booking-nav .btn { flex: 1; }
.booking-back {
  flex: 0 0 auto !important; padding-inline: 20px;
  border: 2px solid var(--stroke); color: var(--ink-muted); background: #fff;
}
.booking-back:hover { border-color: var(--ink-muted); }

.booking-summary {
  background: var(--ghost); border: 1px dashed var(--stroke);
  border-radius: var(--r-md); padding: 18px; margin-bottom: 20px;
  font-size: .89rem;
}
.booking-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.booking-summary dt { color: var(--ink-faint); font-size: .82rem; }
.booking-summary dd { margin: 0; font-weight: 600; color: var(--ink); }

.booking-fallback { margin-top: 16px; font-size: .84rem; color: var(--ink-faint); text-align: center; }
.booking-fallback a { font-weight: 600; }

.form-error { color: #B91C1C; font-size: .85rem; margin-top: 10px; font-weight: 500; }
.form-error[hidden] { display: none; }

/* --------------------------------------------------------------------------
   10. Instructor
   -------------------------------------------------------------------------- */
.instructor { display: grid; gap: clamp(30px, 4.5vw, 56px); grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: start; }
@media (max-width: 900px) { .instructor { grid-template-columns: 1fr; } }

.photo-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, var(--midnight), var(--deep-canvas));
  border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center; padding: 28px;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-frame .ph-note { color: #8493B0; font-size: .82rem; line-height: 1.6; max-width: 26ch; }
.photo-frame .ph-note b { display: block; color: #C6D0E4; font-family: var(--font-display); font-size: .95rem; margin-bottom: 6px; }
.photo-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,19,43,.55), transparent 45%);
}
.photo-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  color: #fff; font-size: .85rem;
}
.photo-caption b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.photo-caption span { color: var(--gold); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.photo-strip > div {
  aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
  background: var(--midnight); border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; color: #64748B; font-size: .7rem; text-align: center; padding: 8px;
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

.cred-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 26px; }
.cred-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; }
.cred-list .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 1px;
  background: rgba(37,211,102,.16); color: #0E9F4F;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.section--dark .cred-list .tick { background: rgba(37,211,102,.2); color: var(--whatsapp); }
.section--dark .cred-list li { color: var(--on-dark-mut); }
.section--dark .cred-list b { color: #fff; }

/* --------------------------------------------------------------------------
   11. Pricing
   -------------------------------------------------------------------------- */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card {
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.price-card.is-featured { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(58,134,255,.14), var(--shadow-soft); }
.price-card .pc-flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--gold); color: #33260B; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill);
}
.price-card h3 { font-size: 1.08rem; }
.price-card .pc-dur { font-size: .8rem; color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.price-card .pc-amt {
  font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; color: var(--deep-canvas);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.price-card .pc-amt small { font-size: .8rem; font-weight: 600; color: var(--ink-faint); letter-spacing: .04em; }
.price-card p { font-size: .89rem; color: var(--ink-muted); }
.price-card .btn { margin-top: auto; }

.price-note {
  margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--gold-soft); border: 1px solid #FFE7A8;
  font-size: .89rem; color: #6B4A00;
}

/* Plate-colour rule above each pricing group heading, matching the chips. */
.pricing-group h2::before {
  content: ''; display: block; width: 56px; height: 5px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.pricing-group--yellow h2::before { background: var(--l-yellow); }
.pricing-group--red h2::before    { background: var(--p-red); }

/* --------------------------------------------------------------------------
   12. FAQ / accordion
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: #C6D8FA; box-shadow: var(--shadow-soft); }
.faq summary {
  padding: 19px 54px 19px 22px; cursor: pointer; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--cobalt); line-height: 1;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 22px 22px; color: var(--ink-muted); font-size: .95rem; }
.faq .faq-body > * + * { margin-top: 12px; }

/* --------------------------------------------------------------------------
   13. Areas
   -------------------------------------------------------------------------- */
.area-block { background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-soft); }
.area-block h3 { margin-bottom: 6px; }
.area-block p { font-size: .9rem; color: var(--ink-muted); margin-bottom: 16px; }
.suburb-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.suburb-list li {
  font-size: .82rem; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--ghost); border: 1px solid var(--stroke); color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   14. Steps / process
   -------------------------------------------------------------------------- */
.steps { list-style: none; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start;
  counter-increment: s;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  background: var(--cobalt-soft); color: var(--cobalt-dark);
}
.section--dark .steps li::before { background: rgba(58,134,255,.18); color: #8FBAFF; }
.steps h3 { font-size: 1.06rem; margin-bottom: 4px; }
.steps p { font-size: .93rem; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--midnight), var(--deep-canvas) 65%);
  border-radius: var(--r-xl); padding: clamp(34px, 5vw, 60px);
  color: #fff; position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 340px at 88% 8%, rgba(37,211,102,.2), transparent 62%),
              radial-gradient(560px 320px at 5% 100%, rgba(58,134,255,.24), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #C0CBE0; max-width: 56ch; margin-bottom: 26px; }

/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs { padding-top: 22px; padding-bottom: 6px; }
.page-hero .crumbs { margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; }
.crumbs li::after { content: '/'; margin-left: 8px; color: #94A3B8; }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt-dark); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* Page hero for interior pages */
.page-hero { background: var(--deep-canvas); color: #fff; padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 84px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 420px at 10% -10%, rgba(58,134,255,.26), transparent 60%),
              radial-gradient(620px 380px at 92% 10%, rgba(255,183,3,.11), transparent 60%);
}
.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lede { color: #C6D0E4; }
.page-hero .crumbs a { color: #94A3B8; }
.page-hero .crumbs [aria-current] { color: #E2E8F0; }
.page-hero .crumbs li::after { color: #64748B; }

/* --------------------------------------------------------------------------
   16b. Marquee (service page keyword strip)
   Decorative reinforcement of copy that already exists in the page body --
   see aria-hidden below. Duplicated track + translate(-50%) is the only way
   to loop a marquee with no visible seam.
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  height: clamp(44px, 5vw, 52px);
  display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee--plate-yellow { background: var(--l-yellow); color: var(--l-ink); }
.marquee--plate-red    { background: var(--p-red-text); color: var(--p-ink); }
.marquee--cobalt       { background: var(--cobalt-dark); color: #fff; }

.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-set {
  display: flex; align-items: center; flex: none;
  padding-inline: 12px;
  font-family: var(--font-body);
  font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  white-space: nowrap;
}
.marquee-set > span { padding-inline: 2px; }
.marquee-dot { opacity: .45; font-size: .55rem; padding-inline: 12px !important; }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marqueeScroll 38s linear infinite; }
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   17. Prose
   -------------------------------------------------------------------------- */
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose li { color: var(--ink-muted); }
.prose p { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--deep-canvas); color: var(--on-dark-mut); padding-block: clamp(48px, 6vw, 76px) 30px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-mut); text-decoration: none; font-size: .9rem; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: .9rem; }

.footer-brand .brand { margin-bottom: 16px; }
.footer-contact { display: grid; gap: 10px; margin-top: 18px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; color: #fff; }

.acknowledgement {
  margin-top: 42px; padding: 22px 24px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem; line-height: 1.65; color: #97A4BC;
}
.acknowledgement b { color: #C6D0E4; display: block; margin-bottom: 6px; font-family: var(--font-display); }

.footer-base {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: #7A889F;
}

/* --------------------------------------------------------------------------
   19. Sticky mobile action bar
   -------------------------------------------------------------------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,19,43,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--stroke-dark);
}
.action-bar .btn { flex: 1; min-height: 50px; padding-inline: 12px; font-size: .9rem; }
@media (max-width: 760px) {
  .action-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* --------------------------------------------------------------------------
   20. Preloader + reveal
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--deep-canvas);
  display: grid; place-items: center;
  transition: clip-path .85s var(--ease-swift), opacity .3s ease .6s;
  clip-path: inset(0 0 0 0);
}
#preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
#preloader .pl-inner { text-align: center; }
#preloader img { width: 84px; height: 84px; margin: 0 auto 20px; animation: plPop .7s var(--ease) both; }
#preloader .pl-name {
  font-family: var(--font-display); font-weight: 800; font-size: .92rem; color: #fff;
  text-transform: uppercase; letter-spacing: -1px;
  animation: plSpread .9s var(--ease) .15s both;
}
#preloader .pl-sub { font-size: .72rem; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; opacity: 0; animation: fadeIn .5s ease .6s both; }
@keyframes plPop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes plSpread { from { opacity: 0; letter-spacing: -1px; } to { opacity: 1; letter-spacing: 3px; } }
@keyframes fadeIn { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.center { text-align: center; }
.tabnum { font-variant-numeric: tabular-nums; }
