/* Order Your MVR — Trucking Insurance Services
   Navy-led with orange accents. Reference colors observed on the public Trucking Insurance Services site
   (Oct 1, 2026): orange #F5691F, heading blue #154A9F. The navy is a page treatment, not a brand color.
   Hero: full-bleed driver photo with a navy scrim behind the copy.
   Type: Barlow Semi Condensed (highway-signage feel) for headings only; Inter for everything else. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0b1f3f;
  --navy-2: #12305f;
  --blue: #154a9f;
  --orange: #f5691f;
  --ink: #16223a;
  --muted: #4b5563;
  --white: #ffffff;
  --surface: #f3f5f9;
  --tint: #eaf0f9;
  --line: #dce2ec;
  --warn-bg: #fff5ee;
  --on-navy: #c9d5ea;
  --focus: #154a9f;

  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(11, 31, 63, 0.06), 0 2px 8px rgba(11, 31, 63, 0.05);
  --shadow-hover: 0 2px 4px rgba(11, 31, 63, 0.08), 0 10px 24px rgba(11, 31, 63, 0.10);
  --gutter: 16px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
ul, ol { list-style: none; margin: 0; padding: 0; }

.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.icon-arrow { width: 16px; height: 16px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .fleet :focus-visible, .skip:focus-visible { outline-color: #fff; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 8px; top: -80px; z-index: 20; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
  border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--orange); color: var(--navy); border-color: var(--orange); min-height: 56px; padding: 0 30px; font-size: 1.125rem; }
.btn-primary:hover { background: #ff7d3a; border-color: #ff7d3a; color: var(--navy); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: 148px; display: block; }
.nav { display: none; }
.back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 0.9375rem; color: var(--blue); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 999px;
}
.back:hover { border-color: var(--blue); color: var(--blue); background: var(--tint); }
@media (min-width: 760px) {
  .brand img { width: 190px; }
  .nav { display: flex; gap: 4px; margin-left: auto; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-decoration: none; border-radius: var(--r-sm); }
  .nav a:hover { background: var(--surface); color: var(--navy); }
}

/* ---------- hero ----------
   Full-bleed photo: driver on the phone beside the truck (right side of the frame), navy scrim behind the copy.
   Phones/tablets: the driver is framed at the top and the copy sits on a navy fade below.
   Desktop: the copy sits on the left over the scrim and the driver stays clear on the right. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 500px; background: var(--navy); color: #fff;
}
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; }
.hero-photo img { object-fit: cover; object-position: 72% 15%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 31, 63, 0) 0%, rgba(11, 31, 63, 0.1) 24%, rgba(11, 31, 63, 0.88) 46%, #0b1f3f 64%);
}
.hero-inner { padding-top: 190px; padding-bottom: 32px; }
.hero h1 {
  color: #fff; font-size: clamp(2.25rem, 8.5vw, 3.25rem); line-height: 0.98; letter-spacing: -0.005em;
  max-width: 14ch; text-wrap: balance;
}
.hero h1 .hl { color: var(--orange); }
.lead { color: var(--on-navy); font-size: clamp(1.125rem, 2.2vw, 1.3125rem); line-height: 1.4; margin: 12px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.icon-down { width: 20px; height: 20px; }
.hero-link { display: inline-flex; align-items: center; min-height: 48px; color: #fff; font-weight: 600; }
.hero-link:hover { color: #fff; text-decoration-thickness: 2px; }

@media (min-width: 600px) and (max-width: 899px) {
  .hero { min-height: 560px; }
  .hero-inner { padding-top: 260px; }
  .hero-photo img { object-position: 70% 20%; }
}

@media (min-width: 900px) {
  .hero { align-items: center; min-height: 420px; }
  .hero-photo img { object-position: 50% 22%; }
  .hero::before {
    background: linear-gradient(90deg, rgba(11, 31, 63, 0.95) 0%, rgba(11, 31, 63, 0.88) 34%, rgba(11, 31, 63, 0.5) 52%, rgba(11, 31, 63, 0) 68%);
  }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero-inner > * { max-width: 600px; }
  .hero h1 { font-size: clamp(2.75rem, 4vw, 3.75rem); max-width: 14ch; }
}
@media (min-width: 1500px) {
  .hero { min-height: 460px; }
}

/* ---------- states ---------- */
.states { background: var(--surface); padding: 40px 0 48px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
.section-head p { color: var(--muted); margin-top: 4px; }

.search-bar { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: 10px 0 2px; margin-bottom: 8px; }
.search-field { position: relative; max-width: 560px; }
.search-field .icon-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input {
  width: 100%; min-height: 56px; padding: 0 84px 0 50px; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #9aa6ba; border-radius: var(--r); box-shadow: var(--shadow);
  -webkit-appearance: none; appearance: none;
}
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field input::placeholder { color: #6b7587; }
.search-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 44px; padding: 0 14px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--blue); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.clear:hover { background: var(--tint); }
.status { min-height: 1.5em; margin-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }

.empty { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-width: 560px; display: grid; gap: 14px; justify-items: start; }

.state-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .state-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.state {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 18px;
  box-shadow: var(--shadow); transition: box-shadow 0.15s, border-color 0.15s;
}
.state:hover { box-shadow: var(--shadow-hover); border-color: #c5cfdf; }
.state-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.state h3 { font-size: 1.125rem; font-weight: 700; overflow-wrap: break-word; }
.state-info { display: inline-flex; align-items: center; min-height: 36px; font-size: 0.9375rem; font-weight: 500; color: var(--blue); }
.btn-order { flex: 0 0 auto; min-width: 8.25rem; background: var(--blue); color: #fff; border-color: var(--blue); min-height: 48px; padding: 0 16px; font-size: 0.9375rem; }
.btn-order:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.note { display: flex; gap: 10px; align-items: flex-start; max-width: 72ch; margin-top: 24px; color: var(--muted); font-size: 0.9375rem; }
.note .icon { width: 20px; height: 20px; color: var(--blue); margin-top: 1px; }

/* ---------- fleet ----------
   Navy band over a softened aerial photo of a highway junction (many routes = many drivers).
   The overlay is darkest behind the copy on the left; white provider cards sit on the right. */
.fleet {
  position: relative; color: #fff; padding: 56px 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(11, 31, 63, 0.93) 0%, rgba(11, 31, 63, 0.88) 50%, rgba(11, 31, 63, 0.72) 100%),
    url("assets/fleet/junction-900.webp");
  background-size: cover; background-position: center;
}
.fleet-grid { display: grid; gap: 36px; }
.fleet h2 { color: #fff; font-size: clamp(2rem, 5vw, 2.75rem); }
.fleet-lead { color: var(--on-navy); margin: 10px 0 24px; max-width: 46ch; font-size: 1.0625rem; }

.check {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px; padding: 18px 20px;
}
.check h3 { color: #fff; font-size: 1.0625rem; margin-bottom: 10px; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: #e3eaf6; font-size: 0.9375rem; line-height: 1.45; }
.check-list .icon-check { width: 20px; height: 20px; flex: 0 0 auto; color: var(--orange); stroke-width: 2.5; margin-top: 1px; }

.alaska {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.alaska > .icon { color: var(--orange); margin-top: 2px; }
.alaska p { color: var(--on-navy); font-size: 0.9375rem; }
.alaska strong { color: #fff; }
.alaska-link { display: flex; width: fit-content; align-items: center; gap: 4px; min-height: 44px; margin-top: 2px; color: #fff; font-weight: 700; }
.alaska-link:hover { color: #fff; text-decoration-thickness: 2px; }

.providers-title {
  color: var(--on-navy); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.vendor-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vendor {
  position: relative; display: flex; flex-direction: column; min-height: 176px;
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(3, 12, 30, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.vendor h4 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.vendor-link { color: var(--navy); text-decoration: none; }
.vendor-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vendor-link:focus-visible { outline: none; }
.vendor:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.vendor-host { color: var(--muted); font-size: 0.8125rem; margin: 3px 0 10px; }
.vendor-blurb { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; flex: 1 1 auto; }
.vendor-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 0.9375rem; color: var(--blue); }
.vendor:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 18px 36px rgba(3, 12, 30, 0.34); }
.vendor:hover .vendor-cta { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .fleet {
    padding: 84px 0;
    background-image:
      linear-gradient(90deg, rgba(11, 31, 63, 0.95) 0%, rgba(11, 31, 63, 0.88) 40%, rgba(11, 31, 63, 0.62) 100%),
      url("assets/fleet/junction-1600.webp");
  }
  .fleet-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
}

@media (min-width: 900px) {
  .states { padding: 64px 0 72px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-top { display: grid; gap: 14px; margin-bottom: 20px; }
.footer-brand img { width: 170px; display: block; }
.footer-help { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.disclaimer { max-width: 80ch; font-size: 0.875rem; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

/* very narrow phones */
@media (max-width: 359px) {
  .state { padding: 10px 10px 10px 14px; gap: 8px; }
  .btn-order { padding: 0 12px; }
  .state h3 { font-size: 1.0625rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- print ---------- */
@media print {
  body { font-size: 10.5pt; color: #000; background: #fff; }
  .site-header .nav, .back, .skip, .search-bar, .empty, .hero-actions, .hero-photo { display: none !important; }
  .hero, .states, .fleet { background: #fff; color: #000; padding: 10pt 0; }
  .hero h1, .fleet h2, .fleet-lead, .check-list li, .check h3, .alaska p, .alaska strong, .providers-title { color: #000; }
  .state-grid, .vendor-grid { display: block; }
  .state, .vendor { break-inside: avoid; box-shadow: none; border: 1pt solid #888; margin-bottom: 4pt; padding: 4pt 6pt; display: block; }
  .btn { border: 0; padding: 0; min-height: 0; background: none; color: #000; display: inline; }
  a { color: #000; text-decoration: none; }
  .state a[href]::after, .vendor a[href]::after, .alaska a[href]::after { content: " " attr(href); font-size: 8pt; word-break: break-all; }
  .check, .alaska { border-color: #000; background: #fff; }
  .fleet { background-image: none; }
  .vendor-link::after { position: static; }
  .vendor-cta { display: none; }
}
