/* ---------- BASE ---------- */
:root {
  --navy: #0b1b33;
  --navy-2: #12284a;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fb;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --accent-soft: #fff7ed;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.section { padding: 88px 0; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .track-grid h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.eyebrow {
  margin: 0 0 12px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
/* ---------- END BASE ---------- */

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 1.2rem; text-decoration: none;
}
.logo b { color: var(--accent); font-weight: 600; margin-left: -6px; }
.logo-mark {
  position: relative; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
}
.logo-mark::after {          /* a white arrow cut out with clip-path */
  content: ""; position: absolute; inset: 8px;
  background: #fff;
  clip-path: polygon(0 32%, 55% 32%, 55% 0, 100% 50%, 55% 100%, 55% 68%, 0 68%);
}

.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: #cbd5e1; text-decoration: none; font-weight: 500; }
.menu a:hover { color: #fff; }
.menu .btn { color: #fff; }
.menu-btn { display: none; }
/* ---------- END HEADER ---------- */

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 120px;
  color: #cbd5e1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(249, 115, 22, .18), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
}
.hero::before {              /* faint map grid that fades out downwards */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 1.15rem; max-width: 34em; margin: 0 0 28px; }

.track-mini {
  display: flex; gap: 8px; max-width: 480px; padding: 6px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.track-mini:focus-within { box-shadow: 0 0 0 3px #fdba74, 0 20px 40px rgba(0, 0, 0, .25); }
.track-mini input {
  flex: 1; min-width: 0; padding: 10px 12px;
  border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--ink);
}
.hint { margin: 12px 0 0; font-size: .9rem; color: #94a3b8; }
.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: #fdba74; text-decoration: underline;
}

.route-card {
  padding: 20px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}
.route-head { display: flex; justify-content: space-between; font-size: .85rem; }
.live { display: inline-flex; align-items: center; gap: 6px; color: #86efac; font-weight: 600; }
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; animation: pulse 1.6s infinite;
}
.route-map { width: 100%; height: auto; }
.route-bg { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 6; stroke-linecap: round; }
.route-line {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: dash 1.2s linear infinite;
}
.stop { fill: var(--navy); stroke: #fff; stroke-width: 3; }
.stop.end { stroke: var(--accent); }
.city { fill: #cbd5e1; font-size: 13px; font-weight: 600; }
.truck-body { fill: #fff; }
.truck-cab { fill: var(--accent); }
.truck-wheel { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }

.route-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.route-meta div { padding: 10px 12px; background: rgba(255, 255, 255, .06); border-radius: 10px; }
.route-meta span { display: block; font-size: .75rem; color: #94a3b8; }
.route-meta strong { color: #fff; font-size: .95rem; }
.route-meta .ok { color: #86efac; }
/* ---------- END HERO ---------- */

/* ---------- STATS ---------- */
.stats { position: relative; z-index: 2; margin-top: -56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { padding: 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
/* ---------- END STATS ---------- */

/* ---------- SERVICES ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #fed7aa; }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 1.15rem; }
.service p { margin: 0 0 14px; }
.service ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.service li::before { content: "\2713"; margin-right: 8px; color: var(--ok); font-weight: 700; }
/* ---------- END SERVICES ---------- */

/* ---------- PROCESS ---------- */
.process { background: var(--bg); }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.steps::before {             /* dashed road behind the numbers */
  content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, #fdba74 0 8px, transparent 8px 16px);
}
.steps li { position: relative; padding: 0 8px; text-align: center; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: relative;
  display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg);
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: .95rem; }
/* ---------- END PROCESS ---------- */

/* ---------- TRACKING ---------- */
.track-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.track-form { display: flex; gap: 8px; margin: 24px 0 8px; }
.track-form input {
  flex: 1; min-width: 0; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); text-transform: uppercase;
}
.track-form input::placeholder { text-transform: none; }
.track-form input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }
.track-form input[aria-invalid="true"] { border-color: #dc2626; }
.track-error { min-height: 1.6em; margin: 0; color: #dc2626; font-size: .92rem; }

.track-panel {
  min-height: 200px; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.track-empty { margin: 0; padding: 60px 0; text-align: center; color: var(--muted); }
.track-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.track-top h3 { margin: 0; font-size: 1.3rem; }
.track-top p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.badge {
  padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-dark);
}
.badge.done { background: #dcfce7; color: #15803d; }

.progress { height: 8px; margin: 20px 0 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar {
  width: 0; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  transition: width .9s cubic-bezier(.2, .8, .2, 1);
}
.progress-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }

.timeline { margin: 24px 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 18px 32px; }
.timeline li::before {       /* the dot */
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line);
}
.timeline li::after {        /* the line down to the next dot */
  content: ""; position: absolute; left: 6px; top: 22px; bottom: 0;
  width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.done::after { background: #fdba74; }
.timeline li.current::before { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(249, 115, 22, .2); }
.timeline strong { display: block; color: var(--ink); }
.timeline li:not(.done):not(.current) strong { color: var(--muted); font-weight: 500; }
.timeline span { font-size: .88rem; color: var(--muted); }
.fade-in { animation: fadeUp .4s ease both; }
/* ---------- END TRACKING ---------- */

/* ---------- QUOTE ---------- */
.quote { background: var(--bg); }
.quote-card {
  display: grid; grid-template-columns: 1.4fr 1fr;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.quote-form { display: grid; gap: 24px; padding: 36px; }
.field { margin: 0; padding: 0; border: 0; }
.field > label, .field legend {
  display: flex; justify-content: space-between;
  margin-bottom: 8px; padding: 0;
  font-weight: 600; color: var(--ink);
}
.field output { color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
.field input[type="number"] {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink);
}
.field input[type="number"]:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(249, 115, 22, .15); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode { position: relative; }
.mode input { position: absolute; opacity: 0; }
.mode span {
  display: block; padding: 12px; text-align: center; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 600; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.mode small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.mode input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.mode input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.quote-result { display: flex; flex-direction: column; padding: 36px; background: var(--navy); color: #cbd5e1; }
.quote-result h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #cbd5e1; }
.price {
  margin: 6px 0 4px;
  font-size: 3rem; font-weight: 800; line-height: 1.1; color: #fff;
  font-variant-numeric: tabular-nums;
}
.price-note { margin: 0 0 20px; font-size: .92rem; }
.price-note strong { color: #fff; }
.breakdown {
  display: grid; gap: 8px; margin: 0 0 28px; padding: 16px 0 0; list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem;
}
.breakdown li { display: flex; justify-content: space-between; }
.breakdown b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-result .btn { margin-top: auto; }
.quote-result .btn.sent { background: var(--ok); }
.bump { animation: bump .3s ease; }
/* ---------- END QUOTE ---------- */

/* ---------- TESTIMONIALS ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex; flex-direction: column; margin: 0; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.stars { margin-bottom: 12px; color: #f59e0b; letter-spacing: 2px; }
.review blockquote { flex: 1; margin: 0 0 20px; color: var(--ink); }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.avatar {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
}
.review strong { display: block; color: var(--ink); }
.review small { color: var(--muted); }
/* ---------- END TESTIMONIALS ---------- */

/* ---------- CTA AND FOOTER ---------- */
.cta { padding: 0 0 88px; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 20px; color: #cbd5e1;
  background: linear-gradient(120deg, var(--navy), var(--navy-2) 60%, #1e3a5f);
}
.cta-box h2 { margin-bottom: 6px; color: #fff; }
.cta-box p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { padding: 56px 0 24px; background: #07142a; color: #94a3b8; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: .95rem; color: #fff; }
.footer-grid ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08);
}
/* ---------- END CTA AND FOOTER ---------- */

/* ---------- ANIMATIONS ---------- */
@keyframes dash { to { stroke-dashoffset: -36; } }
@keyframes pulse { 50% { opacity: .3; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes bump { 50% { transform: scale(1.06); } }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Only hide .reveal items when JavaScript is running, so the page still works without it */
.js .reveal:not(.visible) { opacity: 0; }
.js .reveal.visible { animation: rise .6s ease backwards; }
.js .reveal.visible:nth-child(3n + 2) { animation-delay: .1s; }
.js .reveal.visible:nth-child(3n + 3) { animation-delay: .2s; }
/* ---------- END ANIMATIONS ---------- */

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 960px) {
  .hero-grid, .track-grid, .quote-card { grid-template-columns: 1fr; }
  .services-grid, .reviews, .steps { grid-template-columns: 1fr 1fr; }
  .steps { row-gap: 40px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform .3s, background .3s;
  }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px;
    background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; }
  .menu .btn { margin-top: 8px; padding: 12px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 104px; }
  .services-grid, .reviews, .steps { grid-template-columns: 1fr; }
  .steps li { padding-left: 64px; text-align: left; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .stat { padding: 20px 12px; }
  .stat strong { font-size: 1.7rem; }
  .track-form { flex-direction: column; }
  .quote-form, .quote-result, .cta-box { padding: 24px; }
  .route-meta strong { font-size: .85rem; }
}
/* ---------- END SMALL SCREENS ---------- */

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