/* ============================================================
   Last Mile Strategies — Website Refresh
   Brand tokens (from design system) + Impeccable-refined components.
   Pure Poppins. Navy / orange / blue. No gradients-as-text,
   no glassmorphism, no side-tab card stripes, no overshoot easing.
   ============================================================ */

:root {
  /* ── Brand colors ───────────────────────────────────────── */
  --orange:       #F0641E;
  --orange-dark:  #D8591A;
  --orange-deep:  #BF4E14;
  --orange-soft:  rgba(240,100,30,.10);
  --orange-ring:  rgba(240,100,30,.22);

  --blue:         #1E82BE;
  --blue-dark:    #1870A8;
  --blue-deeper:  #155F8F;
  --blue-soft:    rgba(30,130,190,.10);
  --blue-ring:    rgba(30,130,190,.22);

  /* benchmark zones: healthy (green) + underspend (gold) */
  --green:        #1E9E72;
  --green-soft:   rgba(30,158,114,.14);
  --green-deep:   #147A56;
  --gold:         #D98A1F;
  --gold-soft:    rgba(217,138,31,.16);
  --gold-deep:    #97600F;

  --navy:         #283C50;
  --navy-dark:    #1E2F3E;
  --navy-deeper:  #17232F;

  /* ── Neutrals ───────────────────────────────────────────── */
  --white:        #FFFFFF;
  --light:        #F5F7FA;
  --light-2:      #EEF2F6;
  --line:         #E5E7EB;
  --muted:        #5B6675;
  --subtle:       #8A93A0;
  --hairline:     rgba(40,60,80,.08);

  /* on dark */
  --on-dark:      #FFFFFF;
  --on-dark-2:    rgba(255,255,255,.76);
  --on-dark-3:    rgba(255,255,255,.55);
  --on-dark-line: rgba(255,255,255,.12);

  /* ── Type ───────────────────────────────────────────────── */
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* ── Radii ──────────────────────────────────────────────── */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 100px;

  /* ── Elevation — committed soft elevation, restrained borders.
        (Impeccable: don't pair a hard hairline with a wide diffuse
        shadow. Cards use a near-invisible edge + one soft shadow.) ─ */
  --edge:    1px solid rgba(40,60,80,.07);
  --elev-1:  0 1px 2px rgba(40,60,80,.04), 0 6px 20px rgba(40,60,80,.06);
  --elev-2:  0 1px 2px rgba(40,60,80,.05), 0 10px 30px rgba(40,60,80,.09);
  --elev-3:  0 2px 4px rgba(40,60,80,.06), 0 18px 44px rgba(40,60,80,.12);
  --elev-blue: 0 2px 4px rgba(30,130,190,.06), 0 16px 40px rgba(30,130,190,.12);
  --elev-btn:  0 6px 18px rgba(240,100,30,.30);
  --elev-step: 0 6px 18px rgba(240,100,30,.32);

  /* ── Motion — eased out, no overshoot (Impeccable: reserve
        spring physics for physical things; ease UI out smoothly). ─ */
  --ease-out:   cubic-bezier(.22,1,.36,1);     /* quint-ish */
  --ease-soft:  cubic-bezier(.33,1,.68,1);
  --ease-std:   cubic-bezier(.4,0,.2,1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-med:  340ms;

  /* ── Layout ─────────────────────────────────────────────── */
  --max:  1180px;
  --max-narrow: 920px;
  --pad:  24px;
  --nav-h: 74px;

  /* ── Tweakable knobs (Tweaks panel writes these) ──────────── */
  --accent: var(--orange);
  --motion-scale: 1;
  --section-pad: 112px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(240,100,30,.18); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--pad); }

/* ============================================================
   Type scale — wide jumps between steps (Impeccable: avoid flat
   hierarchy). Hierarchy comes from size + weight, since the brand
   is single-typeface by directive — so weight contrast is pushed.
   ============================================================ */
h1, h2, h3, h4, h5 { margin: 0; color: var(--navy); }

.display {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
}
.h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.028em;
}
.h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.h4 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
  max-width: 60ch;
}
.body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 66ch;
}
.body-sm { font-size: .9375rem; line-height: 1.7; color: var(--muted); }
.measure { max-width: 64ch; }

/* Kicker — used SPARINGLY, never on every section. Inline rule + word,
   not a pill chip stacked over an oversized headline. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: none;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.kicker.blue { color: var(--blue); }
.kicker.blue::before { background: var(--blue); }
.kicker.on-dark { color: var(--orange); }

/* Eyebrow — reserved for the hero only (true all-caps micro-label). */
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.accent-word { color: var(--accent); }
.blue-word { color: var(--blue); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .8rem 1.4rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform calc(var(--dur-base) * var(--motion-scale)) var(--ease-out),
              background-color var(--dur-base) var(--ease-std),
              box-shadow var(--dur-base) var(--ease-std),
              border-color var(--dur-base) var(--ease-std),
              color var(--dur-fast) var(--ease-std);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(240,100,30,.22);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--orange-dark); box-shadow: var(--elev-btn); }
.btn-primary:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(40,60,80,.18);
}
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-deeper); box-shadow: 0 8px 22px rgba(40,60,80,.26); }
.btn-navy:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(40,60,80,.18);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(40,60,80,.035); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

.btn-outline-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.32);
}
.btn-outline-dark:hover { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); transform: translateY(-2px); }

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-sm { padding: .58rem 1.05rem; font-size: .875rem; }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--accent);
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover { color: var(--orange-dark); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow.blue { color: var(--blue); }
.link-arrow.blue:hover { color: var(--blue-deeper); }
.link-arrow.on-dark { color: #fff; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base);
}
.nav.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(40,60,80,.04), 0 8px 24px rgba(40,60,80,.05);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.nav-logo img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  transition: color var(--dur-fast);
  padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transition: right var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { right: 0; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-advisor { font-size: .9rem; font-weight: 600; color: var(--navy); transition: color var(--dur-fast); }
.nav-advisor:hover { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy); }

@media (max-width: 1024px) {
  .nav-links, .nav-advisor { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--hairline);
  box-shadow: var(--elev-2);
  padding: 18px var(--pad) 26px;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 6px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--hairline); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================
   Section rhythm — varied, not monotone (Impeccable: rhythm,
   not one spacing value everywhere). Sections alternate surface.
   ============================================================ */
section { padding: var(--section-pad) 0; }
.surface-light { background: var(--light); }
.surface-dark { background: var(--navy); color: #fff; }
.section-tight { padding: calc(var(--section-pad) * .64) 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head p { margin: 18px 0 0; }
.section-head.center p { margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  :root { --section-pad: 76px; }
  .section-head { margin-bottom: 38px; }
}

/* ============================================================
   Cards — flat, no nested cards, no side-tab stripe.
   Accent carried by an icon, a top hairline of color, or a dot —
   never a chunky colored left border on a rounded card.
   ============================================================ */
.card {
  background: #fff;
  border: var(--edge);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--elev-1);
  transition: transform calc(var(--dur-med) * var(--motion-scale)) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-std);
}
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--elev-3); }
.card-blue { box-shadow: var(--elev-blue); border-color: var(--blue-ring); }

/* Icon: inline with heading (Impeccable: avoid the icon-tile-stacked
   -above-heading feature-card template). */
.icon-inline { display: flex; align-items: center; gap: 14px; }
.icon-plate {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--orange-soft);
  display: grid; place-items: center;
  color: var(--accent);
}
.icon-plate.blue { background: var(--blue-soft); color: var(--blue); }
.icon-plate svg { width: 22px; height: 22px; }

/* Check / x rows */
.check-row, .x-row { display: flex; gap: 13px; align-items: flex-start; }
.check-ico, .x-ico { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer { background: var(--navy-deeper); color: var(--on-dark-2); padding: 84px 0 30px; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid var(--on-dark-line);
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p { font-size: .9375rem; line-height: 1.75; color: var(--on-dark-3); max-width: 300px; margin: 0; }
.footer-col h5 {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .9rem; color: var(--on-dark-2); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--on-dark-3);
}
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   Shared dark-section decoration (subtle, purposeful lighting —
   not a glow-on-dark "cool" treatment)
   ============================================================ */
.noise {
  position: absolute; inset: 0; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-blue { background: radial-gradient(circle, rgba(30,130,190,.16) 0%, transparent 62%); }
.glow-orange { background: radial-gradient(circle, rgba(240,100,30,.12) 0%, transparent 62%); }

/* ── Accessibility polish (additive; shared by Full Site + mobile app-shell) ──
   Keyboard-only focus rings for interactive elements not already covered
   (.btn and .tile bring their own). :focus-visible means pointer users see no
   change, so the visual design is unaffected. Plus transient :active press
   feedback. Satisfies the guardrail: every clickable has hover + focus-visible
   + active. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:active,
.nav-link:active,
.nav-advisor:active,
.crow:active,
.mtab:active,
.mdrawer-link:active { transform: translateY(1px); }
@media (prefers-reduced-motion: reduce) {
  .btn:active,
  .nav-link:active,
  .nav-advisor:active,
  .crow:active,
  .mtab:active,
  .mdrawer-link:active { transform: none; }
}
