/* ============================================================
   GREEN ZONE OASIS — design system v2
   Palette: deep operational green + gold, echoing GZO brand
   Type:    Archivo (display) / Public Sans (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --g950: #071B14;
  --g900: #0B2A20;
  --g800: #0F3D2E;   /* brand deep green */
  --g700: #145A41;   /* brand mid green */
  --g600: #1E6E52;
  --g100: #E7EEE9;
  --gold: #C8A35F;   /* brand gold */
  --gold-300: #DFC28A;
  --paper: #F7F5EE;  /* echoes the cream of the GZO logo */
  --ink: #16211C;
  --muted: #5D6B63;
  --line: #E4E3D8;
  --line-dark: rgba(255,255,255,.12);
  --white: #ffffff;

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 10px;
  --shadow-1: 0 8px 24px rgba(7, 27, 20, .06);
  --shadow-2: 0 18px 44px rgba(7, 27, 20, .12);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.container { width: min(1200px, 92%); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 116;
  line-height: 1.06;
  margin: 0 0 18px;
  color: var(--g800);
  letter-spacing: .005em;
}
h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 800; text-transform: uppercase; letter-spacing: .015em; }
h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* ---------- Mono data accents ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--g950);
  color: #A9BDB2;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar b { color: var(--gold); font-weight: 500; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.logo-img { display: flex; align-items: center; max-width: 250px; }
.logo-img img { height: 50px; width: auto; object-fit: contain; }
.navlinks { display: flex; gap: 26px; align-items: center; font-weight: 600; font-size: 15px; }
.navlinks > a { position: relative; padding: 6px 0; }
.navlinks > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.navlinks > a:not(.btn):hover::after,
.navlinks > a.active::after { transform: scaleX(1); }
.mobile-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.navlinks .btn { padding: 10px 18px; font-size: 13px; letter-spacing: .05em; }
.btn-primary { background: var(--gold); color: var(--g900); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(200,163,95,.35); }
.btn-outline { border: 1px solid rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-300); }
.btn-outline.dark { border-color: var(--g800); color: var(--g800); }
.btn-outline.dark:hover { border-color: var(--gold); color: var(--g700); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero (home) ---------- */
.hero-home {
  position: relative;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(30,110,82,.5), transparent 60%),
    linear-gradient(150deg, var(--g950) 20%, var(--g900) 55%, var(--g800));
  color: var(--white);
  overflow: hidden;
}
.hero-home::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding: 84px 0 72px;
}
.hero-copy h1 { color: var(--white); }
.hero-copy h1 em { font-style: normal; color: var(--gold); }
.lead {
  font-size: 19px; line-height: 1.7;
  color: #D4E0D8; max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero entrance */
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.route-card { animation: rise .9s .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Route map card (signature) ---------- */
.route-card {
  background: rgba(7,27,20,.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-2);
}
.route-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #9DB4A8;
}
.route-card-head .live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.route-map { display: block; width: 100%; height: auto; }
.route-card-foot {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 20px; align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #9DB4A8;
}
.route-card-foot b { color: var(--white); font-weight: 500; }
#routeStatus { color: var(--gold-300); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--g950);
  border-top: 1px solid var(--line-dark);
  color: var(--white);
  position: relative; z-index: 2;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 28px;
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; }
.stat .num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 800; font-size: clamp(34px, 3.4vw, 50px);
  color: var(--gold); line-height: 1;
}
.stat .num sup { font-size: .45em; font-weight: 700; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #9DB4A8; margin-top: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--g900); color: #D4E0D8; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.section.dark .section-head p { color: #A9BDB2; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.split p { color: var(--muted); }
.section.dark .split p { color: #A9BDB2; }

/* ---------- Figures with data-plate captions ---------- */
.figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure .plate {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(7,27,20,.82);
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid rgba(200,163,95,.35);
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ---------- Mission lifecycle ---------- */
.lifecycle { position: relative; }
.lifecycle-track {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 44px;
}
.lifecycle-track::before {
  content: "";
  position: absolute; top: 8px; left: 0; right: 0;
  height: 2px; background: var(--line-dark);
}
.lifecycle-track .progress {
  position: absolute; top: 8px; left: 0;
  height: 2px; width: 0;
  background: var(--gold);
  transition: width 1.6s cubic-bezier(.2,.7,.2,1);
}
.phase { position: relative; }
.phase::before {
  content: "";
  position: absolute; top: -41px; left: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--g900);
  border: 2px solid var(--gold);
}
.phase .tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  color: var(--gold); text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
.phase h3 { color: var(--white); }
.phase p { color: #A9BDB2; font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card p { color: var(--muted); font-size: 15.5px; }
.card .card-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .16em;
  color: var(--gold); display: block; margin-bottom: 14px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--g700); font-weight: 500;
}
.card-link .arrow { transition: transform .2s ease; }
.card:hover .card-link .arrow { transform: translateX(5px); }
.card:hover .card-link { color: var(--gold); }

.list { padding: 0; list-style: none; margin: 18px 0 0; }
.list li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15.5px;
}
.list li::before {
  content: "—"; color: var(--gold);
  position: absolute; left: 0; font-weight: 700;
}
.section.dark .list li { border-color: var(--line-dark); color: #A9BDB2; }

/* ---------- Photo mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 22px;
}
.mosaic .figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic .figure:nth-child(4) { grid-column: span 2; }

/* ---------- Bands ---------- */
.band {
  background:
    radial-gradient(900px 400px at 90% 120%, rgba(200,163,95,.16), transparent 60%),
    var(--g800);
  color: var(--white);
  padding: 84px 0;
}
.band h2 { color: var(--white); max-width: 720px; }
.band p { color: #C9D6CD; max-width: 700px; margin-bottom: 28px; }

/* ---------- Sub-page heroes ---------- */
.hero-sub {
  position: relative;
  color: var(--white);
  padding: 110px 0 90px;
  background-color: var(--g900);
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
}
.hero-sub::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(7,27,20,.94) 30%, rgba(15,61,46,.78));
}
.hero-sub .container { position: relative; z-index: 1; }
.hero-sub h1 { color: var(--white); font-size: clamp(36px, 5vw, 62px); max-width: 900px; }
.hero-sub .lead { margin-bottom: 0; }
.hero-sub .crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #9DB4A8; margin-top: 34px;
}
.hero-sub .crumbs b { color: var(--gold); font-weight: 500; }

/* ---------- Notices ---------- */
.notice {
  background: #FFF8EB;
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  color: #6B5320;
  font-size: 14.5px;
  border-radius: 0 6px 6px 0;
}

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--g700); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 15.5px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,163,95,.18);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--g950);
  color: #A9BDB2;
  padding: 64px 0 26px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-variation-settings: "wdth" 112;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer a { display: block; margin: 9px 0; transition: color .2s ease; }
.footer a:hover { color: var(--gold-300); }
.footer-brand .wordmark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 800; font-size: 20px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--white); margin-bottom: 14px;
}
.footer-brand .wordmark span { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom .mono { font-size: 10.5px; color: #6E8278; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 56px; }
  .route-card { max-width: 640px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .lifecycle-track { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .mosaic { grid-auto-rows: 220px; }
}
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; padding: 14px 0; align-items: center; }
  .mobile-toggle {
    display: block; border: 1px solid var(--g800);
    background: transparent; color: var(--g800);
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 9px 14px; border-radius: 4px; cursor: pointer;
  }
  .logo-img img { height: 42px; }
  .navlinks { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0 18px; }
  .navlinks.open { display: flex; }
  .navlinks > a { padding: 8px 0; }
  .grid-2, .grid-3, .split, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .section { padding: 68px 0; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mosaic .figure:nth-child(1), .mosaic .figure:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .lifecycle-track { grid-template-columns: 1fr; }
  .route-card-foot { grid-template-columns: 1fr; gap: 6px; }
  #routeStatus { text-align: left; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .hero-copy > *, .route-card { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
