@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-950: #102033;
  --navy-800: #1E293B;
  --navy-700: #2B3B4E;
  --navy-600: #526278;
  --navy-400: #9AA9B8;
  --gold-500: #D4AF37;
  --gold-600: #B98E1E;
  --gold-100: #F9F1CF;
  --paper: #F7F4EE;
  --paper-strong: #F2EEDF;
  --white: #FFFFFF;
  --line: #E8E0CF;
  --shadow-soft: 0 16px 32px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--navy-800);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.10), transparent 28%),
    linear-gradient(180deg, #f8f6f1 0%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.04em;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
}

/* ---------- Route line: the recurring "cargo in motion" motif ---------- */
.route-line {
  position: relative;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.7) 12%, rgba(148, 163, 184, 0.7) 88%, transparent);
  border-radius: 999px;
}
.route-line .waypoint {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(247, 244, 238, 0.9);
}

.route-draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.2s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .route-draw { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Section marker (replaces generic all-caps eyebrow) ---------- */
.section-marker {
  display: inline-flex;
  align-items: center;
  color: var(--gold-600);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
  background: linear-gradient(180deg, #e1bd52 0%, var(--gold-500) 100%);
  color: var(--navy-950);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(212, 175, 55, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #e7c75f 0%, var(--gold-600) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(212, 175, 55, 0.22);
  filter: saturate(1.06);
}

.btn-outline {
  border: 1.5px solid rgba(30, 41, 59, 0.2);
  color: var(--navy-800);
  font-weight: 600;
  border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-outline:hover { border-color: var(--navy-800); transform: translateY(-1px); }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-outline-light:hover { border-color: var(--white); transform: translateY(-1px); }

/* ---------- Manifest-style document card (documentation page) ---------- */
.manifest-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.manifest-table th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--navy-950);
  background: var(--gold-100);
}
.manifest-table tr:not(:last-child) td { border-bottom: 1px solid var(--line); }

.stamp {
  border: 1.5px solid var(--gold-600);
  color: var(--gold-600);
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.65rem;
  transform: rotate(-3deg);
  display: inline-block;
}

/* ---------- Nav ---------- */
.nav-link {
  position: relative;
  color: var(--navy-700);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.15rem; bottom: -5px;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  border-radius: 999px;
  transition: width 0.2s ease;
}
.nav-link:hover { color: var(--navy-950); }
.nav-link:hover::after, .nav-link.active::after { width: calc(100% - 0.3rem); }
.nav-link.active { color: var(--navy-950); font-weight: 600; }

#mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
#mobile-menu.open { max-height: 600px; }

/* ---------- Lang toggle ---------- */
.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  background: rgba(255,255,255,0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.lang-toggle button {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-600);
  background: transparent;
}
.lang-toggle button.active {
  background: var(--navy-800);
  color: var(--white);
}

/* ---------- Team / partner cards ---------- */
.people-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9));
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.people-card .avatar {
  background: linear-gradient(135deg, #20314d, #526278);
}

/* ---------- Feed / activity card ---------- */
.feed-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
}
.feed-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--gold-600);
}

.container-px { padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 1024px) { .container-px { padding-left: 3rem; padding-right: 3rem; } }
