/*
 * steerdriving.co.nz home page. Loaded on the home page only, after
 * site.css, so the inner pages keep their own look. Light and spacious by default, with the
 * brand's ink and red used for emphasis; follows the device's dark mode through site.css's tokens.
 */
:root { --x-pad:clamp(4.5rem, 9vw, 7.5rem); --x-r:20px; --x-ink:#0b0b0c; }

/* ── Hero: the photo fills the screen, the words sit on it ─────────────── */
.h-hero { position:relative; isolation:isolate; overflow:hidden; background:var(--x-ink); color:#fff; }
.h-hero-bg img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:62% 38%; }
.h-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:
    linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.8) 36%, rgba(11,11,12,.28) 68%, rgba(11,11,12,.4) 100%),
    linear-gradient(0deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,0) 42%); }
.h-hero-in { display:grid; gap:2.5rem; align-items:end; padding-top:clamp(3.5rem, 8vw, 7rem); padding-bottom:clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 62rem) { .h-hero-in { grid-template-columns:minmax(0, 1.45fr) minmax(0, .75fr); gap:3rem; min-height:min(72vh, 42rem); } .h-hero h1 { font-size:clamp(2.5rem, 5.1vw, 4.4rem); } .h-hero h1 span { white-space:nowrap; } }
.h-pill { display:inline-flex; align-items:center; gap:.6rem; margin:0 0 1.8rem; padding:.5rem 1.05rem .5rem .85rem; border:1px solid rgba(255,255,255,.22); border-radius:999px; background:rgba(255,255,255,.07); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); font:700 .76rem/1 var(--head); letter-spacing:.16em; text-transform:uppercase; color:#fff; }
.x-dot { width:.55rem; height:.55rem; border-radius:50%; background:var(--red); box-shadow:0 0 0 4px rgba(212,43,34,.25); animation:x-pulse 2.4s ease-in-out infinite; }
@keyframes x-pulse { 50% { box-shadow:0 0 0 9px rgba(212,43,34,0); } }
.h-hero h1 { color:#fff; font-size:clamp(1.9rem, 8.3vw, 3.6rem); line-height:1; letter-spacing:-.04em; font-weight:800; margin:0 0 1.5rem; }
.h-hero h1 small { display:block; font:700 clamp(.8rem, 1.1vw, .92rem)/1.3 var(--head); letter-spacing:.2em; text-transform:uppercase; color:#d9d5d9; margin:0 0 1.1rem; max-width:none; }
.h-hero h1 small::before { content:""; display:inline-block; width:1.8rem; height:3px; border-radius:2px; background:var(--red); vertical-align:middle; margin:-.15rem .75rem 0 0; }
.h-hero h1 span { color:#ff4a3f; display:block; }
.h-lead { font-size:clamp(1.15rem, 1.7vw, 1.4rem); line-height:1.5; color:#eeeaee; max-width:33rem; margin:0 0 2.2rem; }
.h-actions { display:flex; flex-wrap:wrap; gap:.9rem; margin:0 0 2.6rem; }
.h-actions .btn + .btn { margin:0; }
.h-trust { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:1rem 2.5rem; }
.h-trust li { display:flex; gap:.7rem; align-items:flex-start; font-size:.92rem; color:#bdb7bd; line-height:1.4; }
.h-trust b { display:block; color:#fff; font:700 .98rem/1.3 var(--head); margin-bottom:.1rem; }
.h-trust .ic { width:26px; height:26px; color:#fff; }

/* On a phone the photo sits across the top and fades into the dark behind the words. */
@media (max-width: 61.99rem) {
  .h-hero-bg img { bottom:auto; height:20rem; object-position:50% 42%; }
  .h-hero::before { background:linear-gradient(180deg, rgba(11,11,12,.2) 0, rgba(11,11,12,.5) 8.5rem, rgba(11,11,12,1) 19.5rem); }
  .h-hero-in { padding-top:11rem; }
}

/* The learner licence period, drawn as two bars */
.h-law { background:rgba(11,11,12,.66); -webkit-backdrop-filter:blur(14px) saturate(1.3); backdrop-filter:blur(14px) saturate(1.3); border:1px solid rgba(255,255,255,.14); border-top:3px solid var(--red); border-radius:var(--x-r); padding:1.6rem 1.7rem 1.5rem; box-shadow:0 30px 60px -30px rgba(0,0,0,.8); max-width:27rem; justify-self:end; width:100%; }
.h-law-k { font:700 .72rem var(--head); letter-spacing:.18em; text-transform:uppercase; color:#ff8a82; margin:0 0 1.2rem; }
.h-bars { margin:0 0 1.2rem; display:grid; gap:1.05rem; }
.h-bars dt { font-size:.92rem; color:#cfcacf; margin:0 0 .4rem; }
.h-bars dd { margin:0; display:grid; grid-template-columns:minmax(0, 1fr) 7.2rem; align-items:center; gap:.9rem; }
.h-bars b { font:800 1.35rem/1 var(--head); letter-spacing:-.02em; color:#fff; white-space:nowrap; }
.h-bar { display:block; height:.7rem; border-radius:999px; background:rgba(255,255,255,.3); }
.h-bar-6 { width:50%; background:var(--red); box-shadow:0 0 18px rgba(212,43,34,.55); }
.h-law-t { margin:0; padding-top:1.1rem; border-top:1px solid rgba(255,255,255,.12); font-size:.98rem; line-height:1.5; color:#e6e1e6; }
@media (max-width: 61.99rem) { .h-law { justify-self:start; } }

/* At a glance, along the foot of the hero */
.h-facts { border-top:1px solid rgba(255,255,255,.12); background:rgba(11,11,12,.55); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.h-facts ul { list-style:none; margin:0 auto; display:grid; grid-template-columns:repeat(2, 1fr); }
@media (min-width: 48rem) { .h-facts ul { grid-template-columns:repeat(4, 1fr); } }
.h-facts li { padding:1.5rem 1rem 1.5rem 0; display:flex; align-items:baseline; gap:.8rem; }
@media (min-width: 48rem) { .h-facts li { padding:1.9rem 1.5rem; border-right:1px solid rgba(255,255,255,.1); } .h-facts li:first-child { padding-left:0; } .h-facts li:last-child { border-right:0; } }
.h-facts strong { font:800 clamp(1.9rem, 3.2vw, 2.6rem)/1 var(--head); letter-spacing:-.03em; color:#fff; }
.h-facts span { font-size:.95rem; color:#cfcacf; line-height:1.3; }

/* Three ways in */
.h-paths { background:var(--warm); border-bottom:1px solid var(--line); padding:1.5rem 0; }
.h-paths .wide { display:grid; gap:.9rem; }
@media (min-width: 56rem) { .h-paths .wide { grid-template-columns:repeat(3, 1fr); } }
.h-path { display:flex; align-items:center; gap:1rem; padding:1.15rem 1.3rem; border-radius:16px; background:var(--bg); border:1px solid var(--line); text-decoration:none; color:var(--fg); transition:border-color .2s, transform .2s, box-shadow .2s; }
.h-path:hover { border-color:var(--red); transform:translateY(-2px); box-shadow:0 16px 30px -22px rgba(11,11,12,.45); }
.h-path > .ic:first-child { width:44px; height:44px; padding:9px; border-radius:12px; background:var(--warm); }
.h-path span { font-size:.93rem; color:var(--muted); line-height:1.35; }
.h-path b { display:block; font:800 1.08rem/1.3 var(--head); color:var(--fg); }
.h-path > .ic:last-child { margin-left:auto; width:20px; height:20px; color:var(--red); stroke-width:2.2; transition:transform .2s; }
.h-path:hover > .ic:last-child { transform:translateX(4px); }

/* What you need before you start */
.h-need { margin-top:clamp(2.5rem, 5vw, 4rem); padding-top:clamp(2rem, 4vw, 3rem); border-top:1px solid var(--line); }
.h-need h3 { font-size:clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing:-.015em; margin:0 0 1.5rem; }
.h-need ul { list-style:none; margin:0; padding:0; display:grid; gap:1rem; }
@media (min-width: 40rem) { .h-need ul { grid-template-columns:1fr 1fr; } }
@media (min-width: 68rem) { .h-need ul { grid-template-columns:repeat(4, 1fr); } }
.h-need li { background:var(--warm); border:1px solid var(--line); border-radius:var(--x-r); padding:1.5rem 1.4rem; }
.h-need .ic { width:34px; height:34px; margin-bottom:.9rem; }
.h-need p { margin:0; color:var(--fg-2); font-size:1rem; line-height:1.55; }

/* Parents and supervisors */
.h-sup { display:grid; gap:2.5rem 4.5rem; align-items:center; }
@media (min-width: 62rem) { .h-sup { grid-template-columns:.85fr 1.15fr; } }
.h-sup-photo { margin:0; position:relative; }
.h-sup-photo img { display:block; width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:var(--x-r); box-shadow:0 30px 60px -28px rgba(11,11,12,.5); }
.h-sup-photo::after { content:""; position:absolute; left:-1rem; bottom:2.5rem; width:6px; height:9rem; border-radius:3px; background:repeating-linear-gradient(0deg, var(--red) 0 1.6rem, transparent 1.6rem 2.5rem); }
@media (max-width: 61.99rem) { .h-sup-photo img { aspect-ratio:16/10; } .h-sup-photo::after { display:none; } }
.h-qa { margin:1.8rem 0; display:grid; gap:0; border-top:1px solid var(--line); }
.h-qa > div { padding:1.4rem 0; border-bottom:1px solid var(--line); }
.h-qa dt { display:flex; align-items:center; gap:.8rem; font:800 1.12rem/1.3 var(--head); color:var(--fg); margin:0 0 .5rem; }
.h-qa dt .ic { width:26px; height:26px; }
.h-qa dd { margin:0 0 0 calc(26px + .8rem); color:var(--fg-2); line-height:1.6; }
@media (max-width: 30rem) { .h-qa dd { margin-left:0; } }


/* Schools and groups */
.h-groups { background:var(--x-ink); color:#fff; padding:clamp(3rem, 6vw, 4.5rem) 0; position:relative; isolation:isolate; overflow:hidden; }
.h-groups::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(46rem 22rem at 100% 100%, rgba(212,43,34,.3), transparent 62%); }
.h-groups::after { content:""; position:absolute; left:0; right:0; top:0; height:4px; background:repeating-linear-gradient(90deg, var(--red) 0 2.4rem, transparent 2.4rem 3.6rem); }
.h-groups .wide { display:grid; gap:1.25rem 3rem; align-items:center; }
@media (min-width: 62rem) { .h-groups .wide { grid-template-columns:minmax(0, 1fr) auto; } }
.h-groups h2 { color:#fff; font-size:clamp(1.7rem, 3vw, 2.4rem); letter-spacing:-.025em; margin:0; }
.h-groups .kicker { color:#bdb7bd; font-size:.72rem; }
.h-groups-act .btn { font-size:.95rem; }
.h-groups p { margin:0; color:#d8d3d8; font-size:1.1rem; }
.h-groups h2 + p { margin-top:.8rem; }
.h-groups-act { display:flex; flex-wrap:wrap; gap:.75rem; }
.h-groups-act .btn + .btn { margin:0; }
.h-groups-act .btn .ic { width:20px; height:20px; stroke-width:1.8; }
.h-groups-act .btn:hover .ic { transform:none; }

/* Register: the promise beside the form */
.h-promise { list-style:none; margin:2rem 0; padding:0; display:grid; gap:.8rem; }
.h-promise li { display:flex; gap:.8rem; align-items:flex-start; color:var(--fg-2); line-height:1.5; }
.h-promise .ic { width:24px; height:24px; margin-top:.05rem; }
.h-promise .ic .a { stroke:var(--ok); }

/* ── Bands ───────────────────────────────────────────────────────────── */
.x-band { padding:var(--x-pad) 0; background:var(--bg); }
.x-warm { background:var(--warm); }
.x-band h2 { font-size:clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing:-.025em; line-height:1.08; }
.x-intro { max-width:30rem; }
.x-intro-wide { max-width:44rem; margin-bottom:3rem; }
.x-sub { font-size:1.18rem; line-height:1.6; color:var(--fg-2); margin:0; }
.x-two { display:grid; gap:2.5rem 4rem; align-items:start; }
@media (min-width: 62rem) { .x-two { grid-template-columns:.9fr 1.1fr; } }

/* Who is it for */
.x-cards2 { display:grid; gap:1.25rem; }
@media (min-width: 40rem) { .x-cards2 { grid-template-columns:1fr 1fr; } }
.x-card { border:1px solid var(--line); border-radius:var(--x-r); padding:2rem 1.8rem; background:var(--bg); font-size:1.05rem; line-height:1.6; color:var(--fg-2); }
.x-card p:last-child { margin:0; }
.x-card-k { font:800 1.35rem var(--head); color:var(--fg); letter-spacing:-.01em; margin:0 0 .8rem !important; }
.x-card-dark { background:var(--x-ink); border-color:var(--x-ink); color:#d8d3d8; }
.x-card-dark .x-card-k { color:#fff; }
.x-card-dark .x-card-k::after { content:""; display:block; width:2rem; height:3px; background:var(--red); border-radius:2px; margin-top:.7rem; }

/* How it works: four cards */
.x-steps { list-style:none; margin:0; padding:0; display:grid; gap:1.25rem; counter-reset:x; }
@media (min-width: 40rem) { .x-steps { grid-template-columns:1fr 1fr; } }
@media (min-width: 62rem) { .x-steps { grid-template-columns:repeat(4, 1fr); } }
.x-step { counter-increment:x; background:var(--bg); border:1px solid var(--line); border-radius:var(--x-r); overflow:hidden; display:flex; flex-direction:column; transition:transform .25s, box-shadow .25s; }
.x-step:hover { transform:translateY(-4px); box-shadow:0 22px 40px -24px rgba(11,11,12,.35); }
.x-step-media { aspect-ratio:4/3; overflow:hidden; background:var(--warm-2); position:relative; }
.x-step-media img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .6s; }
.x-step:hover .x-step-media img { transform:scale(1.04); }
.x-step-media::after { content:counter(x, decimal-leading-zero); position:absolute; top:.9rem; left:.9rem; font:800 .78rem var(--head); letter-spacing:.08em; color:#fff; background:rgba(11,11,12,.72); border-radius:999px; padding:.35rem .65rem; }
.x-step-icon { display:flex; align-items:center; justify-content:center; background:var(--x-ink); }
.x-step-icon .ic { width:72px; height:72px; color:#fff; stroke-width:1.1; }
.x-step-body { padding:1.4rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.x-step-n { font:700 .72rem var(--head); letter-spacing:.18em; text-transform:uppercase; color:var(--accent); margin:0 0 .5rem; }
.x-step h3 { margin:0 0 .6rem; font-size:1.18rem; }
.x-step-body > p:not(.x-step-n):not(.x-time) { color:var(--fg-2); font-size:.98rem; line-height:1.55; }
.x-time { margin:auto 0 0; padding-top:.8rem; border-top:1px solid var(--line); display:flex; align-items:center; gap:.45rem; font:700 .88rem var(--head); color:var(--fg); }
.x-time .ic { width:18px; height:18px; }
.x-between { display:flex; gap:1rem; align-items:flex-start; margin:2rem 0 0; padding:1.4rem 1.6rem; border-radius:var(--x-r); background:var(--bg); border:1px solid var(--line); }
.x-between p { margin:0; color:var(--fg-2); }
.x-between b { color:var(--fg); }
.x-note { margin:1.5rem 0 0; color:var(--muted); font-size:.98rem; max-width:52rem; }
.x-all { margin-top:2rem; border-top:1px solid var(--line); }
.x-all summary { cursor:pointer; list-style:none; padding:1.2rem 0; font:700 1rem var(--head); color:var(--fg); display:flex; align-items:center; gap:.6rem; }
.x-all summary::-webkit-details-marker { display:none; }
.x-all summary::after { content:"+"; margin-left:auto; font-size:1.4rem; line-height:1; color:var(--red); transition:transform .2s; }
.x-all[open] summary::after { transform:rotate(45deg); }

/* Completion */
.x-quote { margin:2rem 0 0; padding:0 0 0 1.4rem; border-left:3px solid var(--red); }
.x-quote p { font:700 clamp(1.2rem, 2vw, 1.45rem)/1.4 var(--head); color:var(--fg); letter-spacing:-.01em; margin:0; }
.x-gates { list-style:none; margin:0; padding:0; display:grid; gap:0; border-top:1px solid var(--line); }
.x-gates li { display:flex; gap:1.2rem; align-items:center; padding:1.4rem 0; border-bottom:1px solid var(--line); }
.x-gates .ic { width:40px; height:40px; padding:9px; box-sizing:content-box; border-radius:50%; background:var(--warm); }
.x-gates p { margin:0; font-size:1.08rem; color:var(--fg); }

/* Register */
.x-reg { display:grid; gap:3rem 4rem; align-items:start; }
@media (min-width: 62rem) { .x-reg { grid-template-columns:1fr 1fr; } }
.x-form { background:var(--bg); border:1px solid var(--line); border-radius:24px; padding:clamp(1.6rem, 4vw, 2.6rem); box-shadow:0 30px 60px -35px rgba(11,11,12,.35); }
.x-form-h { margin:0 0 1.2rem; font-size:1.35rem; }
.x-row { display:grid; gap:0 1rem; }
@media (min-width: 30rem) { .x-row { grid-template-columns:1fr 1fr; } }
.x-thanks { text-align:left; }
.x-thanks > .ic { width:52px; height:52px; color:var(--ok); }
.x-thanks h3 { font-size:1.5rem; margin:1rem 0 .5rem; }

/* Gentle reveal as sections scroll in (browsers that support it; none for reduced motion) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .x-step, .x-card, .x-gates li, .x-towns li, .x-between, .h-need li, .h-qa > div { animation:x-rise linear both; animation-timeline:view(); animation-range:entry 0% entry 40%; }
    @keyframes x-rise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
  }
}
@media (prefers-reduced-motion: reduce) { .x-dot { animation:none; } .x-step:hover, .x-towns a:hover, .h-path:hover { transform:none; } }
@media (max-width: 39.99rem) { .x-step-icon { aspect-ratio:16/7; } .x-step-media:not(.x-step-icon) { aspect-ratio:16/10; } }
