/* ============================================================
   achievements.css — Missahoe Montessori School
   Uniform with about / programs / gallery / news / index
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: #2d2d2d; background: #fff;
  line-height: 1.65; overflow-x: hidden;
}
a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

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

.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 { 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; }
.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;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--gold-dk); }
.btn-enroll {
  background: var(--gold) !important; 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; transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), opacity 0.25s, width 0.25s;
}
.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); }

/* ─────────────────────────────────────────────
   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;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; right: 0; width: 300px; max-width: 85vw;
  height: 100vh; background: #fff; 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;
  opacity: 0; transform: translateX(16px);
  transition: background 0.2s, color 0.2s, opacity 0.35s, transform 0.35s, padding-left 0.2s;
}
.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: 88vh; min-height: 540px;
  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(135deg, rgba(11,61,46,0.78) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff; padding: 0 20px; max-width: 800px;
}
.hero-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700;
  line-height: 1.1; margin: 14px 0 18px;
}
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-content p { font-size: clamp(0.95rem, 1.8vw, 1.1rem); opacity: 0.88; margin-bottom: 28px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 50px;
  padding: 8px 18px; font-size: 0.82rem; color: rgba(255,255,255,0.92);
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.72rem; z-index: 2;
  animation: bounceY 2.4s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 5px;
}
.scroll-wheel {
  width: 3px; height: 7px; background: rgba(255,255,255,0.8); border-radius: 3px;
  animation: wheelSpin 1.8s ease-in-out infinite;
}
@keyframes wheelSpin { 0%,100%{opacity:1;transform:translateY(0)} 50%{opacity:0;transform:translateY(8px)} }
@keyframes bounceY  { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-6px)} }

/* ─────────────────────────────────────────────
   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; margin-bottom: 10px;
}
.badge-gold { background: rgba(207,169,0,0.18); color: #a88200; }
.badge-teal { background: rgba(88,212,240,0.16); color: #0a8faa; }

/* ─────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────── */
.section     { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--dark); margin: 8px 0 14px;
}
.section-header p { color: var(--text); max-width: 600px; margin: 0 auto; font-size: 0.97rem; }

/* ─────────────────────────────────────────────
   IMPACT STAT BAR
───────────────────────────────────────────── */
.impact-stat {
  margin-bottom: 52px;
}
.impact-inner {
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--dark); border-radius: 20px; padding: 36px 48px;
  flex-wrap: wrap; gap: 28px;
}
.impact-number {
  display: flex; align-items: baseline; gap: 2px;
}
.count-up {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.count-sym { font-size: 2.4rem; font-weight: 700; color: var(--gold); }
.impact-text strong {
  display: block; color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 4px;
}
.impact-text p { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.impact-divider {
  width: 1px; height: 64px; background: rgba(255,255,255,0.15); flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   BECE GRID — animated ring cards
───────────────────────────────────────────── */
.bece-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bece-card {
  background: #fff; border-radius: var(--radius); padding: 24px 18px 20px;
  text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), box-shadow 0.38s ease;
  border: 1px solid #f0f0f0;
}
.bece-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.13);
}
.bece-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.bece-card:hover::before { transform: scaleX(1); }

/* Special cards */
.bece-card--special { border-color: rgba(88,212,240,0.3); background: rgba(88,212,240,0.04); }
.bece-card--gold    { border-color: rgba(207,169,0,0.4); background: rgba(207,169,0,0.04); }

.bece-special-label {
  font-size: 0.65rem; font-weight: 700; color: var(--gold-dk);
  letter-spacing: 0.05em; margin-bottom: 8px;
}

.bece-year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 14px;
}

/* Animated SVG ring */
.bece-ring {
  position: relative; width: 80px; height: 80px; margin: 0 auto 12px;
}
.ring-svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring-bg {
  fill: none; stroke: #e8f4f8; stroke-width: 6;
}
.ring-fill {
  fill: none; stroke: var(--teal); stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 201; /* circumference of r=32: 2π×32 ≈ 201 */
  stroke-dashoffset: 201;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.23,1,0.32,1);
}
.bece-card--gold .ring-fill { stroke: var(--gold); }
.ring-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 700; color: var(--dark);
}

.bece-badge {
  display: inline-block; background: rgba(88,212,240,0.14); color: #0a8faa;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px;
}
.bece-card--gold .bece-badge { background: rgba(207,169,0,0.15); color: var(--gold-dk); }

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

/* Center the last two cards on the bottom row */
.pillars-grid .pillar-card:nth-child(4),
.pillars-grid .pillar-card:nth-child(5) {
  grid-column: span 1;
}

.pillar-card {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), box-shadow 0.38s ease;
}
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.11);
}
.pillar-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem; font-weight: 700; color: rgba(88,212,240,0.18);
  line-height: 1; margin-bottom: 14px;
  transition: color 0.3s;
}
.pillar-card:hover .pillar-number { color: rgba(207,169,0,0.25); }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(88,212,240,0.12); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s, color 0.3s;
}
.pillar-card:hover .pillar-icon { background: rgba(207,169,0,0.15); color: var(--gold); }
.pillar-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.pillar-card p  { font-size: 0.86rem; color: var(--text); line-height: 1.65; }

/* Accent line on hover */
.pillar-card::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);
}
.pillar-card:hover::after { transform: scaleX(1); }

/* ─────────────────────────────────────────────
   BEYOND SECTION
───────────────────────────────────────────── */
.beyond-section { background: var(--dark); }
.beyond-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 44px; align-items: center;
  padding: 52px; background: rgba(255,255,255,0.04);
  border-radius: 22px; border: 1px solid rgba(255,255,255,0.08);
}
.beyond-icon {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(207,169,0,0.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100%{box-shadow:0 0 0 0 rgba(207,169,0,0.25)}
  50%{box-shadow:0 0 0 16px rgba(207,169,0,0)}
}
.beyond-text .badge-gold { background: rgba(207,169,0,0.25); color: #f0c840; }
.beyond-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem); color: #fff;
  font-weight: 700; margin: 10px 0 14px;
}
.beyond-text h2 em { font-style: italic; color: var(--gold); }
.beyond-text p { color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.75; }

.beyond-list { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; min-width: 220px; }
.beyond-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06); border-radius: 10px; padding: 11px 16px;
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
}
.beyond-item svg { color: var(--gold); flex-shrink: 0; }

/* ─────────────────────────────────────────────
   ACHIEVEMENTS CARDS
───────────────────────────────────────────── */
.achievements-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.achievement-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); position: relative;
  transition: transform 0.38s cubic-bezier(0.23,1,0.32,1), box-shadow 0.38s ease;
}
.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.13);
}
.achievement-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  z-index: 1;
}

.ach-img-wrap { position: relative; height: 260px; overflow: hidden; }
.ach-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.achievement-card:hover .ach-img-wrap img { transform: scale(1.06); }
.ach-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,61,46,0.35) 0%, transparent 60%);
}
.ach-year-tag {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--gold); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 13px; border-radius: 50px;
}

.ach-body { padding: 26px 26px 28px; }
.ach-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(88,212,240,0.12); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s, color 0.3s;
}
.achievement-card:hover .ach-icon { background: rgba(207,169,0,0.15); color: var(--gold); }
.ach-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px;
}
.ach-body p { font-size: 0.88rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.ach-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ach-tags span {
  background: var(--light); font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 50px; color: #444;
  transition: background 0.2s;
}
.achievement-card:hover .ach-tags span { background: rgba(207,169,0,0.1); color: var(--gold-dk); }

/* ─────────────────────────────────────────────
   SCROLL ANIMATIONS
───────────────────────────────────────────── */
[data-animate] { opacity: 0; transition: opacity 0.72s ease, transform 0.72s ease; }
[data-animate="fade-up"]    { transform: translateY(42px); }
[data-animate="fade-left"]  { transform: translateX(-46px); }
[data-animate="fade-right"] { transform: translateX(46px); }
[data-animate].animated     { opacity: 1; transform: translate(0); }
.bece-grid [data-animate].animated:nth-child(2) { transition-delay: 0.06s; }
.bece-grid [data-animate].animated:nth-child(3) { transition-delay: 0.12s; }
.bece-grid [data-animate].animated:nth-child(4) { transition-delay: 0.18s; }
.pillars-grid [data-animate].animated:nth-child(2) { transition-delay: 0.10s; }
.pillars-grid [data-animate].animated:nth-child(3) { transition-delay: 0.20s; }
.pillars-grid [data-animate].animated:nth-child(4) { transition-delay: 0.10s; }
.pillars-grid [data-animate].animated:nth-child(5) { transition-delay: 0.20s; }
.achievements-grid [data-animate].animated:nth-child(2) { transition-delay: 0.12s; }

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

/* ─────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px; background: var(--gold); color: #fff;
  border: none; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; z-index: 999;
  box-shadow: 0 4px 18px rgba(207,169,0,0.42);
  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); }

/* ═══════════════════════════════════════════
   TABLET (≤ 960px)
═══════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }

  .bece-grid    { grid-template-columns: repeat(4, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }

  .beyond-card  {
    grid-template-columns: 1fr;
    text-align: center; gap: 28px; padding: 36px 28px;
  }
  .beyond-icon  { margin: 0 auto; }
  .beyond-list  { width: 100%; min-width: unset; }

  .impact-inner { padding: 28px 32px; gap: 20px; }
  .count-up     { font-size: 3rem; }
}

/* ═══════════════════════════════════════════
   MOBILE (≤ 640px)
═══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .logo-tag { display: none; }

  .hero { height: 76vh; min-height: 430px; }
  .hero-pills { flex-direction: column; align-items: center; }

  .section { padding: 54px 0; }

  .bece-grid    { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }

  .impact-inner   { flex-direction: column; padding: 28px 22px; gap: 16px; }
  .impact-divider { width: 80px; height: 1px; }
  .count-up       { font-size: 2.6rem; }

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

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