/* ==========================================================================
   recourier.ca — global.css  ("Network" design system)
   Loaded on every page, before the page-specific stylesheet.

   Idea: the company is a network, so the visual language borrows from transit
   maps and dispatch signage — rounded 45° route lines, station dots and
   three line colours that each mean one thing (amber = last-mile, blue =
   same-day & scheduled, green = returns).

   Palette   river navy #0B1E33 · signal amber #F0A93A (from the logo) ·
             snow #F6F8FB · route blue #2D6BE0 · route green #16895C
   Type      Archivo (headlines, wide + heavy) / Source Sans 3 (reading)
             Both are self-hosted in /static/fonts — nothing is loaded from Google.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-display.woff2") format("woff2");
  font-weight: 500 850; font-stretch: 100% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0B1E33;
  --ink-soft: #16314F;
  --ink-line: #27435F;
  --paper: #F6F8FB;
  --paper-alt: #EAF0F6;
  --white: #FFFFFF;
  --amber: #F0A93A;
  --amber-hover: #E39A22;
  --amber-deep: #8A5600;          /* amber that is safe to use as text on light backgrounds */
  --blue: #2D6BE0;
  --green: #16895C;
  --river: #CFE0F1;
  --line: #D5DEE9;
  --muted: #52627A;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 10px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 106%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1, h2, h3, h4 { overflow-wrap: break-word; }   /* a very long word may break rather than push the page wider than a 320px phone */
:lang(fr) :is(h1, h2, h3, h4) { hyphens: auto; }   /* e.g. réapprovisionnement */
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 2.9vw, 2.5rem); }
h3 { font-size: 1.2rem; font-stretch: 102%; letter-spacing: -0.012em; }
p { margin: 0 0 1em; max-width: 64ch; }
p.lede { font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 84px 0; }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink p, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink p.lede { color: #B7C5D6; }
.eyebrow { color: var(--amber-deep); font-weight: 650; font-size: 1rem; margin-bottom: 10px; }
.section--ink .eyebrow { color: var(--amber); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } .section { padding: 64px 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 650; font-size: 1.02rem; line-height: 1.2;
  padding: 14px 26px; border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -6px rgba(227, 154, 34, 0.55); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: transparent; border-color: #A9B9CC; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-soft); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(11, 30, 51, 0.6); }
.section--ink .btn-ghost, .cta-band--ink .btn-ghost { border-color: rgba(255,255,255,0.4); color: var(--white); }
.section--ink .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ==========================================================================
   HEADER — utility bar + main bar (+ mega menus, + mobile drawer)
   Markup lives in header.html / frheader.html
   ========================================================================== */
header#siteHeader { position: sticky; top: -38px; z-index: 50; background: var(--white); }  /* the 38px utility bar scrolls away; the main bar stays pinned */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--amber); color: var(--ink); font-weight: 650; font-size: 0.95rem; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--blue); outline-offset: 2px; }
main:focus { outline: none; }

/* --- utility bar (desktop only) --- */
.utility-bar { background: var(--ink); color: #B7C5D6; font-size: 0.9rem; line-height: 1; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 38px; }
.utility-bar a { text-decoration: none; color: #D6E0EC; display: inline-flex; align-items: center; gap: 8px; transition: color 0.15s; }
.utility-bar a:hover { color: var(--white); }
.utility-bar svg { width: 15px; height: 15px; stroke: var(--amber); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 26px; }
.utility-hours { display: inline-flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--ink-line); border-radius: 999px; padding: 2px; }
.lang-switch a, .lang-switch span { padding: 5px 11px; border-radius: 999px; font-weight: 650; font-size: 0.82rem; letter-spacing: 0.02em; }
.lang-switch [aria-current="true"] { background: var(--white); color: var(--ink); }
.lang-switch a:hover { background: var(--ink-soft); }

/* --- main bar --- */
.main-bar { position: relative; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s var(--ease); }
header.is-scrolled .main-bar { box-shadow: 0 10px 30px -14px rgba(11, 30, 51, 0.35); }
.site-header { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); transition: height 0.25s var(--ease); }
header.is-scrolled .site-header { height: 64px; }
header .container { max-width: 1320px; }
.header-left { display: flex; align-items: center; flex-shrink: 0; }
.site-logo { height: 34px; width: auto; flex-shrink: 0; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s var(--ease), opacity 0.15s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; margin-right: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { display: flex; align-items: center; position: static; }
.nav-link, .dropdown-btn { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link { position: relative; display: block; padding: 28px 6px 28px 12px; transition: color 0.15s; }
.nav-item:not(.dropdown) > .nav-link { padding-right: 12px; }
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 100%; bottom: 17px; height: 3px; border-radius: 2px; background: var(--amber);
  transition: right 0.22s var(--ease);
}
.nav-item:not(.dropdown) > .nav-link::after { right: 100%; }
.nav-item:hover > .nav-link::after, .nav-link.is-active::after, .nav-item.is-open > .nav-link::after { right: 12px; }
.nav-item.dropdown > .nav-link::after { right: 100%; }
.nav-item.dropdown:hover > .nav-link::after, .nav-item.dropdown.is-open > .nav-link::after, .nav-item.dropdown > .nav-link.is-active::after { right: 6px; }
.dropdown-btn { display: flex; align-items: center; justify-content: center; width: 26px; height: 40px; padding: 0; margin-right: 4px; border-radius: 8px; }
.dropdown-caret { width: 11px; height: 7px; transition: transform 0.2s var(--ease); }
.dropdown-caret path { stroke: var(--ink); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dropdown-btn[aria-expanded="true"] .dropdown-caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-cta { padding: 12px 22px; }

/* --- mega menu panels --- */
.dropdown-content {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -24px rgba(11, 30, 51, 0.38);
  visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.dropdown-content.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 36px; padding-top: 34px; padding-bottom: 38px; }
.mega-main { grid-column: span 8; display: grid; gap: 4px 28px; align-content: start; }
.mega-main--2 { grid-template-columns: 1fr 1fr; }
.mega-main--3 { grid-template-columns: repeat(3, 1fr); }
.mega-feature { grid-column: span 4; }
.mega-wide { grid-column: span 12; }
.mega-head { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 0.98rem; color: var(--muted); margin: 0 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mega-group-title { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; font-size: 0.98rem; color: var(--ink); padding: 0 12px 10px; margin-bottom: 4px; border-bottom: 3px solid var(--accent, var(--amber)); display: block; }
.mega-group { --accent: var(--amber); }
.mega-group:nth-child(2) { --accent: var(--blue); }
.mega-group:nth-child(3) { --accent: var(--green); }
.mega-link { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background 0.14s ease; }
.mega-link:hover, .mega-link:focus-visible { background: var(--paper-alt); }
.mega-link strong { display: block; font-family: var(--font-display); font-stretch: 102%; font-weight: 650; font-size: 1rem; line-height: 1.25; }
.mega-link small { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.35; color: var(--muted); }
.mega-link.is-active strong { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mega-group .mega-link { padding: 8px 12px; }
.mega-group .mega-link strong { font-weight: 600; font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; }
.line-badge { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--amber)); }
.line-badge svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.line-badge--blue { --c: var(--blue); } .line-badge--blue svg { stroke: #fff; }
.line-badge--green { --c: var(--green); } .line-badge--green svg { stroke: #fff; }
.line-badge--ink { --c: var(--ink); } .line-badge--ink svg { stroke: var(--amber); }
.line-badge--mist { --c: var(--paper-alt); } .line-badge--mist svg { stroke: var(--ink); }
.mega-all { grid-column: 1 / -1; display: inline-flex; margin-top: 10px; font-weight: 650; text-decoration: none; padding: 12px 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.mega-all:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.feature-panel {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 120px 28px 28px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px;
}
.feature-panel::before {
  content: ""; position: absolute; right: -24px; top: -6px; width: 200px; height: 124px; opacity: 0.9;
  background: url("../images/route-motif.svg") no-repeat right top / contain;
}
.feature-panel h3, .feature-panel .feature-title { font-family: var(--font-display); font-weight: 700; font-stretch: 104%; line-height: 1.2; letter-spacing: -0.012em; color: var(--white); font-size: 1.28rem; margin: 0 0 8px; position: relative; max-width: 14em; }
.feature-panel p { color: #B7C5D6; font-size: 0.98rem; margin: 0 0 18px; position: relative; max-width: 30ch; }
.feature-panel .btn { align-self: flex-start; position: relative; padding: 11px 20px; font-size: 0.96rem; }
.feature-panel address { font-style: normal; color: #B7C5D6; font-size: 0.96rem; position: relative; line-height: 1.7; }
.feature-panel address a { color: var(--white); text-decoration: none; font-weight: 600; }
.feature-panel address a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

.nav-mobile-only { display: none; }
.nav-list a.is-active, .nav-list a[aria-current="page"] { color: var(--ink); }

/* --- below 1040px the menu becomes a drawer --- */
@media (max-width: 1040px) {
  :root { --hdr-h: 66px; }
  header#siteHeader { top: 0; }
  body.nav-open { overflow: hidden; }
  .utility-bar { display: none; }
  .site-header { justify-content: space-between; height: var(--hdr-h); }
  header.is-scrolled .site-header { height: var(--hdr-h); }
  .menu-toggle { display: flex; }
  .header-actions { display: none; }
  .main-nav { display: none; margin: 0; }
  .main-nav.active {
    display: block; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h));
    overflow-y: auto; overscroll-behavior: contain; background: var(--white); border-top: 1px solid var(--line);
    padding: 10px 20px 40px; box-shadow: 0 30px 40px -20px rgba(11, 30, 51, 0.4);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 18px 4px; font-size: 1.12rem; }
  .nav-link::after { display: none; }
  .nav-item:not(.dropdown) > .nav-link { padding-right: 4px; }
  .dropdown-btn { width: 52px; height: 56px; margin: 0; }
  .dropdown-content {
    position: static; flex: 0 0 100%; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    border: 0; box-shadow: none; background: transparent; transition: none;
  }
  .dropdown-content.show { display: block; }
  .mega-inner { display: block; padding: 0 0 18px; }
  .mega-main, .mega-main--2, .mega-main--3 { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .mega-feature { display: none; }
  .mega-head { display: none; }
  .mega-group { margin-bottom: 12px; }
  .mega-link { padding: 10px 8px; }
  .nav-mobile-only { display: block; border: 0; }
  .nav-mobile-actions { display: grid; gap: 12px; padding-top: 22px; }
  .nav-mobile-actions .btn { width: 100%; }
  .nav-mobile-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-weight: 600; font-size: 1rem; }
  .nav-mobile-meta a { text-decoration: none; }
  .nav-mobile-meta .lang-switch a, .nav-mobile-meta .lang-switch span { color: var(--ink); }
  .nav-mobile-meta .lang-switch { border-color: var(--line); }
  .nav-mobile-meta .lang-switch [aria-current="true"] { background: var(--ink); color: #fff; }
}

/* ==========================================================================
   FOOTER — markup lives in footer.html / frfooter.html
   ========================================================================== */
footer { background: var(--ink); color: #B7C5D6; position: relative; }
footer::after { /* the three route lines close every page */
  content: ""; display: block; height: 6px;
  background: linear-gradient(90deg, var(--amber) 0 34%, var(--blue) 34% 67%, var(--green) 67% 100%);
}
.footer-wrapper { padding: 64px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr 0.85fr 1.7fr 0.85fr; gap: 40px 44px; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #B7C5D6; font-size: 0.98rem; max-width: 34ch; }
.footer-contact { font-style: normal; margin-top: 20px; display: grid; gap: 2px; font-size: 0.98rem; }
.footer-contact a { color: var(--white); text-decoration: none; font-weight: 600; display: inline-block; padding: 5px 0; }
.footer-contact a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-contact span { color: #B7C5D6; }
.footer-column h2 { color: var(--white); font-family: var(--font-display); font-stretch: 104%; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: 4px; }
.footer-column a { text-decoration: none; color: #B7C5D6; font-size: 0.98rem; transition: color 0.15s; display: inline-block; padding: 5px 0; }
.footer-column a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-column--split ul { columns: 1; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 22px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer-bottom p { color: #8FA2B8; font-size: 0.92rem; margin: 0; max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
.footer-legal > a { color: #B7C5D6; font-size: 0.92rem; text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-legal > a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom .lang-switch { border-color: var(--ink-line); }
.footer-bottom .lang-switch a { color: #D6E0EC; text-decoration: none; }
.footer-bottom .lang-switch [aria-current="true"] { background: var(--white); color: var(--ink); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 960px) { .footer-column--split { grid-column: 1 / -1; order: 3; } .footer-column--split ul { columns: 2; column-gap: 24px; } .footer-column--split li { break-inside: avoid; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer-wrapper { padding-top: 48px; } .footer-column a { font-size: 0.93rem; } .footer-column--split ul { columns: 1; } }
@media (min-width: 961px) { .footer-column--split ul { columns: 2; column-gap: 28px; } .footer-column--split li { break-inside: avoid; } }

/* ==========================================================================
   SHARED CONTENT COMPONENTS (used across page-specific CSS files)
   ========================================================================== */

/* inner-page hero: breadcrumb, headline, route divider */
.hero { padding: 76px 0 56px; position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero::after {
  content: ""; display: block; height: 14px; margin: 44px auto 0; max-width: calc(var(--container) - 56px);
  background:
    radial-gradient(circle at 50% 50%, var(--white) 0 3.5px, var(--ink) 3.5px 6.5px, transparent 7px) 0 0 / 20% 100% repeat-x,
    linear-gradient(var(--line), var(--line)) 0 50% / 100% 2px no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 1rem; margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--amber); background: var(--white); flex-shrink: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-badges span { font-size: 0.98rem; color: var(--muted); padding-left: 16px; position: relative; }
.hero-badges span::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero-graphic { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-graphic { order: -1; max-width: 300px; margin: 0 auto; } .hero { padding-top: 48px; } }

/* closing call-to-action band (used at the foot of inner pages) */
.cta-band { position: relative; overflow: hidden; background: var(--amber); color: var(--ink); padding: 68px 0; }
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); margin: 0 0 10px; max-width: 18em; color: var(--ink); }
.cta-band p { margin: 0; color: #2A2410; font-size: 1.12rem; max-width: 46ch; }
.cta-band .btn-row { margin: 0; justify-content: flex-start; }
.cta-band .btn-ghost { border-color: rgba(11, 30, 51, 0.55); color: var(--ink); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.35); border-color: var(--ink); }

.stat-strip { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { flex: 1; padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 2.4rem; color: var(--ink); display: block; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--muted); font-size: 0.98rem; margin-top: 4px; }
@media (max-width: 700px) { .stat-strip { flex-direction: column; } .stat { border-left: none; border-top: 1px solid var(--line); } .stat:first-child { border-top: none; } }

/* service blocks — each takes one of the three line colours */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.service-block { --accent: var(--amber); position: relative; padding: 30px 28px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.18s ease, transform 0.22s var(--ease), box-shadow 0.22s var(--ease); }
.service-block::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 5px; border-radius: 0 0 4px 4px; background: var(--accent); }
.service-block:nth-child(3n+2) { --accent: var(--blue); }
.service-block:nth-child(3n) { --accent: var(--green); }
.service-block:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(11, 30, 51, 0.35); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-block h2 { font-size: 1.45rem; font-stretch: 104%; margin-bottom: 8px; }
.service-block p { font-size: 1rem; color: var(--muted); margin-bottom: 14px; }
.service-block a { font-size: 1rem; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 860px) { .service-list { grid-template-columns: 1fr; } }

/* a sequence rendered as a route: stations on a line */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; color: var(--ink);
}
.step h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step p { font-size: 0.98rem; color: var(--muted); }
.process::before, .process::after { content: ""; position: absolute; top: 17px; left: 19px; right: 19px; height: 4px; border-radius: 2px; }
.process::before { background: var(--line); }
.process::after { background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) 0.2s; }
.process.is-visible::after { transform: scaleX(1); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } .process::before, .process::after { display: none; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .process--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process--4 { grid-template-columns: 1fr; } }

.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; margin-top: 22px; }
.region-grid div { padding: 14px 0 14px 26px; border-top: 1px solid var(--line); font-weight: 650; position: relative; }
.region-grid div::before { content: ""; position: absolute; left: 2px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; border: 3px solid var(--ink); background: var(--white); }
@media (max-width: 700px) { .region-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ — script.js toggles .active + max-height */
.faq-container { max-width: 800px; margin-top: 10px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 4px; font-family: var(--font-display); font-stretch: 102%; font-weight: 650; font-size: 1.08rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-question:hover { color: var(--blue); }
.faq-toggle { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--blue); flex-shrink: 0; }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.25s var(--ease); }
.faq-answer p { padding: 0 4px 24px; color: var(--muted); max-width: 66ch; margin: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.98rem; font-weight: 650; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1.02rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #BCC9D9; border-radius: var(--radius); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #8CA0B8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(240, 169, 58, 0.45); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.req-star { color: #B3261E; margin-left: 4px; font-weight: 700; }
.help-text { font-size: 0.92rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* ---------- deep-content sections shared by industry + service pages ---------- */
.ind-intro { max-width: 780px; }
.ind-intro h2 { margin-bottom: 18px; }
.ind-intro p { color: var(--muted); font-size: 1.1rem; max-width: 68ch; }

.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.use-card {
  --accent: var(--amber);
  padding: 22px 22px 20px 24px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.18s;
}
.use-card:nth-child(3n+2) { --accent: var(--blue); }
.use-card:nth-child(3n) { --accent: var(--green); }
.use-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(11, 30, 51, 0.4); border-color: var(--accent); }
.use-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.use-card p { font-size: 0.98rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .use-grid { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.check-list li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--line); font-size: 1.04rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23F0A93A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat;
}
@media (max-width: 760px) { .check-list { grid-template-columns: 1fr; } }

.read-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.read-card {
  --accent: var(--amber);
  display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 22px 24px; background: var(--white);
  border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); color: var(--ink); text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.18s ease;
}
.read-card:nth-child(3n+2) { --accent: var(--blue); }
.read-card:nth-child(3n) { --accent: var(--green); }
.read-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(11, 30, 51, 0.4); border-color: var(--accent); }
.read-tag { font-size: 0.92rem; font-weight: 650; color: var(--amber-deep); }
.read-title { font-family: var(--font-display); font-stretch: 102%; font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
@media (max-width: 860px) { .read-grid { grid-template-columns: 1fr; } }
.related-h { font-size: 1.15rem; margin-top: 38px; }
/* h2 in the document outline, h3 in size (short intro columns / link blocks under a page title) */
.h-sm { font-size: 1.2rem; font-stretch: 102%; letter-spacing: -0.012em; margin-bottom: 8px; }


/* filter bars (Industries + Blog) */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 28px; }
.filter-bar input[type="search"] { max-width: 420px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 650; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-empty { color: var(--muted); padding: 6px 0 22px; }

/* ==========================================================================
   MOTION — route lines, beacons, marquee, scroll progress, back-to-top, floating CTA
   ========================================================================== */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.route-line { stroke-dashoffset: 0; animation: routeFlow 2.4s linear infinite; }
@keyframes routeFlow { to { stroke-dashoffset: -26; } }
.beacon-ring { transform-origin: center; transform-box: fill-box; animation: beaconPulse 2.6s var(--ease) infinite; }
@keyframes beaconPulse { 0% { transform: scale(0.85); opacity: 0.7; } 70% { transform: scale(1.35); opacity: 0; } 100% { transform: scale(1.35); opacity: 0; } }

/* No fade on <body>: the browser ignores text that is painted while an ancestor has opacity 0, so a page-level fade stops the headline from counting as the largest-contentful-paint element (Lighthouse then reports no LCP at all). Page-to-page polish comes from the view transitions below. */

#scrollProgress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }

.marquee { overflow: hidden; background: var(--ink); padding: 20px 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.marquee-track { display: flex; width: max-content; gap: 52px; animation: marqueeScroll 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 106%; font-weight: 650; font-size: 1.08rem; color: #D6E0EC; white-space: nowrap; }
.marquee-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2.5px solid var(--amber); display: inline-block; }
.marquee-item:nth-child(3n+2) .dot { border-color: var(--blue); }
.marquee-item:nth-child(3n) .dot { border-color: var(--green); }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 48px; color: var(--muted); font-size: 0.9rem; font-weight: 600; text-decoration: none; width: fit-content; }
.scroll-cue .chevron { width: 18px; height: 18px; border-right: 2px solid var(--amber-deep); border-bottom: 2px solid var(--amber-deep); transform: rotate(45deg); animation: scrollCueBounce 1.8s var(--ease) infinite; }
@keyframes scrollCueBounce { 0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.6; } 50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; } }

.back-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--ink-line); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none; z-index: 45;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.15s;
}
.back-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--ink-soft); }
.back-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.float-cta { display: none; }
@media (max-width: 700px) {
  .float-cta {
    display: flex; position: fixed; left: 16px; right: 76px; bottom: 20px; z-index: 45; justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(11, 30, 51, 0.5);
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .back-top { right: 16px; }
}

/* opt-in reveal (used on a few homepage elements; everything stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line, .beacon-ring, .scroll-cue .chevron { animation: none; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .process::after { transform: scaleX(1); transition: none; }
  .route-courier { display: none; }
}

/* ===== Status pages (thank-you / error) ===== */
.status-page { --pt: clamp(72px, 12vw, 132px); position: relative; padding: var(--pt) 0 clamp(80px, 12vw, 140px); background: var(--paper); overflow: hidden; }
.status-page::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--pt) + 39px); height: 6px; background: linear-gradient(90deg, transparent 0, var(--line) 12%, var(--line) 88%, transparent 100%); }
.status-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.status-station { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0 0 10px var(--paper), 0 0 0 13px var(--green), 0 22px 40px -18px rgba(22, 137, 92, 0.7); margin-bottom: 36px; }
.status-station svg { width: 40px; height: 40px; }
.status-page--error .status-station { background: var(--amber); color: var(--ink); box-shadow: 0 0 0 10px var(--paper), 0 0 0 13px var(--amber), 0 22px 40px -18px rgba(240, 169, 58, 0.8); }
.status-page h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18em; margin: 0 0 16px; }
.status-page .lede { max-width: 40em; margin: 0 auto 30px; }
.status-page .lede a { white-space: nowrap; color: var(--ink); font-weight: 650; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.status-page .btn-row { margin: 0; justify-content: center; }
@media (prefers-reduced-motion: no-preference) { .status-station { animation: statusPop 0.7s var(--ease) both; } @keyframes statusPop { from { transform: scale(0.6); opacity: 0; } } }

/* ===== Page-to-page feel: the hero route draws in once; same-site navigation cross-fades ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: heroRoute 1.4s var(--ease) 0.15s backwards; }
  @keyframes heroRoute { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  .site-header { view-transition-name: site-header; }
}
.legal-h { font-size: 1.25rem; font-stretch: 102%; letter-spacing: -0.012em; margin: 1.8em 0 0.5em; }

/* ===== Page-header illustrations: same language as the homepage network map ===== */
.hero-graphic { --hl: var(--amber); --hl2: var(--blue); overflow: visible; }
.hero-graphic.hl-amber { --hl: var(--amber); --hl2: var(--blue); }
.hero-graphic.hl-blue { --hl: var(--blue); --hl2: var(--green); }
.hero-graphic.hl-green { --hl: var(--green); --hl2: var(--amber); }
.hero-graphic g[stroke="#D5DEE9"] { stroke: #C3D2E3; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.1 13; }
.hero-graphic .route-line { stroke: var(--hl); stroke-width: 9; stroke-dasharray: none; stroke-linecap: round; stroke-linejoin: round; animation: none; }
.hero-graphic .route-line:nth-of-type(2n) { stroke: var(--hl2); }
.hero-graphic > circle[fill="#0B1E33"][r="6"], .hero-graphic > circle[fill="#0B1E33"][r="6.5"], .hero-graphic > circle[fill="#0B1E33"][r="9"] { fill: #fff; stroke: var(--ink); stroke-width: 4.5; opacity: 1; }
.hero-graphic > circle[fill="#F0A93A"]:not(.beacon-ring) { stroke: #fff; stroke-width: 5; }
.hero-graphic > rect[fill="#0B1E33"] { filter: drop-shadow(0 16px 16px rgba(11, 30, 51, 0.26)); }
.hero-graphic .beacon-ring { stroke: var(--hl); }
@media (prefers-reduced-motion: no-preference) {
  .hero-graphic .route-line[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; animation: heroDraw 1.5s var(--ease) 0.25s backwards; }
  @keyframes heroDraw { from { stroke-dashoffset: 1; } }
  .hero-graphic > circle[fill="#0B1E33"][r="6"], .hero-graphic > circle[fill="#0B1E33"][r="6.5"], .hero-graphic > circle[fill="#0B1E33"][r="9"] { transform-box: fill-box; transform-origin: center; animation: heroStation 0.5s var(--ease) 0.9s backwards; }
  @keyframes heroStation { from { transform: scale(0); opacity: 0; } }
  .hero-graphic > rect[fill="#0B1E33"] { transform-box: fill-box; transform-origin: center; animation: heroTile 0.7s var(--ease) 1.1s backwards; }
  @keyframes heroTile { from { transform: scale(0.7); opacity: 0; } }
}
.hero-graphic .route-line { opacity: 1; }
.hero-graphic > circle[r="16"] { stroke: var(--ink); stroke-width: 5; }
.hero-graphic > circle[fill="#0B1E33"][r="30"] { stroke: #fff; stroke-width: 5; }
.hero-graphic > line[stroke="#0B1E33"]:not(.route-line) { stroke: var(--hl); stroke-width: 8; stroke-linecap: round; opacity: 1; }
.hero-graphic > line[stroke="#0B1E33"][opacity="0.5"]:not(.route-line) { stroke: var(--hl2); }

/* Mega menu: links settle in one after another when a panel opens */
@media (prefers-reduced-motion: no-preference) and (min-width: 1041px) {
  .dropdown-content.show .mega-link, .dropdown-content.show .mega-group, .dropdown-content.show .feature-panel { animation: megaIn 0.42s var(--ease) backwards; }
  .dropdown-content.show .mega-link:nth-child(2), .dropdown-content.show .mega-group:nth-child(2) { animation-delay: 0.04s; }
  .dropdown-content.show .mega-link:nth-child(3), .dropdown-content.show .mega-group:nth-child(3) { animation-delay: 0.08s; }
  .dropdown-content.show .mega-link:nth-child(4) { animation-delay: 0.12s; }
  .dropdown-content.show .mega-link:nth-child(5) { animation-delay: 0.16s; }
  .dropdown-content.show .feature-panel { animation-delay: 0.1s; }
  @keyframes megaIn { from { opacity: 0; transform: translateY(8px); } }
}

/* Careers already sits in the drawer's own link row on phones; keep it out of the Company list there so it shows once. */
@media (max-width: 1040px) { .mega-link--desk { display: none; } }

@media (max-width: 960px) { .footer-column a, .footer-contact a { padding: 8px 0; } .footer-column li { margin-bottom: 0; } }
