/* ============================================================================
   Vanaways Brand Portal — site styles
   Built on the design-system tokens in css/tokens.css.
   This stylesheet only styles the portal chrome; all colours, type, spacing,
   radii, shadows and motion come from the design-system custom properties.
   ============================================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg-2);
  color: var(--fg-1);
}

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top navigation ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: var(--fw-black);
  color: var(--fg-heading);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand img { height: 28px; width: auto; display: block; }
.nav-brand span { color: var(--brand-blue); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--fg-1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-default);
}
.nav-links a:hover { color: var(--brand-blue); background: var(--primary-50); }
.nav-cta {
  background: var(--gradient-red);
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  padding: 9px 20px !important;
  box-shadow: var(--shadow-red);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}
.nav-cta:hover { transform: translateY(-2px); background: var(--gradient-red) !important; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-brand-deep);
  background-image:
    radial-gradient(1100px 500px at 80% -10%, rgba(233,42,62,.22), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(17,69,152,.55), transparent 60%),
    linear-gradient(160deg, #0a2962 0%, #061a42 100%);
  color: #fff;
  padding: 96px 0 88px;
}
.hero::before {
  /* faint rotated outlined diamonds — Fleet hero signature */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .6;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-logo { height: 64px; width: auto; margin-bottom: 28px; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  max-width: 16ch;
}
.hero p {
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 56ch;
  margin-top: 18px;
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.hero-tagline b { color: #fff; }
.hero-tagline .red { color: #ff6b78; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hero-meta div { font-size: 13px; color: rgba(255,255,255,.6); }
.hero-meta b { display: block; color: #fff; font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 22px; letter-spacing: -0.01em; }

/* ─── Sections ────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section:nth-of-type(even) { background: var(--bg-1); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head .t-eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 {
  font-size: clamp(26px, 3vw, 38px);
  border-bottom: 4px solid var(--brand-blue);
  display: inline-block;
  padding-bottom: 10px;
}
.section-head p { margin-top: 18px; color: var(--fg-2); font-size: var(--fs-lg); }

/* ─── Buttons (lifted from the DS button preview) ─────────────────────── */
.btn {
  font-family: var(--font-heading); font-weight: var(--fw-bold); font-size: 14px;
  padding: 12px 22px; border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: all var(--dur-base) var(--ease-default);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  line-height: 1;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(17,69,152,.32); }
.btn-grad { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-grad:hover { transform: translateY(-2px); }
.btn-red { background: var(--gradient-red); color: #fff; box-shadow: var(--shadow-red); }
.btn-red:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--brand-blue); color: var(--brand-blue); padding: 10px 20px; }
.btn-outline:hover { background: var(--primary-50); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; padding: 10px 20px; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color:#fff; transform: translateY(-2px); }
.btn-ghost { background: var(--brand-light-grey); color: var(--fg-heading); }
.btn-ghost:hover { transform: translateY(-2px); }
.pill { border-radius: var(--radius-pill) !important; padding-left: 26px; padding-right: 26px; }

/* ─── Logo gallery ────────────────────────────────────────────────────── */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.logo-card {
  background: var(--bg-1); border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.logo-stage {
  display: grid; place-items: center; min-height: 168px; padding: 28px;
}
.logo-stage img { max-height: 96px; width: auto; object-fit: contain; }
.stage-white { background:
  linear-gradient(45deg, #f6f7fa 25%, transparent 25%, transparent 75%, #f6f7fa 75%),
  linear-gradient(45deg, #f6f7fa 25%, #fff 25%, #fff 75%, #f6f7fa 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.stage-navy { background: var(--bg-brand-deep); }
.stage-grey { background: var(--brand-dark-grey); }
.logo-info { padding: 16px 18px; border-top: 1px solid var(--neutral-200); }
.logo-info h4 { font-size: var(--fs-md); margin-bottom: 4px; }
.logo-info p { font-size: var(--fs-sm); color: var(--fg-3); margin: 0 0 12px; }
.logo-dl { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 12px; font-weight: var(--fw-semibold);
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--neutral-300); color: var(--fg-1); background: var(--bg-1);
  cursor: pointer; transition: all var(--dur-fast) var(--ease-default); text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: var(--primary-50); }
.chip.copy::after { content: "Copy URL"; }
.chip.copied { border-color: var(--color-success); color: var(--color-success); background: var(--color-success-soft); }

/* ─── Colours ─────────────────────────────────────────────────────────── */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.swatch {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--neutral-200);
  background: var(--bg-1); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--dur-base) var(--ease-default), box-shadow var(--dur-base) var(--ease-default);
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.swatch-fill { height: 96px; }
.swatch-body { padding: 12px 14px; }
.swatch-body strong { font-size: var(--fs-base); color: var(--fg-heading); display: block; }
.swatch-body code { font-size: var(--fs-sm); color: var(--fg-2); }
.swatch-body .role { font-size: 11px; color: var(--fg-3); display: block; margin-top: 4px; }

.scale-row { display: flex; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.scale-row .step { flex: 1; height: 64px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: 10px; cursor: pointer; }
.scale-label { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--fg-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Type specimen ───────────────────────────────────────────────────── */
.type-card { background: var(--bg-1); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.type-row { padding: 18px 0; border-bottom: 1px solid var(--neutral-200); }
.type-row:last-child { border-bottom: none; }
.type-row .meta { font-size: var(--fs-xs); color: var(--fg-3); font-family: var(--font-mono); margin-top: 6px; }
.font-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }
.font-spec { background: var(--bg-2); border-radius: var(--radius-lg); padding: 24px; border-left: 4px solid var(--brand-blue); }
.font-spec .big { font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 40px; line-height: 1; color: var(--fg-heading); }
.font-spec.body .big { font-family: var(--font-body); font-weight: var(--fw-regular); }
.font-spec .name { margin-top: 14px; font-weight: var(--fw-bold); color: var(--fg-heading); }
.font-spec .desc { font-size: var(--fs-sm); color: var(--fg-2); margin-top: 4px; }

/* ─── Generic cards / grids ───────────────────────────────────────────── */
.card { background: var(--bg-1); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--neutral-200); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

/* Voice list */
.voice-card { padding: 28px; }
.voice-card h4 { color: var(--brand-blue); margin-bottom: 14px; font-size: var(--fs-lg); }
.voice-card ul { margin: 0; padding-left: 0; list-style: none; }
.voice-card li { padding: 8px 0 8px 26px; position: relative; font-size: var(--fs-md); }
.voice-card li::before { content: "›"; position: absolute; left: 8px; color: var(--brand-red); font-weight: var(--fw-black); }
.do-dont { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dd { border-radius: var(--radius-lg); padding: 22px; }
.dd.do { background: var(--color-success-soft); border: 1px solid #bbf7d0; }
.dd.dont { background: var(--color-error-soft); border: 1px solid #f9c5ca; }
.dd h5 { font-size: var(--fs-md); margin-bottom: 12px; }
.dd.do h5 { color: #15803d; } .dd.dont h5 { color: var(--accent-700); }
.dd ul { margin: 0; padding-left: 18px; } .dd li { padding: 4px 0; font-size: var(--fs-sm); }

/* Component demo row */
.demo { background: var(--bg-1); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.demo + .demo { margin-top: 22px; }
.demo .demo-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.demo h4 { margin-bottom: 18px; font-size: var(--fs-md); color: var(--fg-heading); }

/* Badges */
.badge { font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 11px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: var(--radius-sm); color: #fff; text-transform: uppercase; }
.badge.free { background: var(--brand-red); border-radius: var(--radius-pill); }
.badge.offer { background: var(--gradient-brand); border-radius: var(--radius-pill); }
.badge.new { background: var(--brand-blue); }
.badge.warranty { background: #15803d; }
.badge.popular { background: var(--brand-dark-grey); }
.free-circle { width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--brand-red); color: #fff; font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 11px; line-height: 1.1; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow-red); }

/* Form field */
.field { max-width: 420px; }
.field label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--fg-heading); margin-bottom: 8px; }
.field input {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-md);
  padding: 14px 16px; border: 2px solid var(--brand-light-grey); border-radius: var(--radius-md);
  background: var(--neutral-50); color: var(--fg-1); transition: all var(--dur-base) var(--ease-default); outline: none;
}
.field input:focus { border-color: var(--brand-blue); background: #fff; box-shadow: 0 0 0 4px rgba(17,69,152,.1); }

/* Van tile (signature) */
.van-tile { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); overflow: hidden; max-width: 340px; transition: box-shadow var(--dur-slow) var(--ease-default); }
.van-tile:hover { box-shadow: var(--shadow-xl); }
.van-imgbox { position: relative; background: #f3f4f6; overflow: hidden; }
.van-imgbox img { display: block; width: 100%; height: 180px; object-fit: cover; transition: transform var(--dur-slow) var(--ease-default); }
.van-tile:hover .van-imgbox img { transform: scale(1.05); }
.van-warranty { position: absolute; top: 12px; left: 12px; background: #15803d; color: #fff; padding: 5px 10px; border-radius: 6px; font-weight: var(--fw-semibold); font-size: 10px; }
.van-free { position: absolute; top: 12px; right: 12px; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--brand-red); color: #fff; font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 10px; line-height: 1.1; display: flex; align-items: center; justify-content: center; text-align: center; }
.van-body { padding: 16px; }
.van-name { font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 16px; color: var(--fg-heading); }
.van-spec { font-size: 12px; color: var(--fg-2); margin-top: 2px; }
.van-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; }
.van-from { font-size: 10px; color: var(--fg-2); }
.van-price { color: var(--brand-red); font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 24px; line-height: 1; margin-top: 2px; }

/* Manufacturer grid */
.mfr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.mfr { background: var(--bg-1); border: 1px solid var(--neutral-200); border-radius: var(--radius-md); height: 88px; display: grid; place-items: center; padding: 18px; transition: all var(--dur-base) var(--ease-default); }
.mfr img { max-height: 40px; max-width: 100px; filter: grayscale(1); opacity: .55; transition: all var(--dur-base) var(--ease-default); }
.mfr:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mfr:hover img { filter: none; opacity: 1; }

/* Foundations tokens */
.token-table { width: 100%; border-collapse: collapse; background: var(--bg-1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.token-table th, .token-table td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--neutral-200); font-size: var(--fs-sm); }
.token-table th { background: var(--bg-3); font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-xs); color: var(--fg-2); }
.token-table td code { font-family: var(--font-mono); color: var(--brand-blue); }
.token-table tr:last-child td { border-bottom: none; }
.radii-demo { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.radii-demo .r { width: 80px; height: 80px; background: var(--gradient-brand); display: grid; place-items: end center; color: #fff; font-size: 10px; padding-bottom: 6px; }
.shadow-demo { display: flex; gap: 26px; flex-wrap: wrap; }
.shadow-demo .s { width: 120px; height: 80px; background: #fff; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 11px; color: var(--fg-2); }
.space-demo { display: flex; flex-direction: column; gap: 8px; }
.space-demo .sp { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); color: var(--fg-2); }
.space-demo .bar { height: 14px; background: var(--brand-blue); border-radius: 3px; }

/* Download cards */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.dl-card { background: var(--bg-1); border: 1px solid var(--neutral-200); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.dl-card .ico { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--primary-50); color: var(--brand-blue); display: grid; place-items: center; margin-bottom: 16px; }
.dl-card h4 { font-size: var(--fs-lg); margin-bottom: 6px; }
.dl-card p { font-size: var(--fs-sm); color: var(--fg-2); margin: 0 0 18px; flex: 1; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer { background: var(--bg-brand-deep); color: rgba(255,255,255,.72); padding: 56px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer img { height: 30px; margin-bottom: 16px; }
.footer h5 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.footer a { color: rgba(255,255,255,.72); font-size: var(--fs-sm); display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .compliance { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); font-size: var(--fs-xs); line-height: 1.7; color: rgba(255,255,255,.55); max-width: 70ch; }
.footer .legal-row { margin-top: 18px; font-size: var(--fs-xs); color: rgba(255,255,255,.45); }

/* ─── Toast ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--fg-heading); color: #fff; padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); box-shadow: var(--shadow-xl);
  opacity: 0; pointer-events: none; transition: all var(--dur-base) var(--ease-spring); z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 52px 0; }
}
