/* ==========================================================================
   GVI Nissan Leaf Service — shared stylesheet
   Design language shared with teslaserviceauckland.co.nz (sister site)
   ========================================================================== */

:root {
  --red: #e01b2e;
  --red-dark: #b31423;
  --ink: #16181c;
  --ink-soft: #2a2e33;
  --yellow: #ffc60b;
  --bg: #f7f5f2;
  --card: #ffffff;
  --card-alt: #faf9f7;
  --field: #fbfaf9;
  --border: #e6e2dd;
  --border-strong: #d9d4ce;
  --muted: #6b7076;
  --muted-strong: #4a4f55;
  --footer-bg: #0f1114;
  --maxw: 1200px;
  --sans: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
  --ease: cubic-bezier(.22, 1, .36, 1);      /* one easing curve site-wide: fast out, soft landing */
  --hdr-h: 73px;
  --hdr-h-scrolled: 58px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, iframe, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

*:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

section { padding-top: clamp(44px, 7vw, 80px); padding-bottom: clamp(44px, 7vw, 80px); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(26px, 6.1vw, 44px); margin: 0; }
.section-head p { font-size: 17px; color: var(--muted-strong); max-width: 36ch; margin: 0; }

.lead { font-size: 19px; line-height: 1.6; color: var(--muted-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  position: relative; overflow: hidden; isolation: isolate;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition: background .2s ease, border-color .2s ease, color .2s ease,
              box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn:active { --s: .97; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Utility bar ---------- */
.utilbar { background: var(--ink); color: #fff; font-size: 13px; }
.utilbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between; align-items: center;
  padding-top: 9px; padding-bottom: 9px;
}
.utilbar .muted { opacity: 0.72; }
.utilbar .contacts { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.utilbar a { color: var(--yellow); font-weight: 600; }
.utilbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
  height: var(--hdr-h);
  transition: height .35s var(--ease), margin-bottom .35s var(--ease),
              background .3s ease, box-shadow .35s ease, border-color .3s ease;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 48px; width: auto; display: block; transition: height .35s var(--ease); }
.brand .brand-text {
  display: flex; flex-direction: column; line-height: 1.05;
  border-left: 1px solid var(--border-strong); padding-left: 12px;
}
.brand .brand-name { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand .brand-sub { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }

.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd > .dd-menu {
  position: absolute; top: 100%; left: -14px; padding-top: 12px;
  flex-direction: column; min-width: 230px; display: none;
}
.nav-dd:hover > .dd-menu, .nav-dd:focus-within > .dd-menu { display: flex; }
.dd-menu-inner {
  display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(22,24,28,0.13); padding: 10px;
}
.dd-menu-inner a {
  padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500;
  white-space: nowrap; color: var(--ink);
}
.dd-menu-inner a:hover { background: var(--bg); color: var(--red); }
.dd-sep { height: 1px; background: var(--border); margin: 6px 8px; }
.nav-dd > .dd-menu.dd-wide { min-width: 700px; max-width: calc(100vw - 24px); left: auto; right: -14px; }
@media (max-width: 1150px) {
  .nav-dd > .dd-menu.dd-wide { min-width: 470px; }
  .dd-menu.dd-wide .dd-menu-inner.dd-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dd-menu-inner.dd-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 12px; padding: 12px 10px; }
.dd-col { display: flex; flex-direction: column; gap: 2px; }
.dd-col-label {
  padding: 4px 14px 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8a8f95;
}
.dd-col + .dd-col .dd-col-label { padding-top: 4px; }
.dd-foot {
  grid-column: 1 / -1; display: flex; margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.dd-foot a { font-weight: 600; }

.nav-cta {
  background: var(--red); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  position: relative; overflow: hidden; isolation: isolate;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--s, 1));
  transition: background .2s ease, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.nav-cta:hover { background: var(--red-dark); box-shadow: 0 8px 22px -8px rgba(224,27,46,.55); }
.nav-cta:active { --s: .97; }

/* mobile menu */
.mobmenu { display: none; position: relative; }
.mobmenu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; color: var(--ink);
}
.mobmenu summary::-webkit-details-marker { display: none; }
.mobmenu[open] > .mobmenu-panel { display: flex; }
.mobmenu-panel {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; right: 0; margin-top: 10px; z-index: 40;
  min-width: 250px; max-height: 76vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(22,24,28,0.18); padding: 10px;
}
.mobmenu-panel a {
  padding: 11px 14px; border-radius: 8px; color: var(--ink);
  font-size: 15px; font-weight: 500; min-height: 44px; display: flex; align-items: center;
}
.mobmenu-panel a:hover { background: var(--bg); }
.mobmenu-label {
  padding: 10px 14px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8a8f95;
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(224,27,46,0.22), transparent 60%),
    radial-gradient(760px 520px at 100% 120%, rgba(255,198,11,0.12), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: start;
  padding-top: clamp(44px, 7vw, 66px); padding-bottom: clamp(48px, 8vw, 76px);
}
.hero.hero-slim .wrap {
  grid-template-columns: 1fr; gap: 22px;
  padding-bottom: clamp(38px, 5vw, 54px);
}
.hero.hero-slim .hero-copy { max-width: 48ch; }

/* Photo hero with vignette */
.hero.hero-photo { background: var(--ink) center 62% / cover no-repeat; }
.hero.hero-photo::before {
  background:
    radial-gradient(120% 105% at 62% 42%, transparent 8%, rgba(9,11,14,0.42) 48%, rgba(9,11,14,0.9) 100%),
    linear-gradient(100deg, rgba(9,11,14,0.9) 0%, rgba(9,11,14,0.62) 42%, rgba(9,11,14,0.2) 78%);
}
.hero.hero-photo .hero-sub { color: rgba(255,255,255,0.85); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-top: 10px; }
.hero .tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,198,11,0.14); border: 1px solid rgba(255,198,11,0.35);
  color: var(--yellow); padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: clamp(38px, 8.6vw, 64px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; }
.hero .hero-sub { font-size: 20px; line-height: 1.5; color: rgba(255,255,255,0.78); max-width: 34ch; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.chip-cta {
  background: var(--red); border-color: var(--red); color: #fff;
  padding: 12px 20px; font-size: 15px; font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.chip-cta:hover { background: var(--red-dark); border-color: var(--red-dark); }
.chip-cta a { text-decoration: none; }
.chip-cta-alt { background: rgba(9,11,14,0.72); border-color: rgba(255,255,255,0.45); padding: 12px 20px; font-size: 15px; font-weight: 700; }
.chip-cta-alt:hover { background: rgba(9,11,14,0.88); border-color: rgba(255,255,255,0.65); }
.chip-cta-alt a { text-decoration: none; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.3); margin-top: 4px;
}
.trust-card {
  background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 22px;
  display: flex; gap: 20px; align-items: center;
}
.trust-card .rating { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.trust-card .rating-sub { font-size: 13px; color: var(--muted); }
.trust-badges {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border-radius: 14px; padding: 16px 22px;
}
.trust-badges .badge {
  display: block; height: 54px; width: auto; object-fit: contain;
}

/* ---------- Booking form card ---------- */
.book-card {
  background: #fff; border-radius: 20px; padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4); color: var(--ink);
  position: relative; isolation: isolate;
}
.book-card h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.book-card .form-intro { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; }
.book-form { display: flex; flex-direction: column; gap: 14px; }
.book-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted-strong); }
.book-form input, .book-form select, .book-form textarea {
  width: 100%; min-width: 0;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; background: var(--field);
  font-family: var(--sans); color: var(--ink); min-height: 44px;
}
.book-form textarea { resize: vertical; min-height: 84px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.book-form button { margin-top: 4px; width: 100%; }
.form-fineprint { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8a8f95; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Generic content ---------- */
.band { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: rgba(255,255,255,0.82); }
.band-ink a { color: var(--yellow); }

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(24px, 5vw, 34px); margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; margin-bottom: 0.4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--red); }

/* ---------- Card grids ---------- */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink);
  position: relative; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .25s ease;
}
.card h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.5; color: var(--muted-strong); margin: 0; }
.card .more {
  margin-top: auto; font-size: 13px; font-weight: 700; color: var(--red);
  transition: transform .35s var(--ease);
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature { border-left: 3px solid var(--yellow); padding-left: 14px; display: flex; flex-direction: column; gap: 5px; }
.feature b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.feature span { font-size: 14.5px; line-height: 1.5; color: var(--muted-strong); }
.band-ink .feature span { color: rgba(255,255,255,0.72); }

/* ---------- Generations ---------- */
.gen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.gen {
  background: var(--card-alt); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  position: relative; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .25s ease;
}
.gen-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1b1e23, #2b3039);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--display); font-weight: 800; font-size: 13px;
  line-height: 1.35; letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.gen-media { overflow: hidden; }
.gen-media img, .gen-media > span { transition: transform .9s var(--ease); }
.gen-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gen-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.gen-link {
  margin-top: auto; padding-top: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
/* whole tile is the link: the arrow link stretches over the card so a tap or click anywhere opens the page */
.gen { cursor: pointer; }
.gen-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gen-link:focus-visible { outline: none; }
.gen:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.gen:hover .gen-link { color: var(--red-dark); }
.gen .code { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.gen h3 { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0; }
.gen p { font-size: 14.5px; line-height: 1.55; color: var(--muted-strong); margin: 0; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 36px; }
.stars { color: var(--yellow); letter-spacing: 0.12em; font-size: 17px; }
.reviews-head a { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.google-reviews-logo { display: block; width: auto; height: 62px; }

/* ---------- Draft review markers (delete with the banner when signed off) ---------- */
.draft-note {
  background: var(--yellow); color: #1b1e23;
  font-size: 14px; padding: 10px 0;
}
.draft-note .wrap { display: block; }
.verify {
  background: var(--yellow); color: #1b1e23;
  box-shadow: 0 0 0 2px var(--yellow); border-radius: 2px;
}
.review-scroller {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 0 22px; margin-top: -8px; align-items: stretch;   /* room for hover lift + shadow */
}
.review-scroller::-webkit-scrollbar { height: 6px; }
.review-scroller::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.review {
  flex: 0 0 420px; max-width: 88vw; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 30px; margin: 0; display: flex; flex-direction: column; gap: 16px;
  position: relative; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .25s ease;
}
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.review figcaption { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: auto; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.hours-row {
  display: flex; justify-content: space-between; font-size: 16px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.28);
}
.hours-row .closed { color: rgba(255,255,255,0.5); }
.hours-row .open { color: rgba(255,255,255,0.78); }
.hours-label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--yellow); }

.map-embed {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border); line-height: 0;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(1.03); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media {
  border-radius: 20px; overflow: hidden; min-height: 260px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-family: var(--display); font-weight: 800;
}
.split-media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--ink); color: #fff; text-align: center; }
.cta-strip h2 { font-size: clamp(26px, 6vw, 42px); margin: 0 0 14px; }
.cta-strip p { color: rgba(255,255,255,0.78); max-width: 52ch; margin: 0 auto 24px; font-size: 18px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-strip .book-card { max-width: 620px; margin: 40px auto 0; text-align: left; }
.cta-strip .book-card h2 { font-size: 24px; }
.cta-strip .book-card p { color: var(--muted); max-width: none; margin: 0 0 16px; font-size: 14px; }
.cta-strip .book-card .form-fineprint { color: #8a8f95; font-size: 12.5px; text-align: center; margin: 0; }

/* Photo behind a CTA / booking strip */
.cta-strip.cta-photo { position: relative; isolation: isolate; background: var(--ink) center 58% / cover no-repeat; }
.cta-strip.cta-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 100% at 50% 30%, rgba(9,11,14,0.55) 0%, rgba(9,11,14,0.82) 60%, rgba(9,11,14,0.94) 100%);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.55); font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-family: var(--display); font-weight: 800; font-size: 15px; color: #fff; margin: 0 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.footer-brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between;
}
.footer-bottom span { max-width: 56ch; line-height: 1.5; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 60vh; display: flex; align-items: center; }
.thanks .wrap { text-align: center; max-width: 620px; }
.thanks h1 { font-size: clamp(32px, 7vw, 52px); }

/* ==========================================================================
   Motion
   One easing curve (--ease), 300-900 ms, transform + opacity only.
   Hover effects are fine-pointer only; everything switches off under
   prefers-reduced-motion (see bottom of file).
   ========================================================================== */
@keyframes rise    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes show    { to { visibility: visible; } }
@keyframes vt-in   { from { opacity: 0; transform: translateY(10px); } }

/* 1. Scroll reveal (classes added by script.js; no-JS visitors see everything) */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .85s var(--ease) var(--d, 0ms) backwards; }

/* 6. Hero entrance: headline words slide up from a mask, the rest follows */
.hero h1 .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .08em 0 .14em; margin: -.08em 0 -.14em;
}
.hero h1 .w > span {
  display: inline-block;
  animation: word-up .95s var(--ease) calc(.1s + var(--i, 0) * 75ms) backwards;
}
.js .hero h1:not(.is-split) { visibility: hidden; animation: show .01s 1.4s forwards; }  /* failsafe if JS stalls */
.hero-copy > :not(h1) { animation: rise .85s var(--ease) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .5s; }
.hero-copy > :nth-child(4) { animation-delay: .6s; }
.hero-copy > :nth-child(5) { animation-delay: .7s; }
.hero .book-card { animation: rise .95s var(--ease) .3s backwards; }

/* 5. Header: frosted glass + tighter bar once you scroll (flow height stays constant) */
.site-header.is-scrolled {
  height: var(--hdr-h-scrolled); margin-bottom: calc(var(--hdr-h) - var(--hdr-h-scrolled));
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: rgba(22, 24, 28, .06);
  box-shadow: 0 10px 30px -14px rgba(22, 24, 28, .22);
}
.site-header.is-scrolled .brand img { height: 38px; }

/* 4. Buttons: sheen sweep + sliding arrow on the primary CTA */
.btn-primary::before, .nav-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .3) 50%, transparent 66%);
  transform: translateX(-120%);
}
.btn-primary::after {
  content: "\2192"; display: inline-block; width: 0; margin-left: -8px; opacity: 0;
  transform: translateX(-8px); overflow: hidden;
  transition: width .35s var(--ease), margin .35s var(--ease), opacity .25s ease, transform .35s var(--ease);
}

/* 8. Page transitions (multi-page View Transitions; falls back to normal navigation) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation-duration: .2s; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: .35s; animation-timing-function: var(--ease); }

/* 2 + 3 + 4. Hover: lifting tiles, cursor spotlight, button polish (mouse / trackpad only) */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(22, 24, 28, .28); border-color: rgba(224, 27, 46, .35); }
  a.card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -22px rgba(22, 24, 28, .34); border-color: rgba(224, 27, 46, .5); }
  a.card:hover .more { transform: translateX(5px); }
  .gen:hover, .review:hover { transform: translateY(-6px); box-shadow: 0 26px 48px -22px rgba(22, 24, 28, .34); border-color: rgba(224, 27, 46, .45); }
  .gen:hover .gen-media img, .gen:hover .gen-media > span { transform: scale(1.06); }

  .spot::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(224, 27, 46, .10)), transparent 62%);
    opacity: 0; transition: opacity .35s ease;
  }
  .spot:hover::before { opacity: 1; }
  .book-card { --spot: rgba(224, 27, 46, .06); }

  .btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(224, 27, 46, .6); }
  .btn-primary:hover::before, .nav-cta:hover::before { transform: translateX(120%); transition: transform .85s var(--ease); }
  .btn-primary:hover::after, .btn-primary:focus-visible::after { width: 1em; margin-left: 0; opacity: 1; transform: none; }
  .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
  .chip-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(224, 27, 46, .6); }
  .btn-outline:hover { box-shadow: 0 10px 24px -12px rgba(22, 24, 28, .3); }
}

/* Battery capacity gauge: 12 bars light up one by one when scrolled into view */
.cap-gauge {
  margin: 1.6em 0 1.8em; padding: 22px 24px 24px; border-radius: 18px;
  background: linear-gradient(160deg, #16181c, #212630); color: #fff;
  box-shadow: 0 24px 48px -28px rgba(22, 24, 28, .6);
}
.cap-gauge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.cap-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.cap-num { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.cap-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 46px; }
.cap-bars span { border-radius: 4px; background: rgba(255, 255, 255, .12); }
.cap-bars span.lit { background: var(--yellow); box-shadow: 0 0 14px rgba(255, 198, 11, .38); }
.cap-bars.armed span.lit {            /* waiting state: snaps dim instantly, no transition */
  background: rgba(255, 255, 255, .12); box-shadow: none;
  transform: scaleY(.5); transform-origin: bottom;
}
.cap-bars.armed.on span.lit {         /* fill state: bars light up one after another */
  background: var(--yellow); box-shadow: 0 0 14px rgba(255, 198, 11, .38); transform: none;
  transition: background .4s ease, box-shadow .6s ease, transform .7s var(--ease);
  transition-delay: calc(var(--n, 0) * 95ms);
}
.cap-gauge figcaption { margin-top: 16px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .76); max-width: 62ch; }

/* Charging pulse: slow breathing bolt + current flowing down the lines (decorative) */
@keyframes charge-breathe { 0%, 100% { opacity: .35; transform: scale(.92); } 50% { opacity: .95; transform: scale(1.07); } }
@keyframes charge-flow    { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
@keyframes bolt-pulse     { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.charge-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.charge-fx .glow {
  position: absolute; right: 4%; top: 50%; width: 380px; height: 380px; margin-top: -190px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 198, 11, .3), rgba(224, 27, 46, .12) 56%, transparent 74%);
  animation: charge-breathe 5s ease-in-out infinite;
}
.charge-fx .bolt { position: absolute; right: calc(4% + 105px); top: 50%; width: 130px; height: 173px; margin-top: -86px; animation: bolt-pulse 5s ease-in-out infinite; }
.charge-fx .bolt path { fill: rgba(255, 198, 11, .12); stroke: rgba(255, 198, 11, .6); stroke-width: 1.4; stroke-linejoin: round; }
.charge-fx .line { position: absolute; left: 52%; right: calc(4% + 250px); height: 1px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.charge-fx .line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 22%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 198, 11, .95), transparent);
  animation: charge-flow 3.8s linear infinite;
}
.charge-fx .l1 { top: 40%; }
.charge-fx .l2 { top: 50%; }
.charge-fx .l2::after { animation-duration: 3.1s; animation-delay: -1.3s; }
.charge-fx .l3 { top: 60%; }
.charge-fx .l3::after { animation-duration: 4.6s; animation-delay: -2.6s; }
.charge-fx.off *, .charge-fx.off *::after { animation-play-state: paused; }   /* paused while off-screen */
.hero-photo > .charge-fx { opacity: .55; }                                   /* sit more quietly over a photo hero */

/* light-section variant (home charging) */
#home-charging { position: relative; overflow: hidden; }
#home-charging > .wrap { position: relative; z-index: 1; }
.charge-fx.is-light .glow { top: auto; bottom: 6%; margin-top: 0; background: radial-gradient(closest-side, rgba(255, 198, 11, .26), rgba(224, 27, 46, .06) 58%, transparent 74%); }
.charge-fx.is-light .bolt { top: auto; bottom: calc(6% + 100px); margin-top: 0; }
.charge-fx.is-light .bolt path { fill: rgba(255, 198, 11, .2); stroke: rgba(224, 27, 46, .38); }
.charge-fx.is-light .line { top: auto; background: rgba(22, 24, 28, .07); left: 68%; }
.charge-fx.is-light .line::after { background: linear-gradient(90deg, transparent, rgba(224, 27, 46, .6), transparent); }
.charge-fx.is-light .l1 { bottom: calc(6% + 230px); }
.charge-fx.is-light .l2 { bottom: calc(6% + 190px); }
.charge-fx.is-light .l3 { bottom: calc(6% + 150px); }
@media (max-width: 960px) {
  .charge-fx .glow { width: 260px; height: 260px; margin-top: -130px; right: -6%; }
  .charge-fx .bolt { width: 84px; height: 112px; margin-top: -56px; right: calc(-6% + 88px); }
  .charge-fx .line { display: none; }
  .charge-fx.is-light { display: none; }       /* text spans the full width here */
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .nav > a:not(.nav-cta), .nav .nav-dd { display: none; }
  .mobmenu { display: block; }
  .nav { gap: 12px; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .brand .brand-text { display: none; }
  .utilbar .muted:first-child { display: none; }
  .review { flex-basis: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; }
  .card:hover, a.card:hover, .gen:hover, .review:hover, .chip-cta:hover,
  .gen:hover .gen-media img, .gen:hover .gen-media > span, a.card:hover .more { transform: none !important; }
  .btn-primary::before, .nav-cta::before { display: none; }
  .charge-fx *, .charge-fx *::after { animation: none !important; }
  .charge-fx .glow { opacity: .6; }
  .charge-fx .line::after { display: none; }
}
