/* eVans BC — design tokens
   Direction: Premium / minimal · Deep electric blue · Humanist sans (Hanken Grotesk) */

:root {
  /* ---- color: ink & navy (deep electric blue base) ---- */
  --ink:        #0b1a2d;   /* primary text */
  --navy-950:   #061320;   /* darkest hero */
  --navy-900:   #0a1c30;
  --navy-800:   #102740;
  --navy-700:   #1a3450;
  --navy-line:  #21405e;   /* hairlines on dark */

  /* ---- electric blue (primary) ---- */
  --blue:       #2f7bff;
  --blue-600:   #1f63d6;   /* hover/active */
  --blue-700:   #184fad;
  --blue-100:   #e9f1ff;   /* tint surface */
  --blue-50:    #f4f8ff;

  /* ---- charge cyan (energy / data) ---- */
  --cyan:       #58d6ff;
  --cyan-400:   #79e0ff;
  --cyan-soft:  #d6f4ff;

  /* ---- neutrals (cool) ---- */
  --paper:      #ffffff;
  --bg:         #f4f7fb;
  --bg-2:       #eaf0f7;
  --line:       #e2e9f2;
  --line-2:     #d3dce8;
  --muted:      #586a82;
  --muted-2:    #8a97aa;

  /* ---- status ---- */
  --good:       #16b06a;
  --warn:       #e8993a;
  --low:        #ef5d5d;

  /* ---- radius ---- */
  --r-xs: 7px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 30px; --r-pill: 999px;

  /* ---- shadow (soft, premium) ---- */
  --sh-1: 0 1px 2px rgba(11,26,45,.06), 0 1px 1px rgba(11,26,45,.04);
  --sh-2: 0 4px 14px rgba(11,26,45,.08), 0 1.5px 4px rgba(11,26,45,.05);
  --sh-3: 0 18px 50px rgba(11,26,45,.14), 0 6px 16px rgba(11,26,45,.08);
  --sh-blue: 0 10px 28px rgba(47,123,255,.30);

  /* ---- type ---- */
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* ---- layout ---- */
  --maxw: 1200px;
}

* { 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.5;
  font-weight: 400; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ---- type scale ---- */
.display { font-size: clamp(38px, 6vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); font-weight: 400; }
.body { font-size: 16px; color: var(--ink); }
.small { font-size: 14px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- layout helpers ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.row { display: flex; align-items: center; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---- buttons ---- */
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; background: var(--paper); color: var(--ink); transition: all .16s ease;
  white-space: nowrap; line-height: 1;
}
.ev-btn--primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.ev-btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.ev-btn--dark { background: var(--ink); color: #fff; }
.ev-btn--dark:hover { background: var(--navy-800); }
.ev-btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); box-shadow: none; }
.ev-btn--ghost:hover { border-color: var(--ink); }
.ev-btn--ondark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.ev-btn--ondark:hover { background: rgba(255,255,255,.16); }
.ev-btn--lg { padding: 16px 28px; font-size: 16.5px; }
.ev-btn--sm { padding: 9px 15px; font-size: 13.5px; }
.ev-btn--block { display: flex; width: 100%; }
.ev-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---- surfaces ---- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card--pad { padding: 22px; }
.card--hover { transition: box-shadow .18s ease, transform .18s ease, border-color .18s; }
.card--hover:hover { box-shadow: var(--sh-3); transform: translateY(-3px); border-color: var(--line-2); }

/* ---- pills / tags / chips ---- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap;
  padding: 6px 13px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-700); }
.pill--line { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 500; }
.pill--dark { background: rgba(255,255,255,.10); color: #dceaff; }
.pill--good { background: rgba(22,176,106,.12); color: var(--good); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  padding: 5px 11px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--muted); }
.ev-chip { display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius: var(--r-pill);
  border:1px solid var(--line-2); background:var(--paper); font-size:14px; font-weight:600; cursor:pointer; transition:all .15s; }
.ev-chip[aria-pressed="true"], .ev-chip.on { background: var(--ink); color:#fff; border-color: var(--ink); }

/* ---- inputs ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.input {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 15.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus-within, .input.focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.input .ph { color: var(--muted-2); }
.input > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- photo placeholder (swap for real van photography) ---- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 80% 10%, rgba(88,214,255,.18), transparent 55%),
    linear-gradient(135deg, #16304c 0%, #0c2138 60%, #0a1c30 100%);
  display: flex; align-items: center; justify-content: center;
}
.photo::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.025) 23px 24px);
}
.photo .photo__tag {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  color: #9fc6ff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 7px 13px; border-radius: var(--r-pill); backdrop-filter: blur(3px);
}
.photo--light { background: linear-gradient(135deg, #e8eff7, #dde7f3); }
.photo--light .photo__tag { color: var(--blue-700); background: rgba(47,123,255,.08); border-color: rgba(47,123,255,.16); }
/* real van photography dropped onto a .photo panel */
.photo .vanimg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 7%; border-radius: inherit; }
.photo--hasvan .photo__tag { display: none; }
/* full-bleed scene photo (cargo/cab interiors) filling a .photo panel */
.photo .photo-fill { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo .photo-fill + .photo__tag { display: none; }

/* ---- battery / charge bar ---- */
.batt { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.batt > span { position: absolute; inset: 0 auto 0 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ---- divider ---- */
.hr { height: 1px; background: var(--line); border: 0; }
.hr--dark { background: var(--navy-line); }

/* ---- icon chip (line glyph holder) ---- */
.iconchip { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  border-radius: var(--r); background: var(--blue-100); color: var(--blue); flex:none; }
.iconchip--dark { background: rgba(88,214,255,.12); color: var(--cyan); }

/* ---- focus a11y ---- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- shared top nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.nav--scrolled { background: rgba(255,255,255,.94); border-bottom-color: var(--line-2); box-shadow: var(--sh-1); }
.nav--dark { background: rgba(8,19,32,.72); border-color: var(--navy-line); }
.nav__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px; height: 74px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--ink); }
.nav--dark .brand { color: #fff; }
.brand span { color: var(--blue); }
.brandmark { display: block; height: 42px; width: auto; }
.footer .brandmark { height: 64px; }
.nav__links { display: flex; gap: 30px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; white-space: nowrap; }
.nav__links a:hover { color: var(--ink); }
.nav--dark .nav__links a { color: #aebfd6; }
.nav--dark .nav__links a:hover { color: #fff; }
.nav__cta { grid-column: 3; justify-self: end; display: flex; gap: 10px; align-items: center; }
.nav__burger { display: none; grid-column: 3; justify-self: end; background: transparent; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* mobile menu (panel built by ui.js from the existing nav links) */
.nav__mobile, .nav__scrim { display: none; }
@media (max-width: 860px) {
  .nav__mobile { display: block; position: fixed; top: 74px; left: 0; right: 0; z-index: 49;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    padding: 12px 28px 22px; transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .nav--open .nav__mobile { transform: none; opacity: 1; visibility: visible; }
  .nav__mobile-links { display: flex; flex-direction: column; }
  .nav__mobile-links a { padding: 15px 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__mobile-links a:last-child { border-bottom: 0; }
  .nav__mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav__mobile-cta .ev-btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }
  .nav__scrim { display: block; position: fixed; inset: 74px 0 0; z-index: 48; background: rgba(6,19,32,.4);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
  .nav__scrim.show { opacity: 1; visibility: visible; }
  body.nav-locked { overflow: hidden; }
}

/* ---- footer ---- */
.footer { background: var(--navy-950); color: #aebfd6; padding: 56px 0 40px; }
.footer a { color: #aebfd6; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: .02em; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .cols--5 { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 720px){ .footer .cols { grid-template-columns: 1fr 1fr; gap: 28px; } .footer .cols--5 { grid-template-columns: 1fr 1fr; } }

/* ---- section rhythm ---- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- stat ---- */
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stat .l { font-size: 13.5px; color: var(--muted); }

/* ---- global corner-radius theme (data-corners on :root) ---- */
:root[data-corners="sharp"]   { --r: 6px;  --r-sm: 5px;  --r-lg: 9px;  --r-xs: 4px; }
:root[data-corners="rounded"] { --r: 14px; --r-sm: 10px; --r-lg: 20px; --r-xs: 7px; }
:root[data-corners="pill"]    { --r: 22px; --r-sm: 16px; --r-lg: 28px; --r-xs: 12px; }

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

/* ---- FAQ disclosure (shared: faq.html, guides/*, vans/*) ----
   Promoted from booking.css so every page that uses <details class="faq"> is styled. */
.faq { width: 100%; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 4px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 12px 0 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform var(--d-fast) var(--e-standard); color: var(--muted); display: inline-flex; }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq p { padding: 4px 0 10px; }
