/* assets/css/style.css */
/* ============================================================
   LFZDC -- "Global Gateway" Design System
   ============================================================ */

:root {
  /* -- Colors -- */
  --color-primary: #00923F;        /* green wordmark */
  --color-primary-light: #33ad66;
  --color-primary-dark: #007532;
  --color-accent: #DA251C;         /* red accent / CTA */
  --color-accent-dark: #a81812;
  --color-navy: #010066;           /* navy text / brand */
  --color-wave: #006599;           /* wave divider blue */

  --color-bg: #ffffff;
  --color-bg-alt: #F7F8FA;         /* light grey strip */
  --color-text: #1a1a2e;
  --color-text-muted: #5a6072;
  --color-border: #e6e9f0;

  /* -- Typography -- */
  --font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* -- Layout -- */
  --max-width: 1280px;

  /* Standard tokens (auto-injected) */
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 1.875rem; --text-4xl: 2.25rem;
  --text-5xl: 3rem; --text-6xl: 3.75rem;
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4rem; --space-4xl: 6rem;
  --radius-default: 4px; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --radius-xl: 16px; --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* -- Keyframes -- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: float 4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}
.scroll-bob { animation: scrollBob 2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient { background-size: 200% 200%; animation: gradientShift 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-mask:hover .marquee-track { animation-play-state: paused; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}
.pulse-dot { animation: pulseDot 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }

/* -- Scroll reveal -- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 90ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 270ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 450ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 540ms; }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); }

html { scroll-behavior: smooth; }

/* -- Site header -- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100px;
  z-index: 10000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
/* Tricolor institutional accent line -- echoes the LFZDC logo (green / red / navy) */
.site-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-primary) 0 33.33%,
    var(--color-accent) 33.33% 66.66%,
    var(--color-navy) 66.66% 100%);
  z-index: 1;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(1, 0, 102, 0.10);
  background-color: rgba(255, 255, 255, 0.97);
}
.nav-inner { height: 100px; }

/* -- Nav links: sliding underline + active marker -- */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { width: 100%; }

/* -- Mobile menu -- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background-color: var(--color-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-link { padding: 0.5rem 0; transition: color 0.2s ease; }
.mobile-nav-link:hover { color: var(--color-primary); }

/* -- Icons -- */
.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.15em; flex-shrink: 0; }
.icon.hidden { display: none; }
.icon-sm { width: 1em; height: 1em; flex-shrink: 0; }
.icon-lg { width: 1.5em; height: 1.5em; flex-shrink: 0; }
.icon-xl { width: 2em; height: 2em; flex-shrink: 0; }

/* -- Reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body { margin: 0; font-family: var(--font-body, 'Inter', -apple-system, system-ui, sans-serif); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading, var(--font-body, 'Inter', sans-serif)); }
.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0.5rem;
  line-height: 1;
  z-index: 1;
}