/* ==========================================================================
   Raha Kids — global stylesheet
   Warm, hopeful, soft. Fraunces for display type, Nunito Sans for body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --cream: #fdf8f1;
  --cream-deep: #f7eee0;
  --ink: #33281f;
  --ink-soft: #6b5d4f;
  --coral: #e2725b;
  --coral-dark: #c85a44;
  --coral-soft: #fbe3dd;
  --teal: #1f6f6b;
  --teal-dark: #15514e;
  --teal-soft: #dcefee;
  --sun: #f4b942;
  --sun-soft: #fdf0d5;
  --white: #ffffff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(51, 40, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(51, 40, 31, 0.16);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-decoration: none; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 58ch;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 0.9rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.2s, color 0.2s, border-color 0.2s;
  will-change: transform;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(226, 114, 91, 0.38);
}
.btn-primary:hover { background: var(--coral-dark); box-shadow: 0 12px 28px rgba(226, 114, 91, 0.45); }

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.1rem; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1.1rem 0;
}

.site-header.scrolled {
  background: rgba(253, 248, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(51, 40, 31, 0.08);
  padding: 0.6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
}
.brand .brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand span em { color: var(--coral); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2.5px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--coral-dark); }

.nav-links .btn { padding: 0.6rem 1.4rem; font-size: 0.95rem; }
.nav-links .btn::after { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 12px;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  margin: 2.75px 0;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

@media (max-width: 840px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2.5rem;
    background: var(--cream);
    box-shadow: -20px 0 60px rgba(51, 40, 31, 0.18);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease-out);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero .lede { margin: 1.4rem 0 2.2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-art { position: relative; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: var(--coral-soft); top: -120px; right: -100px; }
.blob-2 { width: 360px; height: 360px; background: var(--teal-soft); bottom: -140px; left: -120px; animation-delay: -6s; }
.blob-3 { width: 260px; height: 260px; background: var(--sun-soft); top: 30%; left: 42%; animation-delay: -3s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(36px, -28px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- Sections & cards ---------- */

section { padding: clamp(3.5rem, 8vh, 6rem) 0; position: relative; }

.band-cream-deep { background: var(--cream-deep); }
.band-teal { background: var(--teal); color: var(--white); }
.band-teal .eyebrow { color: var(--sun); }
.band-teal .lede { color: rgba(255, 255, 255, 0.82); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card .card-icon {
  width: 58px; height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
}
.icon-coral { background: var(--coral-soft); }
.icon-teal  { background: var(--teal-soft); }
.icon-sun   { background: var(--sun-soft); }

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  text-align: center;
}

.stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 700;
  color: var(--sun);
  line-height: 1.1;
}
.stat .stat-label {
  margin-top: 0.35rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Testimonials ---------- */

.carousel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.carousel-track { position: relative; min-height: 240px; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
  text-align: center;
  padding: 0 1rem;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.slide blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink);
}
.slide cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-weight: 800;
  color: var(--coral-dark);
}
.slide cite small { display: block; font-weight: 600; color: var(--ink-soft); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.carousel-btn:hover { background: var(--teal); color: var(--white); transform: scale(1.06); }

.carousel-dots { display: flex; gap: 0.55rem; }
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(31, 111, 107, 0.25);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.25s;
}
.carousel-dots button.active { background: var(--coral); transform: scale(1.35); }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--coral) 0%, #d9603f 100%);
  border-radius: calc(var(--radius) * 1.4);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.cta-banner::before { width: 300px; height: 300px; top: -150px; left: -80px; }
.cta-banner::after  { width: 220px; height: 220px; bottom: -110px; right: -60px; }
.cta-banner h2 { color: var(--white); position: relative; z-index: 1; }
.cta-banner p { margin: 1rem auto 2rem; max-width: 52ch; color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(8rem, 15vh, 10.5rem) 0 clamp(3rem, 6vh, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- Timeline (about page) ---------- */

.timeline { position: relative; max-width: 720px; margin-inline: auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--coral), var(--teal));
}
.timeline-item {
  position: relative;
  padding: 0 0 2.4rem 64px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px; top: 6px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--coral);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--coral-dark);
}
.timeline-item p { color: var(--ink-soft); margin-top: 0.3rem; }

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}
.team-card { text-align: center; }
.team-card .avatar {
  width: 110px; height: 110px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.team-card h3 { font-size: 1.15rem; }
.team-card .role { color: var(--coral-dark); font-weight: 700; font-size: 0.9rem; }
.team-card p { margin-top: 0.5rem; }

/* ---------- FAQ accordion ---------- */

.faq { max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  text-align: left;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral-dark);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.faq-item.open .chev { transform: rotate(180deg); background: var(--coral); color: var(--white); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}
.faq-a p { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }

/* ---------- Donate page ---------- */

.donate-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .donate-layout { grid-template-columns: 1fr; } }

.donate-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.freq-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.8rem;
}
.freq-toggle button {
  border: none;
  background: transparent;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.freq-toggle button.active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(51, 40, 31, 0.12);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.amount-btn {
  border: 2px solid var(--cream-deep);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-out);
}
.amount-btn:hover { transform: translateY(-2px); border-color: var(--coral); }
.amount-btn.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-dark);
}

.custom-amount {
  position: relative;
  margin-bottom: 1.4rem;
}
.custom-amount .currency {
  position: absolute;
  left: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  color: var(--ink-soft);
}
.custom-amount input {
  width: 100%;
  padding: 1rem 1rem 1rem 2.4rem;
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s;
}
.custom-amount input:focus { outline: none; border-color: var(--teal); }

.impact-note {
  background: var(--teal-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-size: 0.96rem;
  color: var(--teal-dark);
  font-weight: 700;
  margin-bottom: 1.6rem;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.donate-error {
  display: none;
  background: #fbe3dd;
  color: #a03a26;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 1.2rem;
}
.donate-error.show { display: block; }

.secure-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.progress-card { margin-bottom: 1.6rem; }
.progress-bar {
  height: 14px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.9rem 0 0.5rem;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun), var(--coral));
  transition: width 1.4s var(--ease-out);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ---------- Forms (contact) ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 111, 107, 0.12);
}

.form-status {
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.form-status.success { display: block; background: var(--teal-soft); color: var(--teal-dark); }
.form-status.error { display: block; background: var(--coral-soft); color: #a03a26; }

.info-list { list-style: none; display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .info-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--coral-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.info-list strong { display: block; }
.info-list span { color: var(--ink-soft); font-size: 0.95rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Photos & gallery ---------- */

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.photo-frame:hover img { transform: scale(1.04); }

.photo-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.3rem 1rem;
  background: linear-gradient(transparent, rgba(36, 28, 20, 0.78));
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 220px);
  gap: 1.2rem;
}
.gallery-grid .photo-frame { height: 100%; }
.gallery-grid .g-classroom { grid-column: span 2; }
.gallery-grid .g-boys      { grid-column: span 2; }
.gallery-grid .g-altar     { grid-column: 4; grid-row: span 2; }
.gallery-grid .g-red,
.gallery-grid .g-sports    { grid-column: span 1; }
@media (max-width: 840px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; }
  .gallery-grid .g-classroom { grid-column: span 2; }
  .gallery-grid .g-boys      { grid-column: span 2; }
  .gallery-grid .g-altar     { grid-column: span 2; grid-row: span 2; }
  .gallery-grid .g-red,
  .gallery-grid .g-sports    { grid-column: span 1; }
}

.hero-photo { aspect-ratio: 4 / 3; }
.split .photo-frame { aspect-ratio: 4 / 3; }

/* ---------- Footer ---------- */

.site-footer {
  background: #241c14;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 840px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--white); margin-bottom: 0.9rem; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); transition: color 0.2s; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Misc ---------- */

.checklist { list-style: none; display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 840px) { .split { grid-template-columns: 1fr; } }

.thanks-hero {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 0 4rem;
}
.thanks-hero .big-heart {
  font-size: 4rem;
  animation: heartbeat 1.6s ease-in-out infinite;
  display: inline-block;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.12); }
  48% { transform: scale(1); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }
