/* ==========================================================================
   PNG Dispatch — Design System
   Colors sampled directly from the brand logo.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy-deep: #001C46;
  --navy: #0B2D5C;
  --navy-soft: #16386B;
  --gold: #D6A024;
  --gold-light: #E9C268;
  --red: #B81F2A;
  --cream: #FAF6E8;
  --white: #FFFFFF;
  --ink: #14213D;
  --ink-soft: #4A5878;
  --line: #E3DCC8;

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Layout */
  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 0.75em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 6px 18px rgba(214,160,36,0.35); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 42px; width: auto; }
.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.1;
}
.nav-brand-text span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--navy-deep) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 30px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-deep);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(214,160,36,0.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(184,31,42,0.10), transparent 40%);
  color: var(--white);
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { color: var(--white); }
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.08rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* Tracking widget — the hero's core job */
.track-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.track-widget .eyebrow { color: var(--red); }
.track-widget h3 { margin-bottom: 16px; }
.track-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.track-input {
  flex: 1;
  min-width: 180px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  background: var(--cream);
  color: var(--navy-deep);
}
.track-input:focus {
  outline: none;
  border-color: var(--gold);
}
.track-widget-hint {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-deep); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }
.section-head { max-width: 640px; margin: 0 0 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--navy-deep);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Flight-path timeline (signature element) ---------- */
.flightpath {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 60px 0 20px;
  padding: 0 10px;
}
.flightpath::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 5%;
  right: 5%;
  height: 2px;
  background-image: linear-gradient(to right, var(--gold) 60%, transparent 0%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
}
.fp-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 14.2%;
}
.fp-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.fp-stop.done .fp-dot { background: var(--gold); color: var(--navy-deep); }
.fp-stop.current .fp-dot { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--gold); box-shadow: 0 0 0 5px rgba(214,160,36,0.25); }
.fp-stop.exception .fp-dot { background: var(--red); border-color: var(--red); color: var(--white); }
.fp-label { font-size: 0.78rem; font-weight: 600; color: var(--navy-deep); }
.fp-time { font-size: 0.7rem; color: var(--ink-soft); font-family: var(--font-mono); margin-top: 2px; }

@media (max-width: 800px) {
  .flightpath { flex-direction: column; gap: 22px; align-items: flex-start; padding-left: 18px; }
  .flightpath::before { top: 0; bottom: 0; left: 17px; right: auto; width: 2px; height: auto; background-image: linear-gradient(to bottom, var(--gold) 60%, transparent 0%); background-size: 2px 14px; }
  .fp-stop { flex-direction: row; width: 100%; text-align: left; gap: 14px; }
  .fp-dot { margin-bottom: 0; flex-shrink: 0; }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 30px 0;
  margin: 50px 0 0;
}
.stat { text-align: center; }
.stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.alert-success { background: #E9F5EA; color: #1E6B2E; border: 1px solid #BCE3C0; }
.alert-error { background: #FBE9E9; color: var(--red); border: 1px solid #F0C6C8; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-grid a { display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--navy-deep);
  color: var(--white);
  padding: 56px 0;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
