/* =============================================
   SPARKS Book Club — Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --purple:     #4A1D8A;
  --purple-mid: #6B3DB5;
  --purple-lt:  #EDE4F7;
  --gold:       #F5A020;
  --gold-lt:    #FFF7E0;
  --coral:      #E84E6A;
  --coral-lt:   #FDEBF0;
  --teal:       #0D9B8A;
  --teal-lt:    #E0F4F2;
  --green:      #3A9B5C;
  --green-lt:   #E8F5EE;
  --dark:       #1C1040;
  --gray:       #64748B;
  --gray-lt:    #F8F5FD;
  --cream:      #FDFAF5;
  --white:      #FFFFFF;
  --radius:     14px;
  --shadow:     0 4px 24px rgba(74,29,138,0.10);
  --shadow-lg:  0 8px 40px rgba(74,29,138,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: #374151; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Layout helpers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section--shaded { background: var(--gray-lt); }
.section--purple { background: var(--purple); color: var(--white); }
.section--gold   { background: var(--gold-lt); }
.section--teal   { background: var(--teal-lt); }
.section--green  { background: var(--green-lt); }
.section--coral  { background: var(--coral-lt); }
.section--cream  { background: var(--cream); }

.section--purple h2,
.section--purple > .container > h3,
.section--purple h3 { color: var(--white); }
.section--purple .card h3 { color: var(--dark); }

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
  text-decoration: none;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; filter: brightness(1.06); }
.btn--primary   { background: var(--purple); color: var(--white); }
.btn--gold      { background: var(--gold);   color: var(--dark); font-weight: 700; }
.btn--outline   { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn--coral     { background: var(--coral);  color: var(--white); }
.btn--teal      { background: var(--teal);   color: var(--white); }
.btn--green     { background: var(--green);  color: var(--white); }

/* ── Splash screen ── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease;
}
#splash.fade-out { opacity: 0; pointer-events: none; }
#splashVideo {
  max-width: 480px;
  width: 90%;
  height: auto;
  display: block;
  border: none;
  outline: none;
  opacity: 0;
  transition: opacity .25s ease;
}
#splashSkip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: none;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
#splashSkip:hover { background: var(--purple); color: #fff; }

/* ── Navbar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(74,29,138,.12);
  box-shadow: 0 2px 12px rgba(74,29,138,.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--purple);
  font-weight: 700;
  text-decoration: none;
}
.nav__logo-spark { font-size: 1.5rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--dark);
  transition: color .15s;
}
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.nav__links a:not(.nav__cta):hover::after,
.nav__links a.active:not(.nav__cta)::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--purple); text-decoration: none; }
.nav__links a.active { color: var(--purple); font-weight: 600; }
.nav__cta { margin-left: 1rem; }

/* Hamburger (mobile) */
.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(--purple);
  border-radius: 2px;
  transition: all .2s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid) 60%, #8B4FD0 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; color: var(--white); }
.hero p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero load sequence — one orchestrated entrance, eyebrow → h1 → deck → CTAs */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow,
.hero h1,
.hero p,
.hero__buttons { animation: heroIn .5s ease-out both; }
.hero__eyebrow   { animation-delay: .05s; }
.hero h1         { animation-delay: .15s; }
.hero p          { animation-delay: .25s; }
.hero__buttons   { animation-delay: .35s; }
.hero__sparkles {
  position: absolute;
  font-size: 2rem;
  opacity: .35;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(8deg); }
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-10px); }
  60%     { transform: translateY(-5px); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,160,32,.4); }
  50%     { box-shadow: 0 0 0 10px rgba(245,160,32,0); }
}

/* ── Stat bar ── */
.stats {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: -2rem auto 0;
  max-width: 860px;
  position: relative;
  z-index: 2;
}
.stats__item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid #EDE4F7;
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition: opacity .5s ease, transform .5s cubic-bezier(.175,.885,.32,1.275);
}
.stats__item.stats--popped {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.stats__item:last-child { border-right: none; }
.stats__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--purple);
  line-height: 1;
  margin-bottom: .3rem;
}
.stats__label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  font-weight: 500;
}

/* ── Cards ── */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--purple-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__icon--gold  { background: var(--gold-lt); }
.card__icon--coral { background: var(--coral-lt); }
.card__icon--teal  { background: var(--teal-lt); }
.card__icon--green { background: var(--green-lt); }
.card h3 { margin-bottom: .5rem; }
.card p  { font-size: .9rem; }

/* ── Activity Cards (horizontal, real examples) ── */
.activity-cards { display: grid; gap: 1.25rem; }
.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-left: 5px solid var(--purple);
  transition: transform .2s, box-shadow .2s;
  align-items: start;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.activity-card--gold  { border-left-color: var(--gold); }
.activity-card--teal  { border-left-color: var(--teal); }
.activity-card--green { border-left-color: var(--green); }
.activity-card--coral { border-left-color: var(--coral); }
.activity-card__icon {
  font-size: 2.2rem;
  line-height: 1;
  padding-top: .15rem;
}
.activity-card__content h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.activity-card__content p  { font-size: .9rem; color: var(--gray); margin-bottom: .5rem; }
.activity-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .2rem .7rem;
  border-radius: 50px;
  background: var(--purple-lt);
  color: var(--purple);
}
.activity-card--gold  .activity-card__tag { background: var(--gold-lt);  color: #7A5000; }
.activity-card--teal  .activity-card__tag { background: var(--teal-lt);  color: #075C52; }
.activity-card--green .activity-card__tag { background: var(--green-lt); color: #1F5C35; }
.activity-card--coral .activity-card__tag { background: var(--coral-lt); color: #8C1A33; }

/* ── Team Cards ── */
.team-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.team-card__avatar--gold  { background: var(--gold-lt); }
.team-card__avatar--teal  { background: var(--teal-lt); }
.team-card__avatar--green { background: var(--green-lt); }
.team-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.team-card__role {
  font-size: .8rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
  display: block;
}
.team-card p { font-size: .85rem; color: var(--gray); }

/* ── Highlight Box ("Open your packages!") ── */
.highlight-box {
  background: linear-gradient(135deg, var(--gold-lt) 0%, #FFF0C4 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 4px 20px rgba(245,160,32,.2);
}
.highlight-box__icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: bounce 2.5s ease-in-out infinite;
  line-height: 1;
}
.highlight-box h3 { color: var(--dark); margin-bottom: .4rem; font-size: 1.3rem; }
.highlight-box p  { color: #5A4000; font-size: .95rem; }
.highlight-box--teal {
  background: linear-gradient(135deg, var(--teal-lt) 0%, #C8EDE9 100%);
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(13,155,138,.15);
}
.highlight-box--teal p { color: #074F47; }

/* ── Book Chips ── */
.book-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.book-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1.5px solid var(--purple-lt);
  border-radius: 50px;
  padding: .4rem 1rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(74,29,138,.07);
  transition: border-color .15s, transform .15s;
}
.book-chip:hover { border-color: var(--purple); transform: translateY(-1px); }
.book-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: .25rem .8rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.badge--gold   { background: var(--gold-lt);  color: #7A5000; border: 1px solid var(--gold); }
.badge--teal   { background: var(--teal-lt);  color: #075C52; border: 1px solid var(--teal); }
.badge--purple { background: var(--purple-lt); color: var(--purple); border: 1px solid var(--purple-lt); }
.badge--coral  { background: var(--coral-lt); color: #8C1A33; border: 1px solid var(--coral); }
.badge--green  { background: var(--green-lt); color: #1F5C35; border: 1px solid var(--green); }

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .eyebrow,
.eyebrow {
  display: inline-block;
  color: var(--purple);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { max-width: 580px; margin: 0 auto; color: var(--gray); }

/* ── Quote / callout ── */
.callout {
  background: var(--purple-lt);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.callout p {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--purple);
  font-style: italic;
}
.callout--teal {
  background: var(--teal-lt);
  border-left-color: var(--teal);
}
.callout--teal p { color: #075C52; }

/* ── Youth-led banner ── */
.youth-banner {
  background: linear-gradient(135deg, var(--purple-lt), var(--teal-lt));
  border: 1.5px solid var(--purple-lt);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.youth-banner__icon { font-size: 2rem; flex-shrink: 0; }
.youth-banner h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.youth-banner p  { font-size: .9rem; color: var(--gray); }

/* ── Carousel ── */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
  user-select: none;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.carousel__track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.carousel__slide {
  min-width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--dark);
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.88);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--dark);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: background .2s, transform .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.carousel__btn:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.carousel__btn--prev { left: .75rem; }
.carousel__btn--next { right: .75rem; }
.carousel__dots {
  position: absolute;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 2;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel__dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* ── Donate page ── */
.donate-tiers {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.tier {
  border: 2px solid var(--purple-lt);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
  background: var(--white);
}
.tier:hover  { border-color: var(--purple); transform: translateY(-4px); }
.tier--featured {
  border-color: var(--purple);
  background: var(--purple-lt);
  position: relative;
}
.tier__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 50px;
  white-space: nowrap;
}
.tier__amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--purple);
  margin-bottom: .25rem;
}
.tier__label { font-weight: 700; margin-bottom: .5rem; font-size: 1rem; }
.tier p { font-size: .85rem; color: var(--gray); margin-bottom: 1.25rem; }
.tier .btn--primary { animation: pulse 2.5s ease-in-out infinite; }
.btn--disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #ccc;
}
.tier--featured .btn--disabled { animation: none; }
.donate-coming-soon {
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.donate-coming-soon span { font-weight: 400; font-size: .9rem; display: block; margin-top: .35rem; }

/* ── Join form area ── */
.join-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.join-box__header {
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}
.join-box__header h2 { margin-bottom: .5rem; color: var(--white); }
.join-box__body {
  padding: 2.5rem 2rem;
  text-align: center;
}
.join-box__body p { margin-bottom: 1.5rem; }

/* ── FAQ items ── */
.faq-list { display: grid; gap: 1rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--purple-lt);
  transition: border-color .2s;
}
.faq-item:hover { border-left-color: var(--purple); }
.faq-item h3 { font-size: 1rem; margin-bottom: .4rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.faq-item p  { font-size: .9rem; color: var(--gray); }

/* ── Ice-breaker strip ── */
.icebreaker-strip {
  background: linear-gradient(135deg, var(--coral-lt), var(--gold-lt));
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
}
.icebreaker-strip h3 { margin-bottom: 1rem; }
.icebreaker-questions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.icebreaker-q {
  background: var(--white);
  border-radius: 50px;
  padding: .5rem 1.25rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.5rem 2rem;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: .75rem;
  text-decoration: none;
}
.footer p { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul li a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  transition: color .15s;
}
.footer ul li a:hover { color: var(--white); text-decoration: none; }
.footer__bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer__501 {
  display: inline-block;
  background: rgba(245,160,32,.15);
  border: 1px solid rgba(245,160,32,.3);
  color: var(--gold);
  border-radius: 50px;
  padding: .2rem .8rem;
  font-size: .75rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* ── Package Opening Animation ── */
.pkg-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--gold-lt) 50%, var(--cream) 100%);
}
.pkg-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
  perspective: 900px;
  perspective-origin: 50% 30%;
  margin: 0 auto;
  overflow: visible;
  position: relative;
}
/* ✦ burst when the package opens (injected by animations.js) */
.pkg-spark {
  position: absolute;
  top: 26%;
  font-size: 1.1rem;
  color: var(--gold);
  pointer-events: none;
  opacity: 0;
  z-index: 6;
  animation: pkgSpark .7s ease-out forwards;
}
@keyframes pkgSpark {
  0%   { opacity: 0; transform: translateY(0) scale(.4) rotate(0deg); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-48px) scale(1.1) rotate(25deg); }
}
.pkg-wrap {
  position: relative;
  width: 200px;
  height: 215px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  animation: pkgWiggle 4s ease-in-out 1.5s infinite;
  cursor: pointer;
}
.pkg-wrap.open { animation: none; }
@keyframes pkgWiggle {
  0%, 78%, 100% { transform: rotate(0deg) scale(1); }
  81%  { transform: rotate(-4deg) scale(1.02); }
  84%  { transform: rotate( 4deg) scale(1.02); }
  87%  { transform: rotate(-2deg) scale(1.01); }
  90%  { transform: rotate( 2deg) scale(1.01); }
  93%  { transform: rotate(-1deg) scale(1); }
}
/* Lid open keyframe — smooth arc, ease-out so it swings and settles */
@keyframes lidFlipOpen {
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-170deg); }
}

/* Lid — looks like two cardboard flaps meeting in the middle */
.pkg-lid {
  position: absolute;
  top: 0; left: -4px;
  width: 208px;
  height: 72px;
  transform-origin: center bottom;
  z-index: 3;
}
/* Snap closed quickly when replaying */
.pkg-wrap:not(.open) .pkg-lid {
  transition: transform 0.25s ease-in;
}
.pkg-lid__face {
  width: 100%; height: 100%;
  background: linear-gradient(150deg, #E8A820 0%, #C07A08 100%);
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.28);
  position: relative;
  overflow: hidden;
}
/* Left and right flap shading */
.pkg-lid__face::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,.12) 0%, transparent 28%),
    linear-gradient(to left,  rgba(0,0,0,.09) 0%, transparent 28%);
}
/* Center fold crease — the line where the two flaps meet */
.pkg-lid__face::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(0,0,0,.22);
  transform: translateX(-50%);
}
.pkg-wrap.open .pkg-lid {
  animation: lidFlipOpen 1.5s ease-out forwards;
}
/* Box body */
.pkg-body {
  position: absolute;
  top: 72px; left: 0;
  width: 200px; height: 140px;
  background: linear-gradient(155deg, #E09A18 0%, #B06808 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 48px rgba(140,75,0,.4), 0 4px 14px rgba(0,0,0,.14);
  overflow: hidden;
}
/* Side shading for 3D depth illusion */
.pkg-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.1) 0%, transparent 20%, transparent 80%, rgba(0,0,0,.15) 100%);
}
/* Horizontal tape strip */
.pkg-tape {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 18px;
  background: rgba(255,255,255,.24);
  transform: translateY(-50%);
}
/* Items — stay close to the box mouth */
.pkg-items {
  position: absolute;
  top: 62px; left: 50%;
  z-index: 5;
  pointer-events: none;
}
.pkg-item {
  position: absolute;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 2.4rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.22));
  transition: none;
}
/* Items fan out — well spaced but naturally scattered */
.pkg-wrap.open .pkg-item:nth-child(1) {
  transform: translateX(calc(-50% - 115px)) translateY(-70px) rotate(-20deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.15s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.15s;
}
.pkg-wrap.open .pkg-item:nth-child(2) {
  transform: translateX(calc(-50% - 62px)) translateY(-96px) rotate(15deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.25s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.25s;
}
.pkg-wrap.open .pkg-item:nth-child(3) {
  transform: translateX(calc(-50% - 12px)) translateY(-80px) rotate(-8deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.35s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.35s;
}
.pkg-wrap.open .pkg-item:nth-child(4) {
  transform: translateX(calc(-50% + 42px)) translateY(-100px) rotate(10deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.45s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.45s;
}
.pkg-wrap.open .pkg-item:nth-child(5) {
  transform: translateX(calc(-50% + 72px)) translateY(-74px) rotate(-16deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.1s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.1s;
}
.pkg-wrap.open .pkg-item:nth-child(6) {
  transform: translateX(calc(-50% + 132px)) translateY(-90px) rotate(22deg);
  opacity: 1; font-size: 2.4rem;
  transition: opacity .1s 1.3s, transform .55s cubic-bezier(.175,.885,.32,1.275) 1.3s;
}

/* ── Scroll Reveal (fade up, once, ≤400ms) ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow); gap: 1rem; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: none; border-bottom: 1px solid #EDE4F7; }
  .stats__item:last-child { border-bottom: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1.5rem 4rem; }
  .activity-card { grid-template-columns: 1fr; gap: .75rem; }
  .activity-card__icon { font-size: 1.8rem; }
  .highlight-box { flex-direction: column; text-align: center; padding: 1.75rem; }
  .youth-banner { flex-direction: column; text-align: center; }
}

/* ===== Inline text editor (site owner only, via ?edit=1) ===== */
.spark-text-editable {
  cursor: text;
  transition: outline-color 0.1s, background-color 0.1s;
  outline: 1px dashed transparent;
  outline-offset: 4px;
  border-radius: 3px;
}
.spark-text-editable:hover {
  outline-color: var(--purple);
  background-color: rgba(91, 45, 142, 0.07);
}
.spark-text-editable:focus {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  background-color: rgba(91, 45, 142, 0.09);
}
#spark-edit-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9999;
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
#spark-edit-toggle:hover { filter: brightness(1.1); }

/* ===== FAQ collapsible (uses native <details>/<summary>) ===== */
.faq-item {
  background: #fff;
  border: 1px solid #e8e3f1;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-item[open] { box-shadow: var(--shadow-lg); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding-right: 3rem;
  transition: background .15s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--purple-lt); color: var(--purple); }
.faq-item > summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] > summary::after {
  transform: translateY(-50%) rotate(135deg);
}
.faq-item > p {
  padding: 0 1.4rem 1.2rem;
  margin: 0;
  color: var(--gray);
  line-height: 1.6;
}
.faq-item[open] > p { animation: faqReveal .25s ease-out; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Skip link (accessibility) ===== */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -130%);
  background: var(--purple);
  color: #fff;
  padding: .6rem 1.3rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  font-size: .9rem;
  z-index: 10000;
  transition: transform .15s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  text-decoration: none;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ===== Visible focus states (accessibility) ===== */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn--outline:focus-visible,
.hero a:focus-visible,
.section--purple a:focus-visible,
.footer a:focus-visible { outline-color: #fff; }

/* ===== One-shot pulse (donate notice CTA — never loops) ===== */
@keyframes pulseOnce {
  0%   { box-shadow: 0 0 0 0 rgba(74,29,138,.45); }
  100% { box-shadow: 0 0 0 14px rgba(74,29,138,0); }
}
.btn--pulse-once { animation: pulseOnce 1.4s ease-out .4s 1 both; }
@media (prefers-reduced-motion: reduce) {
  .btn--pulse-once { animation: none !important; }
}

/* ===== Footer trust block ===== */
.footer__trust {
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin-top: .65rem;
  max-width: 36ch;
}

/* ===== Impact / By the Numbers ===== */
.section--purple .section-header .eyebrow { color: var(--gold); }
.section--purple .section-header p { color: rgba(255,255,255,.85); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.impact-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
}
.impact-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: .4rem;
}
.impact-stat__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.82);
  font-weight: 600;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem 2rem;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.quote-card__mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  line-height: .4;
  color: var(--gold);
}
.quote-card__body { font-size: .95rem; color: #374151; font-style: italic; }
.quote-card__author { font-size: .82rem; font-weight: 600; color: var(--purple); margin-top: auto; }

/* ===== Privacy / legal page ===== */
.legal { max-width: 760px; }
.legal h2 { margin: 2.25rem 0 .5rem; font-size: 1.35rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { font-size: .95rem; color: #374151; }
.legal ul { margin: .5rem 0 0 1.25rem; }
.legal li { margin-bottom: .45rem; }
.legal__meta { font-size: .82rem; color: var(--gray); margin-top: 2.5rem; border-top: 1px solid var(--purple-lt); padding-top: 1.25rem; }

/* ===== Privacy note (join form) ===== */
.privacy-note {
  background: var(--gray-lt);
  border: 1px solid var(--purple-lt);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-top: 1.5rem;
  text-align: left;
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.6;
}
.privacy-note strong { color: var(--purple); }

/* ===== 404 ===== */
.notfound {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 4rem 1.5rem;
}
.notfound__code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 6rem);
  color: var(--purple);
  line-height: 1;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .stats__item { opacity: 1 !important; transform: none !important; }
  .hero__sparkles { display: none !important; }
  .pkg-wrap { animation: none !important; }
  .pkg-spark { display: none !important; }
  .hero__eyebrow,
  .hero h1,
  .hero p,
  .hero__buttons { animation: none !important; opacity: 1 !important; transform: none !important; }
}
