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

:root {
  --green: #3b7ca8;
  --green-mid: #5596c0;
  --blue: #4a6580;
  --sand: #c9a96e;
  --sand-light: #e8d5b0;
  --cream: #f7f3ed;
  --cream-dark: #ede8e0;
  --charcoal: #2c2c2c;
  --gray: #6b6b6b;
  --gray-light: #a8a8a8;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

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

@media (max-width: 768px) {
  html { scroll-behavior: auto; }
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 2rem; }
.section-cream { background: var(--cream); }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  display: block;
}
.eyebrow.light { color: var(--sand-light); }
.center { text-align: center; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-mid); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-sand {
  background: var(--sand);
  color: var(--white);
}
.btn-sand:hover { background: #b8934d; }

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}

/* --- Nav wave bottom edge --- */
.nav-wave {
  display: block;
  line-height: 0;
}
.nav-wave svg { display: block; width: 100%; }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
  white-space: nowrap;
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
nav > ul > li > a:hover {
  color: var(--green);
  background: rgba(59,124,168,0.14);
  border-radius: 6px;
  padding: 1rem 1.4rem;
  margin: -1rem -1.4rem;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  border: 1.5px solid var(--green);
  padding: 0.55rem 1.4rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--green); color: var(--white); }

/* === HERO === */
.hero {
  min-height: 88vh;
  background: var(--green);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6rem 2rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 1.5rem;
  display: block;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  max-width: 720px;
}

.hero h1 em {
  font-style: italic;
  color: var(--sand-light);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 2.75rem;
  line-height: 1.75;
}

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

/* === TRUST BAR === */
.trust-bar {
  background: var(--cream-dark);
}

.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  text-align: center;
}

.trust-item strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--gray);
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: #ccc7bd;
  flex-shrink: 0;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image-placeholder {
  aspect-ratio: 4/5;
  background: var(--cream-dark);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-text h2 {
  font-size: 2.6rem;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-text .btn { margin-top: 0.75rem; }

/* === PILLARS === */
.pillars-section {
  padding: 6rem 2rem;
  background: var(--green);
}

.pillars-section .eyebrow { color: var(--sand-light); }

.pillars-section h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 3.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.pillar {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
}

.pillar-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.12);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
}

.pillar p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* === PROGRAMS === */
#programs h2 {
  font-size: 2.4rem;
  color: var(--green);
  margin-bottom: 3rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  padding: 2.25rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--cream-dark);
  transition: box-shadow 0.2s, transform 0.2s;
}

.program-card:hover {
  box-shadow: 0 8px 32px rgba(45,74,62,0.1);
  transform: translateY(-2px);
}

.program-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 2rem;
  align-items: center;
}

.program-card-wide .program-age { grid-column: 1; }
.program-card-wide h3 { grid-row: 2; grid-column: 1; }
.program-card-wide p { grid-row: 1 / span 2; grid-column: 2; align-self: center; margin: 0; }

.program-age {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
  display: block;
}

.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.program-card p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
}

/* === UPK === */
.upk-section {
  background: var(--green);
  padding: 6rem 2rem;
}

.upk-inner {
  max-width: 820px;
}

.upk-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--sand);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.upk-section h2 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.upk-section p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.upk-section p strong { color: var(--white); }

.upk-stats {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.upk-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--sand-light);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === ENROLLMENT === */
.enrollment-section {
  background: #1a4a6e;
  padding: 7rem 2rem;
}

.enrollment-inner {
  max-width: 640px;
}

.enrollment-section h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.enrollment-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.4rem;
  color: var(--green);
  margin-bottom: 2rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.contact-detail span:last-child,
.contact-detail a {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.contact-detail a:hover { color: var(--green); }

/* === FORM === */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

/* === NAV ACTIVE STATE === */
nav a.nav-active { color: var(--green); font-weight: 600; }
a.logo { text-decoration: none; }

/* === NAV DROPDOWN === */
nav ul li { position: relative; padding-bottom: 0.75rem; margin-bottom: -0.75rem; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 210px;
  z-index: 200;
  padding: 0.4rem 0;
  list-style: none;
  flex-direction: column;
  gap: 0;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
nav ul li.has-dropdown.dropdown-open .nav-dropdown {
  display: flex;
}
.nav-dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--charcoal);
}
.nav-dropdown li a:hover {
  background: var(--cream);
  color: var(--green);
}

/* mobile: dropdown items shown inline under Programs */
.mobile-nav .mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}
.mobile-nav .mobile-sub.open { display: flex; }
.mobile-nav .mobile-sub li a {
  font-size: 0.85rem;
  padding: 0.4rem 0;
  border-bottom: none;
  color: var(--gray);
}
.mobile-nav li.has-mobile-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-dropdown-arrow { font-size: 0.75em; transition: transform 0.2s; }
li.has-mobile-dropdown.open .mobile-dropdown-arrow { transform: rotate(180deg); }

/* === PAGE HERO === */
.page-hero {
  background: var(--green);
  padding: 5rem 2rem 4rem;
}
.page-hero-content {
  max-width: 1120px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.5rem;
}
.page-hero h1 em { color: var(--sand-light); font-style: italic; }

/* === SECTION INTRO === */
.section-intro {
  max-width: 620px;
  margin: 0 auto 3rem;
  color: var(--gray);
  font-size: 1rem;
}

/* === SECTION GREEN === */
.section-green { background: var(--green); padding: 6rem 2rem; }
.section-green h2 { color: var(--white); }
.section-green p { color: rgba(255,255,255,0.72); }
.section-green p strong { color: var(--white); }

/* === CTA BLOCK === */
.cta-block { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-block h2 { font-size: 2.4rem; color: var(--green); margin-bottom: 1rem; }
.cta-block p { color: var(--gray); margin-bottom: 2rem; }
.section-green .cta-block h2 { color: var(--white); }
.section-green .cta-block p { color: rgba(255,255,255,0.82); }

/* === ABOUT PAGE === */
.about-story-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-story-text h2 { font-size: 2.4rem; color: var(--green); margin-bottom: 1.5rem; }
.about-story-text p { color: var(--gray); margin-bottom: 1.25rem; }
.about-story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--cream);
  border-radius: 4px;
}
.story-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.story-stat .stat-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--green); line-height: 1; }
.story-stat .stat-label { font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.07em; }

/* === MISSION === */
.mission-block { max-width: 760px; margin: 0 auto; text-align: center; }
.mission-block h2 { font-size: 2.2rem; color: var(--green); margin-bottom: 2rem; }
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--green);
  line-height: 1.7;
  border-left: 3px solid var(--sand);
  padding-left: 2rem;
  text-align: left;
}

/* === TEAM === */
.team-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.team-row-4-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0 2rem;
  box-sizing: border-box;
  margin-top: 2rem;
}
.team-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  max-width: 1440px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--cream);
  border-radius: 4px;
}
.team-photo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--cream-dark);
  border-radius: 50%;
}
.team-photo-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.12);
}
.team-info h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--green); margin-bottom: 0.25rem; }
.team-title { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sand); margin-bottom: 0.75rem; display: block; }
.team-bio { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* === PROGRAMS PAGE === */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cream-dark);
  margin-bottom: 3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-btn {
  padding: 1rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.program-detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}
.program-detail-age {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
}
.program-detail-text h2 { font-size: 2.4rem; color: var(--green); margin-bottom: 1.25rem; }
.program-detail-text h3 { font-size: 1.1rem; color: var(--green); margin: 1.75rem 0 0.75rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.program-detail-text p { color: var(--gray); margin-bottom: 1rem; line-height: 1.8; }
.program-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.program-list li { color: var(--gray); font-size: 0.95rem; padding-left: 1.25rem; position: relative; }
.program-list li::before { content: '–'; position: absolute; left: 0; color: var(--sand); }

.program-detail-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.program-photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.program-photo-placeholder img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.program-info-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.info-row { display: flex; justify-content: space-between; font-size: 0.9rem; gap: 1rem; }
.info-label { font-weight: 600; color: var(--charcoal); }
.info-row span:last-child { color: var(--gray); text-align: right; }

.upk-callout {
  background: var(--green);
  border-radius: 4px;
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.upk-callout-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  width: fit-content;
}
.upk-callout p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; }
.upk-callout p strong { color: var(--white); }

/* === ENROLLMENT PAGE === */
.process-steps { display: flex; flex-direction: column; gap: 0; margin-top: 3rem; }
.process-step {
  display: flex;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: flex-start;
}
.process-step:first-child { border-top: 1px solid var(--cream-dark); }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--sand);
  line-height: 1;
  min-width: 60px;
  font-weight: 700;
}
.step-content h3 { font-size: 1.2rem; color: var(--green); margin-bottom: 0.5rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.step-content p { color: var(--gray); font-size: 0.95rem; line-height: 1.75; }

.dates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.dates-card {
  background: var(--white);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid var(--cream-dark);
}
.dates-card h3 { font-size: 1rem; color: var(--green); margin-bottom: 1.25rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.date-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.6rem 0; border-bottom: 1px solid var(--cream-dark); gap: 1rem; }
.date-row:last-child { border-bottom: none; }
.date-label { color: var(--gray); white-space: nowrap; }
.date-val { font-weight: 600; color: var(--green); }

.upk-enrollment-block { max-width: 900px; }
.upk-enrollment-block h2 { font-size: 2.4rem; margin-bottom: 1.25rem; }
.upk-enrollment-block > p { margin-bottom: 2.5rem; }
.upk-enrollment-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.upk-detail-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 1.5rem;
}
.upk-detail-card h3 { font-size: 0.95rem; color: var(--sand-light); font-family: 'DM Sans', sans-serif; font-weight: 600; margin-bottom: 0.75rem; }
.upk-detail-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.upk-note {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.upk-note p { color: rgba(255,255,255,0.72); font-size: 0.95rem; flex: 1; min-width: 280px; }
.upk-note p strong { color: var(--white); }

/* === FORM FEEDBACK === */
.form-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #f0f7f4;
  border: 1px solid #a8d5c2;
  border-radius: 6px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  animation: slideIn 0.35s ease;
}
.form-success-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}
.form-success-banner strong { color: var(--green); display: block; margin-bottom: 0.25rem; }
.form-success-banner p { color: var(--gray); font-size: 0.92rem; margin: 0; }

.form-error-banner {
  background: #fdf2f2;
  border: 1px solid #f5c6c6;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  color: #c0392b;
  animation: slideIn 0.3s ease;
}
.form-error-banner a { color: #c0392b; font-weight: 600; }

.field-error {
  display: none;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.3rem;
}
.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #e74c3c;
}
.form-group.has-error .field-error { display: block; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === CONTACT PAGE === */
.map-embed {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}

.map-placeholder {
  margin-top: 2rem;
  height: 220px;
  background: var(--cream-dark);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* select styling */
.form-group select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.form-group select:focus { outline: none; border-color: var(--green); }

/* === RESPONSIVE — NEW PAGES === */
@media (max-width: 900px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .team-row-3 { grid-template-columns: 1fr; }
  .team-row-4 { grid-template-columns: repeat(2, 1fr); }
  .program-detail-grid { grid-template-columns: 1fr; }
  .dates-grid { grid-template-columns: 1fr; }
  .upk-enrollment-details { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2.4rem; }
}

@media (max-width: 600px) {
  .team-row-4 { grid-template-columns: 1fr; }
  .team-row-4-wrap { padding: 0 1.25rem; }
  .page-hero h1 { font-size: 1.9rem; }
  .page-hero { padding: 3.5rem 1.5rem 3rem; }

  .about-story-stats { grid-template-columns: 1fr 1fr; }
  .process-step { flex-direction: column; gap: 0.75rem; }
  .upk-note { flex-direction: column; }
}

/* === HAMBURGER / MOBILE NAV === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.25rem;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  transition: max-height 0.3s ease;
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav ul { list-style: none; padding: 0.5rem 2rem 1.25rem; }
.mobile-nav ul li a {
  display: block;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid var(--cream-dark);
  transition: color 0.15s;
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--green); }
.mobile-nav ul li a.nav-active { color: var(--green); font-weight: 600; }
.mobile-nav-cta { color: var(--green) !important; font-weight: 700 !important; }

/* === FOOTER === */
footer {
  background: var(--charcoal);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

footer .logo-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .program-card-wide { grid-column: span 2; grid-template-columns: 1fr; }
  .program-card-wide p { grid-column: 1; grid-row: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .trust-inner { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  .trust-divider { display: none; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 600px) {
  /* Hamburger */
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  /* Nav: hide desktop links, hamburger replaces them */
  nav ul { display: none; }
  .nav-cta { display: none; }

  /* Hero */
  .hero { min-height: unset; }
  .hero h1 { font-size: 2.2rem; }
  .hero-content { padding: 4rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; text-align: center; display: block; }

  /* Pillars */
  .pillars { grid-template-columns: 1fr; }

  /* Programs grid: force 1 column even when a card has inline grid-column: span 2 */
  .programs-grid { grid-template-columns: 1fr !important; }
  .programs-grid > * { grid-column: auto !important; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Trust bar */
  .trust-inner { gap: 1rem; }
  .trust-item { min-width: 45%; }

  /* Reduce section padding */
  .section { padding: 4rem 1.5rem; }
  .container { padding: 0 1.5rem; }
  .section-green { padding: 4rem 1.5rem; }
  .upk-section { padding: 4rem 1.5rem; }
  .enrollment-section { padding: 5rem 1.5rem; }
  .pillars-section { padding: 4rem 1.5rem; }

  /* Scale down large headings */
  .about-text h2 { font-size: 1.9rem; }
  .upk-section h2 { font-size: 1.9rem; }
  .enrollment-section h2 { font-size: 2.1rem; }
  #programs h2 { font-size: 1.9rem; }
  .pillars-section h2 { font-size: 1.9rem; }
  .contact-info h2 { font-size: 1.9rem; }

  /* UPK stats: stack vertically on narrow screens */
  .upk-stats { flex-direction: column; gap: 1.5rem; padding: 1.5rem 0; }
}

/* =====================================================
   HOMEPAGE V2 ENHANCEMENTS
===================================================== */

/* --- Scroll fade-up animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }

/* --- Hero: faded SSCC background text --- */
.hero-bg-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(6rem, 12vw, 11rem);
  line-height: 1;
  color: rgba(255,255,255,0.06);
  bottom: 2rem;
  right: 2rem;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* --- Hero: floating photo bubbles --- */
.hero-bubbles {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}
.bubble-main {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(201,169,110,0.55);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  animation: floatMain 6s ease-in-out infinite;
  position: relative;
}
.bubble-main img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bubble-sm {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201,169,110,0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  position: absolute;
}
.bubble-sm img { width: 100%; height: 100%; object-fit: cover; }
.bubble-sm-1 { top: -60px; right: -30px; animation: floatSm 7s ease-in-out infinite; }
.bubble-sm-2 { bottom: -50px; left: -40px; animation: floatSm 8s ease-in-out infinite 1.5s; }
@keyframes floatMain {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes floatSm {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-8px) rotate(3deg); }
}
@media (max-width: 900px) { .hero-bubbles { display: none; } }

/* --- Hero: text load animations --- */
.hero-eyebrow { animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
.hero h1      { animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.45s both; }
.hero-sub     { animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.65s both; }
.hero-actions { animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) 0.85s both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Wave divider (hero → trust bar) --- */
.wave-wrap {
  display: block;
  line-height: 0;
}
.wave-wrap svg { display: block; width: 100%; }

/* --- About section: real photo support --- */
.about-section-wrap { position: relative; overflow: hidden; }
.about-image-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.about-image-placeholder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Pillars: decorative background letter --- */
.pillars-section { position: relative; overflow: hidden; }
.pillars-bg-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(14rem, 35vw, 28rem);
  line-height: 1;
  color: rgba(45,74,62,0.04);
  top: 50%;
  right: -4rem;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}
.pillar { position: relative; z-index: 1; }

/* --- Program cards: decorative letter watermarks --- */
.program-card { position: relative; overflow: hidden; }
.program-card > * { position: relative; z-index: 1; }
.program-card-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  color: rgba(45,74,62,0.08);
  top: 1rem;
  right: 1rem;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
  z-index: 0;
}

/* --- Enrollment: decorative background letter --- */
.enrollment-section { position: relative; overflow: hidden; }
.enrollment-bg-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(12rem, 28vw, 22rem);
  line-height: 1;
  color: rgba(45,74,62,0.05);
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}
