/* ============================================================
   about.css — Missahoe Montessori School
   Fully responsive: desktop · tablet · mobile
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: #2d2d2d;
  background: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
p { margin-bottom: 0; }

/* ── VARIABLES ── */
:root {
  --teal:    #58d4f0;
  --gold:    #cfa900;
  --gold-dk: #a88200;
  --dark:    #0b3d2e;
  --text:    #444;
  --light:   #f7fbfd;
  --radius:  14px;
  --shadow:  0 8px 32px rgba(0,0,0,0.08);
  --header-h: 70px;
}

/* ── CONTAINER ── */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(88, 212, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(88, 212, 240, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 48px; height: 48px; object-fit: contain; }
.logo-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.logo-tag {
  display: block;
  font-size: 0.7rem;
  color: #333;
  font-weight: 400;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--gold-dk); }
.btn-enroll {
  background: var(--gold);
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-enroll:hover { background: var(--gold-dk) !important; }

/* ─────────────────────────────────────────────
   HAMBURGER
───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  transition: background 0.25s;
}
.hamburger:hover { background: rgba(207,169,0,0.2); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 3px;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1),
              opacity   0.25s ease,
              width     0.25s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   MOBILE DRAWER
───────────────────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 0 0 30px;
  box-shadow: -6px 0 40px rgba(0,0,0,0.14);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23,1,0.32,1);
  overflow-y: auto;
}
.nav-drawer.open {
  transform: translateX(0);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 10px;
}
.drawer-brand img { width: 38px; }
.drawer-brand span { font-weight: 700; font-size: 0.95rem; color: #1a1a1a; }

.nav-drawer a {
  display: block;
  padding: 13px 24px;
  font-size: 0.97rem;
  font-weight: 500;
  color: #333;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  opacity: 0;
  transform: translateX(16px);
  transition: background 0.2s, color 0.2s,
              opacity 0.35s ease, transform 0.35s ease;
}
.nav-drawer.open a { opacity: 1; transform: translateX(0); }
.nav-drawer.open a:nth-child(2) { transition-delay: 0.06s; }
.nav-drawer.open a:nth-child(3) { transition-delay: 0.10s; }
.nav-drawer.open a:nth-child(4) { transition-delay: 0.14s; }
.nav-drawer.open a:nth-child(5) { transition-delay: 0.18s; }
.nav-drawer.open a:nth-child(6) { transition-delay: 0.22s; }
.nav-drawer.open a:nth-child(7) { transition-delay: 0.26s; }
.nav-drawer.open a:nth-child(8) { transition-delay: 0.30s; }

.nav-drawer a:hover { background: #f5fbfe; color: var(--gold); padding-left: 30px; }
.nav-drawer a.active { color: var(--gold); font-weight: 600; background: rgba(207,169,0,0.07); }

.drawer-enroll {
  margin: 14px 24px 0 !important;
  padding: 13px 24px !important;
  background: var(--gold) !important;
  color: #fff !important;
  border-radius: 10px !important;
  text-align: center !important;
  font-weight: 600 !important;
}
.drawer-enroll:hover { background: var(--gold-dk) !important; padding-left: 24px !important; }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 82vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 720px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 14px 0 16px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  opacity: 0.9;
}

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
}
.badge-gold { background: rgba(207,169,0,0.22); color: #cfa900; }
.badge-teal { background: rgba(88,212,240,0.18); color: #0a8faa; }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0 12px;
}
.section-header p {
  color: var(--text);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.97rem;
}

/* ─────────────────────────────────────────────
   SPLIT GRID (History + Montessori)
───────────────────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin: 10px 0 16px;
}
.split-text p {
  color: var(--text);
  font-size: 0.97rem;
  margin-bottom: 14px;
}

.split-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Pills (Montessori features) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.pills span {
  background: rgba(88,212,240,0.15);
  color: #0a8faa;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
}

/* ─────────────────────────────────────────────
   LEADERSHIP GRID
───────────────────────────────────────────── */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.leader-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1),
              box-shadow 0.38s ease;
}
.leader-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.13);
}

.leader-img-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #e8f4f8;
}
.leader-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.23,1,0.32,1);
}
.leader-card:hover .leader-img-wrap img { transform: scale(1.06); }

/* Quote overlay */
.leader-quote {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,61,46,0.88) 0%, rgba(11,61,46,0.1) 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px 18px;
  color: #fff;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
  opacity: 0;
  transition: opacity 0.38s ease;
}
.leader-card:hover .leader-quote { opacity: 1; }

/* Accent line on hover */
.leader-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.leader-card:hover .leader-img-wrap::after { transform: scaleX(1); }

.leader-body {
  padding: 18px 20px 22px;
}
.role-tag {
  display: inline-block;
  background: rgba(207,169,0,0.1);
  color: var(--gold-dk);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}
.leader-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.leader-body p {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.55;
}

/* ─────────────────────────────────────────────
   MISSION GRID
───────────────────────────────────────────── */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mission-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mission-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.11);
}
.mission-icon { font-size: 2.4rem; margin-bottom: 16px; }
.mission-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.mission-card p { font-size: 0.87rem; color: var(--text); }

/* ─────────────────────────────────────────────
   CONTACT GRID
───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-ico { font-size: 2rem; margin-bottom: 12px; }
.contact-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-card p { font-size: 0.85rem; color: var(--text); }

/* MAP */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: #1c1c1c;
  color: #bbb;
  padding: 28px 0;
  text-align: center;
  font-size: 0.88rem;
}

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-left"]  { transform: translateX(-45px); }
[data-animate="fade-right"] { transform: translateX(45px); }

[data-animate].animated {
  opacity: 1;
  transform: translate(0);
}

/* Stagger for grids */
.leaders-grid   [data-animate].animated:nth-child(2) { transition-delay: 0.1s; }
.leaders-grid   [data-animate].animated:nth-child(3) { transition-delay: 0.2s; }
.leaders-grid   [data-animate].animated:nth-child(4) { transition-delay: 0.3s; }
.leaders-grid   [data-animate].animated:nth-child(5) { transition-delay: 0.4s; }
.leaders-grid   [data-animate].animated:nth-child(6) { transition-delay: 0.5s; }
.mission-grid   [data-animate].animated:nth-child(2) { transition-delay: 0.12s; }
.mission-grid   [data-animate].animated:nth-child(3) { transition-delay: 0.24s; }
.contact-grid   [data-animate].animated:nth-child(2) { transition-delay: 0.1s; }
.contact-grid   [data-animate].animated:nth-child(3) { transition-delay: 0.2s; }
.contact-grid   [data-animate].animated:nth-child(4) { transition-delay: 0.3s; }

/* ─────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(207,169,0,0.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { background: var(--gold-dk); }

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 960px)
═══════════════════════════════════════════ */
@media (max-width: 960px) {

  .nav-desktop { display: none; }
  .hamburger   { display: flex; }

  .split-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-grid.reverse { direction: ltr; }

  .split-image img { height: 280px; }

  .leaders-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .mission-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .contact-grid  { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════════════ */
@media (max-width: 600px) {

  :root { --header-h: 62px; }

  .logo-tag { display: none; }

  .hero { height: 70vh; min-height: 420px; }

  .section { padding: 55px 0; }

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

  .split-image img { height: 230px; }

  .leaders-grid { grid-template-columns: 1fr; gap: 20px; }
  .leader-img-wrap { height: 230px; }

  /* Always show quote text on mobile (no hover) */
  .leader-quote {
    opacity: 1;
    background: linear-gradient(to top, rgba(11,61,46,0.85) 0%, transparent 55%);
  }

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

  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .contact-card { padding: 22px 14px; }

  .map-wrap { height: 300px; }

  #back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; font-size: 1rem; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — VERY SMALL (≤ 380px)
═══════════════════════════════════════════ */
@media (max-width: 380px) {
  .contact-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 0.88rem; }
}
