/* =========================================================
   X-Press Couriers — site stylesheet (shared by every page)
   Layout concept: mobile-first; navy hero, the van livery
   stripe as the signature device, white/mist content bands.
   ========================================================= */

/* ---------- Fonts (self-hosted, no Google cookies) ---------- */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  --navy: #004B82;        /* logo navy - primary brand */
  --livery: #2F6AA7;      /* logo mid-blue - van stripe dashes */
  --ink: #10263B;         /* body text (navy-tinted near black) */
  --muted: #4A6178;       /* secondary text */
  --mist: #EEF3F8;        /* alternate section background */
  --line: #D5E0EB;        /* borders and dividers */
  --white: #FFFFFF;
  --hivis: #FFD100;       /* hi-vis yellow - Get a Quote only */
  --hivis-hover: #FFE14D;
  --on-navy-muted: #C7D9EC;

  --font-display: "Jost", "Century Gothic", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0: 1.0625rem;                          /* 17px body */
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 6px;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 72px; /* room for mobile action bar */
}
@media (min-width: 64em) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--livery); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; color: var(--navy); }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 65ch; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy); border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--hivis); color: var(--ink); padding: 0.6rem 1rem; z-index: 100; font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--mist { background: var(--mist); }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--quote { background: var(--hivis); color: var(--ink); }
.btn--quote:hover { background: var(--hivis-hover); color: var(--ink); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--livery); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.text-link { font-family: var(--font-display); font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.text-link::after { content: ""; width: .45em; height: .45em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: .1em; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; width: clamp(168px, 40vw, 230px); }
.brand img { width: 100%; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.header-phone { display: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--navy); white-space: nowrap; align-items: center; gap: .4rem; }
.header-phone svg { width: 1.1em; height: 1.1em; }
.header-quote { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem;
  background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: var(--radius);
  font: 600 1rem var(--font-display); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }

.main-nav { display: none; }
.main-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: .5rem var(--gutter) 1.5rem;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav .sub-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  font: 600 1.1rem var(--font-display); color: var(--navy); text-decoration: none; cursor: pointer; text-align: left;
}
.sub-toggle::after { content: ""; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: .3em; transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.submenu { display: none; padding-left: 1rem !important; }
.submenu.is-open { display: block; }
.submenu a { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }

@media (min-width: 40em) {
  .header-quote { display: inline-flex; }
}
@media (min-width: 64em) {
  .menu-toggle { display: none; }
  .main-nav, .main-nav.is-open { display: block; position: static; padding: 0; border: 0; max-height: none; overflow: visible; margin-left: 1.5rem; }
  .main-nav > ul { display: flex; gap: 1.4rem; }
  .main-nav > ul > li { position: relative; }
  .main-nav a, .main-nav .sub-toggle { border: 0; padding: .5rem 0; font-size: 1rem; width: auto; gap: .45rem; }
  .main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--livery); }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--livery); }
  .submenu {
    position: absolute; top: 100%; left: -1rem; min-width: 17rem; padding: .5rem 0 !important;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(0, 43, 74, .14);
  }
  .submenu a { padding: .55rem 1rem; font-size: 1rem; }
  .submenu a:hover { background: var(--mist); }
}

@media (min-width: 75em) { .header-phone { display: inline-flex; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.25fr 1.15fr; gap: .4rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy); box-shadow: 0 -4px 16px rgba(0, 43, 74, .25);
}
.action-bar .btn { width: 100%; }
@media (min-width: 64em) { .action-bar { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero::before { /* faint globe watermark */
  content: ""; position: absolute; right: -8rem; top: -6rem; width: 34rem; height: 34rem;
  background: url("../logo/globe.svg") no-repeat center / contain; opacity: .07; filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero h1 { color: var(--white); }
.hero-lead { font-size: var(--step-1); color: var(--on-navy-muted); max-width: 34rem; }
.hero-note { margin-top: 1.25rem; font-size: 1rem; color: var(--on-navy-muted); display: flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 1.1em; height: 1.1em; flex: none; }
.hero-media { position: relative; margin-inline: calc(var(--gutter) * -1); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 56em) {
  .hero-inner { grid-template-columns: 1fr 1.1fr; align-items: center; padding-block: clamp(3rem, 6vw, 5rem); }
  .hero-media { margin: 0; }
  .hero-media img { aspect-ratio: auto; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 20, 40, .35); }
}

/* ---------- Livery stripe (signature device, as on the vans) ---------- */
.livery {
  --h: clamp(10px, 1.4vw, 16px);
  display: flex; align-items: center; gap: clamp(5px, .7vw, 9px);
  padding: clamp(10px, 1.6vw, 18px) 6% clamp(10px, 1.6vw, 18px) 0;
  background: var(--white);
}
.livery .bar { flex: 1; height: var(--h); background: var(--navy); clip-path: polygon(0 0, 100% 0, calc(100% - var(--h)) 100%, 0 100%); }
.livery .dash { flex: none; width: calc(var(--h) * 2.2); height: var(--h); background: var(--livery); clip-path: polygon(var(--h) 0, 100% 0, calc(100% - var(--h)) 100%, 0 100%); }
.livery .dash:nth-child(3) { transform: translateY(-30%); }
.livery .dash:nth-child(4) { transform: translateY(-60%); }
.livery--dark { background: #0A2F52; }
.livery--dark .bar { background: var(--livery); }
.livery--dark .dash { background: var(--white); }

/* ---------- Trust strip ---------- */
.trust { padding-block: 1.5rem 2rem; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.trust li { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.25; }
.trust svg { width: 28px; height: 28px; flex: none; color: var(--livery); }
.trust img { width: 40px; height: 40px; flex: none; margin-left: -6px; }
@media (min-width: 48em) { .trust ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .trust ul { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 1.5rem; }
@media (min-width: 44em) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.service-media { aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.service-body p { color: var(--muted); }
.service-body .text-link { margin-top: auto; }

/* Photo placeholder — shows exactly which real photo to take */
.photo-needed {
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 1.25rem 1.5rem; border: 2px dashed var(--livery); background:
  repeating-linear-gradient(135deg, var(--mist) 0 14px, #E4ECF5 14px 28px);
  color: var(--navy); font-size: .95rem; line-height: 1.4;
}
.photo-needed strong { font-family: var(--font-display); font-size: 1.05rem; }

/* Mini report (used in the stock reporting card) */
.mini-report { height: 100%; background: var(--navy); padding: 1rem 1.25rem; display: flex; flex-direction: column; justify-content: center; gap: .45rem; }
.mini-report span { display: block; height: 10px; border-radius: 3px; background: rgba(255,255,255,.18); }
.mini-report span:nth-child(1) { width: 55%; background: var(--hivis); height: 12px; }
.mini-report span:nth-child(3) { width: 85%; }
.mini-report span:nth-child(4) { width: 70%; }
.mini-report span:nth-child(5) { width: 92%; }

/* ---------- Stock reporting spotlight ---------- */
.spotlight { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56em) { .spotlight { grid-template-columns: 1fr 1.05fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.report { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 43, 74, .12); overflow: hidden; font-size: .95rem; }
.report-head { background: var(--navy); color: var(--white); padding: 1rem 1.25rem; display: grid; gap: .15rem; }
.report-head strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.report-head span { color: var(--on-navy-muted); font-size: .9rem; }
.report-table-wrap { overflow-x: auto; }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th, .report td { padding: .6rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report th { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: .85rem; background: var(--mist); }
.report td.num, .report th.num { text-align: right; }
.report-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.25rem; color: var(--muted); font-size: .85rem; }
.example-tag { display: inline-block; background: var(--hivis); color: var(--ink); font-weight: 600; font-size: .8rem; padding: .1rem .5rem; border-radius: 3px; }

/* ---------- Why X-Press ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 40em) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reasons li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.reasons .icon { width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.reasons .icon svg { width: 26px; height: 26px; }
.reasons h3 { margin-bottom: .25rem; }
.reasons p { color: var(--muted); margin: 0; }

/* ---------- Counter band ---------- */
.counter { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.counter-inner { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.counter h2 { color: var(--white); margin: 0; }
.counter-intro p { color: var(--on-navy-muted); margin: .5rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.stat { border-left: 3px solid var(--livery); padding-left: 1rem; }
.stat-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--on-navy-muted); }
.preview-flag { margin-top: .75rem; }
@media (min-width: 56em) { .counter-inner { grid-template-columns: 1fr 1.2fr; align-items: center; } }

/* ---------- Sectors ---------- */
.sectors { display: grid; gap: 1.5rem; }
@media (min-width: 48em) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sector { padding: 1.75rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; }
.sector svg { width: 56px; height: 56px; color: var(--navy); }
.sector p { color: var(--muted); }
.sector ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* ---------- Fleet strip ---------- */
.fleet { list-style: none; margin: 0; padding: 0 0 .5rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.fleet li { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.25rem; display: grid; gap: .25rem; align-content: start; }
.fleet img { width: 100%; aspect-ratio: 260 / 112; }
.fleet h3 { font-size: 1.1rem; margin: .5rem 0 0; }
.fleet p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 48em) { .fleet { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 72em) { .fleet { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fleet-note { margin-top: 1.25rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; display: grid; gap: .35rem; align-content: start; }
.steps li::before {
  content: counter(step); width: 2.6rem; height: 2.6rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1.2rem var(--font-display); margin-bottom: .4rem;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- Areas ---------- */
.areas { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 56em) { .areas { grid-template-columns: 1fr 1fr; } }
.town-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.town-list a { display: block; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-family: var(--font-display); font-weight: 600; text-decoration: none; }
.town-list a:hover { border-color: var(--navy); }
.depot-photo { margin: 1.75rem 0 0; }
.depot-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 0%; border-radius: var(--radius); }
.depot-photo figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }

/* ---------- Final call to action ---------- */
.cta-band { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; left: -6rem; bottom: -10rem; width: 26rem; height: 26rem;
  background: url("../logo/globe.svg") no-repeat center / contain; opacity: .07; filter: brightness(0) invert(1); pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5rem); display: grid; gap: 1.5rem; }
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: var(--on-navy-muted); margin: 0; font-size: var(--step-1); }
@media (min-width: 56em) { .cta-inner { grid-template-columns: 1.3fr 1fr; align-items: center; } .cta-inner .btn-row { justify-content: flex-end; } }

/* ---------- Footer ---------- */
.site-footer { background: #0A2F52; color: var(--on-navy-muted); font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h2 { font-size: 1.05rem; color: var(--white); margin-bottom: .75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-logo { width: 220px; margin-bottom: 1rem; }
.footer-contact strong { color: var(--white); font-family: var(--font-display); font-size: 1.25rem; }
.legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.25rem 1.5rem; font-size: .85rem; display: grid; gap: .5rem; }
.legal p { max-width: none; margin: 0; }
.legal ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Inner pages
   ========================================================= */

/* ---------- Page header ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -6rem; top: -5rem; width: 26rem; height: 26rem;
  background: url("../logo/globe.svg") no-repeat center / contain; opacity: .07; filter: brightness(0) invert(1); pointer-events: none;
}
.page-hero-inner { position: relative; padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.25rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); margin-bottom: .4em; }
.page-hero .hero-lead { margin-bottom: 1.5rem; }
.page-hero--media .page-hero-inner { align-items: center; }
.page-hero--media .page-hero-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 44px rgba(0, 20, 40, .35); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 56em) { .page-hero--media .page-hero-inner { grid-template-columns: 1.1fr 1fr; } }

.breadcrumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .95rem; color: var(--on-navy-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--on-navy-muted); }

/* ---------- Content layouts ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split + .split { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 56em) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split--flip > :first-child { order: 2; }
}
.split-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.split-media figcaption { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.split-media--tall img { aspect-ratio: 4 / 5; }

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.25rem; display: grid; gap: .35rem; }
.prose li { max-width: 62ch; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.legal-doc .updated { color: var(--muted); }

.lead-text { font-size: var(--step-1); color: var(--muted); }

/* Placeholder text that still needs a real detail */
.need { background: var(--hivis); color: var(--ink); padding: 0 .3em; border-radius: 3px; font-weight: 600; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.25rem; } }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.feature-list .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.section--mist .feature-list .icon { background: var(--white); }
.feature-list .icon svg { width: 24px; height: 24px; }
.feature-list h3 { margin-bottom: .2rem; font-size: 1.15rem; }
.feature-list p { margin: 0; color: var(--muted); }

.callout { background: var(--mist); border-left: 4px solid var(--navy); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.section--mist .callout { background: var(--white); }
.callout p:last-child { margin-bottom: 0; }

/* Process flow (stock reporting) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: flow; }
@media (min-width: 48em) { .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.flow li { counter-increment: flow; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; }
.flow li::before { content: "Step " counter(flow); display: block; font-family: var(--font-display); font-weight: 600; color: var(--livery); font-size: .9rem; margin-bottom: .25rem; }
.flow h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.flow p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Fleet spec cards */
.vehicles { display: grid; gap: 1.25rem; }
@media (min-width: 44em) { .vehicles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70em) { .vehicles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vehicle { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.vehicle img { width: 100%; aspect-ratio: 260 / 112; }
.vehicle h2 { font-size: 1.35rem; margin: .5rem 0 0; }
.vehicle p { margin: 0; color: var(--muted); }
.vehicle dl { margin: .5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-variant-numeric: tabular-nums; }
.vehicle dt { color: var(--muted); }
.vehicle dd { margin: 0; font-weight: 600; text-align: right; }

/* Link tiles (areas, sectors) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tiles a { display: grid; gap: .25rem; height: 100%; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.tiles a:hover { border-color: var(--navy); }
.tiles strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.tiles span { color: var(--muted); }

/* Facts table for town pages */
.facts { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: var(--radius); }
.facts dt { font-family: var(--font-display); font-weight: 600; color: var(--navy); }
.facts dd { margin: 0; }

/* Badges row (health and safety) */
.badges { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.badges img { width: 96px; height: 96px; }

/* Community / sponsorship */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: .4rem; color: var(--muted); font-size: .95rem; }

/* ---------- FAQs ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 1.45rem; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.7rem; }
.faq .answer { padding: 0 0 1.25rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60em) { .form-layout { grid-template-columns: 1.6fr 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.form-grid { display: grid; gap: 1.1rem 1.25rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
legend { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy); margin-bottom: 1rem; padding: 0; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .92rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; color: var(--ink);
  background: var(--white); border: 2px solid #9FB3C8; border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid var(--hivis); outline-offset: 1px; }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: #B42318; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.form-actions { display: grid; gap: .75rem; margin-top: 1.5rem; }
.form-actions .btn { justify-self: start; min-width: 14rem; }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.side-panel { display: grid; gap: 1.25rem; }
.side-panel .callout strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }

/* Contact details list */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--navy); display: grid; place-items: center; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list h2 { font-size: 1.1rem; margin: 0 0 .15rem; }
.contact-list p { margin: 0; }
.action-bar .btn { padding: .6rem .35rem; font-size: .98rem; gap: .35rem; }
.tiles-static { display: grid; gap: .25rem; height: 100%; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tiles-static strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.tiles-static span { color: var(--muted); }

/* ---------- Live counter: mileometer + road ---------- */
.counter-updated { font-size: .95rem; }
.stat--miles { grid-column: 1 / -1; }
@media (min-width: 40em) { .stat--miles { grid-column: auto; } }
.odometer {
  display: inline-flex; align-items: stretch; gap: 3px; padding: 6px;
  background: #021A2E; border-radius: 8px; box-shadow: inset 0 2px 6px rgba(0,0,0,.6);
  font: 700 clamp(1.7rem, 1.2rem + 2.6vw, 2.8rem) / 1 var(--font-display); font-variant-numeric: tabular-nums;
  margin-bottom: .35rem;
}
.odo-digit {
  position: relative; width: .78em; height: 1.25em; overflow: hidden; border-radius: 3px;
  background: linear-gradient(#0D3A61, #06294A 50%, #0D3A61); color: var(--white);
}
.odo-digit::after { /* drum shading */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent 30%, transparent 70%, rgba(0,0,0,.45));
}
.odo-digit--last { background: var(--hivis); color: var(--ink); }
.odo-gap { width: 5px; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.2, .75, .25, 1); }
.odo-strip span { display: block; height: 1.25em; line-height: 1.25em; text-align: center; }

.road {
  position: relative; height: 84px; overflow: hidden; container-type: inline-size;
  background:
    linear-gradient(transparent 70px, #0A2F52 70px);
}
.road::after { /* lane markings */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 28px, transparent 28px 56px);
}
.road-van {
  position: absolute; left: 0; bottom: 12px; display: flex; align-items: center; gap: 6px;
  animation: xp-drive 16s linear infinite;
}
.road-van img { width: 150px; height: auto; animation: xp-bob .45s ease-in-out infinite alternate; }
.speed { display: grid; gap: 6px; }
.speed i { display: block; height: 4px; width: 22px; background: var(--livery); transform: skewX(-30deg); border-radius: 1px; }
.speed i:nth-child(2) { width: 30px; margin-left: -8px; }
.speed i:nth-child(3) { width: 16px; margin-left: 6px; }
@keyframes xp-drive {
  from { transform: translateX(-200px); }
  to { transform: translateX(calc(100cqw + 20px)); }
}
@keyframes xp-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
.road.is-paused .road-van, .road.is-paused .road-van img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .road-van { animation: none; left: 50%; transform: translateX(-50%); }
  .road-van img { animation: none; }
  .odo-strip { transition: none; }
}
.stat { display: grid; justify-items: start; align-content: start; gap: .2rem; }
@media (min-width: 40em) { .stats { grid-template-columns: auto auto; justify-content: start; gap: 1.5rem 2.75rem; } }
.counter-inner { padding-bottom: clamp(1rem, 3vw, 2rem); }
@media (max-width: 39.99em) { .counter .stats { grid-template-columns: 1fr; } }

/* ---------- Hero live ticker strip ----------
   Miles (left) -> the van drives the data across -> items (right).
   One 7-second cycle; the items figure "bumps" as the van arrives. */
.ticker {
  --tk-cycle: 7s;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; align-items: center; gap: .9rem;
  padding-block: .85rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: var(--white);
}
.tk-end { display: grid; gap: .15rem; }
.tk-items { justify-items: end; text-align: right; }
.tk-label { font-size: .82rem; color: var(--on-navy-muted); line-height: 1.2; }
.tk-value {
  font: 700 clamp(1.25rem, 1rem + 1.2vw, 1.75rem) / 1.1 var(--font-display); font-variant-numeric: tabular-nums;
  transform-origin: right center;
  animation: tk-bump var(--tk-cycle) ease-in-out infinite;
}
.tk-flag { margin-left: .35rem; vertical-align: middle; font-size: .68rem; padding: 0 .35rem; }
.odometer--sm { font-size: clamp(1rem, .85rem + .8vw, 1.45rem); padding: 4px; gap: 2px; border-radius: 6px; margin: 0; }
.odometer--sm .odo-gap { width: 3px; }

.tk-road { position: relative; height: 46px; container-type: inline-size; }
.tk-road::after { /* lane markings */
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 14px, transparent 14px 26px);
}
.tk-van {
  position: absolute; left: 0; bottom: 6px; display: flex; align-items: center; gap: 4px;
  animation: tk-drive var(--tk-cycle) ease-in-out infinite;
}
.tk-van img { width: 96px; height: auto; animation: xp-bob .45s ease-in-out infinite alternate; }
.tk-van .speed { gap: 4px; }
.tk-van .speed i { height: 3px; width: 14px; }
.tk-van .speed i:nth-child(2) { width: 20px; margin-left: -6px; }
.tk-van .speed i:nth-child(3) { width: 10px; margin-left: 4px; }

@keyframes tk-drive {
  0%   { transform: translateX(-10px); opacity: 0; }
  6%   { opacity: 1; }
  72%  { transform: translateX(calc(100cqw - 116px)); opacity: 1; }
  86%  { transform: translateX(calc(100cqw - 116px)); opacity: 1; }
  94%  { transform: translateX(calc(100cqw - 116px)); opacity: 0; }
  100% { transform: translateX(-10px); opacity: 0; }
}
@keyframes tk-bump {
  0%, 72%  { transform: scale(1); color: var(--white); }
  77%      { transform: scale(1.14); color: var(--hivis); }
  86%, 100% { transform: scale(1); color: var(--white); }
}
.ticker.is-paused .tk-van, .ticker.is-paused .tk-van img, .ticker.is-paused .tk-value { animation-play-state: paused; }

/* hero content sits a little closer under the strip */
.hero .ticker + .hero-inner, .hero > .wrap + .hero-inner { padding-top: clamp(1.75rem, 4vw, 3.5rem); }

@media (max-width: 30em) {
  .tk-label { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-van { animation: none; left: 50%; transform: translateX(-50%); }
  .tk-van img, .tk-value { animation: none; }
}
@media (max-width: 40em) {
  .ticker { grid-template-columns: auto auto; grid-template-areas: "miles items" "road road"; row-gap: .35rem; padding-bottom: .5rem; }
  .tk-miles { grid-area: miles; }
  .tk-items { grid-area: items; }
  .tk-road { grid-area: road; height: 38px; }
  .tk-van img { width: 72px; }
  .tk-van .speed { display: grid; }
  @keyframes tk-drive {
    0%   { transform: translateX(-6px); opacity: 0; }
    6%   { opacity: 1; }
    72%  { transform: translateX(calc(100cqw - 102px)); opacity: 1; }
    86%  { transform: translateX(calc(100cqw - 102px)); opacity: 1; }
    94%  { transform: translateX(calc(100cqw - 102px)); opacity: 0; }
    100% { transform: translateX(-6px); opacity: 0; }
  }
}
.odometer--sm { justify-self: start; width: max-content; }

/* Portrait placeholder (About page, until Neil's new photo arrives) */
.split-media .photo-needed { aspect-ratio: 4 / 5; height: auto; max-width: 420px; border-radius: 8px; }

/* Framing for the October 2026 photos when a box crops them */
img[src*="van-countryside"] { object-position: 85% 50%; }
img[src*="ppe-station"] { object-position: 45% 50%; }
img[src*="small-van-warehouse"] { object-position: 30% 50%; }
img[src*="van-rear-warehouse"] { object-position: 50% 55%; }
.service-media img[src*="app-tablet"] { object-position: 50% 58%; }
.service-media img[src*="van-countryside"] { object-position: 80% 50%; }
.service-media img[src*="warehouse-stocked"] { object-position: 50% 22%; }
