/* Layout: sticky bar, navy hero with a shipper → broker → carrier schematic, alternating light sections, navy contact band */
:root {
  --bg: #f5f7fb;
  --bg-alt: #ebeff7;
  --surface: #ffffff;
  --fg: #15203b;
  --muted: #56627c;
  --line: #d8deea;
  --navy: #1c3263;
  --navy-deep: #111f44;
  --red: #c8102e;
  --on-navy: #f2f5fb;
  --on-navy-muted: #b9c4de;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1424; --bg-alt: #131b2f; --surface: #182136; --fg: #e8ecf5; --muted: #9ba7c1; --line: #2a3553;
    --navy: #182a55; --navy-deep: #0a1430; --red: #e8364f; --on-navy: #f2f5fb; --on-navy-muted: #b9c4de;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1424; --bg-alt: #131b2f; --surface: #182136; --fg: #e8ecf5; --muted: #9ba7c1; --line: #2a3553;
  --navy: #182a55; --navy-deep: #0a1430; --red: #e8364f; --on-navy: #f2f5fb; --on-navy-muted: #b9c4de;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
section[id] { scroll-margin-top: 80px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; font-stretch: 88%; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff9aa8; }
.eyebrow.dark { color: var(--red); }

/* Header */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 115%; letter-spacing: .02em; font-size: 18px; color: var(--fg); white-space: nowrap; }
.brand img { border-radius: 50%; background: #fff; }
.brand-light { color: var(--on-navy); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--bg-alt); }
.nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.nav-cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; font: 700 15px var(--font-body); background: var(--bg-alt); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 6px; font: 700 16px var(--font-body); text-decoration: none; border: 2px solid transparent; transition: filter .15s, background .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--on-navy); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Hero */
.hero { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-navy); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-block: 72px; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; font-stretch: 82%; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--on-navy-muted); max-width: 46ch; }

.broker { margin: 0; display: grid; gap: 0; justify-items: center; }
.node { width: 100%; max-width: 360px; border-radius: 10px; padding: 16px 18px; display: grid; gap: 2px; text-align: center; }
.node strong { font-family: var(--font-display); font-size: 20px; }
.node small { color: var(--on-navy-muted); font-size: 14px; }
.node-side { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.node-hub { background: var(--surface); color: var(--fg); border: 3px solid var(--red); justify-items: center; padding: 20px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.node-hub img { border-radius: 50%; background: #fff; margin-bottom: 6px; }
.node-hub small { color: var(--muted); }
.tag { font: 600 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #ff9aa8; }
.link { height: 44px; width: 2px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.55) 0 6px, transparent 6px 11px); position: relative; overflow: hidden; }
.link i { position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: travel 2.4s linear infinite; }
.link + .node + .link i { animation-delay: 1.2s; }
@keyframes travel { from { top: -8px; } to { top: 44px; } }

/* Sections */
.section { padding-block: 80px; }
.section.alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 640px; }
.section-head .sub { color: var(--muted); }

.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.about > div:first-child { display: grid; gap: 10px; align-content: start; }
.about-text { display: grid; gap: 16px; color: var(--muted); font-size: 18px; max-width: 62ch; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.service svg { width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: 16px; }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--fg); }
.process li { padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
.process li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.process .num { font-family: var(--font-display); font-size: 44px; font-weight: 800; font-stretch: 80%; color: var(--line); line-height: 1; }
.process p { color: var(--muted); font-size: 16px; }

.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* logo tiles stay white in both themes so the partners' artwork reads correctly */
.partners li { background: #ffffff; border: 1px solid var(--line); border-radius: 10px; height: 140px; display: grid; place-items: center; padding: 20px 24px; }
.partners img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.partners img.tall { max-height: 96px; }
.cities-block { margin-top: 48px; display: grid; gap: 16px; }
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--fg); }
.cities li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.cities strong { font-family: var(--font-display); font-size: 20px; font-stretch: 90%; }
.cities span { font: 600 12px var(--font-mono); letter-spacing: .08em; color: var(--red); }

.why { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.why .section-head { margin: 0; align-content: start; }
.reasons { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.reasons div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.reasons dt { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.reasons dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact */
.contact-band { background: var(--navy-deep); color: var(--on-navy); }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-intro { display: grid; gap: 14px; }
.contact-intro p:last-child { color: var(--on-navy-muted); font-size: 18px; max-width: 40ch; }
.contact-card { background: var(--surface); color: var(--fg); border-radius: 12px; padding: 8px 24px 20px; display: grid; }
.contact-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.label { font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.value { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.placeholder { color: var(--muted); font-style: italic; font-weight: 500; }
.copy { font: 600 13px var(--font-body); background: var(--bg-alt); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.copy:hover { border-color: var(--red); }
.map-link { margin-top: 16px; color: var(--red); font-weight: 700; text-decoration: none; justify-self: start; }
.map-link:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.1); color: var(--on-navy-muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 24px; font-size: 14px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; z-index: 20; }

@media (max-width: 900px) {
  .hero-inner, .about, .why, .contact { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr 1fr; }
  .cities { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .process { grid-template-columns: 1fr 1fr; border-top: 0; gap: 28px; }
  .process li { border-top: 2px solid var(--fg); }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .section { padding-block: 56px; }
}
@media (max-width: 560px) {
  .services, .process, .reasons { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; }
  .partners li { height: 104px; padding: 14px; }
  .partners img { max-height: 38px; }
  .partners img.tall { max-height: 72px; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row .label { grid-column: 1 / -1; }
  .hero-inner { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link i { animation: none; top: 18px; }
}
