/* ============================================================
   GAMCC.org — Global Stylesheet v2.0
   Light theme · GAMCC brand colors · Extensia multi-layer rhythm
   ============================================================ */

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

/* ── DESIGN TOKENS ──
   GAMCC brand: teal-green + gold
   Extensia influence: white-dominant, layered sections, disciplined color logic
   ─────────────────────────────────────────────────────── */
:root {
  /* Primary brand — teal/green family (from GAMCC logo) */
  --teal-900:   #073B30;   /* Deepest — hero text, headings */
  --teal-700:   #0E5C48;   /* Dark sections, footer */
  --teal-600:   #0F7058;   /* Nav active, badges */
  --teal-500:   #12896A;   /* Primary action color — CTAs, links */
  --teal-400:   #1AA37E;   /* Hover states */
  --teal-200:   #A7D9CC;   /* Borders on teal bg */
  --teal-100:   #D4EDE7;   /* Light tint backgrounds */
  --teal-50:    #EEF8F5;   /* Subtle section alt bg */

  /* Accent — gold family (from GAMCC logo) */
  --gold-900:   #5C3D00;
  --gold-700:   #8A5C00;
  --gold-600:   #A87000;   /* Gold text on white */
  --gold-500:   #C88A00;   /* Gold accents, eyebrows */
  --gold-400:   #E0A800;   /* Hover gold */
  --gold-200:   #F5D980;   /* Light gold borders */
  --gold-100:   #FBF0C0;   /* Very light gold tint */
  --gold-50:    #FDFAE8;   /* Whisper gold bg */

  /* Neutrals */
  --white:      #FFFFFF;
  --gray-50:    #F8F7F5;   /* Page bg, alt sections — warm white */
  --gray-100:   #F0EDE8;   /* Cards on dark bg */
  --gray-200:   #E2DDD6;   /* Borders */
  --gray-300:   #C8C2BA;   /* Disabled borders */
  --gray-500:   #80786E;   /* Muted body text */
  --gray-700:   #4A4440;   /* Secondary text */
  --gray-900:   #1C1916;   /* Headings on white */

  /* Semantic */
  --action:     var(--teal-500);
  --action-hov: var(--teal-400);
  --text-head:  var(--teal-900);
  --text-body:  var(--gray-700);
  --text-muted: var(--gray-500);
  --border:     var(--gray-200);
  --border-lt:  var(--gray-100);

  /* Extensia-style section layers (light mode) */
  --layer-0:    var(--white);          /* Base — hero, feature sections */
  --layer-1:    var(--gray-50);        /* Alt sections — warm off-white */
  --layer-2:    var(--teal-50);        /* Teal-tinted alt */
  --layer-dark: var(--teal-700);       /* Dark accent sections */
  --layer-deep: var(--teal-900);       /* Footer, darkest */

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-ui:      'DM Sans', sans-serif;

  /* Layout */
  --site-max:    1280px;
  --section-pad: 88px 64px;
  --nav-h:       68px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows — warm-tinted like Extensia */
  --shadow-xs:  0 1px 3px rgba(7,59,48,0.06);
  --shadow-sm:  0 2px 8px rgba(7,59,48,0.08);
  --shadow-md:  0 6px 24px rgba(7,59,48,0.10);
  --shadow-lg:  0 16px 48px rgba(7,59,48,0.12);
  --shadow-teal: 0 4px 20px rgba(18,137,106,0.20);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--teal-500); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-weight: 600; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ══════════════════════════════════════════════
   NAVIGATION — white bg, teal accents, gold CTA
   ══════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gray-300);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(140deg, var(--teal-500) 0%, var(--teal-700) 100%);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  color: var(--white); letter-spacing: -0.5px;
}
.nav-logo-text { line-height: 1.15; }
.nav-logo-text span:first-child {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 17px; color: var(--teal-900); letter-spacing: 0.3px;
}
.nav-logo-text span:last-child {
  display: block; font-family: var(--font-ui); font-size: 10px;
  color: var(--text-muted); letter-spacing: 0.6px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: var(--gray-700); padding: 6px 13px; border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--teal-600); background: var(--teal-50); }
.nav-links a.active { color: var(--teal-600); background: var(--teal-50); font-weight: 600; }
.nav-cta {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  background: var(--teal-500); color: var(--white) !important;
  padding: 9px 20px; border-radius: var(--radius-sm);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-teal);
  text-decoration: none !important;
}
.nav-cta:hover {
  background: var(--teal-400);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(18,137,106,0.28);
}
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--teal-700); border-radius: 2px; transition: all 0.3s;
}
.nav-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px; z-index: 999; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-md);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  color: var(--gray-700); padding: 12px 8px;
  border-bottom: 1px solid var(--border-lt); transition: color 0.18s;
}
.nav-drawer a:hover { color: var(--teal-500); }
.nav-drawer .nav-cta {
  margin-top: 12px; text-align: center; border-bottom: none;
  color: var(--white) !important;
}

/* ══════════════════════════════════════════════
   EXTENSIA MULTI-LAYER SECTION RHYTHM
   White → Gray → Teal-tint → White → Dark
   ══════════════════════════════════════════════ */
.page-body { padding-top: var(--nav-h); }

/* Layer 0 — white */
.section       { max-width: var(--site-max); margin: 0 auto; padding: var(--section-pad); }

/* Layer 1 — warm gray (like Extensia's --layer-1 problem sections) */
.section-gray  { background: var(--layer-1); padding: var(--section-pad); }
.section-gray .section-inner { max-width: var(--site-max); margin: 0 auto; }

/* Layer 2 — teal tint (for highlight/trust sections) */
.section-teal  { background: var(--layer-2); border-top: 1px solid var(--teal-100); border-bottom: 1px solid var(--teal-100); padding: var(--section-pad); }
.section-teal .section-inner { max-width: var(--site-max); margin: 0 auto; }

/* Layer 3 — gold tint (for CTA/special sections) */
.section-gold  { background: var(--gold-50); border-top: 1px solid var(--gold-100); border-bottom: 1px solid var(--gold-100); padding: var(--section-pad); }
.section-gold .section-inner { max-width: var(--site-max); margin: 0 auto; }

/* Layer dark — deep teal (Extensia midnight equivalent) */
.section-dark  { background: var(--layer-dark); padding: var(--section-pad); }
.section-dark .section-inner { max-width: var(--site-max); margin: 0 auto; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  display: block; font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow-teal { color: var(--teal-500); }
.eyebrow-gold { color: var(--gold-600); }
.eyebrow-white { color: rgba(255,255,255,0.6); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
h1 { font-size: clamp(44px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: clamp(22px, 3vw, 34px); }
h4 { font-size: clamp(17px, 2vw, 22px); }

.text-teal   { color: var(--teal-500); }
.text-teal-d { color: var(--teal-700); }
.text-gold   { color: var(--gold-600); }
.text-white  { color: var(--white); }
.text-body   { color: var(--text-body); }
.text-muted  { color: var(--text-muted); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--radius-sm);
  transition: all 0.18s; cursor: pointer; border: none;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--teal-500); color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { background: var(--teal-400); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(18,137,106,0.28); }

.btn-gold {
  background: var(--gold-600); color: var(--white);
  box-shadow: 0 4px 16px rgba(168,112,0,0.22);
}
.btn-gold:hover { background: var(--gold-500); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--teal-600);
  border: 1.5px solid var(--teal-200);
}
.btn-outline:hover { border-color: var(--teal-500); background: var(--teal-50); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

.btn-ghost {
  background: transparent; color: var(--teal-600);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal-200); background: var(--teal-50); color: var(--teal-600); }

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── DIVIDER ── */
.teal-line { width: 44px; height: 3px; background: var(--teal-500); border-radius: 2px; margin: 18px 0; }
.teal-line.c { margin: 18px auto; }
.gold-line  { width: 44px; height: 3px; background: var(--gold-500); border-radius: 2px; margin: 18px 0; }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header p { font-size: 18px; color: var(--text-body); margin-top: 14px; max-width: 620px; line-height: 1.72; }
.section-header.centered p { margin-left: auto; margin-right: auto; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-xs); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-teal {
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg); padding: 28px;
}

/* ── STAT BLOCK ── */
.stat-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5vw, 60px); color: var(--teal-500); line-height: 1;
}
.stat-label {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px;
  color: var(--text-muted);
}
/* Stat on dark bg */
.stat-dark .stat-number { color: var(--gold-400); }
.stat-dark .stat-label  { color: rgba(255,255,255,0.55); }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 13px;
  color: var(--text-muted); margin-bottom: 20px;
}
.breadcrumb a { color: var(--teal-600); transition: color 0.18s; }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb-sep { color: var(--gray-300); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── GRID UTILS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── TABS ── */
.tab-pill-nav {
  display: inline-flex; gap: 0;
  background: var(--gray-100); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px; margin-bottom: 44px;
}
.tab-pill-btn {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600;
  color: var(--text-muted); padding: 10px 24px;
  border: none; background: none; cursor: pointer;
  border-radius: 100px; transition: all 0.22s;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.tab-pill-btn:hover { color: var(--teal-600); }
.tab-pill-btn.active {
  background: var(--teal-500); color: var(--white);
  box-shadow: var(--shadow-teal);
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--text-head); margin-bottom: 7px; letter-spacing: 0.2px;
}
.form-group label .req { color: var(--teal-500); }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--gray-900);
  background: var(--white); transition: border-color 0.18s, box-shadow 0.18s;
  outline: none; appearance: none;
}
.form-control:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(18,137,106,0.12);
}
.form-control::placeholder { color: var(--gray-300); }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; }
.form-checkbox input[type="checkbox"] { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--teal-500); flex-shrink: 0; }
.form-checkbox label { font-family: var(--font-ui); font-size: 13px; color: var(--text-body); margin: 0; font-weight: 400; line-height: 1.5; cursor: pointer; }
.form-checkbox label a { color: var(--teal-600); text-decoration: underline; }

/* ══════════════════════════════════════════════
   FOOTER — deep teal, like Extensia midnight
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--layer-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 72px 64px 32px;
}
.footer-inner { max-width: var(--site-max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--teal-200);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.18s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.85); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 14px; transition: all 0.18s;
}
.footer-social a:hover { background: var(--teal-500); color: var(--white); border-color: var(--teal-500); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
}
.footer-bottom p { font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,0.28); transition: color 0.18s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* Footer logo adaptation */
.footer-logo-mark {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  color: var(--teal-200);
}
.footer-logo-text span:first-child { color: var(--white); }
.footer-logo-text span:last-child { color: rgba(255,255,255,0.4); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px;
  background: var(--teal-900); border: 1px solid rgba(167,217,204,0.2);
  border-radius: var(--radius-lg); padding: 20px; z-index: 2000;
  box-shadow: var(--shadow-lg); display: none;
}
.cookie-banner.visible { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner p { font-family: var(--font-ui); font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.6; }
.cookie-banner p a { color: var(--teal-200); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-accept, .cookie-decline {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--radius-sm); cursor: pointer; border: none; transition: all 0.18s;
}
.cookie-accept { background: var(--teal-500); color: var(--white); }
.cookie-accept:hover { background: var(--teal-400); }
.cookie-decline { background: transparent; color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.18); }
.cookie-decline:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .site-nav { padding: 0 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  :root { --section-pad: 72px 40px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  :root { --section-pad: 56px 24px; }
  .site-nav { padding: 0 20px; }
  .site-footer { padding: 56px 24px 24px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .tab-pill-nav { width: 100%; border-radius: var(--radius-lg); }
  .tab-pill-btn { flex: 1; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
}
