/* Veer Green Logistics — veergreen.com */

:root {
  --cream: #FBF7EB;
  --paper: #FFFDF7;
  --sage: #E9F0DE;
  --forest: #123F2C;
  --forest-soft: #1D5A40;
  --leaf: #4E9A34;
  --river: #2A6CB0;
  --ink: #1B2A22;
  --muted: #4A5C52;
  --line: rgba(18, 63, 44, 0.2);

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 12px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--cream);
  padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--forest);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 235, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--forest);
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { display: block; }
.brand small {
  display: block; margin-top: .2rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 500;
  letter-spacing: 0; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--leaf); color: var(--forest); }
.nav a[aria-current="page"] { border-bottom-color: var(--forest); color: var(--forest); font-weight: 600; }
.nav a.btn { padding: .65rem 1.2rem; border-bottom: 0; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--cream); font-weight: 600; }
.nav a.btn-primary:hover { background: var(--forest-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .7rem; cursor: pointer; color: var(--forest);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 1rem/1 var(--font-body);
  padding: 1rem 1.6rem; border-radius: 10px; text-decoration: none;
  border: 2px solid var(--forest); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-soft); border-color: var(--forest-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-light:hover { background: #fff; color: var(--forest); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.hero-route {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-route path {
  fill: none; stroke: var(--river); stroke-width: 2; stroke-linecap: round;
  opacity: .35; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: route-draw 2.6s .2s ease-out forwards;
}
.hero-route circle { fill: var(--leaf); opacity: 0; animation: route-dot .4s 2.6s forwards; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes route-dot { to { opacity: .9; } }

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero-art { display: flex; justify-content: center; }
.emblem { position: relative; width: min(100%, 470px); animation: emblem-float 7s 1.8s ease-in-out infinite; }
.emblem img {
  width: 100%; height: auto;
  animation: emblem-in 1.5s cubic-bezier(.2, .7, .2, 1) both;
}
/* soft pulse on the truck's lightning bolt, like a charge indicator */
.bolt {
  position: absolute; left: 90.07%; top: 58.2%;
  width: 11%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(200, 255, 110, .95) 0%, rgba(120, 220, 60, .5) 38%, rgba(120, 220, 60, 0) 70%);
  animation: bolt-pulse 3.6s 1.8s ease-in-out infinite;
}
@keyframes emblem-in {
  from { clip-path: circle(0% at 50% 50%); transform: rotate(-30deg) scale(.9); opacity: .4; }
  to   { clip-path: circle(75% at 50% 50%); transform: none; opacity: 1; }
}
@keyframes emblem-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bolt-pulse {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  40%      { opacity: .9; transform: translate(-50%, -50%) scale(1.15); }
  70%      { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}
.hero-route .route-mover { fill: var(--forest); opacity: 0; animation: mover-show .6s 3.2s forwards; }
@keyframes mover-show { to { opacity: .55; } }

/* header logo turns like a wheel on hover */
.brand:hover img { animation: wheel-spin .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes wheel-spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sage { background: var(--sage); }
.section-dark { background: var(--forest); color: #E6EFE3; }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .lead { color: #C9DAC9; }
.section-head { max-width: 46rem; margin-bottom: 3rem; }

.page-head { padding: 4.5rem 0 3rem; }
.page-head h1 { max-width: 18ch; font-size: clamp(2.3rem, 4.8vw, 3.8rem); }

/* Promises as stops on a route */
.promises {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  border-top: 2px dashed var(--river);
}
.promise { position: relative; padding-top: 2rem; }
.promise::before {
  content: ""; position: absolute; top: -9px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--leaf); border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--leaf);
}
.promise:nth-child(2)::before { background: var(--river); box-shadow: 0 0 0 2px var(--river); }
.promise:nth-child(3)::before { background: var(--forest); box-shadow: 0 0 0 2px var(--forest); }
.promise p { color: var(--muted); }

/* Video */
.video-split { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 4rem; align-items: center; }
.video-frame {
  margin: 0; width: 100%; aspect-ratio: 640 / 868; overflow: hidden;
  border-radius: 18px; background: var(--cream);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }

/* Row list (services etc.) */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--muted); }
.row a { font-weight: 600; }

/* Big type: vehicle classes */
.fleet { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vehicle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.vehicle .size {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(3.4rem, 7vw, 5.5rem); line-height: 1; color: var(--forest);
  margin: 0 0 .75rem;
}
.vehicle .size.ev { color: var(--leaf); }
.vehicle h3 { margin-bottom: .5rem; }
.vehicle p { color: var(--muted); margin-bottom: 0; }

/* Steps: genuine sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--leaf); line-height: 1; margin-bottom: .6rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Checklist */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ticks li { position: relative; padding-left: 2.1rem; max-width: 60ch; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.1rem; height: 1.1rem;
  border-radius: 50% 0 50% 0; background: var(--leaf); transform: rotate(-10deg);
}
.ticks strong { color: var(--forest); }

/* Roadmap: genuine timeline */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 2px solid var(--forest); }
.stage { position: relative; padding-top: 1.75rem; }
.stage::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--forest);
}
.stage:first-child::before { background: var(--leaf); border-color: var(--leaf); }
.stage h3 { margin-bottom: .4rem; }
.stage p { color: var(--muted); }

/* Big statement */
.statement { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; margin: 0 0 1.25rem; color: var(--cream); }

/* Credentials */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin: 0; }
.facts div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .9rem; color: var(--muted); margin: 0 0 .15rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--forest); overflow-wrap: anywhere; }

/* CTA band */
.cta-band { background: var(--paper); border-top: 1px solid var(--line); padding: 4.5rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4rem; align-items: start; }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { font-weight: 600; color: var(--forest); font-size: .98rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--paper); border: 1.5px solid rgba(18, 63, 44, .35);
  border-radius: 10px; padding: .85rem 1rem;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(42, 108, 176, .35); border-color: var(--river); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: none; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 500; }
.notice.show { display: block; }
.notice.ok { background: var(--sage); color: var(--forest); border: 1px solid var(--leaf); }
.notice.err { background: #FBE9E4; color: #7A2413; border: 1px solid #C9553A; }

.details { border-top: 2px solid var(--forest); padding-top: 1.5rem; }
.details dl { margin: 0; display: grid; gap: 1.4rem; }
.details dt { font-weight: 600; color: var(--forest); margin-bottom: .2rem; }
.details dd { margin: 0; color: var(--muted); }
.details a { color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #CFDDCF; padding: 4rem 0 2rem; }
.site-footer a { color: #E6EFE3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; }
.site-footer h3 { color: var(--cream); font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer p { max-width: 34ch; margin-bottom: .6rem; }
.footer-brand { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--cream); letter-spacing: -0.02em; margin-bottom: .5rem; }
.footer-legal {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(230, 239, 227, .2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .9rem; color: #A9BDAE;
}
.footer-legal p { margin: 0; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 1rem; text-align: center; border: 2px solid var(--forest); }
}

@media (max-width: 900px) {
  .hero { padding: 3rem 0 3.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { order: -1; }
  .emblem { width: min(70%, 300px); }
  

  .promises, .roadmap { grid-template-columns: 1fr; gap: 0; border-top: 0; border-left: 2px dashed var(--river); margin-left: 8px; }
  .roadmap { border-left: 2px solid var(--forest); }
  .promise, .stage { padding: 0 0 2rem 2rem; }
  .promise::before, .stage::before { top: 2px; left: -9px; }

  .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .video-split { grid-template-columns: 1fr; gap: 2rem; }
  .video-frame { max-width: 300px; margin-inline: auto; }
  .row { grid-template-columns: 1fr; gap: .6rem; }
  .fleet { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .field-2 { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-route path { animation: none; stroke-dashoffset: 0; }
  .hero-route circle { animation: none; opacity: .9; }
  .hero-route .route-mover, .bolt { display: none; }
  .emblem, .emblem img, .brand:hover img { animation: none; }
  * { transition: none !important; }
}

/* ==========================================================
   Update 3: track strip, pricing, careers, tracking
   ========================================================== */

.notice.warn { background: #FFF4D6; color: #5C4300; border: 1px solid #D4A72C; }

/* Track strip (home) */
.track-strip { background: var(--paper); border-block: 1px solid var(--line); padding: 2.25rem 0; }
.track-strip .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; align-items: center; }
.track-strip h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0; max-width: 22ch; }
.track-inline, .track-form { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 1rem; align-items: end; }
.track-inline input, .track-form input { line-height: 1.3; }
.track-form { max-width: 46rem; }

/* Pricing */
.rate-list { margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.rate-list div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rate-list dt { font-weight: 600; color: var(--forest); }
.rate-list dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.rate-list dd strong { color: var(--forest); font-family: var(--font-head); font-size: 1.15rem; letter-spacing: -0.01em; }
.estimator { display: grid; gap: 1.25rem; }
.estimate { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.estimate .label { margin: 0; color: var(--muted); font-size: .95rem; }
.estimate .total {
  font-family: var(--font-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--forest); margin: .3rem 0 1rem;
  font-variant-numeric: tabular-nums;
}
.estimate ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.estimate li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.estimate p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }

/* Tracking result */
.track-result { margin-top: 2.5rem; max-width: 46rem; }
.track-result:focus { outline: none; }
.track-summary { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin: 0 0 .5rem; }
.track-summary div { min-width: 8rem; }
.track-summary dt { font-size: .9rem; color: var(--muted); margin: 0 0 .15rem; }
.track-summary dd { margin: 0; font-weight: 600; color: var(--forest); }
.track-id { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--forest); margin: 0 0 1rem; }
.route { list-style: none; margin: 2rem 0 0; padding: 0 0 0 2rem; border-left: 2px dashed var(--river); }
.route li { position: relative; padding: 0 0 2rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: ""; position: absolute; top: .3rem; left: calc(-2rem - 9px);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid rgba(18, 63, 44, .35);
}
.route li.done::before { background: var(--leaf); border-color: var(--leaf); }
.route li.current::before { background: var(--forest); border-color: var(--forest); box-shadow: 0 0 0 5px rgba(78, 154, 52, .28); }
.route h3 { font-size: 1.15rem; margin: 0 0 .15rem; }
.route p { margin: 0; color: var(--muted); font-size: .98rem; }
.route li.pending h3 { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .track-strip .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (max-width: 640px) {
  .track-inline, .track-form { grid-template-columns: 1fr; align-items: stretch; }
  .rate-list div { grid-template-columns: 1fr; gap: .2rem; }
}
