@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --navy-950: #021a3d;
  --navy-900: #042959;
  --navy-700: #0258ab;
  --orange-500: #f9770a;
  --orange-400: #ff9433;
  --paper: #f6f5f2;
  --paper-dim: #ece9e2;
  --ink: #0f1626;
  --ink-soft: #545d70;
  --line: #ddd8cd;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .display {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

[data-reveal] { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
[data-reveal].pending { opacity: 0; transform: translateY(18px); }

/* ---------- Top utility bar ---------- */
.utility-bar { background: var(--navy-950); color: rgba(255,255,255,0.72); font-size: 13px; }
.utility-bar .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 20px; flex-wrap: wrap; }
.utility-bar .contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.utility-bar .contacts span { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar .contacts .mono { color: var(--orange-400); }

/* ---------- Header ---------- */
header.site { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; padding-top: 0; padding-bottom: 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; transition: transform .2s ease; }
.brand:hover { transform: scale(1.03); }
.brand img { height: 62px; width: auto; filter: drop-shadow(0 3px 8px rgba(2,26,61,0.16)); }
nav.primary { display: flex; align-items: center; gap: 28px; }
nav.primary a { position: relative; font-weight: 600; font-size: 14.5px; color: var(--ink); padding: 8px 0; }
nav.primary a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--orange-500); transition: left .22s ease, right .22s ease; }
nav.primary a:hover::after, nav.primary a:focus-visible::after, nav.primary a.active::after { left: 0; right: 0; }
nav.primary a:hover, nav.primary a.active { color: var(--orange-500); }
.header-actions { display: flex; gap: 12px; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
  color: var(--navy-950); font-size: 22px; line-height: 1;
}
@media (max-width: 940px) {
  .menu-toggle { display: block; order: 3; }
  header.site .wrap { flex-wrap: wrap; }
  .header-actions { display: none; gap: 10px; width: 100%; order: 4; padding-top: 14px; }
  .header-actions .btn { flex: 1; }
  header.site.menu-open .header-actions { display: flex; }
  nav.primary {
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    width: 100%; order: 5;
  }
  header.site.menu-open nav.primary { display: flex; }
  nav.primary a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.primary a::after { display: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }
.btn-orange { background: var(--orange-500); color: var(--white); box-shadow: 0 6px 20px -6px rgba(249,119,10,0.55); }
.btn-orange:hover { background: var(--orange-400); box-shadow: 0 10px 26px -6px rgba(249,119,10,0.65); }
.btn-outline-navy { background: transparent; border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy-950); border-color: var(--white); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero (real photo) ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 100px; }
.hero .hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(2,26,61,0.95) 0%, rgba(4,41,89,0.90) 40%, rgba(4,41,89,0.35) 78%),
    url('assets/vans.png') center 35% / cover no-repeat;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(249,119,10,0.16); border: 1px solid rgba(249,119,10,0.5); color: var(--orange-400);
  font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.4; transform:scale(1.4);} }
.hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 64px); }
.hero h1 .accent { color: var(--orange-500); display: block; }
.hero p.lede { color: rgba(255,255,255,0.82); font-size: 18px; line-height: 1.6; max-width: 46ch; margin: 24px 0 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.hero-sub { padding: 40px 0 46px; }
.hero.hero-sub .lede { margin-bottom: 0; }
.hero.hero-sub .wrap { position: relative; z-index: 1; }

/* ---------- Sub-page banner slideshow ---------- */
.hero-bg.slideshow { background: none; }
.hero-bg.slideshow .slide {
  position: absolute; inset: 0; opacity: 0;
  background-position: center 40%; background-size: cover; background-repeat: no-repeat;
  transition: opacity 1.6s ease;
}
.hero-bg.slideshow .slide.active { opacity: 1; }
.hero-bg.slideshow::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2,26,61,0.95) 0%, rgba(4,41,89,0.90) 40%, rgba(4,41,89,0.45) 82%);
}

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; overflow: hidden; margin-top: 52px; }
.hero-stats div { background: rgba(2,26,61,0.55); padding: 18px 20px; }
.hero-stats .num { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 26px; color: var(--orange-400); }
.hero-stats .lbl { font-size: 12.5px; color: rgba(255,255,255,0.68); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.route-card {
  position: relative; background: rgba(2,26,61,0.66); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px; padding: 26px 26px 22px; backdrop-filter: blur(10px);
  transition: transform .3s ease;
}
.route-card:hover { transform: translateY(-4px); }
.route-card h3 { color: var(--white); font-size: 19px; margin-bottom: 18px; font-weight: 700; }
.route-line { position: relative; padding-left: 26px; }
.route-line::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, var(--orange-500) 0 6px, transparent 6px 12px); }
.stop { position: relative; padding-bottom: 20px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: -26px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); border: 2px solid var(--orange-500); }
.stop.active::before { background: var(--orange-500); box-shadow: 0 0 0 4px rgba(249,119,10,0.25); animation: pulse 1.8s ease-in-out infinite; }
.stop .town { color: var(--white); font-weight: 600; font-size: 15px; }
.stop .region { color: rgba(255,255,255,0.58); font-size: 12.5px; margin-top: 2px; }
.route-card .route-eta { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,0.2); font-size: 13px; color: rgba(255,255,255,0.62); }
.route-card .route-eta .mono { color: var(--orange-400); font-size: 15px; }

/* ---------- Section shell ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker { display: block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-500); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); color: var(--navy-950); }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 16px; line-height: 1.6; }

/* ---------- Why / About ---------- */
.why { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.founder-photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(4,41,89,0.35); }
.founder-photo img { width: 100%; }
.founder-tag { position: absolute; left: 20px; bottom: 20px; background: rgba(2,26,61,0.85); backdrop-filter: blur(6px); color: var(--white); padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.founder-tag .role { color: var(--orange-400); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(4,41,89,0.28); border-color: transparent; }
.why-card .icon-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-900); color: var(--orange-400); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.why-card h3 { font-size: 20px; color: var(--navy-950); font-weight: 700; margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; background: var(--navy-900); border-radius: 18px; padding: 30px 26px 26px; color: var(--white); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px) scale(1.015); box-shadow: 0 22px 44px -18px rgba(4,41,89,0.5); }
.service-card::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(249,119,10,0.16); transition: transform .3s ease; }
.service-card:hover::after { transform: scale(1.3); }
.service-card .idx { font-family: 'JetBrains Mono', monospace; color: var(--orange-400); font-size: 13px; margin-bottom: 18px; display: block; position: relative; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; position: relative; }
.service-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0; position: relative; }
.service-card.link { cursor: pointer; }

/* ---------- Coverage / quote panel ---------- */
.coverage { background: var(--paper-dim); }
.coverage-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.region-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background .2s ease, padding-left .2s ease; }
.region-row:first-child { border-top: 1px solid var(--line); }
.region-row:hover { background: rgba(4,41,89,0.05); padding-left: 12px; }
.region-row .name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy-950); }
.region-row .towns { color: var(--ink-soft); font-size: 13.5px; max-width: 320px; text-align: right; }

.quote-panel { background: var(--navy-950); border-radius: 22px; padding: 40px 36px; color: var(--white); }
.quote-panel .kicker { color: var(--orange-400); }
.quote-panel h3 { font-size: 28px; color: var(--white); margin-bottom: 14px; }
.quote-panel p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
.quote-panel .fine { margin-top: 22px; font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange-500), var(--orange-400)); padding: 64px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--navy-950); font-size: clamp(26px, 3.2vw, 34px); max-width: 520px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-dark { background: var(--navy-950); color: var(--white); }
.cta-band .btn-dark:hover { background: var(--navy-900); }

/* ---------- Forms (Quote / Register / Contact) ---------- */
.form-shell { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 40px; max-width: 720px; margin: 0 auto; box-shadow: 0 30px 60px -34px rgba(4,41,89,0.25); }
.form-shell.wide { max-width: 920px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy-950); }
.field .hint { font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(4,41,89,0.12); background: var(--white);
}
.field textarea { resize: vertical; min-height: 100px; font-family: inherit; }
.form-section-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy-950); margin: 28px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; }
.form-msg.show { display: block; }
.form-msg.error { background: #fdecea; color: #b3261e; border: 1px solid #f6c6c2; }
.form-msg.success { background: #e8f6ee; color: #1a7f3c; border: 1px solid #bfe6cf; }
.form-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 18px; }
.api-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.api-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #cfcabb; }
.api-status.online .dot { background: #1a7f3c; }
.api-status.offline .dot { background: #b3261e; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { font-size: 20px; color: var(--navy-950); margin: 36px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin: 0 0 14px; }
.legal-content ul { color: var(--ink-soft); font-size: 15px; line-height: 1.75; padding-left: 22px; margin: 0 0 14px; }
.legal-content .updated { color: var(--orange-500); font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 30px; display: block; }

/* ---------- Downloads list ---------- */
.download-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.download-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.download-item:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(4,41,89,0.25); }
.download-item .name { font-weight: 700; color: var(--navy-950); font-size: 15px; }
.download-item .filetype { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.download-item .dl-icon { width: 38px; height: 38px; border-radius: 999px; background: var(--paper-dim); display: flex; align-items: center; justify-content: center; color: var(--navy-900); font-weight: 700; flex-shrink: 0; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-950); color: rgba(255,255,255,0.6); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid .brand-col img { height: 64px; width: auto; background: #fff; padding: 8px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-grid .brand-col p { font-size: 13.5px; line-height: 1.6; max-width: 30ch; }
.footer-grid h4 { color: var(--white); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-grid ul a { transition: color .15s ease; }
.footer-grid ul a:hover { color: var(--orange-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.footer-bottom .tagline { color: var(--orange-400); font-family: 'Sora', sans-serif; font-weight: 700; }
.footer-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: var(--orange-400); }

@media (max-width: 940px) {
  .hero-grid, .why-layout, .why-grid, .services-grid, .coverage-layout, .field-grid, .download-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- Site popup (managed from /admin) ---------- */
.site-popup-overlay {
  position: fixed; inset: 0; background: rgba(2,26,61,0.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 200; opacity: 0; transition: opacity .25s ease;
}
.site-popup-overlay.show { opacity: 1; }
.site-popup {
  background: var(--white); border-radius: 20px; padding: 36px 32px 32px;
  max-width: 420px; width: 100%; position: relative;
  box-shadow: 0 30px 60px -20px rgba(2,26,61,0.45);
  transform: translateY(14px); transition: transform .25s ease;
}
.site-popup-overlay.show .site-popup { transform: translateY(0); }
.site-popup h3 { font-size: 22px; color: var(--navy-950); margin-bottom: 10px; padding-right: 20px; }
.site-popup p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0 0 22px; }
.site-popup-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 4px;
}
.site-popup-close:hover { color: var(--navy-950); }
