/* ============================================================
   Afterschool as Mission — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3557;
  --navy-dk: #0f2138;
  --gold:    #d4991a;
  --gold-lt: #f5c84a;
  --cream:   #faf7f2;
  --white:   #ffffff;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-500:#6b7280;
  --gray-700:#374151;
  --gray-900:#111827;
  --text:    #1f2937;
  --radius:  8px;
  --shadow:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  line-height: 1.3;
  color: var(--navy-dk);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dk);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.25;
}

.nav-brand .cross {
  font-size: 1.6rem;
  color: var(--gold-lt);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--navy-dk);
  font-weight: 700;
  padding: 8px 18px;
}
.nav-links a.nav-cta:hover {
  background: var(--gold-lt);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Page Hero --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 80px 5% 70px;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 640px;
  margin: 0 auto;
}
.page-hero .gold-bar {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --- Sections --- */
section { padding: 80px 5%; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  color: var(--navy-dk);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  max-width: 660px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.section-centered { text-align: center; }
.section-centered .section-subtitle { margin-left: auto; margin-right: auto; }

.divider {
  width: 50px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0 44px;
}
.divider-center { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dk);
}
.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212,153,26,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dk);
  color: var(--white);
  transform: translateY(-1px);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy-dk);
}
.card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.75;
}

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

/* --- Stat boxes --- */
.stat-box {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}
.stat-box .number {
  font-family: 'Merriweather', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-lt);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* --- Quote / Callout --- */
.callout {
  background: var(--navy-dk);
  color: var(--white);
  border-radius: 14px;
  padding: 48px 56px;
  text-align: center;
  position: relative;
}
.callout::before {
  content: '\201C';
  font-family: 'Merriweather', serif;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: -10px;
  left: 28px;
  line-height: 1;
}
.callout p {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.8;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.callout cite {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-lt);
}

/* --- Footer --- */
.footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.7);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand .cross {
  font-size: 1.5rem;
  color: var(--gold-lt);
}
.footer-brand span {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.25;
}
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--gold-lt); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom .tagline {
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dk); padding: 16px 5%; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .callout { padding: 36px 28px; }
  section { padding: 60px 5%; }
}
