/* ========================================================
   Johnson Youth Organization Inc — Global Styles
   ======================================================== */

/* --- Google Material Symbols (outlined) --- */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

/* --- Custom Properties --- */
:root {
  --color-primary: #1d5f42;
  --color-primary-dark: #144a33;
  --color-primary-light: #e9f4ee;
  --color-secondary: #2f8f67;
  --color-accent: #f2a93b;
  --color-accent-light: #fdf4e4;
  --color-bg: #f8fbf9;
  --color-bg-alt: #e9f4ee;
  --color-surface: #ffffff;
  --color-text: #153126;
  --color-text-light: #4d6a5f;
  --color-text-muted: #7a9a8d;
  --color-top-bar: #0f3d2a;
  --color-top-bar-text: #f5fff9;
  --color-border: #d0e3d8;
  --color-footer-bg: #0e2a1e;
  --color-footer-text: #d9efe4;

  --shadow-sm: 0 2px 8px rgba(17, 53, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 53, 38, 0.1);
  --shadow-lg: 0 16px 40px rgba(17, 53, 38, 0.14);
  --shadow-glow: 0 0 30px rgba(47, 143, 103, 0.15);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --bar-h: 42px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  margin-top: 0;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-bottom: 0.5rem;
}
p {
  margin-top: 0;
  color: var(--color-text-light);
  line-height: 1.7;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.8rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
}

/* --- Material Symbols Helper --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ========================================================
   TOP BAR
   ======================================================== */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar-h);
  background: var(--color-top-bar);
  color: var(--color-top-bar-text);
  z-index: 1001;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}
.top-inner {
  width: min(1180px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-item {
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.top-item .material-symbols-outlined {
  font-size: 1rem;
  opacity: 0.7;
}

/* ========================================================
   NAVIGATION
   ======================================================== */
.nav-wrap {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0;
  z-index: 1000;
  background: rgba(248, 251, 249, 0.92);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.8; }
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(29, 95, 66, 0.3);
}
.menu-btn {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  display: none;
  cursor: pointer;
  color: var(--color-primary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.menu-btn:hover { background: var(--color-bg-alt); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text-light);
  transition: all 0.2s var(--ease-out);
  position: relative;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-light);
  outline: none;
}
.nav-links a.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(29, 95, 66, 0.25);
}

/* ========================================================
   MAIN & LAYOUT
   ======================================================== */
main {
  padding-top: calc(var(--bar-h) + var(--nav-h));
  min-height: 100vh;
}
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
section { padding: 4.5rem 0; }
section + section { padding-top: 0; }

/* ========================================================
   HERO (Home)
   ======================================================== */
.hero {
  min-height: 75vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(14,42,30,0.55) 0%, rgba(29,95,66,0.45) 40%, rgba(242,169,59,0.2) 100%),
    url('https://images.unsplash.com/photo-1529390079861-591de354faf5?w=1600&h=900&fit=crop&crop=faces') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(47, 143, 103, 0.25), transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(242, 169, 59, 0.15), transparent 45%);
  pointer-events: none;
  animation: heroGrad 14s ease-in-out infinite alternate;
  background-size: 150% 150%;
}
@keyframes heroGrad {
  0% { background-position: 0% 40%; }
  100% { background-position: 100% 60%; }
}
.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,0.1);
  padding: 3rem 2.5rem;
  max-width: 780px;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-card h1 {
  color: var(--color-text);
  -webkit-text-fill-color: unset;
}
.hero-card p {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================
   PAGE HERO (Sub-pages)
   ======================================================== */
.page-hero {
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(248,251,249,0.88) 0%, rgba(233,244,238,0.82) 50%, rgba(253,249,243,0.88) 100%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  margin-bottom: 0.5rem;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 16px rgba(29, 95, 66, 0.28);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 95, 66, 0.35);
  outline: none;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
  padding: 0.75rem 1.4rem;
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29, 95, 66, 0.28);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  margin-top: 0.8rem;
}

/* ========================================================
   CARDS
   ======================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 143, 103, 0.2);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(47, 143, 103, 0.12));
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s var(--ease-spring);
}
.card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

/* ========================================================
   STATS / COUNTERS
   ======================================================== */
.stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.stat {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(47, 143, 103, 0.04), rgba(242, 169, 59, 0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat:hover::before { opacity: 1; }
.stat strong {
  display: block;
  font-size: 2rem;
  font-family: 'Fraunces', serif;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}
.stat span {
  font-size: 0.92rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ========================================================
   TESTIMONIAL / QUOTE
   ======================================================== */
.quote-block {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem; left: 1rem;
  font-size: 8rem;
  font-family: 'Fraunces', serif;
  color: var(--color-primary);
  opacity: 0.08;
  line-height: 1;
}
.quote-block blockquote {
  margin: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #224638;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.quote-block cite {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
}
.quote-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* ========================================================
   WAVE DIVIDER
   ======================================================== */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin-top: -1px;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* ========================================================
   SECTION ALTERNATE BG
   ======================================================== */
.section-alt {
  background: var(--color-primary-light);
  position: relative;
}

/* ========================================================
   TIMELINE (History page)
   ======================================================== */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 2.5rem auto 0;
  padding: 1rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary), var(--color-accent), var(--color-primary-light));
  transform: translateX(-50%);
  border-radius: 3px;
}
.event {
  position: relative;
  width: 50%;
  padding: 0 2rem 2rem;
}
.event .box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}
.event .box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.event:nth-child(odd) { left: 0; text-align: right; }
.event:nth-child(even) { left: 50%; }
.event::after {
  content: '';
  position: absolute;
  top: 12px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-border), var(--shadow-sm);
  z-index: 1;
}
.event:nth-child(odd)::after { right: -8px; }
.event:nth-child(even)::after { left: -8px; }
.event .year {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}
.timeline-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 0.8rem;
  box-shadow: var(--shadow-sm);
}

/* ========================================================
   PROJECT CARDS (Projects page)
   ======================================================== */
.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.project-icon {
  height: 180px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.project-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,95,66,0.08) 0%, rgba(47,143,103,0.03) 100%);
  z-index: 1;
  pointer-events: none;
}
.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.project-card:hover .project-icon img {
  transform: scale(1.06);
}
.project-icon span {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.project-content {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-content h3 { margin-bottom: 0.4rem; }
.project-content p { flex: 1; }
.project-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  padding: 0.35rem 0.7rem;
  background: var(--color-primary-light);
  border-radius: var(--radius-pill);
  margin-top: 0.4rem;
  width: fit-content;
}

/* ========================================================
   TEAM MEMBER CARDS (Team page)
   ======================================================== */
.member-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
  text-align: center;
}
.member-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  margin: 0 auto 1rem;
  box-shadow: 0 6px 20px rgba(29, 95, 66, 0.25);
  transition: transform 0.3s var(--ease-spring);
  border: 3px solid var(--color-surface);
  outline: 3px solid var(--color-border);
}
.member-card:hover .avatar {
  transform: scale(1.06);
}
.member-card .role {
  font-weight: 700;
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.member-card .links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.pill {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.2s;
}
.pill:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ========================================================
   FORM (Contact page)
   ======================================================== */
.form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}
.field input,
.field textarea {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: all 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(47, 143, 103, 0.1);
  background: #fff;
}
.field textarea { resize: vertical; }

.info-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.info-item .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.map-embed {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* ========================================================
   STORY BOX (History page)
   ======================================================== */
.story-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  display: grid;
  gap: 2rem;
}
.story-box p {
  font-size: 1.08rem;
  line-height: 1.8;
}
.story-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
  .story-box {
    grid-template-columns: 1fr 280px;
    align-items: center;
  }
  .story-img {
    height: 100%;
    min-height: 220px;
  }
}

/* ========================================================
   MISSION STATEMENT (Mission page)
   ======================================================== */
.mission-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  max-width: 900px;
}
.mission-box p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.value-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
  text-align: center;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.value-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), rgba(47, 143, 103, 0.12));
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
  transition: transform 0.3s var(--ease-spring);
}
.value-card:hover .value-badge {
  transform: scale(1.1) rotate(-5deg);
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-secondary), var(--color-primary));
}
.footer-grid {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
footer h3 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.15rem;
}
footer p {
  color: #a5cfb9;
  font-size: 0.95rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-links a {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: #a5cfb9;
  transition: all 0.2s;
}
.footer-links a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #a5cfb9;
  transition: all 0.25s var(--ease-out);
}
.social-icon:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 143, 103, 0.4);
}
.copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: #6b9f84;
}

/* ========================================================
   ANIMATIONS
   ======================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in-left.show {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stagger.show > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.show > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.show > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.show > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.show > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.show > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.show > * {
  opacity: 0;
  transform: translateY(20px);
}
.stagger.show > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   FOCUS STYLES (a11y)
   ======================================================== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .layout-2col { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) - 1px);
    left: 0; right: 0;
    background: rgba(248, 251, 249, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.2rem 1.2rem;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
  }
  .top-inner {
    justify-content: center;
    text-align: center;
  }
  .hero-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  /* Timeline responsive */
  .timeline::before { left: 20px; }
  .event,
  .event:nth-child(even),
  .event:nth-child(odd) {
    width: 100%; left: 0;
    text-align: left;
    padding-left: 3rem;
    padding-right: 0;
  }
  .event::after,
  .event:nth-child(even)::after,
  .event:nth-child(odd)::after {
    left: 12px; right: auto;
  }
}

/* ========================================================
   UTILITY
   ======================================================== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.gap-2 { gap: 2rem; }
