/* ═══════════════════════════════════════════════════════════
   HOUSE OF MALKAH — style.css
   Theme: Deep Purple × Gold · Warm · Empowering · Regal
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --purple:        #6B2FA0;
  --purple-dark:   #4A1F70;
  --purple-deep:   #2D1245;
  --purple-light:  #9B59D0;
  --purple-pale:   #F0E8FA;
  --gold:          #C9A255;
  --gold-light:    #E0BB7A;
  --gold-dark:     #A07D35;
  --cream:         #FAF6F0;
  --cream-dark:    #F2EBE0;
  --white:         #FFFFFF;
  --text-dark:     #1A0A2E;
  --text-body:     #3D2B55;
  --text-muted:    #7A6B8A;
  --border:        rgba(107, 47, 160, 0.15);
  --border-gold:   rgba(201, 162, 85, 0.3);

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 2px 8px rgba(107, 47, 160, 0.08);
  --shadow:        0 8px 32px rgba(107, 47, 160, 0.12);
  --shadow-lg:     0 20px 60px rgba(107, 47, 160, 0.18);

  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:         70px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

/* Reveal animations park elements at translateX(±32px) until they scroll
   into view, which lets the page drag sideways on touch screens. Clipping
   has to be on both html and body — on body alone the overflow simply
   propagates up to the viewport. Nothing here uses position: sticky, which
   is the one thing this would break. */
html, body { overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  color: var(--text-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dark); }

em { font-style: italic; color: var(--gold); }
strong { font-weight: 700; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.section-label-wrap { margin-bottom: 52px; }
.section-label-wrap.center { text-align: center; }
.section-label-wrap.center .section-sub { margin: 0 auto; }

.gold-text { color: var(--gold); font-weight: 600; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-deep);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 85, 0.4);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-purple-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-purple-outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-full { width: 100%; text-align: center; }

/* ── SECTION BASE ── */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }

/* ════════════════════════════════════════
   EMERGENCY BAR
════════════════════════════════════════ */
.emergency-bar {
  background: #7B1818;
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  position: relative;
  z-index: 1000;
}

.emergency-bar a {
  color: #FFD6D6;
  font-weight: 700;
  text-decoration: underline;
}
.emergency-bar a:hover { color: var(--white); }

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

/* account for emergency bar height */
.navbar { top: 42px; }

.navbar.scrolled {
  background: rgba(45, 18, 69, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-text strong {
  font-weight: 700;
  color: var(--gold);
}

/* Logo image in navbar */
.logo-img {
  height: 56px;
  width: auto;
  background: var(--white);
  padding: 4px 10px;
  border-radius: 10px;
  display: block;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.04);
}

/* Logo image in footer */
.footer-logo-img {
  height: 80px;
  width: auto;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--purple-deep) !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 4px 16px rgba(201, 162, 85, 0.4) !important;
}

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(42px + var(--nav-h));
}

.hero-image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45, 18, 69, 0.82) 0%,
    rgba(74, 31, 112, 0.70) 40%,
    rgba(45, 18, 69, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding: 60px 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 162, 85, 0.15);
  border: 1px solid rgba(201, 162, 85, 0.4);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: var(--gold-light);
  display: block;
}

/* ── SPARKLES TEXT (ported from the "SparklesText" component —
   random twinkling star particles around the text) ── */
#sparklesRoyalty {
  position: relative;
  display: inline-block;
}

.sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  transform-origin: center;
  animation: sparkleTwinkle 0.8s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%   { opacity: 0; transform: scale(0) rotate(75deg); }
  50%  { opacity: 1; transform: scale(var(--sparkle-scale, 1)) rotate(120deg); }
  100% { opacity: 0; transform: scale(0) rotate(150deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sparkle { display: none; }
}

.hero-content p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* scroll indicator */
.hero::after {
  content: '';
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  z-index: 2;
}

/* ════════════════════════════════════════
   MISSION STRIP
════════════════════════════════════════ */
.mission-strip {
  background: var(--purple-deep);
  padding: 22px 0;
  text-align: center;
}

.mission-strip p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
}

/* ════════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-col { position: relative; }

.about-img-stack {
  position: relative;
  height: 520px;
}

.about-img-stack .img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 82%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-stack .img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 52%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.about-text-col { padding-right: 12px; }

.about-text-col p {
  color: var(--text-body);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.value-pill {
  background: var(--purple-pale);
  color: var(--purple-dark);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.value-pill:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════
   WHO WE SERVE
════════════════════════════════════════ */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.serve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.serve-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--purple));
  transition: height var(--transition);
  border-radius: 0 0 4px 0;
}

.serve-card:hover::before { height: 100%; }
.serve-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.serve-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.serve-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--purple-dark);
}

.serve-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   PHOTO STRIP
════════════════════════════════════════ */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 300px;
  overflow: hidden;
}

.photo-strip-item {
  overflow: hidden;
  position: relative;
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-strip-item:hover img { transform: scale(1.08); }

.photo-strip-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(45, 18, 69, 0.5) 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════
   PROGRAMS
════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-light);
}

.program-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--purple-pale);
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.program-card:hover .program-number { color: rgba(107, 47, 160, 0.15); }

.program-card h3 {
  font-size: 1.15rem;
  color: var(--purple-dark);
  margin-bottom: 12px;
}

.program-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ════════════════════════════════════════
   QUOTE SECTION
════════════════════════════════════════ */
.quote-section {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 22rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.quote-section blockquote { position: relative; z-index: 1; }

.quote-section blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.quote-section blockquote cite {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ════════════════════════════════════════
   RESOURCES
════════════════════════════════════════ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.resource-card.urgent {
  background: #FFF5F5;
  border-color: rgba(180, 40, 40, 0.3);
}

.resource-icon { font-size: 2rem; margin-bottom: 12px; }

.resource-card h3 {
  font-size: 1rem;
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.resource-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-pale);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.resource-link:hover {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

.resource-card.urgent .resource-link {
  color: #7B1818;
  background: #FFECEC;
  border-color: rgba(180, 40, 40, 0.2);
}

.resource-card.urgent .resource-link:hover {
  background: #7B1818;
  color: var(--white);
  border-color: #7B1818;
}

/* ════════════════════════════════════════
   GET INVOLVED
════════════════════════════════════════ */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.involve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.involve-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.involve-card.featured {
  background: linear-gradient(145deg, var(--purple-deep) 0%, var(--purple) 100%);
  border: none;
  box-shadow: var(--shadow-lg);
}

.involve-card.featured h3,
.involve-card.featured p { color: var(--white); }
.involve-card.featured p { color: rgba(255, 255, 255, 0.82); }

.involve-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.involve-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--purple-dark);
}

.involve-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  flex: 1;
}

/* ════════════════════════════════════════
   CONTACT
════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--purple-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.82rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.95rem; color: var(--text-muted); }
.contact-item a { color: var(--purple); font-weight: 500; }
.contact-item a:hover { color: var(--gold-dark); text-decoration: underline; }

/* form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 47, 160, 0.12);
  background: var(--white);
}

.form-group textarea { min-height: 130px; }

.form-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.footer {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-location { color: var(--gold); font-size: 0.85rem !important; }

.footer-links h4,
.footer-resources h4 {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 0.78rem;
}

.footer-links ul,
.footer-resources ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-resources a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-resources a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.footer-disclaimer { font-size: 0.75rem !important; }

.footer-credits {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-bottom: 0 !important;
}

/* ════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* stagger children */
.stagger-child:nth-child(1) { transition-delay: 0.05s; }
.stagger-child:nth-child(2) { transition-delay: 0.15s; }
.stagger-child:nth-child(3) { transition-delay: 0.25s; }
.stagger-child:nth-child(4) { transition-delay: 0.35s; }
.stagger-child:nth-child(5) { transition-delay: 0.45s; }
.stagger-child:nth-child(6) { transition-delay: 0.55s; }

/* ════════════════════════════════════════
   FORM SUCCESS STATE
════════════════════════════════════════ */
.form-success {
  background: #F0FAF3;
  border: 1px solid rgba(34, 139, 70, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  color: #1A6E35;
  font-weight: 500;
  display: none;
  margin-top: 16px;
}

.form-success.show { display: block; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-col { order: -1; }
  .about-img-stack { height: 380px; }
  .about-img-stack .img-main { width: 72%; height: 84%; }
  .about-img-stack .img-accent { width: 50%; height: 50%; }
  .about-text-col { padding-right: 0; }

  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .navbar { top: 36px; }

  .emergency-bar { font-size: 0.75rem; }

  .nav-menu {
    display: none;
    position: fixed;
    top: calc(36px + 60px);
    left: 0;
    width: 100%;
    background: rgba(45, 18, 69, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.open { display: flex; }
  .nav-menu a { width: 100%; text-align: center; padding: 12px 20px; }

  .nav-toggle { display: flex; }

  .hero { min-height: 100svh; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-content p { font-size: 0.98rem; }

  .section { padding: 64px 0; }

  .about-img-stack { height: 300px; }

  .serve-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .involve-grid { grid-template-columns: 1fr; }

  .photo-strip { grid-template-columns: repeat(2, 1fr); height: 240px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .about-img-stack { height: 240px; }
  .about-img-stack .img-main { width: 78%; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); height: 180px; }
  .hero-tag { font-size: 0.72rem; }
}

/* ════════════════════════════════════════
   KEYBOARD FOCUS
   Visible focus ring for anyone navigating by keyboard.
   Gold on the dark purple surfaces, purple on light ones.
════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.navbar a:focus-visible,
.navbar button:focus-visible,
.hero a:focus-visible,
.footer a:focus-visible,
.emergency-bar a:focus-visible,
.quote-section a:focus-visible {
  outline-color: var(--gold-light);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 1px;
}

/* Fallback message shown when JavaScript is unavailable */
.form-noscript {
  background: var(--purple-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--text-body);
}

/* ════════════════════════════════════════
   REDUCED MOTION
   Content must arrive without movement for anyone who
   asks for it — the reveal animations gate visibility,
   so they need neutralising, not just shortening.
════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stagger-child { transition-delay: 0s; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
