/* ===========================================================
   Dunlap Premier Transport — design tokens (from Figma spec)
   =========================================================== */
:root {
  --bg: #F9F9FF;
  --bg-alt: #F4F6F9;
  --ink: #111C2D;
  --body: #434652;
  --blue: #0A3D91;
  --blue-deep: #002868;
  --blue-tint: #E7EEFF;
  --blue-tint-2: #F0F3FF;
  --red: #DC2626;
  --green: #16A34A;
  --amber: #D97706;
  --divider: #DEE8FF;
  --placeholder: #9CA3AF;
  --white: #FFFFFF;

  --font-display: "Saira", sans-serif;
  --font-body: "Saira", sans-serif;
  --font-mono: "Saira", sans-serif;

  --max: 1120px;
  --radius: 2px;
  --shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.3; letter-spacing: 0.01em; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }

p { margin: 0 0 14px; color: var(--body); max-width: 62ch; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 10px;
}
.kicker-red { color: var(--red); }

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}
.section-lede { max-width: 56ch; font-size: 0.94rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-cta {
  background: var(--red);
  color: var(--white);
}
.btn-cta:hover { background: #C11F1F; transform: translateY(-1px); }
.btn-cta:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.btn-quote {
  background: var(--blue);
  color: var(--white);
  width: 100%;
}
.btn-quote:hover { background: var(--blue-deep); }

.btn-call {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-call:hover { background: var(--blue-deep); }
.btn-call-solid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 14px;
}

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid #E4E7F5;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: auto; height: 100px; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-name em { font-style: normal; font-weight: 400; font-size: 0.68rem; color: var(--body); text-transform: none; }

.nav-desktop { display: none; gap: 26px; }
.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--body);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--blue); }

.nav-toggle {
  width: 40px; height: 40px;
  border: none; background: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 20px 20px;
  border-top: 1px solid #E4E7F5;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 4px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #EEF0FA; }

@media (min-width: 860px) {
  .nav-desktop { display: flex; }
  .btn-call { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1F5FC4 0%, var(--blue) 45%, var(--blue-deep) 100%);
  overflow: hidden;
  padding-bottom: 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(270deg, rgba(13, 45, 96, 0.92) 0%, rgba(13, 45, 96, 0.62) 48%, rgba(13, 45, 96, 0) 100%),
    url("./images/hero-banner.jpg") center 46% / cover no-repeat;
  transform: scaleX(-1);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31, 95, 196, 0.18), rgba(13, 45, 96, 0.22));
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 80px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 48px;
  color: var(--white);
}
@media (min-width: 860px) {
  .hero {
    padding-inline: max(24px, calc((100% - var(--max)) / 2 + 24px));
  }
  .hero-inner { max-width: 720px; margin-left: 0; padding-inline: 0; }
}
.hero-inner h1 { color: var(--white); max-width: 16ch; }
.hero-lede { color: var(--blue-tint-2); max-width: 46ch; font-size: 1rem; }

/* ===========================================================
   Trust bar
   =========================================================== */
.stat-strip {
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  max-width: var(--max);
  margin: 0 auto;
}
.stat-strip li {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
}
.stat-head { display: flex; align-items: center; gap: 8px; color: var(--blue); }
.stat-item--certified .stat-head { color: var(--green); }
.stat-head span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--blue-deep);
}
.stat-item--certified .stat-head span { color: var(--ink); }
.stat-strip p { margin: 6px 0 0; font-size: 0.78rem; color: var(--body); }

@media (min-width: 720px) {
  .hero-inner { padding: 92px 24px 68px; }
  .stat-strip { grid-template-columns: repeat(4, 1fr); padding: 26px 24px; }
}

/* ===========================================================
   Services
   =========================================================== */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.card-icon-wrap {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-tint);
  border-radius: var(--radius);
  color: var(--blue);
  margin-bottom: 14px;
}
.card p { font-size: 0.88rem; }
.check-list { list-style: none; padding: 0; margin: 4px 0 18px; }
.check-list li {
  font-size: 0.82rem;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
}
.card-link:hover { color: var(--blue-deep); }

/* ===========================================================
   About
   =========================================================== */
.about { background: var(--blue-tint-2); }
.about-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
.narrative-box {
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 20px;
}
.narrative-box p { font-size: 0.94rem; }
.narrative-sub { font-size: 0.84rem; margin-bottom: 0; }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature {
  display: flex;
  gap: 12px;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 14px;
}
.feature svg { color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.feature h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.feature p { font-size: 0.82rem; margin-bottom: 0; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 57%;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "narrative narrative"
      "features media";
  }
  .narrative-box { grid-area: narrative; }
  .feature-list { grid-area: features; }
  .about-media { grid-area: media; }
}

/* ===========================================================
   Coverage / map
   =========================================================== */
.map-panel {
  margin-top: 30px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.map-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.map-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--body);
}
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }

.map-display {
  background: var(--bg-alt);
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  padding: 6px;
}
.map-img { width: 100%; height: auto; border-radius: var(--radius); }
.grid-line { stroke: rgba(0, 40, 104, 0.08); stroke-width: 1; stroke-dasharray: 4 4; }
.route-line { fill: none; stroke: var(--blue-deep); stroke-width: 2.5; }
.route-line--expedited { stroke: var(--red); stroke-dasharray: 7 6; stroke-width: 2; }
.map-node { fill: var(--blue-deep); }
.map-node--east { fill: var(--red); }
.map-node--hub { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.map-text { fill: var(--body); font-family: var(--font-body); font-size: 11px; }
.map-text--hub { fill: var(--blue-deep); font-family: var(--font-display); font-weight: 800; font-size: 11px; letter-spacing: 0.03em; }

.corridor-pills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink);
  background: var(--bg-alt);
  padding: 6px 10px;
  border-radius: var(--radius);
}
.pill--solid { background: var(--blue); color: var(--white); margin-left: auto; }

/* ===========================================================
   Dispatch / contact
   =========================================================== */
.dispatch { background: var(--blue-tint); }
.dispatch-card {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.dispatch-card h2 { max-width: 20ch; }

.call-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  margin-top: 18px;
  transition: background 0.15s ease;
}
.call-trigger:hover { background: #C11F1F; }
.call-trigger span { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.call-trigger em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.call-trigger strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.live-badge {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  background: rgba(249, 249, 255, 0.2);
  padding: 6px 10px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.divider-row { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.divider-line { flex: 1; height: 2px; background: var(--divider); }
.divider-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
}

.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 0; }
@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field-row .field { margin-bottom: 14px; }
label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 6px;
}
input, textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 13px 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 61, 145, 0.18);
}
textarea { resize: vertical; min-height: 88px; }
.botcheck { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

.form-note { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--body); margin: 14px 0 0; }
.form-note.is-success { color: var(--green); font-weight: 700; }
.form-note.is-error { color: var(--red); font-weight: 700; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { background: var(--blue-deep); color: var(--blue-tint-2); box-shadow: var(--shadow-lg); padding-bottom: 84px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand svg { color: var(--divider); }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-desc { color: var(--blue-tint); font-size: 0.82rem; max-width: 46ch; margin-bottom: 24px; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.footer-contact p {
  display: flex; align-items: center; gap: 8px;
  margin: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue-tint-2);
}
.footer-contact svg { color: var(--blue-tint-2); flex-shrink: 0; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(231,238,255,0.15); }
.footer-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-tint);
}
.footer-nav a:hover { color: var(--white); }
.footer-fine {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(231, 238, 255, 0.6);
  margin: 20px 0 0;
}

@media (min-width: 780px) {
  .footer-contact { flex-direction: row; gap: 28px; flex-wrap: wrap; }
}

.footer-columns { display: grid; gap: 32px; }
.footer-about { display: flex; flex-direction: column; }
@media (min-width: 780px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .footer-contact { flex-direction: column; gap: 12px; }
  .footer-nav { border-bottom: none; padding-bottom: 0; }
  .footer-desc { margin-bottom: 0; }
  .footer-fine { border-top: 1px solid rgba(231,238,255,0.15); padding-top: 20px; }
}

/* ===========================================================
   Mobile tab bar
   =========================================================== */
.mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: flex;
  background: var(--bg);
  border-top: 1px solid #E4E7F5;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--body);
  padding: 4px 0;
}
.mobile-tabbar a:hover { color: var(--blue); }
@media (min-width: 860px) {
  .mobile-tabbar { display: none; }
  .site-footer { padding-bottom: 0; }
}
