/* Ivy's Logistics — last-mile rebuild
   Design tokens carried over from the existing ivyslogistics.com:
   Montserrat headings / Raleway body, navy + gold brand marks, #176BE0 accent. */

:root {
  --navy: #0D1B8C;          /* logo script navy */
  --navy-deep: #0A1466;
  --gold: #D9B310;          /* service-card accent from existing art */
  --gold-soft: #F5E7A3;
  --cta: #FFB703;           /* primary CTA - brighter than --gold so it pops on navy */
  --cta-deep: #E8A400;
  --kelly: #3FB069;         /* emerald, deepened from #50C878 */
  --kelly-lite: #57C97E;    /* gradient top-left */
  --kelly-deep: #2E8B52;    /* gradient bottom-right + hover */
  --blue: #176BE0;          /* existing site link/CTA blue */
  --ink: #0D131A;           /* existing site dark */
  --body: #4A5568;
  --muted: #727586;
  --line: #E2E6EF;
  --bg-soft: #F4F6FB;
  --white: #fff;

  --font-head: Montserrat, "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Raleway, Montserrat, "Helvetica Neue", Helvetica, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(13, 27, 140, .08);
  --shadow-lg: 0 18px 48px rgba(13, 27, 140, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Anchor targets clear the sticky header instead of hiding under it */
[id] { scroll-margin-top: 92px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(28px, 4vw, 48px) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

/* Eyebrow — the small gold uppercase label used throughout the current site */
.eyebrow {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .75rem;
}

.lede { font-size: 1.1rem; max-width: 78ch; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 10px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--cta); color: var(--ink); box-shadow: 0 6px 20px rgba(255, 183, 3, .42); }
.btn--primary:hover { background: var(--cta-deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--navy { background: var(--navy); color: var(--white); box-shadow: 0 6px 18px rgba(13,27,140,.28); }
.btn--navy:hover { background: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row,
.cta-band .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 86px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--font-head);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__links a.is-active { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }
/* .nav__links a (class + element) outranks a bare .nav__cta, so the dark
   nav link colour was winning over the button. Match that specificity. */
.nav__links a.nav__cta,
.nav__links a.nav__cta:hover { color: var(--white); }
.nav__cta { padding: 9px 20px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: 4px 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 55%, #16249e 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 78% 18%, rgba(217,179,16,.20), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(23,107,224,.30), transparent 46%);
  pointer-events: none;
}
/* Hero with a photo on the right that fades into the blue on its left and
   bottom edges, so the headline reads over solid navy. */
.hero__photo {
  /* Whole photo at its natural shape (no zoom-to-fill), anchored bottom-right. */
  position: absolute; bottom: 0; right: max(0px, calc((100% - var(--wrap)) / 2 - 40px)); z-index: 1; /* above the hero glow so it is not tinted; text (later in the page) still sits on top */
  height: 104%; width: auto; max-width: 56%; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0%, #000 40%, #000 82%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 76%, transparent 100%);
          mask-composite: intersect;
}
/* Cut-out object (no background): softer, and only a light edge fade. */
.hero__photo--cutout {
  opacity: .7;
  height: 72%; bottom: 12%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 85%, transparent 100%), linear-gradient(to top, transparent 0%, #000 18%);
          mask-image: linear-gradient(to right, transparent 0%, #000 30%, #000 85%, transparent 100%), linear-gradient(to top, transparent 0%, #000 18%);
}
@media (max-width: 760px) {
  .hero__photo { height: 100%; max-width: none; width: 100%; right: 0; opacity: .22; }
}
.hero__inner { position: relative; z-index: 1; padding: clamp(40px, 4.4vw, 62px) 0 clamp(26px, 3vw, 40px); max-width: 830px; }
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold-soft); display: block; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.92); max-width: 60ch; margin-bottom: 1.15rem; }
.hero .eyebrow { color: var(--gold-soft); margin-bottom: .35rem; }

.hero__stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(255,255,255,.22);
  padding: 30px 0 44px;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold-soft);
}
.hero__stat span { font-size: .87rem; color: rgba(255,255,255,.82); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(13,27,140,.22); }
.card h3 { color: var(--navy); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 60px; height: 60px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px; background: rgba(217,179,16,.14);
}
/* Service cards: icon and title side by side on one line. */
.card--inline .card__icon { float: left; margin: 0 16px 14px 0; }
.card--inline h3 { display: flex; align-items: center; min-height: 60px; margin: 0 0 14px; }
.card--inline h3 + * { clear: left; }
.card__icon img { width: 42px; height: 42px; object-fit: contain; }
.card__icon svg { width: 42px; height: 42px; stroke: var(--gold); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Service list bullets */
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; font-size: .93rem; margin-bottom: 7px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

/* Inverted card — used for the "not sure what you need" prompt */
.card--invert {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-color: transparent;
}
.card--invert h3 { color: var(--white); }
.card--invert p { color: rgba(255,255,255,.88); }

/* Checkmark list — replaces the inline-styled lists used on service sections */
ul.check { list-style: none; padding: 0; margin: 22px 0 0; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.check li::before {
  content: "";
  position: absolute; left: 0; top: .34em;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(217,179,16,.18);
}
ul.check li::after {
  content: "";
  position: absolute; left: 5px; top: .62em;
  width: 6px; height: 3px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Service index chips at the top of the services page */
.grid--5-idx { grid-template-columns: repeat(5, 1fr); }
/* Services index: one light-yellow strip tucked right under the hero. The
   tiles have no box of their own; on hover or tap the icon and label lift. */
.svc-strip {
  background: rgba(217,179,16,.14);
  border-bottom: 1px solid rgba(217,179,16,.28);
}
.svc-strip .grid { gap: 0; }
.svc-chip {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 17px 14px;
  color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
}
.svc-chip > * { transition: transform .18s ease; }
.svc-chip:hover, .svc-chip:focus-visible { text-decoration: none; }
.svc-chip:hover > *, .svc-chip:focus-visible > *, .svc-chip:active > * { transform: translateY(-5px); }
@media (prefers-reduced-motion: reduce) { .svc-chip > * { transition: none; } }
.svc-chip svg {
  /* 46px icon with 5px less padding top and bottom keeps the box the same height. */
  width: 46px; height: 46px; stroke: var(--navy);
  fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.svc-chip__img { height: 46px; width: auto; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
/* Photo with no frame that melts into the page on its left and top edges. */
.split img.img-fade-left {
  border-radius: 0; box-shadow: none;
  /* Two fades, left and top; the image shows only where both are opaque. */
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to top, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to top, #000 70%, transparent 100%);
          mask-composite: intersect;
}
/* Full-height section photo: runs from the section top edge to its bottom
   edge, fading toward the text and out along the bottom. */
.split img.img-fullh {
  align-self: stretch;
  height: calc(100% + 2 * clamp(28px, 4vw, 48px));
  margin: calc(-1 * clamp(28px, 4vw, 48px)) 0;
  width: 100%; object-fit: cover; object-position: center;
}
.split img.img-fade-left.img-fullh {
  -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, #000 70%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.split img.img-fade-right-top.img-fullh {
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.split img.img-fade-right-top.img-fullh { object-position: 15% center; }
/* Subject stands at the photo's left edge: frame from the left and keep the
   side fade short so it does not wash him out. */
.split img.img-fade-left.img-fullh.img-subject-left {
  object-position: 0% center;
  -webkit-mask-image: linear-gradient(to left, #000 88%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to left, #000 88%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
}
@media (max-width: 960px) {
  .split img.img-fullh { height: auto; margin: 0 0 28px; }
}
/* Smaller: show the whole photo at its own shape, centred beside the text. */
@media (min-width: 961px) {
  .split img.img-fullh { align-self: center; height: auto; margin: 0; max-height: 440px; object-fit: cover; }
  .split img.img-fade-left.img-fullh, .split img.img-fade-right-top.img-fullh {
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
  .split img.img-fade-left.img-fullh { -webkit-mask-image: linear-gradient(to left, #000 72%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to left, #000 72%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); }
  .split img.img-fade-right-top.img-fullh { -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); }
  .split img.img-fade-left.img-fullh.img-subject-left { -webkit-mask-image: linear-gradient(to left, #000 88%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to left, #000 88%, transparent 100%), linear-gradient(to bottom, #000 88%, transparent 100%); }
}
/* Wide photo that slides under the text column; its faded left side sits
   behind the words. The text stays on top. */
.split:has(.img-overlap) > div { position: relative; z-index: 1; }
.split img.img-overlap {
  position: relative; z-index: 0; align-self: start;
  width: 132%; max-width: none; margin-left: -32%;
  /* Pull up through the section padding so the photo meets the top edge. */
  margin-top: calc(-1 * clamp(28px, 4vw, 48px));
  /* Run the full height of the section, top edge to bottom edge, so the bottom
     fade lands on the section boundary instead of mid-air. */
  height: calc(100% + 2 * clamp(28px, 4vw, 48px));
  margin-bottom: calc(-1 * clamp(28px, 4vw, 48px));
  object-fit: cover; object-position: center top;
  border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 92%), linear-gradient(to bottom, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to left, #000 50%, transparent 92%), linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-composite: intersect;
}
@media (max-width: 960px) {
  .split img.img-overlap { width: 100%; margin-left: 0; margin-top: 0; margin-bottom: 0; height: auto; }
}
.split img.img-fade-right-top {
  border-radius: 0; box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to top, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, #000 70%, transparent 100%), linear-gradient(to top, #000 70%, transparent 100%);
          mask-composite: intersect;
}
/* Our Story: the photo floats right and the text wraps around it, then runs
   the full width underneath instead of leaving an empty column. */
.story::after { content: ""; display: block; clear: both; }
.story__img {
  float: right; width: 48%; margin: 0 0 24px clamp(32px, 5vw, 64px);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
@media (max-width: 960px) {
  .story__img { float: none; width: 100%; margin: 0 0 28px; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center;
}
.step h3 { margin-bottom: .35rem; }

/* ---------- Coverage ---------- */

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(115deg, var(--navy-deep), var(--navy)); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 58ch; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: .97rem; color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,107,224,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Contact info ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-list svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 64px 0 28px; font-size: .93rem; }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-logo { height: 78px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: rgba(255,255,255,.55);
}

/* ---------- Driver page extras ---------- */
.perk { display: flex; gap: 16px; align-items: flex-start; }
.perk svg { width: 38px; height: 38px; stroke: var(--gold); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 2px; }
.perk h3 { margin-bottom: .25rem; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 22px; margin-bottom: 14px; background: var(--white);
}
.faq summary {
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
/* Chrome paints a hard black outline on a clicked <summary>. Replace it with
   a brand-coloured ring, and only on keyboard focus - removing it outright
   would leave keyboard users with no visible focus at all. */
.faq summary:focus { outline: none; }
.faq summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { margin-bottom: 12px; }
.faq p { margin-bottom: 0; font-size: .96rem; }

/* ---------- Welcome / onboarding page ---------- */

/* Progress rail */
.onboard-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 34px;
}
.onboard-rail a {
  display: block; padding: 13px 14px; border-radius: 9px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.92); font-family: var(--font-head);
  font-size: .82rem; font-weight: 600; text-align: left;
}
.onboard-rail a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.onboard-rail span { display: block; font-size: .68rem; letter-spacing: .12em; color: var(--gold-soft); margin-bottom: 3px; }

/* Numbered onboarding step blocks */
.ostep {
  display: grid; grid-template-columns: 62px 1fr; gap: 26px;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.ostep:first-of-type { border-top: 0; }
.ostep__num {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  display: grid; place-items: center;
}
.ostep__body h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.ostep__body > p:first-of-type { color: var(--muted); margin-top: -.15rem; }

/* Location code table */
.codes { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-size: .94rem; }
.codes th, .codes td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.codes th {
  font-family: var(--font-head); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.codes td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.codes code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 5px; font-size: .89rem;
  color: var(--ink); letter-spacing: .02em;
}
.table-scroll { overflow-x: auto; }

/* Callout — warnings and important notes */
.callout {
  border-left: 4px solid var(--gold);
  background: rgba(217,179,16,.09);
  padding: 16px 20px; border-radius: 0 9px 9px 0;
  margin: 20px 0; font-size: .95rem;
}
.callout strong { color: var(--ink); font-family: var(--font-head); }
.callout p:last-child { margin-bottom: 0; }
.callout--alert { border-left-color: #C0392B; background: rgba(192,57,43,.07); }

/* Training chapter list */
.chapters { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: ch; }
.chapters li {
  counter-increment: ch;
  display: grid; grid-template-columns: 34px 1fr; gap: 15px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.chapters li:last-child { border-bottom: 0; }
.chapters li::before {
  content: counter(ch);
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--gold); background: rgba(217,179,16,.14);
  width: 27px; height: 27px; border-radius: 50%;
  display: grid; place-items: center;
}
.chapters strong { font-family: var(--font-head); color: var(--ink); font-weight: 600; display: block; }
.chapters em { font-style: normal; color: var(--muted); font-size: .9rem; }

/* First-day checklist */
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 11px; }
.checklist li {
  display: grid; grid-template-columns: 26px 1fr; gap: 13px; align-items: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 9px; padding: 15px 17px;
}
.checklist li::before {
  content: ""; width: 19px; height: 19px; margin-top: 2px;
  border: 2px solid var(--gold); border-radius: 5px;
}

/* Dispatch contact cards */
.dispatch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.dispatch a {
  display: block; text-align: center; padding: 24px 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease;
}
.dispatch a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.dispatch .mkt {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.dispatch .num {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 1.22rem; color: var(--navy); font-variant-numeric: tabular-nums;
}
.dispatch .city { display: block; font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* App download buttons */
.applinks { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 18px; }
.applink {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 22px; border-radius: 8px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
}
.applink:hover { text-decoration: none; background: #1d2530; }
.applink svg { width: 19px; height: 19px; fill: currentColor; }

@media (max-width: 720px) {
  .onboard-rail { grid-template-columns: repeat(2, 1fr); }
  .ostep { grid-template-columns: 1fr; gap: 16px; }
  .ostep__num { width: 50px; height: 50px; font-size: 1.2rem; }
  .dispatch { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--5-idx { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 13px 0; width: 100%; }
  .nav__toggle { display: block; }
  .grid--3, .grid--4, .grid--2, .split, .steps, .field-row { grid-template-columns: 1fr; }
  .grid--5-idx { grid-template-columns: repeat(2, 1fr); }
  .split { display: block; }
  .split img { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Video hero (carried over from the live ivyslogistics.com) ----------
   The <video> sits behind the copy; the navy gradient on .hero stays as the
   fallback so the hero still reads if the video is blocked, still loading, or
   the viewer has asked for reduced motion. */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Poster frame shows instantly while the mp4 streams in. */
  background: #0A1466 center/cover no-repeat;
}
/* Darken the footage so white type keeps its contrast (WCAG AA) over any frame. */
.hero--video::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(10,20,102,.86) 0%, rgba(13,27,140,.66) 52%, rgba(13,27,140,.38) 100%);
}
.hero--video::after { z-index: 1; }
.hero--video .hero__inner,
.hero--video .hero__stats { position: relative; z-index: 2; }

/* Respect reduced-motion: hide the moving footage, keep the poster still. */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

/* ---------- Certifications (MWBE / OSHA / SDVOSB) ---------- */
.certs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.cert {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-soft);
  border: 1px solid rgba(217,179,16,.55);
  border-radius: 999px; padding: .4rem .85rem;
}
.hero .cert { color: var(--navy-deep); }
.cert__full { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--body); }


/* ---------- Log In button in the nav ---------- */
.nav__login {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: var(--navy);
  border-radius: 8px; padding: .62rem 1.15rem;
}
.nav__login:hover { background: var(--navy-deep); }
.cert-list { list-style: none; padding: 0; margin: 1.1rem 0 1.6rem; }
.cert-list li { margin-bottom: .35rem; }
.contact-note { display: block; font-size: .78rem; color: var(--muted); margin: -2px 0 .5rem; }

/* ---------- Text-us launcher (Quo business lines) ----------
   Replaces the WhatsApp bubble. Texts land on a Quo line, so every inbound
   message is logged in the Comms Hub against the right location. */
.textus { position: fixed; left: 18px; bottom: 18px; z-index: 60; }
.textus__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; padding: 0;
  cursor: pointer;
  border-radius: 50%;
  /* A white ring separates the button from BOTH backgrounds it floats over:
     the navy hero and the white sections below it. Without it the green
     merges into whichever it happens to be sitting on as you scroll. */
  border: 3px solid #fff;
  background: linear-gradient(145deg, var(--kelly-lite) 0%, var(--kelly) 52%, var(--kelly-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.20), 0 10px 30px rgba(24,100,52,.48);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
/* A slow pulse draws the eye without nagging; it stops on hover and is
   switched off entirely for anyone who asked for reduced motion. */
@keyframes textusPulse {
  0%, 100% { box-shadow: 0 4px 10px rgba(0,0,0,.18), 0 10px 30px rgba(24,100,52,.48), 0 0 0 0 rgba(63,176,105,.55); }
  50%      { box-shadow: 0 4px 10px rgba(0,0,0,.18), 0 10px 30px rgba(24,100,52,.48), 0 0 0 14px rgba(63,176,105,0); }
}
.textus__btn { animation: textusPulse 2.8s ease-out infinite; }
.textus__btn:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .textus__btn { animation: none; } }
.textus__btn:hover { transform: scale(1.07); background: linear-gradient(145deg, var(--kelly) 0%, var(--kelly-deep) 60%, #256F43 100%); }
.textus__btn svg { width: 32px; height: 32px; fill: currentColor; flex: none;
  /* White on this green is low contrast; a soft dark edge lifts the glyph off
     the background without changing the requested colour. */
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }

/* Kay chat panel (built by kay.js) */
.textus__btn.is-open { animation: none; }
.kay {
  position: absolute; left: 0; bottom: 82px;
  width: 340px; max-width: calc(100vw - 36px);
  max-height: min(560px, calc(100vh - 120px));
  display: none; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform-origin: bottom left;
}
.kay[data-open="true"] { display: flex; animation: kayIn .22s ease-out; }
@keyframes kayIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.kay__head {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem;
  background: linear-gradient(145deg, var(--kelly-lite) 0%, var(--kelly) 52%, var(--kelly-deep) 100%); color: #fff;
}
.kay__avatar {
  position: relative; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  background: linear-gradient(145deg, var(--gold-soft) 0%, var(--gold) 100%); color: var(--navy);
  border: 2px solid #fff;
}
.kay__avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--kelly);
}
.kay__who { flex: 1; min-width: 0; line-height: 1.25; }
.kay__who strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.kay__status { font-size: .78rem; opacity: .95; }
.kay__close {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff;
}
.kay__close:hover { background: rgba(255,255,255,.24); }
.kay__close svg { width: 16px; height: 16px; fill: currentColor; }
.kay__log {
  flex: 1; overflow-y: auto;
  padding: 1rem; display: flex; flex-direction: column; gap: .5rem;
  background: var(--bg-soft);
}
.kay__msg {
  max-width: 86%; padding: .6rem .85rem;
  font-size: .9rem; line-height: 1.45; border-radius: 16px;
  animation: kayMsg .2s ease-out;
}
@keyframes kayMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.kay__msg--kay { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.kay__msg--me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.kay__typing { display: inline-flex; gap: 4px; padding: .75rem .9rem; }
.kay__typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: kayDot 1s infinite; }
.kay__typing span:nth-child(2) { animation-delay: .15s; }
.kay__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kayDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.kay__chips { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; margin-top: .35rem; }
.kay__chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem;
  color: var(--navy); background: #fff;
  border: 1.5px solid var(--navy); border-radius: 999px;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
.kay__chip:hover { background: var(--navy); color: #fff; transform: translateX(-2px); }
.kay__chip-icon { font-size: 1rem; line-height: 1; }
.kay__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .15rem; }
.kay__action {
  display: inline-block; padding: .55rem .95rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem; text-decoration: none;
  color: var(--navy); background: #fff; border: 1.5px solid var(--line);
}
.kay__action:hover { border-color: var(--navy); }
.kay__action--primary { background: var(--cta); border-color: var(--cta); color: var(--ink); }
.kay__action--primary:hover { background: var(--cta-deep); border-color: var(--cta-deep); }
.kay__back {
  align-self: flex-start; margin-top: .2rem; padding: .3rem 0;
  border: 0; background: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; color: var(--muted);
}
.kay__back:hover { color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .kay[data-open="true"], .kay__msg, .kay__typing span { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .textus__btn { transition: none; } }


/* ---------- Jobs board ---------- */
.jobs__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 34px 0 1rem; padding-top: 26px; border-top: 4px solid var(--navy); }
.jobs__count { font-size: .9rem; color: var(--muted); }
.jobs__filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; padding: 0; list-style: none; }
.jobs__filter {
  font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: .6rem 1.15rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.jobs__filter:hover { border-color: var(--navy); }
.jobs__filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.job {
  background: #fff; border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1rem;
}
.job__top { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.job__meta { flex: 1 1 320px; min-width: 0; }
.job__ref {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .74rem; letter-spacing: .06em;
  color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px; padding: .22rem .55rem;
}
.job__status { font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .07em; color: #16A34A; margin-left: .55rem; }
.job__status::before { content: "\25CF"; margin-right: .3rem; }
.job__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.1vw, 1.32rem); color: var(--ink); margin: .55rem 0 .7rem; line-height: 1.25; text-transform: uppercase; }
.job__tags { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.job__tag { font-size: .8rem; color: var(--navy); background: var(--bg-soft); border-radius: 7px; padding: .34rem .7rem; }
.job__tag--primary { background: var(--navy); color: #fff; font-weight: 600; }
.job__actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.job__toggle {
  width: 44px; height: 44px; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  display: grid; place-items: center; color: var(--ink);
}
.job__toggle:hover { border-color: var(--navy); }
.job__toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .18s ease; }
.job__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.job__body { display: none; border-top: 1px solid var(--line); margin-top: 1.15rem; padding-top: 1.15rem; }
.job__body[data-open="true"] { display: block; }
.job__body h4 { font-family: var(--font-head); font-size: .92rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); margin: 1.1rem 0 .5rem; }
.job__body h4:first-child { margin-top: 0; }
.job__body ul { list-style: none; padding: 0; margin: 0 0 .5rem; }
.job__body li { position: relative; padding-left: 1.3rem; margin-bottom: .4rem; }
.job__body li::before { content: "\25C6"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; }
.job__perks { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.job__perk { font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: var(--gold-soft); border: 1px solid rgba(217,179,16,.55); border-radius: 999px; padding: .34rem .75rem; }
.job__contact { font-size: .9rem; color: var(--body); margin-top: .9rem; }
.jobs__empty { text-align: center; padding: 2.4rem 1rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .job__toggle svg { transition: none; } }
@media (max-width: 620px) { .job__actions { width: 100%; } .job__actions .btn { flex: 1; } }

/* ---------- Apply form additions ---------- */
.req { color: #DC2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .4rem; margin: 0 0 1.1rem; }
.field-group legend { font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 .4rem; }
.field--check { margin-bottom: 1.1rem; }
/* Scoped to the form: a bare `.check` would also catch `ul.check`, the
   requirements list, and lay it out as a row of one-word columns. */
.check-label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; cursor: pointer; }
.check-label input { margin-top: .25rem; flex: none; }
.form-status { min-height: 1.3em; margin: .7rem 0 0; font-size: .9rem; color: var(--muted); }
.form-status--error { color: #DC2626; }
.form-done { text-align: center; padding: 1.4rem .5rem; }
.form-done h3 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .6rem; }

/* ---------- Driver sign-in (Drivers page only) ----------
   Existing drivers get their own entry point here rather than a "Log In" in
   the main nav: the nav is selling contracts, and a bare login there reads as
   a customer portal to shippers. */
.signin { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; }
.signin__text { flex: 1 1 420px; }
.signin__text h2 { margin-bottom: .5rem; }
.signin__text p { margin: 0 0 .5rem; }
.signin__action { flex: none; }
@media (max-width: 620px) { .signin__action { width: 100%; } .signin__action .btn { width: 100%; } }

/* ---------- Inner-page heroes: one consistent height ----------
   Services / About / Drivers / Contact carry different amounts of copy, which
   left each hero a different depth as you moved between pages. A min-height
   with the content vertically centred keeps the masthead steady; the homepage
   video hero is deliberately taller and is not included. */
.hero:not(.hero--video):not(.hero--slim) .hero__inner {
  /* Equal mastheads across Services / About / Drivers / Contact. A fixed
     height alone clipped the headline, because the sticky header sits over
     the top of the hero: the box was the right size but its content was
     centred behind the nav. min-height plus real padding gives the same
     visual height with nothing hidden. */
  min-height: 490px;
  padding-top: 62px;
  padding-bottom: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 760px) {
  .hero:not(.hero--video):not(.hero--slim) .hero__inner { min-height: 0; padding: 40px 0 26px; }
}
/* Keep the bigger mark from crowding the bar on small screens. */
@media (max-width: 760px) {
  .nav { min-height: 76px; }
  .nav__logo img { height: 70px; }
}

/* ---------- Legal pages (Privacy, Terms) ----------
   Long-form reading: narrower measure, generous line height, clear headings. */
.legal__body { max-width: 1132px; }
/* Justified, with hyphenation on: without it, justifying lines this wide
   opens ugly rivers of white space between words. Headings stay ragged. */
.legal p, .legal li {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.legal h2, .legal__updated { text-align: left; }
.legal__updated { font-size: .84rem; color: var(--muted); margin: 0 0 1.6rem; }
.legal h2 {
  font-family: var(--font-head); font-size: 1.12rem; color: var(--ink);
  margin: 2rem 0 .6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1rem; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .45rem; }
/* A certification that is applied for but not yet awarded reads differently
   from one we hold — procurement verifies these. */
.cert--pending { background: #fff; border-style: dashed; color: var(--body); }
.cert--pending em { font-style: normal; font-weight: 500; opacity: .8; letter-spacing: 0; text-transform: none; }

/* ---------- Capability Statement modal ---------- */
.capmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.capmodal[hidden] { display: none; }
.capmodal__backdrop { position: absolute; inset: 0; background: rgba(10,20,102,.55); backdrop-filter: blur(2px); }
.capmodal__panel {
  position: relative; z-index: 1;
  width: min(1040px, 100%); max-height: 92vh;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.capmodal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.capmodal__bar h2 { margin: 0; font-size: 1.05rem; font-family: var(--font-head); color: var(--ink); }
.capmodal__actions { display: flex; align-items: center; gap: .5rem; }
.capmodal__actions .btn { padding: 8px 16px; font-size: .84rem; }
.capmodal__dl { color: var(--navy); border-color: var(--navy); }
.capmodal__dl:hover { background: rgba(13,27,140,.07); }
.capmodal__x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.capmodal__x:hover { color: var(--ink); }
.capmodal__scroll { overflow: auto; padding: 22px; }

/* The sheet itself */
.capsheet { color: var(--ink); font-size: .86rem; line-height: 1.5; }
.capsheet__head { display: flex; gap: 1.2rem; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.capsheet__logo { height: 76px; width: auto; flex: none; }
.capsheet__head h1 { font-size: 1.5rem; margin: 0 0 .2rem; color: var(--navy); text-transform: uppercase; letter-spacing: .01em; }
.capsheet__tag { margin: 0; color: var(--blue); font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; }
.capsheet__rule { margin: .35rem 0 0; font-size: .72rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.capsheet__grid { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
.capsheet h3 { font-family: var(--font-head); font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 1.3rem 0 .55rem; padding-bottom: 5px; border-bottom: 2px solid var(--gold); }
.capsheet h3:first-child { margin-top: 0; }
.capsheet h4 { font-family: var(--font-head); font-size: .82rem; color: var(--navy); margin: 0 0 .2rem; text-transform: uppercase; letter-spacing: .02em; }
.capsheet p { margin: 0 0 .7rem; }
.capsheet__dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: .8rem; }
.capsheet__dl dt { color: var(--muted); }
.capsheet__dl dd { margin: 0; font-weight: 600; }
.capsheet__certs, .capsheet__naics, .capsheet__markets, .capsheet__stats { list-style: none; padding: 0; margin: 0; }
.capsheet__certs li { margin-bottom: .5rem; }
.capsheet__certs strong { display: block; color: var(--navy); font-size: .9rem; }
.capsheet__certs span, .capsheet__markets span { display: block; font-size: .76rem; color: var(--body); }
.capsheet__naics li { font-size: .78rem; margin-bottom: .3rem; }
.capsheet__naics b { color: var(--navy); margin-right: .4rem; }
.capsheet__services, .capsheet__why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.capsheet__services > div, .capsheet__why > div { background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; }
.capsheet__services p, .capsheet__why p { margin: 0; font-size: .78rem; }
.capsheet__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.capsheet__markets li { margin-bottom: .5rem; }
.capsheet__markets strong { color: var(--navy); font-size: .82rem; }
.capsheet__stats li { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .45rem; }
.capsheet__stats b { color: var(--navy); font-size: 1rem; min-width: 76px; }
.capsheet__stats span { font-size: .76rem; color: var(--body); }
.capsheet__foot { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; margin-top: 20px; padding-top: 12px; border-top: 3px solid var(--navy); font-size: .8rem; }
.capsheet__foot em { margin-left: auto; color: var(--navy); font-weight: 600; }

@media (max-width: 860px) {
  .capsheet__grid, .capsheet__services, .capsheet__why, .capsheet__cols { grid-template-columns: 1fr; }
  .capmodal { padding: 0; }
  .capmodal__panel { max-height: 100vh; border-radius: 0; }
}

/* Print: the sheet only, nothing else on the page. */
@media print {
  body > *:not(.capmodal) { display: none !important; }
  .capmodal, .capmodal__panel, .capmodal__scroll { position: static; max-height: none; overflow: visible; box-shadow: none; padding: 0; }
  .capmodal__backdrop, .capmodal__bar { display: none !important; }
  .capmodal { display: block !important; }
  .capsheet { font-size: 9.2pt; }
  .capsheet__grid { grid-template-columns: 280px 1fr; }
  .capsheet__services > div, .capsheet__why > div { background: #F4F6FB !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; color: inherit; }
  @page { margin: 12mm; }
}

/* ---------- Slim hero (legal pages) ----------
   A legal page's hero is a label, not a pitch: one short heading and no
   sub-copy, so the full-size masthead left a large empty navy slab. Roughly
   1.2x the height of the nav bar. */
.hero.hero--slim:not(.hero--video) .hero__inner {
  min-height: 0;
  height: auto;
  padding: 24px 0 18px;
}
.hero--slim .eyebrow { margin-bottom: .2rem; }

/* ---------- Coverage: state outlines ----------
   Plain text pills said where we work; the silhouettes make it legible at a
   glance and tie the markets to a place. */
.states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.state {
  /* Same coloring as .callout: soft gold tint + gold bar down the left side. */
  background: rgba(217,179,16,.09);
  border: 0;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 14px 18px;
  box-shadow: 0 2px 4px rgba(13,27,140,.07), 0 10px 24px rgba(13,27,140,.12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.state:hover { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(13,27,140,.09), 0 16px 34px rgba(13,27,140,.18); }
.state__name {
  display: block;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--ink);
}
.state__sub { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .state { transition: none; } }

/* ---------- Bleed split (Why Shippers Work With Us) ----------
   The photo runs wide and sits flat behind the copy - no rounding, no
   shadow. The text panel overlaps it and fades out on its right edge, so
   the two meet without a hard line. */
/* The bleed image runs to the top edge of the section, so the section
   carries no top padding of its own; the text panel supplies its own. */
.whyus { overflow-x: clip; padding-top: 0; }
.split--bleed {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 0;
}
.split--bleed .split__panel {
  position: relative;
  z-index: 2;
  /* The panel sits on the section colour and dissolves into the photo. */
  background: linear-gradient(90deg,
    var(--bg-soft) 0%,
    var(--bg-soft) 84%,
    rgba(244, 246, 251, .95) 93%,
    rgba(244, 246, 251, 0) 100%);
  padding: 56px 130px 40px 0;
  /* Overlap the image rather than sitting beside it. */
  margin-right: -32%;
}
.split--bleed .split__bleed-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  /* Soften the bottom edge so the photo melts into the cards below. */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  /* Reach past the page gutter to the edge of the viewport. */
  margin-right: calc(50% - 50vw);
  width: calc(100% + (50vw - 50%));
}

@media (max-width: 860px) {
  .split--bleed { grid-template-columns: 1fr; }
  .split--bleed .split__panel {
    margin-right: 0;
    padding: 0 0 26px;
    background: none;
  }
  .split--bleed .split__bleed-img {
    min-height: 260px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    width: 100vw;
  }
}

/* Certification logos + PDF pop-up (about page) */
.cert-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.2rem; list-style: none; padding: 0; margin: 1.6rem 0 .4rem; }
.cert-logos li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; display: flex; align-items: center; }
.cert-logos img { height: 64px; width: auto; display: block; }
.capmodal__panel:has(.capmodal__pdf) { width: min(900px, 100%); height: 94vh; max-height: 94vh; }
.capmodal__pdf { flex: 1; width: 100%; border: 0; background: #e9ecf2; }
@media (max-width: 560px) { .cert-logos img { height: 48px; } .cert-logos { gap: .8rem; } }
/* Services hero: the left fade is baked into the PNG (so the logo on the van
   side stays visible); CSS only softens the top, bottom and right edges. */
.hero__photo--vans, .hero__photo--baked {
  height: auto; width: min(46%, 650px); max-width: none; bottom: 0; object-fit: contain; opacity: .62;
  -webkit-mask-image: none; mask-image: none;
}
@media (max-width: 760px) { .hero__photo--vans, .hero__photo--baked { width: 100%; max-width: none; } }
@media (min-width: 761px) { .hero__photo--baked { top: 50%; bottom: auto; transform: translateY(-50%); } }
@media (min-width: 761px) { .hero__photo--vans { top: 0; bottom: 0; height: 100%; width: auto; max-width: 60%; object-fit: cover; object-position: right bottom; } }
/* Wide graphic: keep it to the right half and a little softer so the headline reads. */
@media (min-width: 761px) { .hero__photo--wide { max-width: 44%; opacity: .75; } .hero:has(.hero__photo--wide) .hero__sub { max-width: 560px; } }
@media (min-width: 761px) { .hero:has(.hero__photo--vans) .hero__sub, .hero:has(.hero__photo--baked) .hero__sub { max-width: 600px; } }

@media (min-width: 761px) { .hero__photo--wide { height: auto; width: 60%; max-width: 840px; object-fit: contain; top: 50%; bottom: auto; transform: translateY(-50%); opacity: .85; } }
/* Cut-out picture (transparent background): no frame, no shadow. */
.split img.img-plain { border-radius: 0; box-shadow: none; }
@media (min-width: 961px) { .split img.img-plain { width: 122%; max-width: none; margin-left: -22%; } }
/* Landscape photo in a hero: cover the right side, framed on the subject. */
@media (min-width: 761px) { .hero__photo--landscape { width: 40%; max-width: 640px; height: 100%; top: 0; bottom: 0; object-fit: cover; object-position: 78% 20%; } }
.story__img--plain { border-radius: 0; box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
/* ---------- Mobile-only layout tweaks ---------- */
@media (max-width: 760px) {
  /* Hero buttons: equal, full-width */
  .hero .btn-row .btn { flex: 1 1 100%; justify-content: center; text-align: center; }

  /* Every text + photo section, on every page: small yellow label, then the
     black title, then the photo, then the rest of the copy. */
  .split:has(> img), .story {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
  }
  .split:has(> img) > div > *, .story > * { align-self: stretch; text-align: left; }
  .split:has(> img) > div { display: contents; }
  .split:has(> img) > div > *, .story > * { order: 4; }
  .split:has(> img) > div > .eyebrow, .story > .eyebrow { order: 1; }
  .split:has(> img) > div > h2, .story > h2 { order: 2; }
  .split:has(> img) > img, .split:has(> img) > img.img-fullh, .story > .story__img {
    order: 3; margin: 10px 0 22px; float: none; width: 100%;
  }
  .split--bleed > img { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
  .split:has(> img.img-overlap) > img { margin-top: 6px; height: auto; }

  /* How it works: number and title on one line, copy underneath */
  .step { padding-top: 0; }
  .step h3 { display: flex; align-items: center; min-height: 42px; padding-left: 56px; margin-bottom: .5rem; }
}
