/* ============================================
   Community Presbyterian Church & School
   Main Stylesheet — Navy & Brown Theme
   ============================================ */

/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; color: #1B1B2E; background: #fff; }

/* === COLOR TOKENS === */
:root {
  --navy:         #1B2A4A;
  --navy-dark:    #0F1C33;
  --navy-mid:     #2A3F6B;
  --navy-light:   #E8EDF5;
  --brown:        #6B3A2A;
  --brown-dark:   #4A2418;
  --brown-mid:    #C4956A;
  --brown-light:  #F5EAE0;
  --cream:        #FAF7F3;
  --warm-white:   #FFFDF9;
  --text:         #1B1B2E;
  --text-mid:     #4A3728;
  --text-soft:    #9C8A7A;
  --border:       #E2D5C8;
  --gold:         #C49A3C;
  --gold-light:   #FBF0D9;
}

/* === NAVBAR === */
.cpc-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--navy);
  border-bottom: 2px solid var(--brown-mid);
  padding: 0 28px;
  height: 66px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.nav-logo {
  justify-self: start;
}

.nav-links {
  justify-self: center;
}

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

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--brown-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid var(--brown-mid);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo-text span:first-child {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.nav-logo-text span:last-child {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-cta {
  background: var(--brown-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--brown); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 26px;
  line-height: 1;
}

/* Mobile Drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 10px 0 16px;
  position: fixed;
  top: 66px; left: 0; right: 0;
  z-index: 999;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}

.nav-drawer.open { display: flex; }

.nav-drawer a {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 11px 22px;
}

.nav-drawer a:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.nav-drawer .drawer-cta {
  margin: 10px 22px 0;
  background: var(--brown-mid);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 24px;
  text-align: center;
}

.nav-spacer { height: 66px; }

/* === HERO === */
.hero {
  background: var(--navy);
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.shape { position: absolute; border-radius: 50%; opacity: 0.06; }
.shape.s1 { width: 500px; height: 500px; top: -120px; right: -80px; background: var(--brown-mid); }
.shape.s2 { width: 300px; height: 300px; bottom: -60px; left: 40px; background: var(--navy-mid); }
.shape.s3 { width: 160px; height: 160px; top: 60px; left: 160px; background: var(--brown-light); }

.hero-content {
  position: relative;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-light);
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 24px;
  margin-bottom: 24px;
  border: 1px solid #B8C5E0;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brown-mid);
  flex-shrink: 0;
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span { color: var(--brown-mid); }

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-info-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-text-sunday {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-light);
}

.hero-text-enroll {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-mid);
}

.hero-stats {
  display: flex;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
}

.stat-item {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--brown-mid);
  display: block;
}

.stat-num.green { color: #A8BEDD; }

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === SHARED === */
.section-inner { max-width: 900px; margin: 0 auto; }

.sec-eyebrow-green {
  display: inline-block;
  background: var(--navy-light);
  color: var(--navy-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sec-eyebrow-peach {
  display: inline-block;
  background: var(--brown-light);
  color: var(--brown-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sec-eyebrow-white {
  display: inline-block;
  background: rgba(196,149,106,0.2);
  color: var(--brown-mid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-title.white { color: #fff; }
.section-title span.green { color: var(--navy-mid); }
.section-title span.peach { color: var(--brown); }
.peach-text { color: var(--brown-mid); }

.section-sub {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.section-sub.white { color: rgba(255,255,255,0.7); }

.warm-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.warm-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.icon-green { background: var(--navy-light); }
.icon-peach { background: var(--brown-light); }

.warm-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.warm-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* === ABOUT === */
.about {
  background: var(--cream);
  padding: 80px 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.timeline {
  border-left: 3px solid var(--navy-light);
  padding-left: 28px;
  margin-bottom: 36px;
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-dot {
  position: absolute;
  left: -37px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brown-mid);
  border: 3px solid var(--cream);
  outline: 2px solid var(--brown-mid);
}

.timeline-year {
  font-size: 11px;
  font-weight: 800;
  color: var(--brown);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.founders-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.founder-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.founder-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 12px;
}

.founder-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.founder-role { font-size: 12px; color: var(--text-soft); }

/* === PARTNERS === */
.partners-wrap {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.partners-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.partners-title span { color: var(--brown); }

.partners-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.partner-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-icon { font-size: 22px; }
.partner-name { font-size: 14px; font-weight: 800; color: var(--navy); }
.partner-desc { font-size: 12px; color: var(--text-mid); line-height: 1.55; flex: 1; }
.partner-link { font-size: 12px; font-weight: 700; color: var(--brown); text-decoration: none; }
.partner-link:hover { color: var(--brown-dark); }

/* === PROGRAMS === */
.programs { background: var(--warm-white); padding: 80px 40px; }

/* === HOME LINKS === */
.home-links { background: var(--warm-white); padding: 80px 40px; }

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(27,42,74,0.06);
  transition: transform 0.18s, box-shadow 0.18s;
}

.home-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(27,42,74,0.1);
}

.home-link-card span {
  font-size: 12px;
  font-weight: 800;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-link-card strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.prog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prog-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
}

.prog-card.featured {
  border: 2px solid var(--navy);
  background: var(--navy-light);
}

.prog-badge {
  display: inline-block;
  background: var(--brown-mid);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prog-icon-lg { font-size: 26px; margin-bottom: 10px; display: block; }

.prog-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.prog-title-g {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-mid);
  margin-bottom: 6px;
}

.prog-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

.prog-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brown-light);
  color: var(--brown-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

/* === CHURCH === */
.church { background: var(--navy); padding: 80px 40px; }

/* --- Church hero with rotating background photos --- */
.church-hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--navy);
}

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

.church-hero-bg .bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 28s infinite, heroZoom 28s infinite ease-in-out;
}

.church-hero-bg .bg-layer:nth-child(1) { animation-delay: 0s, 0s; }
.church-hero-bg .bg-layer:nth-child(2) { animation-delay: 7s, 7s; }
.church-hero-bg .bg-layer:nth-child(3) { animation-delay: 14s, 14s; }
.church-hero-bg .bg-layer:nth-child(4) { animation-delay: 21s, 21s; }

@keyframes heroFade {
  0%, 100% { opacity: 0; }
  3%       { opacity: 1; }
  22%      { opacity: 1; }
  28%      { opacity: 0; }
}

@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.church-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10,18,36,0.55) 0%,
      rgba(10,18,36,0.38) 40%,
      rgba(10,18,36,0.65) 75%,
      var(--navy-dark) 100%
    );
}

.church-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.45);
  pointer-events: none;
}

.church-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 12% 20%, rgba(196,149,106,0.18), transparent 45%);
  pointer-events: none;
}

.church-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  width: 100%;
  padding: 80px 40px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.church-hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.9s ease forwards;
}

.church-hero-eyebrow      { animation-delay: 0.1s; }
.church-hero-title        { animation-delay: 0.25s; }
.church-hero-sub          { animation-delay: 0.4s; }
.church-hero-row          { animation-delay: 0.55s; }

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Rotation indicator dots, synced to the bg-layer crossfade */
.church-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.church-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: dotPulse 28s infinite;
}

.church-hero-dots span:nth-child(1) { animation-delay: 0s; }
.church-hero-dots span:nth-child(2) { animation-delay: 7s; }
.church-hero-dots span:nth-child(3) { animation-delay: 14s; }
.church-hero-dots span:nth-child(4) { animation-delay: 21s; }

@keyframes dotPulse {
  0%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
  3%       { background: var(--brown-mid); transform: scale(1.3); }
  22%      { background: var(--brown-mid); transform: scale(1.3); }
  28%      { background: rgba(255,255,255,0.35); transform: scale(1); }
}

/* Scroll cue */
.church-hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.church-hero-scroll .sc-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* Curved divider into the navy ministries section below */
.church-hero-curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  line-height: 0;
}

.church-hero-curve svg { display: block; width: 100%; height: 48px; }

@media (max-width: 768px) {
  .church-hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .church-hero-bg .bg-layer { animation: none; opacity: 0; }
  .church-hero-bg .bg-layer:nth-child(1) { opacity: 1; }
  .church-hero-inner > * { animation: none; opacity: 1; transform: none; }
  .church-hero-dots span { animation: none; }
  .church-hero-scroll .sc-line { animation: none; }
  .church-hero-particles span { animation: none; opacity: 0; }
}

/* Pause the rotation on hover so visitors can linger on a photo */
.church-hero:hover .bg-layer { animation-play-state: paused; }

/* Framed corner brackets for a gallery feel */
.church-hero-frame { position: absolute; inset: 18px; z-index: 2; pointer-events: none; }
.church-hero-frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(255,255,255,0.55);
  border-style: solid;
  border-width: 0;
}
.church-hero-frame i:nth-child(1) { top: 0;    left: 0;   border-top-width: 2px;    border-left-width: 2px;  border-top-left-radius: 6px; }
.church-hero-frame i:nth-child(2) { top: 0;    right: 0;  border-top-width: 2px;    border-right-width: 2px; border-top-right-radius: 6px; }
.church-hero-frame i:nth-child(3) { bottom: 0; left: 0;   border-bottom-width: 2px; border-left-width: 2px;  border-bottom-left-radius: 6px; }
.church-hero-frame i:nth-child(4) { bottom: 0; right: 0;  border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* Est. badge */
.church-hero-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.7s;
}

.church-hero-badge .b-num { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.church-hero-badge .b-label { font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* Title shimmer on the accent word */
.church-hero-title span {
  background: linear-gradient(100deg, #d4955a 20%, #f5c98a 48%, #d4955a 76%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShimmer 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes heroShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Drifting light particles */
.church-hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.church-hero-particles span {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: particleDrift linear infinite;
}

.church-hero-particles span:nth-child(1) { left: 8%;  width: 4px; height: 4px; animation-duration: 14s; animation-delay: 0s; }
.church-hero-particles span:nth-child(2) { left: 22%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: 2s; background: rgba(196,149,106,0.6); }
.church-hero-particles span:nth-child(3) { left: 38%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 5s; }
.church-hero-particles span:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 1s; background: rgba(196,149,106,0.5); }
.church-hero-particles span:nth-child(5) { left: 70%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 4s; }
.church-hero-particles span:nth-child(6) { left: 86%; width: 6px; height: 6px; animation-duration: 22s; animation-delay: 3s; background: rgba(196,149,106,0.55); }

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-580px) translateX(24px); opacity: 0; }
}

@media (max-width: 768px) {
  .church-hero-frame { display: none; }
  .church-hero-badge { width: 60px; height: 60px; top: 18px; right: 18px; }
  .church-hero-badge .b-num { font-size: 14px; }
}

.church-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,149,106,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(196,149,106,0.45);
  color: #f0c9a0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 24px;
  margin-bottom: 24px;
  width: fit-content;
}

/* Scripture verse */
.church-hero-verse {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.9s ease forwards;
  animation-delay: 0.48s;
}

.verse-mark {
  font-size: 28px;
  color: var(--brown-mid);
  opacity: 0.7;
  line-height: 1;
  flex-shrink: 0;
}

.verse-text {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  line-height: 1.6;
  border-left: 2px solid var(--brown-mid);
  padding-left: 12px;
}

.verse-text em {
  font-style: normal;
  color: var(--brown-mid);
  font-weight: 700;
}

/* Ghost (outline) secondary CTA */
.church-hero-cta-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 24px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.church-hero-cta-ghost:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.church-hero-title {
  font-size: 68px;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 3px 28px rgba(0,0,0,0.45);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.church-hero-title span { color: var(--brown-mid); }

.church-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin-bottom: 28px;
}

.church-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.church-hero-time {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 14px 20px;
}

.church-hero-time .ht-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brown-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.church-hero-time .ht-time { font-size: 16px; font-weight: 800; color: #fff; }
.church-hero-time .ht-label { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 600; }

.church-hero-cta {
  background: var(--brown-mid);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.church-hero-cta:hover { background: var(--brown); transform: translateY(-2px); }

@media (max-width: 768px) {
  .church-hero { min-height: 100svh; }
  .church-hero-inner { padding: 60px 22px 32px; }
  .church-hero-title { font-size: 40px; }
  .church-hero-sub { font-size: 15px; margin-bottom: 20px; }
  .church-hero-verse { margin-bottom: 24px; }
  .verse-text { font-size: 13px; }
  .church-hero-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .church-hero-strip { padding: 10px 16px; gap: 0; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .strip-item { font-size: 12px; padding: 4px 12px; white-space: nowrap; }
  .strip-divider { display: none; }
  .church-hero-cta-ghost { display: none; }
}

.service-box {
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brown-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.service-time { font-size: 24px; font-weight: 800; color: #fff; }
.service-label { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 600; margin-top: 2px; }

.svc-badge {
  margin-left: auto;
  background: var(--brown-mid);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.church-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.ch-card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 18px;
  border: 1px solid rgba(255,255,255,0.1);
}

.ch-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.ch-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.ch-desc { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; }

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.leader-card {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.leader-av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown-mid);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.leader-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.leader-role { font-size: 11px; color: rgba(255,255,255,0.55); }


/* === SCHOOL === */
.school-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  background: var(--navy);
}

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

.school-hero-bg .bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: schoolHeroFade 28s infinite, schoolHeroZoom 28s infinite ease-in-out;
}

.school-hero-bg .bg-layer:nth-child(1) { animation-delay: 0s, 0s; }
.school-hero-bg .bg-layer:nth-child(2) { animation-delay: 7s, 7s; }
.school-hero-bg .bg-layer:nth-child(3) { animation-delay: 14s, 14s; }
.school-hero-bg .bg-layer:nth-child(4) { animation-delay: 21s, 21s; }

@keyframes schoolHeroFade {
  0%, 100% { opacity: 0; }
  3%       { opacity: 1; }
  22%      { opacity: 1; }
  28%      { opacity: 0; }
}

@keyframes schoolHeroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.school-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,28,51,0.4) 0%, rgba(74,36,24,0.55) 55%, var(--navy) 100%);
}

.school-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.45);
  pointer-events: none;
}

.school-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 88% 18%, rgba(212,168,83,0.22), transparent 45%),
              radial-gradient(circle at 8% 85%, rgba(123,158,135,0.2), transparent 45%);
  pointer-events: none;
}

.school-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px 56px;
}

.school-hero-inner > * {
  opacity: 0;
  transform: translateY(18px);
  animation: schoolHeroRise 0.9s ease forwards;
}

.school-hero-eyebrow { animation-delay: 0.1s; }
.school-hero-title   { animation-delay: 0.25s; }
.school-hero-sub     { animation-delay: 0.4s; }
.school-hero-row     { animation-delay: 0.55s; }

@keyframes schoolHeroRise {
  to { opacity: 1; transform: translateY(0); }
}

.school-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.school-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  margin-bottom: 16px;
}

.school-hero-title span { color: var(--gold); }

.school-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  max-width: 540px;
  margin-bottom: 28px;
}

.school-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.school-hero-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 14px 20px;
}

.school-hero-fact .hf-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.school-hero-fact .hf-time { font-size: 16px; font-weight: 800; color: #fff; }
.school-hero-fact .hf-label { font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 600; }

.school-hero-cta {
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 14px;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.school-hero-cta:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); }

.school-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.school-hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  animation: schoolDotPulse 28s infinite;
}

.school-hero-dots span:nth-child(1) { animation-delay: 0s; }
.school-hero-dots span:nth-child(2) { animation-delay: 7s; }
.school-hero-dots span:nth-child(3) { animation-delay: 14s; }
.school-hero-dots span:nth-child(4) { animation-delay: 21s; }

@keyframes schoolDotPulse {
  0%, 100% { background: rgba(255,255,255,0.35); transform: scale(1); }
  3%       { background: var(--gold); transform: scale(1.3); }
  22%      { background: var(--gold); transform: scale(1.3); }
  28%      { background: rgba(255,255,255,0.35); transform: scale(1); }
}

.school-hero-scroll {
  position: absolute;
  right: 32px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.school-hero-scroll .sc-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: schoolScrollDrop 1.8s ease-in-out infinite;
}

@keyframes schoolScrollDrop {
  0%   { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%  { transform: scaleY(1);   transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

.school-hero-curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 2;
  line-height: 0;
}

.school-hero-curve svg { display: block; width: 100%; height: 48px; }

@media (max-width: 768px) {
  .school-hero { min-height: 440px; align-items: flex-end; }
  .school-hero-inner { padding: 0 20px 36px; }
  .school-hero-title { font-size: 32px; }
  .school-hero-sub { font-size: 15px; }
  .school-hero-row { flex-direction: column; align-items: flex-start; }
  .school-hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .school-hero-bg .bg-layer { animation: none; opacity: 0; }
  .school-hero-bg .bg-layer:nth-child(1) { opacity: 1; }
  .school-hero-inner > * { animation: none; opacity: 1; transform: none; }
  .school-hero-dots span { animation: none; }
  .school-hero-scroll .sc-line { animation: none; }
  .school-hero-particles span { animation: none; opacity: 0; }
}

/* Pause the rotation on hover so visitors can linger on a photo */
.school-hero:hover .bg-layer { animation-play-state: paused; }

/* Framed corner brackets for a gallery feel */
.school-hero-frame { position: absolute; inset: 18px; z-index: 2; pointer-events: none; }
.school-hero-frame i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(255,255,255,0.55);
  border-style: solid;
  border-width: 0;
}
.school-hero-frame i:nth-child(1) { top: 0;    left: 0;   border-top-width: 2px;    border-left-width: 2px;  border-top-left-radius: 6px; }
.school-hero-frame i:nth-child(2) { top: 0;    right: 0;  border-top-width: 2px;    border-right-width: 2px; border-top-right-radius: 6px; }
.school-hero-frame i:nth-child(3) { bottom: 0; left: 0;   border-bottom-width: 2px; border-left-width: 2px;  border-bottom-left-radius: 6px; }
.school-hero-frame i:nth-child(4) { bottom: 0; right: 0;  border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }

/* Est. badge */
.school-hero-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  animation: schoolHeroRise 0.9s ease forwards;
  animation-delay: 0.7s;
}

.school-hero-badge .b-num { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.school-hero-badge .b-label { font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* Title shimmer on the accent word */
.school-hero-title span {
  background: linear-gradient(100deg, var(--gold) 30%, #fce6b3 50%, var(--gold) 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: schoolHeroShimmer 5s ease-in-out infinite;
}

@keyframes schoolHeroShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Drifting light particles */
.school-hero-particles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.school-hero-particles span {
  position: absolute;
  bottom: -10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: schoolParticleDrift linear infinite;
}

.school-hero-particles span:nth-child(1) { left: 8%;  width: 4px; height: 4px; animation-duration: 14s; animation-delay: 0s; background: rgba(212,168,83,0.6); }
.school-hero-particles span:nth-child(2) { left: 22%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: 2s; background: rgba(123,158,135,0.55); }
.school-hero-particles span:nth-child(3) { left: 38%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 5s; }
.school-hero-particles span:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 20s; animation-delay: 1s; background: rgba(212,168,83,0.55); }
.school-hero-particles span:nth-child(5) { left: 70%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 4s; background: rgba(123,158,135,0.5); }
.school-hero-particles span:nth-child(6) { left: 86%; width: 6px; height: 6px; animation-duration: 22s; animation-delay: 3s; }

@keyframes schoolParticleDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-580px) translateX(24px); opacity: 0; }
}

@media (max-width: 768px) {
  .school-hero-frame { display: none; }
  .school-hero-badge { width: 60px; height: 60px; top: 18px; right: 18px; }
  .school-hero-badge .b-num { font-size: 14px; }
}

.school { background: var(--warm-white); padding: 80px 40px; }

.school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.grades-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.grade-pill {
  background: var(--navy-light);
  color: var(--navy-mid);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #B8C5E0;
}

.enroll-banner {
  background: var(--navy);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border: 2px solid var(--brown-mid);
}

.enroll-text h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.enroll-text p { font-size: 13px; color: rgba(255,255,255,0.7); }

.enroll-btn {
  background: var(--brown-mid);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.enroll-btn:hover { background: var(--brown); }
/* === OUTREACH === */
.outreach { background: var(--navy-dark); padding: 80px 40px; }

.out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.out-card {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 22px 18px;
  border: 1px solid rgba(255,255,255,0.1);
}

.out-icon { font-size: 28px; margin-bottom: 12px; display: block; }
.out-title { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.out-desc { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 14px; }
.out-links { display: flex; flex-direction: column; gap: 7px; }

.out-link {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.15s;
}

.out-link:hover { background: rgba(255,255,255,0.18); }

/* === MPESA BOX === */
.mpesa-box {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.15);
}

.mpesa-title { font-size: 12px; font-weight: 700; color: var(--brown-mid); margin-bottom: 6px; }
.mpesa-detail { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1.7; }
.mpesa-detail strong { color: #fff; font-weight: 800; }

/* === STUDIO === */
.studio { background: var(--cream); padding: 80px 40px; }

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.studio-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.studio-feat { display: flex; align-items: flex-start; gap: 12px; }

.studio-feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brown-mid);
  flex-shrink: 0;
  margin-top: 5px;
}

.studio-feat-text { font-size: 13px; color: var(--text-mid); line-height: 1.55; }

.studio-cta {
  background: var(--navy);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 2px solid var(--brown-mid);
}

.studio-cta h3 { font-size: 18px; font-weight: 800; color: #fff; }
.studio-cta p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.65; }

.studio-btn {
  background: var(--brown-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 24px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.studio-btn:hover { background: var(--brown); }

/* === GALLERY === */
.gallery { background: var(--warm-white); padding: 80px 40px; }

.gallery-grid {
  columns: 4 180px;
  column-gap: 14px;
  gap: 14px;
  margin-bottom: 20px;
}

.g-tile {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 0;
}

.g-tile.tall img { aspect-ratio: 4 / 5; }
.g-tile.wide img { aspect-ratio: 16 / 10; }

.g-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* === CONTACT === */
.contact { background: var(--cream); padding: 80px 40px; }

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

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

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-light);
  border: 1px solid #B8C5E0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

.contact-item-value { font-size: 14px; font-weight: 700; color: var(--navy); }
.contact-item-value a { color: var(--brown); text-decoration: none; }
.contact-item-value a:hover { color: var(--brown-dark); }

.map-box {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
}

/* === FORMS === */
.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
}

.form-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.form-card p { font-size: 13px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.6; }

.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

.form-btn:hover { background: var(--navy-mid); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  display: none;
}

.form-msg.success { display: block; background: var(--navy-light); color: var(--navy-mid); }
.form-msg.error { display: block; background: var(--brown-light); color: var(--brown-dark); }

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  padding: 52px 40px 24px;
  border-top: 3px solid var(--brown-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-logo { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.footer-insta { color: var(--brown-mid) !important; text-decoration: none; font-weight: 700; }
.footer-heading { font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-link { display: block; font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-link:hover { color: var(--brown-mid); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: block; }

  .hero-title { font-size: 30px; }
  .hero { padding: 60px 24px; }
  .hero-info-row { flex-direction: column; gap: 10px; }

  .about, .programs, .church, .school,
  .outreach, .studio, .gallery, .home-links,
  .contact, .footer { padding: 60px 24px; }

  .about-grid, .school-grid, .founders-row,
  .contact-grid, .footer-grid, .forms-grid,
  .prog-grid, .studio-grid,
  .partners-grid, .home-link-grid { grid-template-columns: 1fr; }

  .church-grid, .out-grid { grid-template-columns: 1fr; }
  .leaders-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { columns: 2 140px; }
  .g-tile.tall img, .g-tile.wide img { aspect-ratio: 4 / 3; }

  .enroll-banner { flex-direction: column; text-align: center; }
  .section-title { font-size: 26px; }
}

/* === MULTI-PAGE EXTRAS === */

/* Page hero (used on programs.html and school.html) */
.page-hero {
  background: var(--navy);
  padding: 72px 40px 64px;
  border-bottom: 3px solid var(--brown-mid);
}

.page-hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-title span { color: var(--brown-mid); }

.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  max-width: 560px;
}

/* Section backgrounds for inner pages */
.sec-cream { background: var(--cream); padding: 72px 40px; }
.sec-white { background: var(--warm-white); padding: 72px 40px; }
.sec-navy  { background: var(--navy); padding: 72px 40px; }

/* Program detail grid */
.prog-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Program CTA link */
.prog-cta-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  text-decoration: none;
}

.prog-cta-link:hover { color: var(--brown-dark); }

/* Outreach pills on programs page */
.prog-outreach-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.out-pill {
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.15s;
}

.out-pill:hover { background: rgba(255,255,255,0.2); }

.prog-outreach-note {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.prog-outreach-note a {
  color: var(--brown-mid);
  text-decoration: none;
  font-weight: 700;
}

/* Grade cards on school page */
.grades-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.grade-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.grade-card-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.grade-card-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 8px;
}

.grade-card-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Enroll section on school page */
.school-enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.enroll-info-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.15);
}

.enroll-info-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.enroll-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.enroll-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.enroll-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brown-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enroll-step-text {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.55;
  padding-top: 4px;
}

.enroll-contact-note {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.9;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.enroll-contact-note a {
  color: var(--brown-mid);
  text-decoration: none;
  font-weight: 700;
}

/* Responsive for inner pages */
@media (max-width: 768px) {
  .page-hero { padding: 60px 24px 48px; }
  .page-hero-title { font-size: 30px; }
  .sec-cream, .sec-white, .sec-navy { padding: 60px 24px; }
  .prog-detail-grid { grid-template-columns: 1fr; }
  .grades-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .school-enroll-grid { grid-template-columns: 1fr; }
  .prog-outreach-row { flex-direction: column; }
}

/* === PROFILE SECTIONS (ELDERS / TEACHERS) === */
.profile-wrap {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.profile-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.profile-title span { color: var(--brown); }

.profile-sub {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 500px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.profile-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.profile-name { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.profile-role { font-size: 11px; color: var(--brown); font-weight: 700; margin-bottom: 6px; }
.profile-blurb { font-size: 11px; color: var(--text-soft); line-height: 1.4; }

.placeholder-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  background: var(--brown-light);
  color: var(--brown-dark);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.teacher-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid var(--border);
}

.teacher-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--navy-light);
  color: var(--navy-mid);
}

.teacher-name { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.teacher-role { font-size: 11px; color: var(--brown); font-weight: 700; }

/* === BUS ROUTES === */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.route-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid var(--border);
}

.route-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.route-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route-name { font-size: 14px; font-weight: 800; color: var(--navy); }

.route-stops {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.7;
}

.route-stops span { color: var(--brown); font-weight: 700; }

/* === NEWSLETTER === */
.nl-box {
  background: var(--navy);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 2px solid var(--brown-mid);
}

.nl-text h3 { font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.nl-text p { font-size: 13px; color: rgba(255,255,255,0.7); max-width: 340px; }

.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }

.nl-input {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 24px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  min-width: 200px;
  outline: none;
}

.nl-input::placeholder { color: rgba(255,255,255,0.5); }

.nl-btn {
  background: var(--brown-mid);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.nl-btn:hover { background: var(--brown); }
.nl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* === RESPONSIVE — PROFILES, ROUTES, NEWSLETTER === */
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: 1fr; }
  .nl-box { flex-direction: column; text-align: center; }
  .nl-form { width: 100%; justify-content: center; }
}

/* === GRADE JOURNEY TRACK === */
.journey-track {
  position: relative;
  padding: 20px 0 10px;
}

.journey-line {
  position: absolute;
  top: 48px;
  left: 34px;
  right: 34px;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.journey-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.journey-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 2px var(--border);
}

.journey-circle.c1 { background: var(--brown-light); color: var(--brown-dark); }
.journey-circle.c2 { background: var(--navy-light); color: var(--navy-mid); }

.journey-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.journey-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  max-width: 140px;
}

@media (max-width: 768px) {
  .journey-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }
  .journey-line { display: none; }
}

/* ============================================
   PLAYFUL VISUAL UPGRADE LAYER
   Adds color pops, rounder shapes, icon energy
   ============================================ */

:root {
  --sage: #7B9E87;
  --sage-light: #EAF2EC;
  --sage-dark: #3B6D11;
  --gold: #D4A853;
  --gold-light: #FBF0D9;
  --gold-dark: #7A5A10;
}

/* Rounder, bouncier corners everywhere */
.warm-card, .ch-card, .out-card, .partner-card,
.founder-card, .profile-card, .teacher-card,
.route-card, .grade-card, .form-card, .leader-card,
.studio-features, .enroll-info-card {
  border-radius: 20px !important;
}

.nav-cta, .enroll-btn, .studio-btn, .form-btn,
.out-link, .prog-cta-link, .out-pill, .nl-btn {
  border-radius: 26px !important;
}

/* Hero confetti shapes */
.hero-bg-shapes .shape {
  border-radius: 50% !important;
}

.shape.s1 { background: var(--gold) !important; opacity: 0.12 !important; }
.shape.s2 { background: var(--sage) !important; opacity: 0.14 !important; }
.shape.s3 { background: var(--brown-mid) !important; opacity: 0.16 !important; }

/* Hero eyebrow gets a gold pop */
.hero-eyebrow {
  background: var(--gold-light) !important;
  color: var(--gold-dark) !important;
  border-color: #EDD5A0 !important;
}

.hero-dot { background: var(--gold) !important; }

.hero-title span { color: var(--gold) !important; }

/* Stat numbers alternate colors for playful rhythm */
.hero-stats .stat-item:nth-child(1) .stat-num { color: var(--gold) !important; }
.hero-stats .stat-item:nth-child(2) .stat-num { color: var(--sage) !important; }
.hero-stats .stat-item:nth-child(3) .stat-num { color: var(--brown-mid) !important; }

/* Card icon circles pop with color */
.warm-card-icon.icon-green { background: var(--sage-light) !important; }
.warm-card-icon.icon-peach { background: var(--gold-light) !important; }

.ch-card:nth-child(1) { background: var(--brown-light) !important; border: none !important; }
.ch-card:nth-child(2) { background: var(--sage-light) !important; border: none !important; color: var(--text-mid); }
.ch-card:nth-child(3) { background: var(--gold-light) !important; border: none !important; }

.ch-card:nth-child(2) .ch-title { color: var(--navy) !important; }
.ch-card:nth-child(2) .ch-desc { color: var(--text-mid) !important; }
.ch-card:nth-child(1) .ch-title,
.ch-card:nth-child(3) .ch-title { color: var(--navy) !important; }
.ch-card:nth-child(1) .ch-desc,
.ch-card:nth-child(3) .ch-desc { color: var(--text-mid) !important; }

/* Service box gets a playful tilt accent */
.service-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid)) !important;
}

.service-icon {
  background: var(--gold) !important;
  transform: rotate(-6deg);
  border-radius: 18px !important;
}

.svc-badge {
  background: var(--sage) !important;
  color: #fff !important;
  transform: rotate(3deg);
}

/* Outreach cards get distinct color identities */
.out-card:nth-child(1) { background: rgba(212,168,83,0.12) !important; }
.out-card:nth-child(2) { background: rgba(123,158,135,0.14) !important; }
.out-card:nth-child(3) { background: rgba(196,149,106,0.14) !important; }

/* Program cards get color identity */
.prog-card:nth-of-type(2) { background: var(--sage-light) !important; }
.prog-card:nth-of-type(3) { background: var(--gold-light) !important; }
.prog-card:nth-of-type(4) { background: var(--brown-light) !important; }

/* Grade journey circles already alternate brown/navy — add gold and sage variety */
.journey-circle.c1:nth-of-type(odd) { background: var(--brown-light); color: var(--brown-dark); }
.journey-row:nth-child(1) .journey-card:nth-child(1) .journey-circle { background: var(--brown-light) !important; color: var(--brown-dark) !important; }
.journey-row:nth-child(1) .journey-card:nth-child(2) .journey-circle { background: var(--sage-light) !important; color: var(--sage-dark) !important; }
.journey-row:nth-child(1) .journey-card:nth-child(3) .journey-circle { background: var(--gold-light) !important; color: var(--gold-dark) !important; }
.journey-row:nth-child(1) .journey-card:nth-child(4) .journey-circle { background: var(--navy-light) !important; color: var(--navy-mid) !important; }
.journey-row:nth-child(2) .journey-card:nth-child(1) .journey-circle { background: var(--brown-light) !important; color: var(--brown-dark) !important; }
.journey-row:nth-child(2) .journey-card:nth-child(2) .journey-circle { background: var(--sage-light) !important; color: var(--sage-dark) !important; }
.journey-row:nth-child(2) .journey-card:nth-child(3) .journey-circle { background: var(--gold-light) !important; color: var(--gold-dark) !important; }
.journey-row:nth-child(2) .journey-card:nth-child(4) .journey-circle { background: var(--navy-light) !important; color: var(--navy-mid) !important; }

.journey-circle {
  box-shadow: 0 0 0 3px var(--border);
  transition: transform 0.2s;
}

.journey-circle:hover { transform: scale(1.08) rotate(-4deg); }

/* Enroll/CTA banners pop with gold */
.enroll-banner {
  background: var(--gold) !important;
  border-color: var(--navy) !important;
}

.enroll-text h3, .enroll-text p { color: var(--navy) !important; }
.enroll-btn { background: var(--navy) !important; color: #fff !important; }
.enroll-btn:hover { background: var(--navy-mid) !important; }

/* Newsletter box gold pop */
.nl-box { background: linear-gradient(135deg, var(--navy), var(--navy-mid)) !important; }

/* Studio CTA gold accent */
.studio-cta { background: linear-gradient(135deg, var(--navy), var(--navy-mid)) !important; }
.studio-btn { background: var(--gold) !important; color: var(--brown-dark) !important; }
.studio-btn:hover { background: var(--gold-dark) !important; color: #fff !important; }

/* Profile and teacher cards alternate accent colors */
.profile-card:nth-child(odd) .profile-photo { background: var(--brown-light) !important; color: var(--brown-dark) !important; }
.profile-card:nth-child(even) .profile-photo { background: var(--sage-light) !important; color: var(--sage-dark) !important; }

.teacher-card:nth-child(odd) .teacher-photo { background: var(--gold-light) !important; color: var(--gold-dark) !important; }
.teacher-card:nth-child(even) .teacher-photo { background: var(--navy-light) !important; color: var(--navy-mid) !important; }

/* Route cards get colorful number badges */
.route-card:nth-child(1) .route-num { background: var(--brown-mid) !important; }
.route-card:nth-child(2) .route-num { background: var(--sage) !important; }
.route-card:nth-child(3) .route-num { background: var(--gold) !important; }
.route-card:nth-child(4) .route-num { background: var(--navy-mid) !important; }
.route-card:nth-child(5) .route-num { background: var(--brown-mid) !important; }
.route-card:nth-child(6) .route-num { background: var(--sage) !important; }

/* Page hero gets confetti accents too */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.08;
  top: -60px; right: -40px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.1;
  bottom: -40px; left: 30px;
}

.page-hero-title span { color: var(--gold) !important; }

/* Cards lift slightly on hover for interactivity */
.warm-card, .ch-card, .out-card, .partner-card,
.founder-card, .profile-card, .teacher-card,
.route-card, .prog-card, .grade-card {
  transition: transform 0.18s, box-shadow 0.18s;
}

.warm-card:hover, .ch-card:hover, .out-card:hover,
.partner-card:hover, .founder-card:hover,
.profile-card:hover, .teacher-card:hover,
.route-card:hover, .prog-card:hover {
  transform: translateY(-3px);
}

/* Section eyebrows get rounder, friendlier pill shape with subtle border */
.sec-eyebrow-green, .sec-eyebrow-peach, .sec-eyebrow-white {
  border-radius: 24px !important;
}

/* Leader avatars in church section get color variety */
.leader-card:nth-child(1) .leader-av { background: var(--gold) !important; }
.leader-card:nth-child(2) .leader-av { background: var(--sage) !important; }
.leader-card:nth-child(3) .leader-av { background: var(--brown-mid) !important; }
.leader-card:nth-child(4) .leader-av { background: var(--gold) !important; }

/* Mpesa boxes get a friendlier rounded look */
.mpesa-box { border-radius: 16px !important; }
/* ============================================
   SITE UPDATES — Dropdown Nav / Footer Resources
   / Hero Action Buttons / Drawer Accordion
   Layers on top of style.css — link this file
   AFTER css/style.css on every page.
   ============================================ */

/* ---- Desktop dropdown nav ---- */
.nav-dropdown { position: relative; display: inline-flex; }

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-caret { font-size: 9px; opacity: 0.7; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ---- Mobile drawer accordion (details/summary) ---- */
.nav-drawer .drawer-group {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-drawer .drawer-group summary {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  padding: 11px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-drawer .drawer-group summary::-webkit-details-marker { display: none; }

.nav-drawer .drawer-group summary::after {
  content: '+';
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}

.nav-drawer .drawer-group[open] summary::after { content: '\2212'; }

.nav-drawer .drawer-group a {
  padding: 10px 22px 10px 36px !important;
  font-size: 14px !important;
}

/* ---- Footer: 4-column layout with Resources ---- */
.footer-grid.footer-grid-4 {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

/* ---- Hero action buttons (Home page: LMS / Enroll / Choir) ---- */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 26px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
  border: 1px solid transparent;
}

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

.hero-btn.hb-primary { background: var(--gold); color: var(--brown-dark); }
.hero-btn.hb-primary:hover { background: var(--gold-dark); color: #fff; }

.hero-btn.hb-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.hero-btn.hb-secondary:hover { background: rgba(255,255,255,0.18); }

.hero-btn.hb-tertiary { background: var(--sage); color: #fff; }
.hero-btn.hb-tertiary:hover { background: var(--sage-dark); }

/* ---- Newsletter archive cards (newsletter.html) ---- */
.nl-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.nl-archive-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--border);
}

.nl-archive-date {
  display: inline-block;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.nl-archive-title { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.nl-archive-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ---- LMS placeholder page ---- */
.lms-panel {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 2px dashed var(--border);
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.lms-panel .lms-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.lms-panel h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.lms-panel p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }

/* ---- Donate page ---- */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ---- Anchor-wrapped cards (clickable program/link cards) ---- */
a.prog-card, a.warm-card, a.ch-card, a.out-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.prog-card:hover, a.warm-card:hover { border-color: var(--gold); }

.card-arrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brown);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .footer-grid.footer-grid-4 { grid-template-columns: 1fr; }
  .nl-archive-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; }
}
.teacher-photo-img{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 3px solid var(--border);

}
.nav-cta {
  justify-self: end;
  width: fit-content;
}
.route-dropdown {
  margin-top: 8px;
}

.route-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 26px;
  cursor: pointer;
  list-style: none;
  margin-bottom: 24px;
  transition: background 0.15s;
}

.route-dropdown-toggle::-webkit-details-marker { display: none; }

.route-dropdown-toggle::after {
  content: '▾';
  font-size: 12px;
  color: var(--brown);
  transition: transform 0.2s;
}

.route-dropdown[open] .route-dropdown-toggle::after {
  transform: rotate(180deg);
}

.route-dropdown-toggle:hover {
  background: var(--cream);
}
