/* =============================================
   LIV DIDO — COMPREHENSIVE SEX EDUCATION
   Style Sheet
   ============================================= */

/* ---- Variables ---- */
:root {
  --primary:       #3B7A6E;
  --primary-dark:  #2A5C52;
  --primary-light: #EBF5F2;
  --accent:        #E07058;
  --accent-dark:   #C5573D;
  --accent-light:  #FDEEE9;
  --gold:          #F5C842;
  --text:          #1C2E2B;
  --text-muted:    #5B726F;
  --bg:            #F8FAF9;
  --white:         #FFFFFF;
  --border:        #D8E8E5;
  --shadow-sm:     0 2px 12px rgba(28,46,43,.07);
  --shadow:        0 4px 28px rgba(28,46,43,.10);
  --shadow-lg:     0 8px 52px rgba(28,46,43,.14);
  --r-sm:          8px;
  --r:             16px;
  --r-lg:          24px;
  --nav-h:         72px;
  --ff-head:       'Playfair Display', Georgia, serif;
  --ff-body:       'Nunito', system-ui, -apple-system, sans-serif;
  --ease:          cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary-dark); }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); }
h4 { font-size: 1.05rem; font-family: var(--ff-body); font-weight: 700; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--accent); }

.lead-text { font-size: 1.1rem; line-height: 1.75; color: var(--text-muted); }

/* ---- Layout ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 14px; }

/* ---- Eyebrow Labels ---- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.light-eyebrow { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--ff-body);
  font-size: .97rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  gap: 8px;
}

.btn-coral {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-coral:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,112,88,.35);
}

.btn-teal {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-teal:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,122,110,.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-teal {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline-teal:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ---- Scroll Animations ---- */
.animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.animate.in-view {
  opacity: 1;
  transform: none;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(28,46,43,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: color .3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav.scrolled .nav-logo { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.nav.scrolled .nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
}
.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(224,112,88,.35) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #4E9386 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 24px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}
.blob-1 { width: 580px; height: 580px; top: -160px; right: -80px; background: rgba(255,255,255,.04); }
.blob-2 { width: 380px; height: 380px; bottom: -80px; left: -40px; background: rgba(245,200,66,.07); }
.blob-3 { width: 260px; height: 260px; top: 35%; right: 18%; background: rgba(224,112,88,.08); }

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.22);
}

.hero h1 { color: var(--white); margin-bottom: 22px; text-shadow: 0 2px 10px rgba(0,0,0,.1); }
.hero-sub {
  font-size: 1.18rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--white);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.trust-bar .wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; color: var(--primary); }
.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: center;
}

.photo-frame {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-text h2 { margin-bottom: 12px; }
.about-text .lead-text { margin-bottom: 18px; }

.credential {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.credential svg { flex-shrink: 0; color: var(--primary); }
.about-text p { color: var(--text-muted); }
.about-text .btn { margin-top: 12px; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works { background: var(--primary-light); }

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step-connector {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  padding-top: 52px;
}
.step-num {
  font-family: var(--ff-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 12px;
  /* Painted behind the number for the teal outline effect */
  -webkit-text-stroke: 2px var(--primary);
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* =============================================
   YOUTH PROGRAMS
   ============================================= */
.youth-programs { background: var(--white); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 20px; /* space for featured badge */
  align-items: stretch;
}

.program-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.program-card.featured {
  background: var(--white);
  border-color: var(--primary);
  border-width: 2px;
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 18px;
  border-radius: 50px;
  white-space: nowrap;
}

.program-format-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 50px;
  width: fit-content;
}
.coral-tag {
  color: var(--accent);
  background: var(--accent-light);
}

.program-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.teal-icon { background: var(--primary-light); color: var(--primary); }
.coral-icon { background: var(--accent-light); color: var(--accent); }

.program-card h3 { margin: 0; }
.program-meta {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.program-card > p { color: var(--text-muted); flex: 1; margin: 0; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.feature-list li {
  font-size: .88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.feature-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  font-size: .82rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.program-card .btn { align-self: flex-start; margin-top: auto; }

.programs-note {
  text-align: center;
  margin-top: 36px;
  font-size: .88rem;
  color: var(--text-muted);
  font-style: italic;
}

/* =============================================
   PARENT PROGRAMS
   ============================================= */
.parent-programs { background: var(--bg); }

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

.parent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.parent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.parent-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.parent-card h3 { margin: 0; }
.parent-card p { color: var(--text-muted); flex: 1; font-size: .96rem; margin: 0; }
.parent-card .btn { align-self: flex-start; margin-top: auto; }

/* Consultation highlight card */
.consult-card {
  background: var(--primary-light);
  border: 2px solid var(--primary);
  border-radius: var(--r);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: box-shadow .25s var(--ease);
}
.consult-card:hover { box-shadow: var(--shadow-lg); }
.consult-icon {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.consult-text { flex: 1; }
.consult-text h3 { margin-bottom: 10px; }
.consult-text p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.consult-btn { flex-shrink: 0; }

/* =============================================
   WHY IT MATTERS
   ============================================= */
.why-matters {
  background: var(--text);
  color: var(--white);
}
.light-h2 { color: var(--white); }
.light-text { color: rgba(255,255,255,.7); }

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

.why-left { padding-top: 8px; }

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--gold);
  font-size: .94rem;
  color: rgba(255,255,255,.82);
}
.stat-arrow {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1;
}

.why-right {
  background: rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,.1);
}
.approach-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.approach-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.approach-item:last-child { margin-bottom: 0; }
.check-icon {
  width: 26px;
  height: 26px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.approach-item strong {
  display: block;
  color: var(--white);
  font-size: .98rem;
  margin-bottom: 4px;
}
.approach-item p {
  color: rgba(255,255,255,.62);
  font-size: .88rem;
  margin: 0;
}

/* =============================================
   FAQ
   ============================================= */
.faq { background: var(--primary-light); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--r);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1rem;
}
.faq-item p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* =============================================
   ASK ANONYMOUSLY
   ============================================= */
.ask-section { background: var(--accent-light); }

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

.ask-form-wrap {
  background: var(--white);
  border-radius: var(--r);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ask-form-wrap h3 { margin-bottom: 6px; }
.ask-sub {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.ask-form .form-field { margin-bottom: 20px; }
.ask-form textarea { min-height: 148px; }

.substack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.substack-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 36px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.substack-logo {
  width: 46px;
  height: 46px;
  background: #FF6719;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--ff-head);
  flex-shrink: 0;
}
.substack-card h3 { margin: 0; }
.substack-card p { color: var(--text-muted); font-size: .94rem; margin: 0; }
.substack-card p + p { margin-top: 8px; }

.substack-subscribe {
  background: var(--primary-light);
  border-radius: var(--r);
  padding: 28px 32px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.subscribe-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.subscribe-text p {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.contact-left h2 { margin-bottom: 14px; }
.contact-left > p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .96rem;
  color: var(--text-muted);
}
.contact-line svg { flex-shrink: 0; color: var(--primary); }
.contact-line a { color: var(--primary); font-weight: 700; }
.contact-line a:hover { color: var(--primary-dark); }

.contact-assurance {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
}
.contact-assurance p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* Contact Form */
.contact-form {
  background: var(--bg);
  border-radius: var(--r);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field:last-of-type { margin-bottom: 24px; }

.form-field label {
  display: block;
  font-size: .86rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: .97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B726F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,122,110,.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #aac0be; }
.form-field textarea { resize: vertical; min-height: 112px; }

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 52px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
}
.footer-brand strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand p { font-size: .88rem; margin-bottom: 2px; }
.footer-location { font-size: .82rem; margin-top: 4px; opacity: .7; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.footer-nav a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  font-weight: 600;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  padding-top: 22px;
  font-size: .8rem;
  text-align: center;
  opacity: .5;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { order: -1; }
  .photo-placeholder { max-width: 320px; margin: 0 auto; }

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

  .why-grid { grid-template-columns: 1fr; gap: 40px; }

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

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section-pad { padding: 64px 0; }
  .wrap { padding: 0 16px; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a {
    color: var(--text-muted) !important;
    padding: 12px 16px !important;
  }
  .nav-links a:hover {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
  }
  .nav-cta { text-align: center; border-radius: var(--r-sm) !important; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; }

  /* Trust bar */
  .trust-bar .wrap { gap: 16px; }
  .trust-divider { display: none; }
  .trust-item { font-size: .8rem; }

  /* Steps */
  .steps-row {
    flex-direction: column;
    gap: 16px;
  }
  .step-connector { display: none; }

  /* Parent grid to 1-col */
  .parent-grid { grid-template-columns: 1fr; }

  /* Ask grid */
  .ask-grid { grid-template-columns: 1fr; }
  .ask-form-wrap { padding: 28px 20px; }
  .substack-subscribe { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Consult card */
  .consult-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 20px;
  }
  .consult-btn { width: 100%; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-nav { gap: 8px 16px; }

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
}

/* =============================================
   STUDENTS HERO — vibrant variant
   ============================================= */
.hero-students {
  background: linear-gradient(145deg, #C5573D 0%, var(--accent) 40%, #F5A623 100%);
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; }
.shape-circle {
  border-radius: 50%;
}
.shape-1 {
  width: 340px; height: 340px;
  top: -80px; right: 5%;
  background: rgba(255,255,255,.06);
  animation: float-slow 9s ease-in-out infinite;
}
.shape-2 {
  width: 200px; height: 200px;
  bottom: 80px; left: 8%;
  background: rgba(255,255,255,.08);
  animation: float-slow 12s ease-in-out infinite reverse;
}
.shape-donut {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.07);
  top: 30%; right: 20%;
  animation: float-slow 8s ease-in-out infinite 2s;
}
.shape-blob {
  width: 260px; height: 220px;
  background: rgba(255,255,255,.05);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  bottom: -40px; right: 15%;
  animation: blob-morph 14s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-22px); }
}
@keyframes blob-morph {
  0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  50% { border-radius: 40% 60% 30% 70% / 60% 40% 50% 50%; }
}

/* =============================================
   TOPIC BUBBLES
   ============================================= */
.topics-section {
  background: var(--white);
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--border);
}
.topics-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.topics-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}
.topic-bubble {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  cursor: default;
}
.topic-bubble:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bubble-coral { background: var(--accent-light); color: var(--accent-dark); }
.bubble-teal  { background: var(--primary-light); color: var(--primary-dark); }
.bubble-gold  { background: #FEF7DC; color: #8A6A00; }

/* =============================================
   PROGRAM QUIZ
   ============================================= */
.quiz-section { background: var(--primary-light); }

.quiz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 52px 48px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-question {
  font-family: var(--ff-head);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 28px;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-opt {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 16px 22px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all .2s var(--ease);
}
.quiz-opt:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-dark);
  transform: translateX(4px);
}

.quiz-result {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.quiz-result-icon { font-size: 2.4rem; line-height: 1; }
.quiz-result-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.quiz-result-name {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0;
}
.quiz-result-desc { color: var(--text-muted); margin: 0; font-size: .97rem; max-width: 480px; }
.quiz-result-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.quiz-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background .25s var(--ease);
}
.quiz-dot.active { background: var(--accent); }

.hidden { display: none !important; }

/* =============================================
   ACCORDION FAQ
   ============================================= */
.accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.accordion-item:hover { box-shadow: var(--shadow); }

.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color .2s var(--ease);
}
.accordion-btn:hover { color: var(--primary); }
.accordion-btn[aria-expanded="true"] { color: var(--primary); }

.accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-light);
  position: relative;
  transition: background .2s var(--ease), transform .3s var(--ease);
}
.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 10px; height: 2px; }
.accordion-icon::after  { width: 2px; height: 10px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

.accordion-btn[aria-expanded="true"] .accordion-icon { background: var(--primary); transform: rotate(45deg); }
.accordion-btn[aria-expanded="true"] .accordion-icon::before,
.accordion-btn[aria-expanded="true"] .accordion-icon::after { background: var(--white); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease), padding .35s var(--ease);
  padding: 0 28px;
}
.accordion-body.open {
  max-height: 400px;
  padding: 0 28px 22px;
}
.accordion-body p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* =============================================
   CHAT BUBBLES (ask section)
   ============================================= */
.sample-questions {
  margin-bottom: 48px;
}
.sample-qs-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.chat-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.chat-bubble {
  padding: 14px 22px;
  border-radius: 20px;
  font-size: .97rem;
  font-weight: 600;
  color: var(--text);
  max-width: 82%;
  line-height: 1.5;
  font-style: italic;
}
.bubble-left {
  background: var(--white);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.bubble-right {
  background: var(--accent);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* =============================================
   SCHOOLS PAGE
   ============================================= */
.hero-schools {
  background: linear-gradient(145deg, #1A4A42 0%, var(--primary-dark) 50%, var(--primary) 100%);
}

/* School intro */
.school-intro { background: var(--white); }
.school-intro-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
}
.school-intro-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.school-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.school-stat-card:hover { box-shadow: var(--shadow); }
.school-stat-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.school-stat-card strong { font-size: 1rem; color: var(--text); }
.school-stat-card p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* Pillars grid */
.school-programs { background: var(--bg); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.pillar-card {
  border-radius: var(--r-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pillar-students { background: linear-gradient(145deg, var(--accent-dark), var(--accent)); }
.pillar-parents  { background: linear-gradient(145deg, var(--primary-dark), var(--primary)); }
.pillar-teachers { background: linear-gradient(145deg, #5A4A8A, #7B68C8); }

.pillar-num {
  font-family: var(--ff-head);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  line-height: 1;
  position: absolute;
  top: 16px; right: 24px;
}
.pillar-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar-card h3 { color: var(--white); margin: 0; }
.pillar-card > p { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0; flex: 1; }
.pillar-card .feature-list li { color: rgba(255,255,255,.8); }
.pillar-card .feature-list li::before { color: rgba(255,255,255,.9); }

.school-custom-note {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.school-custom-icon { flex-shrink: 0; margin-top: 2px; }
.school-custom-note p { color: var(--text-muted); font-size: .93rem; margin: 0; font-style: italic; }

/* Responsive — schools */
@media (max-width: 1024px) {
  .school-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid { grid-template-columns: 1fr; }
}

/* Responsive — students additions */
@media (max-width: 768px) {
  .quiz-card { padding: 36px 24px; }
  .chat-bubble { max-width: 92%; }
}

/* =============================================
   GATEWAY PAGE
   ============================================= */
.gateway-hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, #4E9386 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 48px) 24px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gateway-top {
  max-width: 620px;
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
}

.gateway-top h1 { color: var(--white); margin-bottom: 18px; }
.gateway-top > p {
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.gateway-label {
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 0;
}

.gateway-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.gateway-panel {
  background: rgba(255,255,255,.09);
  border: 2px solid rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  padding: 52px 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  text-decoration: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer;
}
.gateway-panel:hover {
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.42);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  color: inherit;
}

.gateway-panel-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.gateway-students .gateway-panel-icon { background: var(--accent); }
.gateway-parents .gateway-panel-icon { background: rgba(255,255,255,.2); }
.gateway-schools .gateway-panel-icon { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3); }

.gateway-split-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }

.gateway-panel h2 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  margin: 0;
}
.gateway-panel > p {
  color: rgba(255,255,255,.78);
  font-size: .97rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.gateway-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 800;
  font-size: .93rem;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  margin-top: 6px;
  transition: all .2s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.gateway-students .gateway-cta-link {
  background: var(--accent);
  border-color: var(--accent);
}
.gateway-students:hover .gateway-cta-link {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.gateway-parents:hover .gateway-cta-link {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.55);
}

/* ---- Audience switch link in nav ---- */
.nav-audience-switch { font-style: italic !important; }
.nav.scrolled .nav-audience-switch { color: var(--primary) !important; }

@media (max-width: 900px) {
  .gateway-split-3 { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 680px) {
  .gateway-split { grid-template-columns: 1fr; max-width: 460px; }
  .gateway-panel { padding: 40px 28px 32px; }
  .gateway-top { margin-bottom: 36px; }
}
