/* ══════════════════════════════════════════
   EEA SHARED DESIGN SYSTEM
   Economics Excellence Association
   econexcellence.org
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,400&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── TOKENS ── */
:root {
  --blue:       #0C4C9C;
  --blue-dark:  #082d5e;
  --blue-mid:   #1560b8;
  --blue-light: #e8f0fb;
  --yellow:     #F2BB2D;
  --yellow-dark:#d9a520;
  --white:      #FAFAF8;
  --off-white:  #F4F1EB;
  --charcoal:   #1A1A1A;
  --mid-gray:   #5A5A5A;
  --light-gray: #E8E4DC;
  --border:     #E0DDD5;
  --nav-h:      72px;
  --max-w:      1280px;
  --pad-x:      5%;
  --radius:     4px;
  --transition: 0.25s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
.display { font-family: 'Fraunces', serif; font-weight: 900; }
.display em { font-style: italic; }
h1 { font-family: 'Fraunces', serif; font-weight: 900; line-height: 1.0; }
h2 { font-family: 'Fraunces', serif; font-weight: 900; line-height: 1.05; font-size: clamp(36px, 4.5vw, 56px); }
h2 em { font-style: italic; color: var(--blue); }
h3 { font-family: 'Syne', sans-serif; font-weight: 700; }
.label {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.label::before {
  content: ''; display: block; width: 30px; height: 2px; background: var(--yellow);
}
.label span {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue);
}
.label.on-dark span { color: var(--yellow); }
.lead { font-size: 18px; line-height: 1.75; color: var(--mid-gray); font-weight: 300; max-width: 580px; }
.body-text { font-size: 15px; line-height: 1.8; color: var(--mid-gray); }

/* ── LAYOUT ── */
.section { padding: 96px var(--pad-x); }
.section--dark { background: var(--charcoal); }
.section--blue { background: var(--blue); }
.section--off { background: var(--off-white); }
.container { max-width: var(--max-w); margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 14px 32px; border-radius: var(--radius);
  transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary { background: var(--yellow); color: var(--blue-dark); }
.btn-primary:hover { background: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-ghost-light {
  border: 1.5px solid rgba(255,255,255,0.4); color: white; background: transparent;
}
.btn-ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--blue); color: var(--blue); background: transparent;
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-text {
  padding: 0; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow);
  display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition);
  background: none; border: none; cursor: pointer;
}
.btn-text:hover { gap: 12px; }

/* ── CARDS ── */
.card {
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition);
}
.card:hover { transform: translateY(-4px); }

/* ── DIVIDER ── */
.divider { width: 48px; height: 2px; background: var(--yellow); margin: 20px 0; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(8, 45, 94, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242,187,45,0.2);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.35); }
.nav-logo {
  display: flex; align-items: center; gap: 12px; color: white;
}
.nav-badge {
  width: 40px; height: 40px; background: var(--yellow); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 14px;
  color: var(--blue-dark); flex-shrink: 0;
}
.nav-name {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
  line-height: 1.25; letter-spacing: 0.04em;
}
.nav-name span { color: var(--yellow); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--transition); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--yellow); color: var(--blue-dark) !important;
  padding: 9px 22px; border-radius: var(--radius);
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: white !important; color: var(--blue-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; transition: 0.3s; border-radius: 2px; }

/* Mobile menu */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--blue-dark);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,0.85); letter-spacing: 0.06em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--yellow); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--blue-dark); min-height: 380px;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) var(--pad-x) 64px;
  position: relative; overflow: hidden;
}
.page-hero-pattern {
  position: absolute; inset: 0; opacity: 0.05;
  background-image:
    repeating-linear-gradient(45deg, var(--yellow) 0, var(--yellow) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, var(--yellow) 0, var(--yellow) 1px, transparent 0, transparent 50%);
  background-size: 48px 48px;
}
.page-hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,187,45,0.1) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  font-size: 11px; color: var(--yellow); letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; font-family: 'Syne', sans-serif;
  margin-bottom: 16px; display: block;
}
.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px); color: white;
  max-width: 700px;
}
.page-hero h1 em { color: var(--yellow); }
.page-hero p {
  font-size: 17px; color: rgba(255,255,255,0.65);
  max-width: 560px; line-height: 1.7; margin-top: 20px;
}

/* ── TICKER ── */
.ticker { background: var(--yellow); padding: 13px 0; overflow: hidden; position: relative; }
.ticker-track { display: flex; white-space: nowrap; }
.ticker-set {
  display: flex; align-items: center; flex-shrink: 0;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 20px; padding: 0 32px;
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dark);
}
.ticker-sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(8,45,94,0.35); }

/* ── FOOTER ── */
.footer {
  background: #0d0d0d; padding: 80px var(--pad-x) 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 56px;
}
.footer-brand p {
  font-size: 14px; color: rgba(255,255,255,0.42); line-height: 1.8;
  margin: 16px 0 24px; max-width: 300px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); font-size: 13px; font-weight: 700;
  transition: all var(--transition); font-family: 'Syne', sans-serif;
}
.footer-social:hover { background: var(--yellow); color: var(--blue-dark); }
.footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.22); }
.footer-bottom span { color: var(--yellow); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.22); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── UTILITIES ── */
.text-yellow { color: var(--yellow); }
.text-white { color: white; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .three-col { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --pad-x: 6%; }
  .section { padding: 72px var(--pad-x); }
  .three-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  h2 { font-size: clamp(30px, 8vw, 44px); }
}
