/* ============================================================
   Velocity Couriers - site.css
   Palette is lifted straight from the logo: the page background is the
   logo's own background colour (#222328) so the artwork sits on the page
   without an edge. Gold = buttons, rules, emphasis. Chrome = headlines.
   Headlines are Barlow Condensed, heavy and leaning forward like the
   logo lettering. Body is Barlow.
   ============================================================ */

:root {
  --charcoal: #222328;        /* page - matches the logo background exactly */
  --charcoal-deep: #16171b;   /* footer, inset panels */
  --charcoal-raise: #2b2d34;  /* form fields, plates */
  --line: #3a3d46;            /* hairlines */
  --gold: #c8a24d;
  --gold-bright: #e8c97a;
  --gold-deep: #9d7c33;
  --chrome: #eceef1;
  --chrome-dim: #c3c7cd;
  --slate: #9aa0a8;
  --error: #ff8a7a;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);

  box-sizing: border-box;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--chrome-dim);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---- type scale ---- */
h1, h2, h3 { font-family: var(--display); color: var(--chrome); margin: 0; line-height: 1; }
h1 { font-weight: 900; font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.01em; }
h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.005em; }
h3 { font-weight: 800; font-size: clamp(24px, 2.6vw, 30px); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: var(--chrome-dim); max-width: 60ch; }
.lede.narrow { max-width: 52ch; }
.muted { color: var(--slate); }
.small { font-size: 14px; }
.prose p { max-width: 62ch; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 19px;
  letter-spacing: 0.02em; text-transform: none; text-decoration: none; line-height: 1;
  padding: 14px 24px; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); /* the forward lean of the logo plate */
}
.btn-lg { font-size: 22px; padding: 18px 32px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #1a1710; }
.btn-gold:hover { background: linear-gradient(180deg, #fff2c4, var(--gold-bright)); color: #000; }
.btn-ghost { background: transparent; color: var(--chrome); border-color: var(--line); clip-path: none; }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px var(--pad);
  background: rgba(34, 35, 40, .96); /* no backdrop-filter: it would trap the fixed-position mobile menu inside the bar */
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--charcoal); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--chrome-dim); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--chrome); border-bottom-color: var(--gold); }
.nav a.btn { color: #1a1710; border-bottom: 0; padding: 12px 20px; }
.nav a.btn:hover { color: #000; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 3px; background: var(--chrome); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-check:checked ~ .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-check:checked ~ .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-check:checked ~ .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- hero: the one bold thing on the site ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--charcoal) 30%, rgba(34,35,40,.6) 70%, rgba(34,35,40,.3)); }
/* Speed lines - the trailer stripes from the logo, drawn in CSS: a stack
   of thin gold bands that fade out to the left, skewed to match the lean. */
.hero-lines {
  position: absolute; z-index: -1; right: -10%; top: 8%; width: 90%; height: 84%;
  background:
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 20%, rgba(200,162,77,.55)) 0 10% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 30%, rgba(200,162,77,.40)) 0 22% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 15%, rgba(200,162,77,.70)) 0 34% / 100% 4px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 40%, rgba(200,162,77,.35)) 0 46% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 25%, rgba(200,162,77,.60)) 0 58% / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 35%, rgba(200,162,77,.30)) 0 70% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(200,162,77,.00) 20%, rgba(200,162,77,.50)) 0 82% / 100% 3px no-repeat,
    radial-gradient(60% 70% at 75% 50%, rgba(200,162,77,.14), transparent 70%);
  transform: skewY(-4deg);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.display { font-size: clamp(54px, 8.6vw, 118px); line-height: .92; font-weight: 900; font-style: italic; letter-spacing: -0.015em; }
.display span { display: block; }
.display .gold { background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero-copy .lede { margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art img { width: min(100%, 520px); margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); }

/* ---- facts strip ---- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal-deep); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row div { padding: 22px 24px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.facts-row div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts-row strong { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--chrome); line-height: 1.05; }
.facts-row span { font-size: 14px; color: var(--slate); }

/* ---- generic section rhythm ---- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split h2 { position: sticky; top: 100px; max-width: 12ch; }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 20px; }
.thanks h1 { color: var(--gold-bright); }

/* ---- benefits: a ledger, not a card grid. Each item hangs off a gold rule. ---- */
.benefits h2 { margin-bottom: 40px; }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px clamp(32px, 5vw, 80px); }
.benefit-list li { padding-left: 22px; border-left: 3px solid var(--gold); }
.benefit-list h3 { margin-bottom: 8px; }
.benefit-list p { margin: 0; max-width: 42ch; }
.benefits.alt { background: var(--charcoal-deep); }

/* ---- requirements checklist ---- */
.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--chrome); }
.check-list li::before { content: ""; position: absolute; left: 6px; top: 17px; width: 9px; height: 15px; border: solid var(--gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.check-list.compact li { font-size: 16px; padding: 9px 0 9px 32px; }
.check-list.compact li::before { top: 12px; width: 7px; height: 12px; }

/* ---- steps (a real sequence, so numbered) ---- */
.steps-section h2 { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step); position: absolute; top: -2px; left: 0; height: 2px; width: 44px; background: var(--gold); color: transparent; }
.steps li::after { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 42px; color: var(--gold); line-height: 1; position: absolute; top: 14px; right: 0; opacity: .9; }
.steps h3 { margin-bottom: 8px; padding-right: 48px; }
.steps p { margin: 0; color: var(--slate); }

/* ---- fleet plates ---- */
.fleet h2 { margin-bottom: 14px; }
.fleet-plates { display: grid; gap: 20px; margin-top: 40px; }
.plate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--charcoal-raise); border: 1px solid var(--line); min-height: 240px; }
.plate-visual { position: relative; overflow: hidden; background: var(--charcoal-deep);
  background-image:
    linear-gradient(90deg, transparent 30%, rgba(200,162,77,.5)) ,
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(200,162,77,.08) 22px 24px);
  background-size: 100% 3px, 100% 100%; background-position: 0 40%, 0 0; background-repeat: no-repeat, repeat;
}
.plate-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate-model { position: absolute; left: 24px; bottom: 10px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(72px, 10vw, 150px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232,201,122,.35); white-space: nowrap; user-select: none; }
.plate.has-photo .plate-model { display: none; }
.plate-text { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.plate-make { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--gold); }
.plate-text h3 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 12px; }
.plate-text p:last-child { margin: 0; max-width: 40ch; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-bright) 100%); color: #1a1710; padding: clamp(48px, 7vw, 88px) 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 48px; align-items: center; }
.cta-inner h2 { color: #1a1710; grid-column: 1; max-width: 22ch; }
.cta-inner p { color: #3a2f12; grid-column: 1; margin: 0; font-size: 19px; }
.cta-inner .btn-gold { grid-column: 2; grid-row: 1 / span 2; background: #1a1710; color: var(--gold-bright); }
.cta-inner .btn-gold:hover { background: #000; color: #fff; }

/* ---- forms ---- */
.form-section { padding-top: clamp(40px, 6vw, 72px); }
.form-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form h2 { font-size: 28px; margin: 36px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form h2:first-of-type { margin-top: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; color: var(--chrome); margin-bottom: 6px; font-size: 15px; padding: 0; }
.field label em { font-style: normal; font-weight: 400; color: var(--slate); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; font: inherit; color: var(--chrome); background: var(--charcoal-raise);
  border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; transition: border-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #6d727b; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,77,.2); }
.field textarea { resize: vertical; min-height: 110px; }
.has-error input, .has-error textarea { border-color: var(--error); }
.hint, .error { margin: 6px 0 0; font-size: 14px; }
.hint { color: var(--slate); }
.error { color: var(--error); font-weight: 500; }
.form-alert { background: rgba(255,138,122,.12); border-left: 3px solid var(--error); color: var(--chrome); padding: 12px 16px; margin-bottom: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* segmented radio groups */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label {
  margin: 0; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--chrome-dim);
  background: var(--charcoal-raise); border: 1px solid var(--line); border-radius: 3px; padding: 10px 20px; min-width: 72px; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.seg label:hover { border-color: var(--gold); color: #fff; }
.seg input:checked + label { background: var(--gold); border-color: var(--gold); color: #1a1710; }
.seg input:focus-visible + label { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.form .btn { margin-top: 12px; }
.form-aside h2 { font-size: 26px; margin: 0 0 14px; }
.form-aside h2 + * { margin-bottom: 28px; }
.form-aside p { color: var(--slate); }
.mini-steps { list-style: none; counter-reset: s; margin: 0 0 28px; padding: 0; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-steps li::before { content: counter(s); grid-row: 1 / span 2; font-family: var(--display); font-weight: 900; font-size: 30px; color: var(--gold); line-height: 1; }
.mini-steps strong { color: var(--chrome); }
.mini-steps span { color: var(--slate); font-size: 15px; }

/* ---- footer ---- */
.footer { background: var(--charcoal-deep); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand img { width: 220px; }
.footer-slogan { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 24px; color: var(--gold); margin: 6px 0 0; }
.footer h3 { font-size: 22px; margin-bottom: 10px; }
.footer p { color: var(--slate); font-size: 15px; }
.footer-legal { max-width: var(--wrap); margin: 44px auto 0; padding: 20px var(--pad) 0; border-top: 1px solid var(--line); font-size: 13px; color: #6d727b; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(70%, 360px); }
  .split { grid-template-columns: 1fr; }
  .split h2 { position: static; max-width: none; margin-bottom: 20px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-row div { padding: 16px 20px 16px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; top: calc(73px + env(safe-area-inset-top, 0px)); background: var(--charcoal); flex-direction: column; align-items: flex-start; padding: 24px var(--pad); gap: 8px; transform: translateX(100%); transition: transform .25s; }
  .menu-check:checked ~ .nav { transform: none; }
  .menu-check:focus-visible ~ .menu-toggle { outline: 3px solid var(--gold-bright); }
  .nav a { font-size: 30px; }
  .nav a.btn { margin-top: 12px; font-size: 22px; }
  .benefit-list { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .plate { grid-template-columns: 1fr; }
  .plate-visual { min-height: 150px; }
  .plate-model { font-size: 64px; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-inner .btn-gold { grid-column: 1; grid-row: auto; justify-self: start; }
  .row-2 { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr; }
  .facts-row div { padding: 14px 0; border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); }
  .facts-row div:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* gold gradient text clips its own descender at tight line-height; give it room */
.display .gold { padding-bottom: .14em; margin-bottom: -.14em; }

/* The slide-in mobile menu sits off-screen to the right while closed; without
   these the page can scroll sideways on phones. */
html, body { overflow-x: clip; }
@media (max-width: 720px) {
  .nav { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
  .menu-check:checked ~ .nav { visibility: visible; transition: transform .25s; }
}
