/* ══════════════════════════════════════════════════
   MERIDIONEX SHIPPING — Global Stylesheet
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── VARIABLES ── */
:root {
  --navy:       #071e3d;
  --navy-mid:   #0d2a50;
  --navy-lt:    #1a3a6e;
  --gold:       #c8922a;
  --gold-lt:    #e8b047;
  --gold-pale:  #fdf5e8;
  --white:      #ffffff;
  --cream:      #f7f8fa;
  --silver:     #9baab8;
  --text-dark:  #1a2535;
  --text-mid:   #445566;
  --text-lt:    #7a8a9a;
  --border:     #e4e9f0;
  --shadow-sm:  0 2px 12px rgba(7,30,61,0.08);
  --shadow-md:  0 8px 32px rgba(7,30,61,0.12);
  --shadow-lg:  0 20px 60px rgba(7,30,61,0.18);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.03em;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar-right a {
  color: var(--gold-lt);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
  transition: color 0.2s;
  padding: 3px 8px;
  border: 1px solid rgba(200,146,42,0.35);
}
.topbar-right a:hover { color: var(--white); border-color: var(--gold); }
@media (max-width: 640px) { .topbar-left { display: none; } }

/* ── NAVIGATION ── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 5%;
  height: 70px;
  transition: background 0.3s, box-shadow 0.3s;
  border-bottom: 2px solid var(--gold);
}
#main-nav.scrolled {
  background: rgba(13,42,80,0.98);
  box-shadow: 0 4px 24px rgba(7,30,61,0.3);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--silver);
  text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 0;
  margin-left: auto;
}
.nav-links li a {
  display: block;
  padding: 0 1.2rem;
  line-height: 70px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.25s, right 0.25s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--white); }
.nav-links li a:hover::after,
.nav-links li a.active::after { left: 1.2rem; right: 1.2rem; }
.nav-cta { display: flex; gap: 10px; margin-left: 1rem; }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  #main-nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 0 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }
  #main-nav.open .nav-links li a { line-height: 3; padding: 0 5%; }
  #main-nav.open .nav-links li a::after { display: none; }
  #main-nav.open .nav-cta {
    display: flex;
    position: absolute; top: 70px; left: 0; right: 0;
    padding: 1rem 5%;
    flex-direction: column;
    background: var(--navy);
    margin-top: calc(38px * 5 + 2.5rem);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 999;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-lt); border-color: var(--navy-lt); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy-lt);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  padding: 1.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 0; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-title.white { color: var(--white); }
.section-body {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.75;
}
.section-body.white { color: rgba(255,255,255,0.75); }

/* ── PAGE BANNER ── */
.page-banner {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
}
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,30,61,0.95) 0%, rgba(7,30,61,0.6) 60%, rgba(7,30,61,0.4) 100%);
}
.page-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 5% 3rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
.page-banner-content h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.page-banner-content h1 em { color: var(--gold); font-style: normal; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-lt); }
.breadcrumb a:hover { color: var(--white); }

/* ── FOOTER ── */
footer { background: var(--navy); }
.footer-main { padding: 60px 5% 40px; max-width: 1160px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--silver);
  line-height: 1.7;
  margin-top: 1.25rem;
  max-width: 320px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 1.5rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}
.social-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.875rem;
  color: var(--silver);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 1160px;
  margin: 0 auto;
}
.footer-bottom a { color: var(--silver); }
.footer-bottom a:hover { color: var(--gold-lt); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up   { animation: fadeUp 0.7s ease both; }
.anim-fade-up-d1 { animation: fadeUp 0.7s ease 0.15s both; }
.anim-fade-up-d2 { animation: fadeUp 0.7s ease 0.3s both; }
.anim-fade-up-d3 { animation: fadeUp 0.7s ease 0.45s both; }
.anim-fade-up-d4 { animation: fadeUp 0.7s ease 0.6s both; }

/* ── SCROLL-REVEAL (JS adds .visible) ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
