/* ============================================================
   ON Global Logistics — Design System
   Palette + type extracted from the approved home mockup.
   ============================================================ */

:root {
  --ink:          #0B2341;  /* command navy — primary text + dark bands */
  --ink-2:        #081A30;  /* darker navy for hover                    */
  --accent:       #F97316;  /* Mission Orange — ACTION ONLY, ~1 per view */
  --accent-hover: #E4670F;
  --accent-strong:#C2540A;  /* accessible orange for eyebrow text        */
  --accent-light: #FB923C;  /* orange on dark surfaces                   */
  --oglblue:      #77A4D7;  /* OGL Blue — the logo blue: accents, highlights on dark */
  --oglblue-tint: rgba(119, 164, 215, .14);
  --charcoal:     #46535F;  /* workhorse dark — body copy, icons         */
  --emerald:      #00C853;  /* positive only — confirmations, checkmarks */
  --muted:        #5B6F82;  /* Slate Blue — secondary text, dividers     */
  --muted-2:      #7D93A8;  /* Sky Slate — captions, muted labels        */
  --muted-3:      #9FB0B8;  /* faint captions                           */
  --gray:         #C5CDD6;  /* Cool Gray — quiet surfaces, on-navy text  */
  --line:         #D9E0E7;
  --line-strong:  #C5CDD6;
  --bg:           #ffffff;
  --bg-soft:      #F2F5F8;  /* feature panels                           */
  --bg-hover:     #F6F9FB;  /* card hover                               */
  --accent-tint:  rgba(249, 115, 22, .1);
  --shadow:       0 14px 40px rgba(11, 35, 65, .14);
  --shadow-dark:  0 14px 40px rgba(8, 26, 48, .28);
  --cta-shadow:   0 8px 18px -8px rgba(249, 115, 22, .7);
  --font:         'Archivo', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --maxw:         1240px;
  --radius:       20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.shell { max-width: var(--maxw); margin: 0 auto; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ---- Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: background .18s ease, transform .18s ease;
}
.btn-primary { background: var(--accent); color: var(--ink); padding: 15px 28px; font-size: 15px; box-shadow: var(--cta-shadow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; padding: 16px 30px; font-size: 15px; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; box-shadow: none; }
.btn-ghost {
  font-weight: 600; font-size: 15px; color: var(--ink);
  padding: 15px 6px; border-bottom: 2px solid var(--oglblue);
}
.btn-ghost:hover { color: var(--accent-strong); }

/* ---- Navigation -------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; border-bottom: 1px solid var(--line);
}
/* Programmatic logo lockup: ON mark + two-line wordmark (no tagline) */
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-div { width: 2px; height: 30px; background: var(--line-strong); border-radius: 2px; flex: none; }
.brand-wm { display: flex; flex-direction: column; line-height: 1; align-items: center; }
.brand-wm-top {
  font-family: var(--font); font-weight: 900; font-size: 18px;
  letter-spacing: .005em; color: #000; text-transform: uppercase;
}
.brand-wm-bot {
  font-family: var(--font); font-weight: 700; font-size: 11px;
  letter-spacing: .315em; color: var(--oglblue); text-transform: uppercase;
  margin-top: 3px; margin-right: -.315em;  /* trim trailing track so it centers true */
}
/* Compact variant for the footer */
.brand.compact .brand-mark { height: 30px; }
.brand.compact .brand-div { height: 26px; }
.brand.compact .brand-wm-top { font-size: 16px; }
.brand.compact .brand-wm-bot { font-size: 10px; letter-spacing: .285em; margin-top: 2px; margin-right: -.285em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.navlink { transition: color .15s ease; }
.navlink:hover, .navlink.is-active { color: var(--accent-strong); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---- Section scaffolding ----------------------------------- */
.section { padding: 56px 40px; }
.section-tight { padding: 40px; }
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 11.5px; letter-spacing: .12em;
  color: var(--accent-strong); text-transform: uppercase;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600; font-size: 11px; letter-spacing: .1em;
  color: var(--ink); background: var(--oglblue-tint);
  padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
}
h1 { font-weight: 800; letter-spacing: -.03em; line-height: .98; }
h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.lead { font-weight: 400; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---- Hero -------------------------------------------------- */
.hero {
  padding: 74px 40px 46px;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px;
  align-items: center; border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 62px; margin: 22px 0; }
.hero .accent { color: var(--ink); }
.hero-actions { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.hero-media { position: relative; height: 360px; }

/* Media placeholder — stands in for warehouse/fulfillment photos */
.media {
  position: relative; width: 100%; height: 100%;
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 82% 0%, rgba(249,115,22,.30), transparent 55%),
    linear-gradient(150deg, #123156 0%, #0B2341 55%, #081A30 100%);
}
.media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 75%);
}
/* Real photography — navy overlay keeps captions legible + on-brand */
.media.photo { background-size: cover; background-position: center; }
.media.photo::after {
  background: linear-gradient(180deg, rgba(11,35,65,.12) 38%, rgba(11,35,65,.64) 100%);
  -webkit-mask-image: none; mask-image: none;
}
.media-label {
  position: absolute; left: 20px; bottom: 18px; z-index: 2;
  font-weight: 600; font-size: 11px; letter-spacing: .06em;
  color: rgba(255,255,255,.6); text-transform: uppercase;
}

.float-card {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 15px 17px; box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card.top { top: 18px; right: 18px; }
.float-card.bottom {
  bottom: 24px; left: 18px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-dark); animation-delay: 1.5s;
}
.float-cap { font-family: var(--font-mono); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 6px; text-transform: uppercase; }
.float-live { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--oglblue); animation: glow 1.8s infinite; }
.float-big { font-weight: 800; font-size: 22px; color: var(--oglblue); }
.float-sub { font-weight: 500; font-size: 11px; color: #a9c0c9; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glow   { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes marq   { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Integrations marquee ---------------------------------- */
.marquee {
  padding: 20px 0; border-bottom: 1px solid var(--line);
  overflow: hidden; display: flex; align-items: center; gap: 32px;
}
.marquee-label { font-family: var(--font-mono); font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--muted-2); white-space: nowrap; padding-left: 40px; text-transform: uppercase; }
.marquee-track { overflow: hidden; flex: 1; }
.marquee-row {
  display: flex; gap: 52px; width: max-content;
  animation: marq 24s linear infinite;
  font-weight: 700; font-size: 18px; color: #9fb0b8; white-space: nowrap;
}

/* ---- Services grid ----------------------------------------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 38px; }
.link-arrow { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { color: var(--accent-strong); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.svc-col {
  display: block; padding: 24px 22px; border-right: 1px solid var(--line-strong);
  transition: background .15s ease;
}
.svc-col:last-child { border-right: 0; }
.svc-col:hover { background: var(--bg-hover); }
.svc-num { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; color: var(--accent-strong); margin-bottom: 16px; }
.svc-title { font-weight: 700; font-size: 18px; margin-bottom: 9px; }
.svc-desc { font-weight: 400; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---- Feature panel ----------------------------------------- */
.feature {
  margin: 56px 40px; background: var(--bg-soft); border-radius: var(--radius);
  padding: 40px; display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center;
}
.feature.reverse { grid-template-columns: 1.05fr .95fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; border-radius: 14px; overflow: hidden; height: 300px; }
.feature-media .media { border-radius: 14px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 22px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check::before { content: "✓"; color: var(--emerald); font-weight: 700; }

/* ---- Stats band -------------------------------------------- */
.stats {
  background: var(--ink); color: #fff; padding: 48px 40px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  border-radius: var(--radius); margin: 0 40px;
}
.stat-num { font-weight: 800; font-size: 40px; letter-spacing: -.02em; }
.stat-num.alt { color: var(--oglblue); }
.stat-label { font-weight: 500; font-size: 13px; color: #8FA3B8; margin-top: 4px; }

/* ---- Testimonial / proof ----------------------------------- */
.proof { padding: 56px 40px; text-align: center; }
.proof-quote { font-weight: 500; font-size: 26px; line-height: 1.4; letter-spacing: -.01em; margin: 18px auto 0; max-width: 760px; }
.proof-by { font-weight: 500; font-size: 14px; color: var(--muted-2); margin-top: 18px; }

/* ---- CTA band ---------------------------------------------- */
.cta {
  margin: 0 40px 44px; background: var(--ink); border-radius: var(--radius);
  padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: 34px; color: #fff; line-height: 1.05; }
.cta p { font-weight: 500; font-size: 15px; color: var(--gray, #C5CDD6); margin-top: 8px; }

/* ---- Brand tagline: "WE'RE ON IT." -------------------------
   Set in caps at the same weight as the ON GLOBAL wordmark, and the
   O / N carry the mark's own two colours (black O, OGL-blue N) so the
   tie back to the logo is explicit. Add .on-dark on navy surfaces. */
.tagline {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #000;
}
/* The literal ON mark from the logo, set inline at cap height so the
   tagline reads "WE'RE [ON] IT." Use logo-mark-white.png on navy. */
.tagline .t-mark {
  height: .76em; width: auto; display: inline-block;
  vertical-align: -.045em; margin: 0 .1em 0 .05em;
}
.tagline.on-dark { color: #fff; }

/* ---- Footer ------------------------------------------------ */
.footer {
  border-top: 1px solid var(--line); padding: 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
}
.footer-blurb { font-weight: 400; font-size: 13px; line-height: 1.6; color: var(--muted-2); margin-top: 14px; max-width: 240px; }
.footer-col-title { font-weight: 700; font-size: 12px; margin-bottom: 12px; }
.footer-col a { display: block; font-weight: 500; font-size: 13px; color: var(--muted-2); margin-bottom: 9px; }
.footer-bottom { padding: 20px 40px; border-top: 1px solid var(--line); font-weight: 500; font-size: 12px; color: var(--muted-3); }

/* ============================================================
   Page-level helpers (About / Services / Contact)
   ============================================================ */
.page-hero { padding: 64px 40px 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 52px; margin: 18px 0; max-width: 720px; }
.page-hero .lead { max-width: 620px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { font-weight: 400; font-size: 14px; line-height: 1.65; color: var(--muted); }
.card-num { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; color: var(--accent-strong); margin-bottom: 14px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { font-weight: 400; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---- Contact / form ---------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 34px; margin-bottom: 16px; }
.contact-info p { font-weight: 400; font-size: 15px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.info-ico {
  width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--oglblue-tint);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.info-label { font-weight: 700; font-size: 13px; }
.info-val { font-weight: 400; font-size: 14px; color: var(--muted); }

.form-card { background: var(--bg-soft); border-radius: var(--radius); padding: 34px; }
.form-card h3 { font-size: 22px; margin-bottom: 4px; }
.form-card .form-sub { font-weight: 400; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 14px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.form-note { font-weight: 400; font-size: 12px; color: var(--muted-2); margin-top: 14px; }
.form-status { font-weight: 600; font-size: 14px; margin-top: 16px; display: none; }
.form-status.ok { display: block; color: #2e7d5b; }
.form-status.err { display: block; color: #b3403a; }

/* GHL embed slot — the iframe from GHL form builder drops in here.
   Stays collapsed while empty; only reserves height once an iframe exists. */
.ghl-embed:has(iframe) { min-height: 480px; margin-bottom: 8px; }
.ghl-embed iframe { width: 100%; min-height: 480px; border: 0; border-radius: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 14px 20px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; }
  .nav-toggle { display: block; }

  .section, .proof, .page-hero { padding-left: 22px; padding-right: 22px; }
  .hero { grid-template-columns: 1fr; padding: 44px 22px 36px; gap: 32px; }
  .hero h1 { font-size: 42px; }
  .hero-media { height: 300px; }
  .page-hero h1 { font-size: 38px; }

  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-col { border-bottom: 1px solid var(--line-strong); }
  .svc-col:nth-child(2) { border-right: 0; }

  .feature, .feature.reverse { grid-template-columns: 1fr; margin: 40px 22px; padding: 28px; }
  .feature.reverse .feature-media { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin: 0 22px; }
  .cta { margin: 0 22px 36px; padding: 32px; }
  .cta h2 { font-size: 26px; }

  .card-grid, .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { grid-template-columns: 1fr 1fr; padding: 32px 22px; }
  .marquee-label { padding-left: 22px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .field.row { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .proof-quote { font-size: 21px; }
}
