/*
Theme Name: RoadSync Solutions
Theme URI: https://roadsyncsolutions.com/
Author: RoadSync Solutions
Author URI: https://roadsyncsolutions.com/
Description: Custom two-lane theme for RoadSync Solutions. Teal marks Digital & IT, amber marks Truck Dispatch, and the home page opens on a highway sign gantry. Includes page templates for Digital & IT, Truck Dispatch, Why Us, and Contact, plus two sample dashboard modules (marketing and dispatch).
Version: 1.7.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: roadsync
Tags: business, two-columns, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================
   RoadSync Solutions
   Concept: an overhead highway gantry. Two signs, two lanes:
   teal = Digital & IT, amber = Truck Dispatch.

   System rules
   - A lane's color marks everything that belongs to it.
   - Real sequences are shown as mile markers along a road.
   - Interior pages open on a dark navy banner; the rest is light.

   Typeface: Overpass (open source, based on US highway lettering)
   ========================================================== */

:root {
  --night: #0A1A2F;
  --asphalt: #13294A;
  --asphalt-2: #16304F;
  --steel: #8A99AD;
  --concrete: #EDF1F5;
  --paper: #FFFFFF;
  --ink: #0A1A2F;
  --ink-muted: #4B5B70;
  --rule: #D5DDE6;
  --field-line: #B9C4D0;
  --soft-on-dark: #C5D0DC;
  --lane-white: #E9EEF3;

  --teal: #2CC4B6;
  --teal-deep: #0E7C73;
  --amber: #F5A623;
  --amber-bright: #FFC04D;
  --error: #B42318;

  --font: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 108px;

  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.3125rem;
  --fs-lg: clamp(1.6rem, 2.6vw, 2.1rem);
  --fs-xl: clamp(2rem, 3.8vw, 2.9rem);
  --fs-hero: clamp(2.75rem, 7vw, 5.25rem);
  --fs-page: clamp(2.4rem, 5.4vw, 4.1rem);
}

/* page accent follows the lane */
body { --accent: var(--lane-white); }
body[data-lane="digital"] { --accent: var(--teal); }
body[data-lane="dispatch"] { --accent: var(--amber); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--concrete);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px 10px; border-radius: 8px;
  background: var(--amber); color: var(--night); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--amber-bright); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px 12px;
  border: 2px solid transparent; border-radius: 8px;
  font: 700 1rem/1.1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--sm { padding: 11px 16px 9px; font-size: .95rem; }
.btn--amber { background: var(--amber); color: var(--night); }
.btn--amber:hover { background: var(--amber-bright); }
.btn--teal { background: var(--teal-deep); color: #fff; }
.btn--teal:hover { background: #0B6A62; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(233, 238, 243, .45); color: var(--lane-white); background: transparent; }
.btn--ghost-light:hover { border-color: var(--lane-white); background: rgba(233, 238, 243, .08); }

.text-link {
  font-weight: 700; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: var(--link-line, var(--teal));
}
.text-link:hover { text-decoration-color: currentColor; }
.on-dark .text-link { color: #fff; }
.text-link--amber { --link-line: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); color: var(--lane-white);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(233, 238, 243, .12); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; color: #fff; }
.brand__mark { width: 36px; height: 36px; flex: none; }
/* A logo uploaded under Site Identity. Constrained so a large source file
   can't stretch the header; scales down on narrow screens. */
.brand .custom-logo { display: block; width: auto; height: 72px; max-width: min(360px, 58vw); }
@media (max-width: 900px) { .brand .custom-logo { height: 60px; } }
@media (max-width: 560px) { .brand .custom-logo { height: 48px; } }
.brand__name { font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: -0.01em; }
.brand__sub { display: block; margin-top: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--steel); }

/* The logo in the footer: the same picture as the header, a little smaller,
   sitting on its own line above the tagline. */
.brand--footer { display: block; margin: 0 0 18px; }
.brand--footer .custom-logo-link { display: inline-block; }
.brand--footer .custom-logo { height: 58px; max-width: min(300px, 70vw); }
@media (max-width: 560px) { .brand--footer .custom-logo { height: 48px; } }

.site-nav__list { display: flex; gap: 34px; list-style: none; padding: 0; }
.site-nav a { display: block; padding: 8px 0 6px; font-weight: 600; font-size: 1.08rem; color: var(--soft-on-dark); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.site-nav__call { display: none; }
/* Scaled to sit level with the logo and nav rather than the default small button. */
.header-call.btn--sm { padding: 14px 22px 12px; font-size: 1.05rem; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1.5px solid rgba(233, 238, 243, .3); border-radius: 8px;
  background: transparent; color: var(--lane-white); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; position: relative; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, background-color .2s ease;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Dark banners: shared grid pattern ---------- */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--lane-white); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(233, 238, 243, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 243, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(56px, 8vw, 104px); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(38% 42% at 25% 88%, rgba(44, 196, 182, .17), transparent 70%),
    radial-gradient(34% 38% at 75% 90%, rgba(245, 166, 35, .09), transparent 70%);
}
.hero__intro {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(24px, 5vw, 72px); align-items: end;
}
.hero__title { font-size: var(--fs-hero); font-weight: 900; line-height: .98; letter-spacing: -0.025em; }
.hero__lede { max-width: 34ch; padding-bottom: .35em; font-size: var(--fs-md); line-height: 1.5; color: var(--soft-on-dark); }

/* ---------- Gantry + signs ---------- */
.gantry { position: relative; margin-top: clamp(56px, 8vw, 96px); }
.gantry__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: #24374F; border-top: 1px solid #3A5170;
}
.gantry::before, .gantry::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14px;
  background: #1C2F47; border-inline: 1px solid #2E4461;
}
.gantry::before { left: 12px; }
.gantry::after { right: 12px; }

.gantry__signs {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px); padding-top: 36px;
}
.sign { position: relative; display: block; border-radius: 16px; color: inherit; text-decoration: none; }
.sign::before, .sign::after {
  content: ""; position: absolute; top: -36px; width: 8px; height: 36px; background: #2A3D56;
}
.sign::before { left: 20%; }
.sign::after { right: 20%; }
.sign--digital { --face: var(--teal-deep); --fg: #fff; --line: rgba(255, 255, 255, .92); }
.sign--dispatch { --face: var(--amber); --fg: var(--night); --line: var(--night); }

.sign__face {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
  min-height: 150px; padding: 26px 30px 24px 32px;
  border-radius: 16px; background: var(--face); color: var(--fg);
  box-shadow: inset 0 0 0 7px var(--face), inset 0 0 0 10px var(--line);
  transition: filter .7s ease;
}
.sign__text { display: grid; gap: 8px; }
.sign__title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.01em; }
.sign__sub { max-width: 30ch; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.sign__arrow { width: 34px; height: 52px; transition: transform .25s ease; }
.sign:hover .sign__arrow, .sign:focus-visible .sign__arrow { transform: translateY(7px); }
.sign:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 6px; }

.js .hero .sign__face { filter: brightness(.3) saturate(.4); }
.js .hero.is-lit .sign__face { filter: none; }
.sign__face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-110%);
}
.hero.is-lit .sign__face::after { animation: sheen 1.2s ease-out .35s both; }
@keyframes sheen { to { transform: translateX(110%); } }

.lanes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  height: clamp(110px, 14vw, 180px); margin-top: 0;
}
.lane {
  position: relative; overflow: hidden; margin-inline: 8%;
  background: linear-gradient(to bottom, var(--asphalt), rgba(19, 41, 74, 0));
  border-inline: 3px solid rgba(233, 238, 243, .25);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
          mask-image: linear-gradient(to bottom, #000 35%, transparent);
}
.lane--digital { --dash: var(--teal); --glow: rgba(44, 196, 182, .22); }
.lane--dispatch { --dash: var(--amber); --glow: rgba(245, 166, 35, .14); }
.lane::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, var(--glow), transparent 70%);
}
.lane__dash {
  position: absolute; left: 50%; top: -64px; bottom: 0; width: 6px; margin-left: -3px;
  background: repeating-linear-gradient(to bottom, var(--dash) 0 32px, transparent 32px 64px);
  animation: lane-flow .7s linear infinite paused;
}
.lane.is-flowing .lane__dash { animation-play-state: running; }
@keyframes lane-flow { to { transform: translateY(64px); } }

/* ---------- Interior page banner ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-glow, none); }
body[data-lane="digital"] { --hero-glow: radial-gradient(40% 80% at 82% 30%, rgba(44, 196, 182, .18), transparent 70%); }
body[data-lane="dispatch"] { --hero-glow: radial-gradient(40% 80% at 82% 30%, rgba(245, 166, 35, .11), transparent 70%); }
body[data-lane="both"] {
  --hero-glow:
    radial-gradient(34% 70% at 68% 30%, rgba(44, 196, 182, .14), transparent 70%),
    radial-gradient(34% 70% at 92% 60%, rgba(245, 166, 35, .09), transparent 70%);
}
.page-hero__inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(32px, 6vw, 88px); align-items: end;
}
.page-hero__title { max-width: 15ch; font-size: var(--fs-page); font-weight: 900; line-height: 1; letter-spacing: -0.022em; }
.chip + .page-hero__title { margin-top: 20px; }
.page-hero__lede { max-width: 40ch; font-size: var(--fs-md); line-height: 1.5; color: var(--soft-on-dark); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* lane marking along the bottom edge of dark bands */
.lane-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 44px, transparent 44px 80px);
}
.lane-line--both {
  background: repeating-linear-gradient(90deg,
    var(--teal) 0 32px, transparent 32px 46px, var(--amber) 46px 78px, transparent 78px 92px);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--concrete { background: var(--concrete); }
.section--night { background: var(--night); color: var(--lane-white); }
.section-title { max-width: 20ch; font-size: var(--fs-xl); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-intro { max-width: 60ch; margin-top: 20px; font-size: 1.125rem; color: var(--ink-muted); }
.on-dark .section-intro { color: var(--soft-on-dark); }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }

.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 96px); align-items: start;
}

/* mini sign: which lane something belongs to */
.chip {
  display: inline-block; padding: 7px 14px 5px; border-radius: 7px;
  font-weight: 700; font-size: .95rem; line-height: 1.2;
  background: var(--chip-bg); color: var(--chip-fg);
  box-shadow: inset 0 0 0 2px var(--chip-bg), inset 0 0 0 3.5px var(--chip-line);
}
.chip--sm { padding: 5px 10px 3px; font-size: .8rem; border-radius: 6px; }
.chip--teal { --chip-bg: var(--teal-deep); --chip-fg: #fff; --chip-line: rgba(255, 255, 255, .9); }
.chip--amber { --chip-bg: var(--amber); --chip-fg: var(--night); --chip-line: var(--night); }
.chip + .section-title { margin-top: 18px; }

/* ---------- Service rows ---------- */
.service-rows { list-style: none; padding: 0; border-bottom: 1px solid var(--rule); }
.service-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 10px 40px; padding: 28px 0 30px; border-top: 1px solid var(--rule);
}
.service-row::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 3px; background: var(--row-dash, var(--teal)); }
.service-rows--amber { --row-dash: var(--amber); }
.service-row h3 { font-size: var(--fs-md); font-weight: 700; line-height: 1.25; }
.service-row p { max-width: 58ch; color: var(--ink-muted); }

/* ---------- Equipment ---------- */
.equip-title { margin-top: 36px; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.equip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.equip li {
  padding: 7px 12px 5px; border: 1.5px solid var(--field-line); border-radius: 4px;
  background: var(--paper); font-size: .95rem; font-weight: 600;
}

.equip-table { width: 100%; border-collapse: collapse; }
.equip-table th, .equip-table td { padding: 18px 0 16px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.equip-table thead th { padding: 0 0 12px; border-top: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-muted); }
.equip-table tbody th { width: 32%; padding-right: 24px; font-size: 1.125rem; font-weight: 700; }
.equip-table td { color: var(--ink-muted); }
.equip-table tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }

/* ---------- Mile markers (sequences only) ---------- */
.mile-road { position: relative; display: grid; gap: 44px; padding: 14px 0; list-style: none; }
.mile-road::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 46px;
  background: var(--night); border-radius: 6px;
}
.mile-road::after {
  content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 4px;
  background: repeating-linear-gradient(to bottom, var(--amber) 0 18px, transparent 18px 34px);
}
.mile-road--teal::after { background: repeating-linear-gradient(to bottom, var(--teal) 0 18px, transparent 18px 34px); }
.mile-road--both::after {
  background: repeating-linear-gradient(to bottom,
    var(--teal) 0 16px, transparent 16px 24px, var(--amber) 24px 40px, transparent 40px 48px);
}
.mile { position: relative; display: grid; grid-template-columns: 46px 58px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.mile__post {
  grid-column: 2; display: flex; flex-direction: column; align-items: center;
  padding: 9px 0 7px; border-radius: 6px; line-height: 1;
  background: var(--night); color: #fff;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 4.5px rgba(255, 255, 255, .85);
}
.mile__post span { font-size: .72rem; font-weight: 600; }
.mile__post strong { margin-top: 3px; font-size: 1.6rem; font-weight: 800; }
.mile__body { grid-column: 3; padding-top: 4px; }
.mile__body h3 { font-size: var(--fs-md); font-weight: 700; line-height: 1.25; }
.mile__body p { max-width: 52ch; margin-top: 8px; color: var(--ink-muted); }
.mile__body .chip { margin-top: 12px; }
.mile-road--compact { gap: 28px; }
.mile-road--compact .mile__body h3 { font-size: 1.125rem; }

/* ---------- Merge diagram ---------- */
.merge {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.merge-art { --road-edge: rgba(233, 238, 243, .28); --road: #16304F; --road-label: #C5D0DC; }
.merge-art--light { --road-edge: #C3CDD8; --road: var(--night); --road-label: var(--ink-muted); }
.merge-art svg { width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
.merge-art .road-edge { stroke: var(--road-edge); }
.merge-art .road { stroke: var(--road); }
.merge-art .merge-label { fill: var(--road-label); }
.merge__copy p + p { margin-top: 16px; }

.reasons { display: grid; margin-top: 40px; }
.reasons > div {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 6px 32px; padding: 20px 0; border-top: 1px solid var(--rule);
}
.reasons dt { font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.reasons dd { color: var(--ink-muted); }
.on-dark .reasons > div { border-top-color: rgba(233, 238, 243, .14); }
.on-dark .reasons dt { color: #fff; }
.on-dark .reasons dd { color: var(--soft-on-dark); }

.reasons-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 64px); }
.reason { position: relative; padding: 28px 0 32px; border-top: 1px solid var(--rule); }
.reason::before {
  content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--teal) 50%, var(--amber) 50%);
}
.reason--amber::before { background: var(--amber); }
.reason--teal::before { background: var(--teal-deep); }
.reason h3 { font-size: var(--fs-md); font-weight: 700; line-height: 1.25; }
.reason p { max-width: 48ch; margin-top: 10px; color: var(--ink-muted); }

/* ---------- Digital & IT: service details with side index ---------- */
.services-layout {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.side-index { position: sticky; top: calc(var(--header-h) + 32px); }
.side-index__title { margin-bottom: 12px; font-weight: 700; }
.side-index ul { display: grid; gap: 2px; padding: 0; list-style: none; border-left: 2px solid var(--rule); }
.side-index a {
  display: block; margin-left: -2px; padding: 7px 0 5px 16px;
  border-left: 2px solid transparent;
  font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--ink-muted); text-decoration: none;
}
.side-index a:hover { color: var(--ink); }
.side-index a[aria-current] { color: var(--teal-deep); border-left-color: var(--teal); }

.service-detail { position: relative; padding: 44px 0 48px; border-top: 1px solid var(--rule); }
.service-detail::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 3px; background: var(--teal); }
.service-detail:first-child { padding-top: 0; border-top: 0; }
.service-detail:first-child::before { display: none; }
.service-detail:last-child { padding-bottom: 0; }
.service-detail__title { font-size: var(--fs-lg); }
.service-detail__lede { max-width: 46ch; margin-top: 12px; font-size: var(--fs-md); line-height: 1.45; }
.service-detail__body { max-width: 62ch; margin-top: 12px; color: var(--ink-muted); }
.included-title { margin-top: 26px; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.dash-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin-top: 12px; padding: 0; list-style: none; }
.dash-list li { position: relative; padding-left: 26px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 3px; background: var(--teal); }

/* ---------- Setup packet checklist ---------- */
.packet { margin-top: 36px; padding: clamp(24px, 4vw, 34px); border-top: 5px solid var(--amber); border-radius: 12px; background: var(--paper); }
.packet__title { font-size: var(--fs-md); font-weight: 700; }
.checklist { display: grid; gap: 14px; margin-top: 18px; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; font-weight: 600; line-height: 1.4; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  border: 2px solid var(--night); border-radius: 4px;
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid var(--night); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.checklist small { display: block; margin-top: 2px; font-size: .9rem; font-weight: 500; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0 18px; cursor: pointer; list-style: none;
  font-size: 1.15rem; font-weight: 700; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer { max-width: 62ch; padding-bottom: 22px; color: var(--ink-muted); }

/* ---------- Cross-link panel ---------- */
.crosslink { position: relative; overflow: hidden; margin-top: 36px; padding: 24px 24px 22px 30px; border-radius: 12px; background: var(--paper); }
.section--paper .crosslink { background: var(--concrete); }
.crosslink::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--teal) 50%, var(--amber) 50%);
}
.crosslink__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.crosslink p { margin-top: 8px; color: var(--ink-muted); }
.crosslink__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: clamp(64px, 9vw, 104px) 0; background: var(--night); color: var(--lane-white); }
.cta-band__inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 64px; align-items: end;
}
.cta-band__text { max-width: 48ch; margin-top: 16px; font-size: 1.125rem; color: var(--soft-on-dark); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

/* ---------- Contact ---------- */
.direct-lines { display: grid; gap: 14px; margin-top: 36px; }
.direct-lines--flush { margin-top: 0; }
.direct {
  display: grid; gap: 2px; padding: 16px 20px 14px;
  border-left: 5px solid var(--direct-color); border-radius: 0 8px 8px 0;
  background: var(--concrete); text-decoration: none;
}
.direct--dispatch { --direct-color: var(--amber); }
.direct--digital { --direct-color: var(--teal-deep); }
.direct__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }
.direct__value { font-size: 1.3rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.direct:hover .direct__value { text-decoration: underline; text-underline-offset: 4px; }
.subhead { margin: 48px 0 24px; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
  padding: clamp(24px, 4vw, 40px); border-radius: 12px; background: var(--concrete);
}
.contact-form > .form-title,
.contact-form > .lane-picker,
.contact-form > .field--wide,
.contact-form > .btn,
.contact-form > .form-status { grid-column: 1 / -1; }
.contact-form.is-digital > .field--company { grid-column: 1 / -1; }
.form-title { font-size: var(--fs-md); font-weight: 800; }

.lane-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.lane-picker legend { margin-bottom: 10px; padding: 0; font-weight: 700; }
.lane-picker__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lane-option { position: relative; }
.lane-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lane-option span {
  display: block; padding: 12px 10px 10px; border: 1.5px solid var(--field-line); border-radius: 8px;
  background: var(--paper); text-align: center; font-weight: 700; font-size: .98rem; line-height: 1.25;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.lane-option input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.lane-option input[value="digital"]:checked + span { background: var(--teal-deep); border-color: var(--teal-deep); }
.lane-option input[value="dispatch"]:checked + span { background: var(--amber); border-color: var(--amber); color: var(--night); }
.lane-option input:focus-visible + span { outline: 3px solid var(--teal-deep); outline-offset: 2px; }

.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: .95rem; font-weight: 700; }
.optional { font-weight: 500; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px 10px;
  border: 1.5px solid var(--field-line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B7A8E; }
.field input:focus, .field textarea:focus { border-color: var(--teal-deep); }
.field__error { display: none; font-size: var(--fs-sm); font-weight: 600; color: var(--error); }
.field.has-error .field__error { display: block; }
.field.has-error input { border-color: var(--error); }
.contact-form > .btn { justify-self: start; }
.btn--submit { background: var(--night); color: #fff; }
.btn--submit:hover { background: var(--asphalt-2); }
/* The asterisk on a field that has to be filled in, and the line under the
   button saying what happens to what was typed. */
.req { color: var(--amber); font-weight: 700; margin-left: 2px; }

.contact-form > .form-note { grid-column: 1 / -1; }
.form-note {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.form-note a { color: inherit; text-decoration: underline; }
.form-note a:hover { color: var(--teal-deep); }

.form-status { font-weight: 700; color: var(--teal-deep); }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; background: var(--night); color: var(--soft-on-dark); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.footer__tagline { max-width: 34ch; margin-top: 16px; }
.footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 24px; }
.footer__heading { margin-bottom: 12px; font-weight: 700; color: #fff; }
.footer__cols ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.footer__cols a { text-decoration: none; overflow-wrap: break-word; }
.footer__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__base { position: relative; display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; font-size: var(--fs-sm); }
.footer__base::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgba(233, 238, 243, .12);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: #fff; }

/* ==========================================================
   Sample dashboards (Marketing + Dispatch)
   Built on the theme's own palette: teal marks the Digital &
   IT view, amber marks the Truck Dispatch view. Every rule is
   scoped under .dash, so the module cannot affect - or be
   affected by - anything else on the site.
   ========================================================== */
.dash {
  --dash-navy: var(--night);
  --dash-navy-2: #1D3052;
  --dash-ink: var(--ink);
  --dash-muted: var(--ink-muted);
  --dash-panel: var(--concrete);
  --dash-board: #F6F9FB;
  --dash-line: var(--rule);
  --dash-rule: #E6ECF2;
  --dash-chart: var(--teal-deep);
  --dash-marker: var(--amber);
  --dash-good-bg: rgba(44, 196, 182, .16);
  --dash-good-fg: var(--teal-deep);

  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  color: var(--dash-ink);
  box-shadow: 0 1px 0 var(--dash-line), 0 30px 60px -34px rgba(10, 26, 47, .5);
}

/* lane accents */
.dash--marketing {
  --dash-accent: var(--teal-deep);
  --dash-accent-fg: #FFFFFF;
  --dash-accent-soft: rgba(14, 124, 115, .13);
  --dash-accent-ink: var(--teal-deep);
  --dash-promo: linear-gradient(128deg, var(--night) 0%, #0B4C56 58%, var(--teal-deep) 100%);
}
.dash--dispatch {
  --dash-accent: var(--amber);
  --dash-accent-fg: var(--night);
  --dash-accent-soft: rgba(245, 166, 35, .2);
  --dash-accent-ink: #8A5A00;
  --dash-promo: linear-gradient(128deg, var(--night) 0%, #6B4A16 58%, var(--amber) 100%);
}

/* ---- window chrome ---- */
.dash__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--dash-navy); }
.dash__bar i { width: 11px; height: 11px; border-radius: 50%; }
.dash__bar i:nth-child(1) { background: var(--amber); }
.dash__bar i:nth-child(2) { background: var(--amber-bright); }
.dash__bar i:nth-child(3) { background: var(--teal); }
.dash__bar span { margin-left: 10px; font-size: .88rem; font-weight: 600; color: var(--steel); }

.dash__body { display: grid; align-items: stretch; }
.dash--marketing .dash__body { grid-template-columns: 178px minmax(0, 1fr) 250px; }
.dash--dispatch .dash__body { grid-template-columns: 178px 296px minmax(0, 1fr); }

/* ---- left rail ---- */
.dash__rail { display: grid; align-content: start; gap: 4px; padding: 16px 14px; background: var(--dash-navy); }
.dash__rail b {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px 9px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--soft-on-dark);
}
.dash__rail b.is-active { background: var(--dash-navy-2); color: #FFFFFF; font-weight: 700; }
.dash__rail svg, .dash__search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- main column ---- */
.dash__main { padding: 22px clamp(16px, 2vw, 26px) 26px; background: var(--paper); }
.dash__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.dash__crumb { font-size: .85rem; font-weight: 500; color: var(--dash-muted); }
.dash__title { margin-top: 4px; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; }
.dash__range { margin-top: 4px; font-size: .92rem; color: var(--dash-muted); }
.dash__btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 16px 10px; border-radius: 10px;
  background: var(--dash-accent); color: var(--dash-accent-fg);
  font-size: .92rem; font-weight: 700; white-space: nowrap;
}
.dash__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dash__btn--ghost { background: var(--paper); color: var(--dash-ink); box-shadow: inset 0 0 0 1.5px var(--dash-line); }

/* ---- metric cards ---- */
.dash__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.dash .metric { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--dash-line); border-radius: 12px; }
.dash .metric__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--dash-panel); color: var(--dash-accent-ink); }
.dash .metric__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash .metric__label { font-size: .85rem; font-weight: 500; white-space: nowrap; color: var(--dash-muted); }
.dash .metric__value { display: flex; align-items: center; gap: 7px; margin-top: 3px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.dash .metric__delta { padding: 4px 8px 2px; border-radius: 20px; background: var(--dash-good-bg); color: var(--dash-good-fg); font-size: .72rem; font-weight: 700; }

/* ---- traffic card + device art ---- */
.dash__card { margin-top: 14px; padding: 18px 20px 8px; border: 1px solid var(--dash-line); border-radius: 12px; }
.dash__card h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.dash .device-art { display: block; width: 100%; max-width: 560px; height: auto; margin: 4px auto 0; }

/* ---- right side panel ---- */
.dash__side { padding: 20px 18px; background: var(--dash-panel); }
.dash .promo {
  position: relative; display: grid; gap: 6px; padding: 17px 42px 19px 17px; border-radius: 12px;
  background: var(--dash-promo); color: #FFFFFF;
}
.dash .promo span { font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .82); }
.dash .promo strong { font-size: .98rem; font-weight: 800; line-height: 1.3; }
.dash .promo i { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dash .promo i svg { width: 12px; height: 12px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.dash .ring-card { margin-top: 14px; padding: 18px; border-radius: 12px; background: var(--paper); }
.dash .ring-card h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.dash .ring-wrap { position: relative; width: 142px; margin: 10px auto 4px; }
.dash .ring-wrap svg { width: 100%; height: auto; }
.dash .ring-track { fill: none; stroke: var(--dash-line); stroke-width: 11; }
.dash .ring-fill { fill: none; stroke: var(--dash-accent); stroke-width: 11; stroke-linecap: round; }
.dash .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.dash .ring-label b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.dash .ring-label span { font-size: .8rem; font-weight: 500; color: var(--dash-muted); }
.dash .ring-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--dash-line); }
.dash .ring-stats b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.dash .ring-stats span { font-size: .8rem; font-weight: 500; color: var(--dash-muted); }

/* ---- dispatch: load board column ---- */
.dash__board { padding: 18px 16px; background: var(--dash-board); border-right: 1px solid var(--dash-line); }
.dash__search {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px 11px;
  border: 1px solid var(--dash-line); border-radius: 10px; background: var(--paper);
  font-size: .92rem; color: #7C8A9B;
}
.dash__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dash .chip-filter { padding: 8px 14px 6px; border: 1px solid var(--dash-line); border-radius: 20px; background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--dash-muted); }
.dash .chip-filter b { font-weight: 800; }
.dash .chip-filter.is-active { background: var(--dash-navy); border-color: var(--dash-navy); color: #FFFFFF; }

.dash .load-list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.dash .load { display: block; overflow: hidden; border: 1px solid var(--dash-line); border-radius: 12px; background: var(--paper); }
.dash .load.is-selected { border-color: var(--dash-accent); box-shadow: inset 0 0 0 1px var(--dash-accent); }
.dash .load__thumb { display: block; padding: 12px 14px 6px; background: var(--dash-panel); }
.dash .load__thumb svg { width: 46px; height: 30px; fill: none; stroke: #64758B; stroke-width: 1.6; stroke-linejoin: round; }
.dash .load__body { padding: 12px 14px 14px; }
.dash .load__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dash .load__id { font-size: 1rem; font-weight: 800; color: var(--dash-ink); }
.dash .load__route { margin-top: 8px; font-size: .95rem; font-weight: 500; line-height: 1.35; }
.dash .load__meta { margin-top: 5px; font-size: .85rem; font-weight: 500; color: var(--dash-muted); }

.dash .pill { grid-column: auto; grid-row: auto; justify-self: auto; padding: 5px 11px 3px; border-radius: 20px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--pill-bg); color: var(--pill-fg); }
.dash .pill--route { --pill-bg: var(--dash-accent-soft); --pill-fg: var(--dash-accent-ink); }
.dash .pill--delivered { --pill-bg: var(--dash-good-bg); --pill-fg: var(--dash-good-fg); }
.dash .pill--booked { --pill-bg: var(--concrete); --pill-fg: var(--ink-muted); }
.dash .pill--delayed { --pill-bg: rgba(180, 35, 24, .1); --pill-fg: var(--error); }

/* ---- dispatch: detail column ---- */
.dash__detail { padding: 22px clamp(16px, 2vw, 26px) 26px; background: var(--paper); }
.dash .detail__head { display: flex; align-items: center; gap: 12px; }
.dash .detail__id { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; }
.dash .detail__actions { display: flex; gap: 10px; margin-left: auto; }
.dash .detail__tabs { display: flex; gap: 26px; margin-top: 18px; border-bottom: 1px solid var(--dash-rule); }
.dash .detail__tabs span { padding-bottom: 12px; font-size: .96rem; font-weight: 600; color: var(--dash-muted); }
.dash .detail__tabs span.is-active { color: var(--dash-ink); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--dash-accent); }

.dash .capacity { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; font-size: .96rem; }
.dash .capacity b { font-weight: 600; }
.dash .capacity span { color: var(--dash-muted); }
.dash .capacity-art { overflow: hidden; margin: 10px 0 16px; }
.dash .truck-art { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto -1px; }
.dash .capacity-road {
  position: relative; display: block; height: 18px; overflow: hidden;
  border-radius: 3px; background: var(--asphalt);
}
.dash .capacity-road::before {
  content: ""; position: absolute; left: -56px; right: -56px; top: 50%; height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(to right, var(--dash-accent) 0 26px, transparent 26px 56px);
}
.dash .route-chart { padding: 14px 16px 8px; border-radius: 12px; background: var(--dash-board); border: 1px solid var(--dash-line); }
.dash .route-chart svg { display: block; width: 100%; height: auto; }

.dash .timeline { display: grid; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.dash .timeline li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding-left: 20px; font-size: .95rem; }
.dash .timeline li::after { content: none; }
.dash .timeline li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-deep); }
.dash .timeline time { flex: none; font-weight: 500; color: var(--dash-muted); }

.dash-caption { margin-top: 14px; font-size: .9rem; color: var(--ink-muted); }
.dash-block { margin-top: clamp(40px, 6vw, 64px); }

/* ---- motion ----
   Everything below only runs once .is-live is added (the small script in the
   template part adds it when the frame scrolls into view). Without it — no
   JavaScript, or reduced motion — the dashboards render in their final state. */
@keyframes dash-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dash-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes dash-draw { to { stroke-dashoffset: 0; } }
@keyframes dash-truck-in { from { transform: translateX(128%); } to { transform: none; } }
@keyframes dash-road-flow { to { transform: translateX(56px); } }
@keyframes dash-fill-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dash-ring { from { stroke-dashoffset: 214; } to { stroke-dashoffset: 0; } }

.dash .traffic-dot, .dash .route-dot, .dash .truck-pct { transform-box: fill-box; transform-origin: center; }
.dash .truck-fill { transform-box: fill-box; transform-origin: left center; }
.dash .traffic-pill { transform-box: fill-box; transform-origin: center; }

/* marketing */
.dash--marketing.is-live .metric { animation: dash-fade-up .5s ease-out both; }
.dash--marketing.is-live .metric:nth-child(2) { animation-delay: .09s; }
.dash--marketing.is-live .metric:nth-child(3) { animation-delay: .18s; }
.dash--marketing.is-live .metric__delta { animation: dash-pop .4s ease-out .5s both; }
.dash--marketing.is-live .metric:nth-child(2) .metric__delta { animation-delay: .59s; }
.dash--marketing.is-live .metric:nth-child(3) .metric__delta { animation-delay: .68s; }
.dash--marketing.is-live .dash__card { animation: dash-fade-up .55s ease-out .2s both; }
.dash--marketing.is-live .traffic-line { stroke-dasharray: 499; stroke-dashoffset: 499; animation: dash-draw 1.25s ease-out .5s both; }
.dash--marketing.is-live .traffic-dot { animation: dash-pop .4s ease-out 1.1s both; }
.dash--marketing.is-live .traffic-dot--end { animation-delay: 1.55s; }
.dash--marketing.is-live .traffic-pill { animation: dash-fade-up .4s ease-out 1.2s both; }
.dash--marketing.is-live .traffic-pill--end { animation-delay: 1.65s; }
.dash--marketing.is-live .promo { animation: dash-fade-up .5s ease-out .3s both; }
.dash--marketing.is-live .ring-card { animation: dash-fade-up .5s ease-out .4s both; }
.dash--marketing.is-live .ring-fill { stroke-dashoffset: 214; animation: dash-ring 1.3s cubic-bezier(.3,.7,.3,1) .7s both; }
.dash--marketing.is-live .ring-stats > * { animation: dash-fade-up .45s ease-out 1.3s both; }
.dash--marketing.is-live .ring-stats > *:last-child { animation-delay: 1.42s; }

/* dispatch */
.dash--dispatch.is-live .load { animation: dash-fade-up .45s ease-out both; }
.dash--dispatch.is-live .load:nth-child(2) { animation-delay: .08s; }
.dash--dispatch.is-live .load:nth-child(3) { animation-delay: .16s; }
.dash--dispatch.is-live .load:nth-child(4) { animation-delay: .24s; }
.dash--dispatch.is-live .truck-art { animation: dash-truck-in 1.2s cubic-bezier(.22,.72,.25,1) .15s both; }
.dash--dispatch.is-live .capacity-road::before { animation: dash-road-flow .65s linear .15s infinite; }
.dash--dispatch.is-live .truck-fill { animation: dash-fill-grow .9s cubic-bezier(.3,.7,.3,1) 1.15s both; }
.dash--dispatch.is-live .truck-pct { animation: dash-pop .45s ease-out 1.85s both; }
.dash--dispatch.is-live .route-line { stroke-dasharray: 582; stroke-dashoffset: 582; animation: dash-draw 1.2s ease-out .6s both; }
.dash--dispatch.is-live .route-dot { animation: dash-pop .4s ease-out 1.35s both; }
.dash--dispatch.is-live .route-dot--end { animation-delay: 1.7s; }
.dash--dispatch.is-live .timeline li { animation: dash-fade-up .45s ease-out 1.5s both; }
.dash--dispatch.is-live .timeline li:nth-child(2) { animation-delay: 1.62s; }
.dash--dispatch.is-live .timeline li:nth-child(3) { animation-delay: 1.74s; }

@media (prefers-reduced-motion: reduce) {
  .dash *, .dash *::before, .dash *::after { animation: none !important; }
  .dash .traffic-line, .dash .route-line, .dash .ring-fill { stroke-dashoffset: 0; }
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .dash--marketing .dash__body,
  .dash--dispatch .dash__body { grid-template-columns: minmax(0, 1fr); }
  .dash__rail { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
  .dash__rail b { padding: 8px 11px 6px; font-size: .88rem; }
  .dash__board { border-right: 0; border-bottom: 1px solid var(--dash-line); }
  .dash__side { border-top: 1px solid var(--dash-line); }
  .dash--dispatch .load-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash--marketing .dash__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .dash--marketing .ring-card { margin-top: 0; }
  .dash .device-art { max-width: 480px; }
}
@media (max-width: 700px) {
  .dash__bar { padding: 12px 16px; }
  .dash__main, .dash__detail { padding: 20px 16px 24px; }
  .dash__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dash__metrics { grid-template-columns: 1fr; }
  .dash--dispatch .load-list,
  .dash--marketing .dash__side { grid-template-columns: minmax(0, 1fr); }
  .dash--marketing .ring-card { margin-top: 14px; }
  .dash .detail__head { flex-wrap: wrap; }
  .dash .detail__actions { width: 100%; margin-left: 0; }
  .dash .detail__tabs { gap: 16px; }
  .dash .detail__tabs span { font-size: .9rem; }
  .dash .timeline li { flex-direction: column; gap: 2px; }
}

/* ==========================================================
   Hero and page reveals
   Nothing here applies until template-parts/motion puts a
   class on <html>. The hero animation comes with any hero
   (page-hero calls the script itself); the section reveals
   below it are opt-in per page, via 'reveals' => true.
   No script, no hiding.
   ========================================================== */
@keyframes rs-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rs-reveal-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* hero — every page that has one */
.js-reveal-hero :is(
  .page-hero .chip, .page-hero__title, .page-hero__lede, .page-hero__actions
) { opacity: 0; }

.js-reveal-hero :is(
  .page-hero .chip, .page-hero__title, .page-hero__lede, .page-hero__actions
).is-in {
  animation: rs-reveal .6s cubic-bezier(.2, .6, .3, 1) both;
  animation-delay: calc(var(--reveal-i, 0) * 80ms);
}

/* the hero reads top to bottom rather than all at once */
.js-reveal-hero .page-hero__title { --reveal-i: 1; }
.js-reveal-hero .page-hero__lede { --reveal-i: 2; }
.js-reveal-hero .page-hero__actions { --reveal-i: 3; }

/* the lane line under the hero draws out from the left */
.js-reveal-hero .page-hero .lane-line { transform: scaleX(0); transform-origin: left center; }
.js-reveal-hero .page-hero .lane-line.is-in { animation: rs-reveal-line .9s cubic-bezier(.25, .7, .3, 1) .35s both; }

/* the rest of the page — only where a template asked for it */
.js-reveal :is(
  .section-head, .merge-art, .merge__copy,
  .reasons > dt, .reasons > dd, .reason, .audience, .faq__item,
  .direct, .detail-list > div, .contact-art, .contact-form, .cta-band__inner > div
) { opacity: 0; }

.js-reveal :is(
  .section-head, .merge-art, .merge__copy,
  .reasons > dt, .reasons > dd, .reason, .audience, .faq__item,
  .direct, .detail-list > div, .contact-art, .contact-form, .cta-band__inner > div
).is-in {
  animation: rs-reveal .6s cubic-bezier(.2, .6, .3, 1) both;
  animation-delay: calc(var(--reveal-i, 0) * 80ms);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal-hero :is(.page-hero .chip, .page-hero__title, .page-hero__lede, .page-hero__actions),
  .js-reveal :is(
    .section-head, .merge-art, .merge__copy,
    .reasons > dt, .reasons > dd, .reason, .audience, .faq__item,
    .direct, .detail-list > div, .contact-art, .contact-form, .cta-band__inner > div
  ) { opacity: 1; animation: none !important; }
  .js-reveal-hero .page-hero .lane-line { transform: none; animation: none !important; }
}

/* ---- Build steps ----
   The process rail on the Digital & IT page: a dashed pipeline with a node
   per stage, in place of the asphalt-and-mile-markers used on the dispatch
   side. The line and nodes animate once the list is in view; without the
   motion script they simply render finished. */
.build-steps {
  --build-gap: clamp(26px, 3.5vw, 38px);
  --build-node: 54px;
  position: relative; display: grid; gap: var(--build-gap);
  margin-top: clamp(28px, 4vw, 40px); list-style: none;
}
/* one connector per step, from this node down to the next — so the line
   stops at the last node instead of trailing past it */
.build-step:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: var(--build-node);
  bottom: calc(var(--build-gap) * -1); width: 3px;
  background-image: linear-gradient(to bottom, var(--teal) 0 10px, transparent 10px 22px);
  background-size: 3px 22px; background-repeat: repeat-y;
  transform-origin: top center;
}
.build-step { position: relative; display: grid; grid-template-columns: var(--build-node) minmax(0, 1fr); column-gap: clamp(18px, 2.5vw, 28px); align-items: start; }
.build-step__node {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: var(--build-node); height: var(--build-node); border-radius: 16px;
  background: var(--paper); color: var(--teal-deep);
  box-shadow: inset 0 0 0 2px var(--teal-deep), 0 6px 18px -12px rgba(10, 26, 47, .6);
}
.build-step__node svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.build-step__body { padding-top: 4px; }
.build-step__eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
}
.build-step__body h3 { margin-top: 6px; font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.build-step__body h3 + p { max-width: 52ch; margin-top: 8px; color: var(--ink-muted); }

@keyframes build-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes build-flow { to { background-position-y: 22px; } }
@keyframes build-ring {
  0%, 62%, 100% { transform: rotate(0); }
  67% { transform: rotate(-15deg); } 73% { transform: rotate(13deg); }
  79% { transform: rotate(-9deg); } 85% { transform: rotate(6deg); } 91% { transform: rotate(0); }
}
@keyframes build-code {
  0%, 55%, 100% { transform: scaleX(1); }
  70% { transform: scaleX(1.22); } 84% { transform: scaleX(.93); }
}
@keyframes build-spin { 0%, 52% { transform: rotate(0); } 88%, 100% { transform: rotate(360deg); } }
@keyframes build-node { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes build-body { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.js-reveal-hero .build-step::before { transform: scaleY(0); }
.js-reveal-hero .build-step__node, .js-reveal-hero .build-step__body { opacity: 0; }

.build-steps.is-live .build-step::before {
  animation: build-line .5s cubic-bezier(.3, .7, .3, 1) both, build-flow 1.1s linear infinite;
}
.build-steps.is-live .build-step:nth-child(1)::before { animation-delay: .4s, .9s; }
.build-steps.is-live .build-step:nth-child(2)::before { animation-delay: .6s, 1.1s; }

/* each icon keeps a small idle of its own once it has landed */
.build-step__node svg { transform-origin: center; }
.build-steps.is-live .build-step:nth-child(1) .build-step__node svg { animation: build-ring 4.4s ease-in-out 1.1s infinite; }
.build-steps.is-live .build-step:nth-child(2) .build-step__node svg { animation: build-code 4.4s ease-in-out 1.4s infinite; }
.build-steps.is-live .build-step:nth-child(3) .build-step__node svg { animation: build-spin 4.4s cubic-bezier(.5, 0, .2, 1) 1.7s infinite; }
.build-steps.is-live .build-step__node { animation: build-node .5s cubic-bezier(.2, .7, .3, 1) both; }
.build-steps.is-live .build-step__body { animation: build-body .5s ease-out both; }
.build-steps.is-live .build-step:nth-child(1) .build-step__node { animation-delay: .25s; }
.build-steps.is-live .build-step:nth-child(1) .build-step__body { animation-delay: .32s; }
.build-steps.is-live .build-step:nth-child(2) .build-step__node { animation-delay: .45s; }
.build-steps.is-live .build-step:nth-child(2) .build-step__body { animation-delay: .52s; }
.build-steps.is-live .build-step:nth-child(3) .build-step__node { animation-delay: .65s; }
.build-steps.is-live .build-step:nth-child(3) .build-step__body { animation-delay: .72s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal-hero .build-step::before { transform: none; }
  .js-reveal-hero .build-step__node, .js-reveal-hero .build-step__body { opacity: 1; }
  .build-steps, .build-steps *, .build-step::before { animation: none !important; }
}

@media (max-width: 560px) {
  .build-steps { --build-node: 44px; }
  .build-step { column-gap: 16px; }
  .build-step__node { border-radius: 13px; }
  .build-step__node svg { width: 20px; height: 20px; }
  .build-step:not(:last-child)::before { left: 20px; }
}

/* ---- Mile road ----
   The lane markings on the dispatch process list scroll downward while the
   list is in view. The background is re-declared as a single dash-and-gap
   tile so one loop moves it by exactly one period and the repeat is
   seamless; paused until the motion script marks the list live. */
.mile-road { --mile-period: 34px; --mile-pace: 1.2s; }
.mile-road::after {
  background-image: linear-gradient(to bottom, var(--amber) 0 18px, transparent 18px 34px);
  background-size: 4px var(--mile-period); background-repeat: repeat-y;
  animation: mile-flow var(--mile-pace) linear infinite paused;
}
.mile-road--teal::after { background-image: linear-gradient(to bottom, var(--teal) 0 18px, transparent 18px 34px); }
.mile-road--both { --mile-period: 48px; --mile-pace: 1.7s; }
.mile-road--both::after {
  background-image: linear-gradient(to bottom,
    var(--teal) 0 16px, transparent 16px 24px, var(--amber) 24px 40px, transparent 40px 48px);
}
@keyframes mile-flow { to { background-position-y: var(--mile-period); } }
.mile-road.is-live::after { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .mile-road::after { animation: none !important; }
}

/* ---- Merge art ----
   The lane markings flow up toward the merge while the block is in view.
   Paused until then, and on any page that doesn't reveal its sections. */
@keyframes merge-flow-branch { to { stroke-dashoffset: 34; } }
@keyframes merge-flow-trunk { to { stroke-dashoffset: 48; } }
@keyframes merge-flow-trunk-amber { from { stroke-dashoffset: -24; } to { stroke-dashoffset: 24; } }
.merge-art .merge-dash {
  animation-duration: 1.1s; animation-timing-function: linear;
  animation-iteration-count: infinite; animation-play-state: paused;
}
.merge-art .merge-dash--branch { animation-name: merge-flow-branch; }
.merge-art .merge-dash--trunk { animation-name: merge-flow-trunk; animation-duration: 1.55s; }
.merge-art .merge-dash--trunk-amber { animation-name: merge-flow-trunk-amber; }
.merge-art.is-in .merge-dash { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .merge-art .merge-dash { animation: none !important; }
}

/* ---- Contact art ---- */
.contact-art { margin-bottom: clamp(20px, 3vw, 32px); }
.contact-art svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; overflow: visible; }
.mail-plane { transform: translate(236px, 58px) rotate(-8deg); }

@keyframes mail-fly {
  0%   { opacity: 0; transform: translate(96px, 120px) rotate(-34deg) scale(.55); }
  10%  { opacity: 1; }
  30%  { transform: translate(168px, 74px) rotate(-22deg) scale(.85); }
  55%  { transform: translate(268px, 48px) rotate(-6deg) scale(1); }
  76%  { opacity: 1; transform: translate(360px, 44px) rotate(4deg) scale(1); }
  86%  { opacity: 0; transform: translate(408px, 40px) rotate(8deg) scale(1); }
  100% { opacity: 0; transform: translate(96px, 120px) rotate(-34deg) scale(.55); }
}
@keyframes mail-trail { to { stroke-dashoffset: -40; } }
@keyframes mail-letter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.contact-art.is-in .mail-plane { animation: mail-fly 4.6s cubic-bezier(.35, .1, .5, 1) .5s infinite; }
.contact-art.is-in .mail-trail { animation: mail-trail 1.6s linear infinite; }
.contact-art.is-in .mail-letter { animation: mail-letter 4.6s ease-in-out .5s infinite; }

@media (prefers-reduced-motion: reduce) {
  .contact-art * { animation: none !important; }
}

/* ---------- Audience cards ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.audience {
  padding: 26px 24px 28px; border-radius: 12px;
  background: var(--audience-bg, var(--paper)); border-top: 5px solid var(--audience-line, var(--teal));
}
.section--night .audience, .on-dark .audience { --audience-bg: var(--asphalt-2); }
.audience--amber { --audience-line: var(--amber); }
.audience h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.on-dark .audience h3 { color: #fff; }
.audience p { margin-top: 10px; color: var(--ink-muted); }
.on-dark .audience p { color: var(--soft-on-dark); }

/* ---------- Contact details block ---------- */
.detail-list { display: grid; gap: 0; margin-top: 24px; }
.detail-list > div { padding: 16px 0; border-top: 1px solid var(--rule); }
.detail-list dt { font-size: .88rem; font-weight: 700; color: var(--ink-muted); }
.detail-list dd { margin-top: 4px; font-size: 1.1rem; font-weight: 700; }
.detail-list a { text-decoration: none; }
.detail-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__intro, .page-hero__inner, .cta-band__inner { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .split, .merge, .footer__grid { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .merge-art svg { max-width: 300px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid rgba(233, 238, 243, .12);
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; padding: 4px var(--gutter) 20px; }
  .site-nav a { padding: 14px 0 12px; border-bottom: 1px solid rgba(233, 238, 243, .08); font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { padding-left: 14px; box-shadow: inset 3px 0 0 var(--accent); }
  .site-nav__call { display: block; }
  .site-nav__call a { color: var(--amber); border-bottom: 0; }
  .services-layout { grid-template-columns: 1fr; }
  .side-index { display: none; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 56px; }
  .gantry::before, .gantry::after, .gantry__beam, .sign::before, .sign::after, .lanes { display: none; }
  .gantry { margin-top: 40px; }
  .gantry__signs { grid-template-columns: 1fr; gap: 14px; padding-top: 0; }
  .sign__face { min-height: 0; padding: 22px 24px 20px 26px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .reasons > div, .reasons-grid, .dash-list { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .header-call { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form.is-digital > .field--company { grid-column: auto; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .mile { grid-template-columns: 28px 50px minmax(0, 1fr); column-gap: 14px; }
  .mile-road::before { width: 28px; }
  .mile-road::after { left: 12px; }
  .lane-picker__options { grid-template-columns: 1fr; }
  .equip-table thead { display: none; }
  .equip-table tbody th, .equip-table td { display: block; width: auto; }
  .equip-table tbody th { padding-bottom: 4px; }
  .equip-table td { padding-top: 0; border-top: 0; }
  .equip-table tbody tr:last-child > th { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero .sign__face { filter: none; transition: none; }
  .sign__face::after { display: none; }
  .lane__dash { animation: none; }
  .sign__arrow, .faq summary::after { transition: none; }
}
