/* ═══════════════════════════════════════════════════════════════
   THE TINY POLE STAR — Preschool & Daycare
   Full responsive stylesheet with image sections & WhatsApp
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  /* Poster: starry bands — deep cool navy */
  --navy-deep:   #050b18;
  --navy-dark:   #0a1628;
  --navy:        #0f1f3a;
  --navy-mid:    #152a4a;
  --navy-light:  #1e3966;
  /* Poster gold & highlight yellow */
  --gold:        #ffc400;
  --gold-dark:   #e6a800;
  --gold-light:  #ffe566;
  --amber:       #ffb300;
  /* Poster middle: clean white panels */
  --panel:       #ffffff;
  --panel-muted: #f4f7fb;
  --cream:       #ffffff;
  --cream-dark:  #eef2f7;
  --cream-bd:    #cfd9e8;
  /* Glossy off-white for hero / page sheen */
  --hero-cream:  #ffffff;
  --hero-cream-2:#fafcfd;
  --pink:        #ff6b9d;
  --pink-lt:     #ffb3cc;
  --teal:        #26c6da;
  --green:       #66bb6a;
  --wa-green:    #25d366;
  --wa-dark:     #128c7e;
  --white:       #ffffff;
  --text-dark:   #0a1628;
  --text-med:    #3d5166;
  --text-lt:     #6a7d93;
  --sh-sm:       0 2px 10px rgba(10, 22, 40, 0.1);
  --sh-md:       0 6px 24px rgba(10, 22, 40, 0.12);
  --sh-lg:       0 16px 48px rgba(10, 22, 40, 0.16);
  --r-sm:  8px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
  --tr:    all 0.3s cubic-bezier(.4,0,.2,1);
  /* Space below fixed navbar for hero content */
  --nav-clearance: clamp(92px, 16vh, 120px);
  /* Poster-style scattered stars (tiled SVG) for navy sections */
  --poster-stars-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='8' cy='18' r='1.3' fill='%23ffc400' opacity='.52'/%3E%3Ccircle cx='38' cy='8' r='.95' fill='%23ffffff' opacity='.38'/%3E%3Ccircle cx='72' cy='28' r='1.15' fill='%238EC5FF' opacity='.45'/%3E%3Ccircle cx='92' cy='12' r='.85' fill='%23ffc400' opacity='.44'/%3E%3Ccircle cx='22' cy='52' r='1.05' fill='%23ffffff' opacity='.34'/%3E%3Ccircle cx='55' cy='48' r='1.25' fill='%23ffe566' opacity='.48'/%3E%3Ccircle cx='88' cy='62' r='.88' fill='%23ffc400' opacity='.4'/%3E%3Ccircle cx='12' cy='78' r='.98' fill='%239FD3FF' opacity='.4'/%3E%3Ccircle cx='48' cy='88' r='1.1' fill='%23ffffff' opacity='.36'/%3E%3Ccircle cx='78' cy='82' r='.82' fill='%23ffc400' opacity='.38'/%3E%3Ccircle cx='95' cy='95' r='1.05' fill='%23ffe566' opacity='.42'/%3E%3C/svg%3E");
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  min-height: 100%;
}
/* Plain white page backdrop (behind all content) */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--white);
}

body  {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: transparent;
  overflow-x: hidden;
  line-height: 1.6;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
h1,h2,h3,h4 { font-family: 'Baloo 2', sans-serif; line-height: 1.2; }

/* Main blocks stack above decorative fixed layers (shooting stars z-index: 1) */
body > section,
body > footer.footer {
  position: relative;
  z-index: 2;
}

/* ── Shooting stars (fixed sky streaks; gold/teal to match brand stars) ── */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: clamp(80px, 14vw, 140px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 196, 0, 0.2) 35%,
    rgba(255, 255, 255, 0.85) 52%,
    rgba(255, 228, 120, 0.5) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.35);
  opacity: 0;
  transform: rotate(215deg);
  transform-origin: center center;
  animation: shooting-star-move 5.5s ease-in infinite;
}

.shooting-star--cool {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(38, 198, 218, 0.18) 38%,
    rgba(255, 255, 255, 0.8) 52%,
    rgba(143, 200, 255, 0.45) 68%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(38, 198, 218, 0.25);
}

.shooting-star:nth-child(1) {
  top: 8%;
  left: 78%;
  animation-duration: 4.8s;
  animation-delay: 0s;
}
.shooting-star:nth-child(2) {
  top: 18%;
  left: 92%;
  animation-duration: 5.6s;
  animation-delay: 1.8s;
}
.shooting-star:nth-child(3) {
  top: 38%;
  left: 85%;
  animation-duration: 6.2s;
  animation-delay: 3.4s;
}
.shooting-star:nth-child(4) {
  top: 12%;
  left: 65%;
  width: clamp(60px, 10vw, 100px);
  animation-duration: 4.2s;
  animation-delay: 5.5s;
}
.shooting-star:nth-child(5) {
  top: 52%;
  left: 90%;
  animation-duration: 5.9s;
  animation-delay: 7.2s;
}

@keyframes shooting-star-move {
  0% {
    opacity: 0;
    transform: rotate(215deg) translate3d(0, 0, 0) scaleX(0.4);
  }
  4% {
    opacity: 0.85;
  }
  18% {
    opacity: 0.7;
    transform: rotate(215deg) translate3d(-125vw, 125vh, 0) scaleX(1.05);
  }
  19%,
  100% {
    opacity: 0;
    transform: rotate(215deg) translate3d(-125vw, 125vh, 0) scaleX(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shooting-stars {
    display: none;
  }
}

/* ── UTILITIES ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gold  { color: var(--gold); }
.heart { color: var(--pink); }

/* Section header */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--navy-dark); margin: 12px 0; }
.section-header p  { color: var(--text-med); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,.8); }

/* Badge */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--navy-dark);
  font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 50px; margin-bottom: 12px;
}
.badge.dark { background: var(--navy-dark); color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: var(--tr); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--navy-dark);
  box-shadow: 0 4px 20px rgba(255,196,0,.4);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,196,0,.6); }
.btn-whatsapp {
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.6); }
.btn-outline {
  background: transparent; border-color: rgba(255,255,255,.5); color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-teal-solid {
  background: linear-gradient(135deg, #1a6b7a, #0d4a5c);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(13, 74, 92, 0.28);
}
.btn-teal-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(13, 74, 92, 0.38);
}
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal[data-reveal="left"]  { transform: translateX(-28px); }
.reveal[data-reveal="right"] { transform: translateX(28px); }
.reveal.visible { opacity: 1; transform: translate(0); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--tr); padding: 10px 0;
}
.navbar.scrolled {
  background: rgba(5, 11, 24, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  padding: 4px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo-img {
  display: block;
  height: clamp(92px, 15vmin, 140px);
  width: auto;
  max-width: min(460px, 62vw);
  object-fit: contain;
  object-position: left center;
}

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,.85); font-weight: 600; font-size: .88rem;
  padding: 7px 11px; border-radius: var(--r-sm); transition: var(--tr);
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(255,196,0,.08); }
.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--navy-dark) !important; font-weight: 800; font-size: .88rem;
  padding: 8px 18px; border-radius: 50px; margin-left: 6px; transition: var(--tr);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,196,0,.45); }

/* Light landing navbar (reference: cream header, navy links) */
.navbar--light {
  background: transparent;
}
.navbar--light.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(10, 22, 40, 0.08);
}
.navbar--light .nav-logo-img {
  filter: drop-shadow(0 2px 4px rgba(10, 22, 40, 0.08));
}
.navbar--light .nav-link {
  color: var(--navy-dark);
}
.navbar--light .nav-link:hover,
.navbar--light .nav-link.active {
  color: #1565c0;
  background: rgba(21, 101, 192, 0.08);
}
.navbar--light .nav-cta {
  padding: 9px 20px;
}
.navbar--light .nav-toggle span {
  background: var(--navy-dark);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 1010;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--white);
  border-radius: 2px; transition: var(--tr);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO — light landing (blended image + serif headline)
══════════════════════════════════════════════════════════════ */
.hero--light {
  position: relative;
  box-sizing: border-box;
  /* Fit hero + feature strip in the first screen (dynamic viewport where supported) */
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.hero--light .hero-container {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-clearance) + env(safe-area-inset-top, 0px) + 4px) 20px 8px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.12fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.hero-content--light {
  padding-right: clamp(16px, 4vw, 40px);
  z-index: 2;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.hero-school {
  margin: 0 0 clamp(10px, 2vh, 16px);
  padding: 0 0 0 14px;
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.hero-school-name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-school-tag {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.72rem, 1.35vw, 0.82rem);
  font-weight: 700;
  color: var(--text-med);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-headline--serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 3.8vw, 3.05rem);
  line-height: 1.16;
  color: var(--navy-dark);
  margin-bottom: clamp(8px, 1.8vh, 18px);
  letter-spacing: -0.02em;
}

.hero-sub--light {
  color: #3d5a73;
  font-size: clamp(0.94rem, 1.5vw, 1.05rem);
  max-width: 440px;
  line-height: 1.55;
  margin-bottom: clamp(12px, 2.2vh, 22px);
}

.hero-ctas--light {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.hero-visual--blend {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  margin-right: 0;
  min-height: 0;
}

.hero-photo-wrap--blend {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.hero-photo-frame--blend {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(10, 22, 40, 0.055);
  border: none;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background: transparent;
}

.hero-photo--blend {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.65s ease;
}

.hero-photo-frame--blend:hover .hero-photo--blend {
  transform: scale(1.02);
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-7px) rotate(1.5deg); }
}

/* Legacy dark hero (if reused elsewhere) */
.hero:not(.hero--light) {
  position: relative; min-height: 100vh;
  background: radial-gradient(ellipse at 30% 40%, var(--navy-mid) 0%, var(--navy-dark) 45%, var(--navy-deep) 100%);
  display: flex; flex-direction: column; overflow: hidden;
}
.starfield { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
/* ══════════════════════════════════════════════════════════════
   PROGRAMS
══════════════════════════════════════════════════════════════ */
.programs { background: var(--cream); padding: 96px 0; }

.programs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--cream-bd);
  box-shadow: var(--sh-md);
}

.prog-card {
  background: var(--white);
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-right: 1px solid rgba(207, 217, 232, 0.95);
  overflow: hidden;
  transition: var(--tr);
  border-bottom: 4px solid var(--accent);
}
.prog-card:nth-child(4n) { border-right: none; }
.prog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10, 10, 60, 0.14);
  z-index: 2;
}

.prog-img-wrap { position: relative; overflow: hidden; }
.prog-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.prog-card:hover .prog-img { transform: scale(1.04); }

.prog-age-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(10, 22, 40,.75); backdrop-filter: blur(6px);
  color: var(--gold-light); font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 50px; letter-spacing: .04em;
}

.prog-body { padding: 22px 20px 24px; }
.prog-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 14px;
  transition: transform .3s ease;
}
.prog-card:hover .prog-icon { transform: scale(1.18) rotate(-5deg); }

.prog-card h3 { font-size: 1.3rem; color: var(--navy-dark); font-weight: 800; margin-bottom: 2px; }
.prog-nick { color: var(--text-lt); font-size: .82rem; font-style: italic; margin-bottom: 10px; }
.prog-desc { color: var(--text-med); font-size: .88rem; line-height: 1.6; margin-bottom: 14px; }

.prog-list { display: flex; flex-direction: column; gap: 5px; }
.prog-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--text-med);
}

/* ══════════════════════════════════════════════════════════════
   PHILOSOPHY
══════════════════════════════════════════════════════════════ */
.philosophy { background: var(--cream); padding: 96px 0; }

.philosophy-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

/* Left image */
.phil-image { position: relative; }
.phil-img-frame {
  position: relative; border-radius: var(--r-xl);
  overflow: visible;
}
.phil-main-img {
  width: 100%; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.phil-img-badge {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  background: var(--navy-dark); border-radius: 50px;
  padding: 10px 22px; box-shadow: var(--sh-md);
  white-space: nowrap;
}
.badge-text { color: var(--gold); font-weight: 700; font-size: .85rem; }

.phil-deco-inset {
  position: absolute; bottom: -10px; right: -24px;
  width: 100px; height: 100px;
  background: var(--white); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 8px; overflow: hidden;
  animation: float 4s ease-in-out infinite 0.5s;
}
.phil-deco-inset img { width: 100%; height: 100%; object-fit: contain; }

/* Right content */
.phil-content h2 { font-size: clamp(1.7rem,3.5vw,2.3rem); color: var(--navy-dark); margin: 12px 0 8px; }
.phil-intro { color: var(--text-med); margin-bottom: 28px; font-size: 1rem; }

.pillars-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.pillar {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 18px; background: var(--white); border-radius: var(--r-md);
  box-shadow: var(--sh-sm); border: 1px solid rgba(207, 217, 232, 0.65);
  border-left: 4px solid var(--gold);
  transition: var(--tr);
}
.pillar:hover { transform: translateX(6px); box-shadow: var(--sh-md); }
.pillar-icon-wrap {
  font-size: 1.6rem; flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(255,196,0,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.pillar:hover .pillar-icon-wrap { transform: scale(1.15) rotate(-5deg); }
.pillar-text h4 { font-size: 1rem; color: var(--navy-dark); font-weight: 800; margin-bottom: 4px; }
.pillar-text p  { color: var(--text-med); font-size: .86rem; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   WHY US
══════════════════════════════════════════════════════════════ */
.why-us { background: var(--cream-dark); padding: 96px 0; }

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

.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.why-icon i { color: var(--navy-dark); font-size: .72rem; }
.why-list li strong { display: block; font-weight: 800; color: var(--navy-dark); margin-bottom: 2px; }
.why-list li p { color: var(--text-med); font-size: .88rem; margin: 0; }

/* Right panel */
.why-right { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }

.why-photo-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); }
.why-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.why-photo-wrap:hover .why-photo { transform: scale(1.04); }
.why-photo-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10, 22, 40,.85));
  color: var(--gold-light); font-weight: 700; font-size: .85rem;
  padding: 28px 18px 14px; display: flex; align-items: center; gap: 8px;
}

.highlights-box {
  background: var(--navy-dark); border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
.highlights-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: var(--poster-stars-tile);
  background-size: 88px 88px;
}
.highlights-box h3,
.highlights-box .hl-grid { position: relative; z-index: 1; }
.highlights-box h3 { color: var(--gold); font-size: 1.15rem; margin-bottom: 20px; text-align: center; }
.highlights-box h3 i:first-child { margin-right: 6px; }
.highlights-box h3 i:last-child  { margin-left: 6px; color: var(--pink); }

.hl-grid { display: flex; flex-direction: column; gap: 10px; }
.hl-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 14px; background: rgba(255,255,255,.05);
  border-radius: var(--r-md); border: 1px solid rgba(255,196,0,.1);
  transition: var(--tr);
}
.hl-item:hover { background: rgba(255,196,0,.08); border-color: rgba(255,196,0,.25); transform: translateX(4px); }
.hl-item i    { color: var(--gold); font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.hl-item span { color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact { background: var(--cream-dark); padding: 96px 0; }

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

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
}
.ci-icon i { color: var(--gold); font-size: .95rem; }
.ci-item h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-lt); margin-bottom: 3px; }
.ci-item a, .ci-item p { color: var(--text-dark); font-weight: 600; font-size: .92rem; }
.ci-item a:hover { color: var(--navy-mid); text-decoration: underline; }

.social-wrap { padding-top: 10px; border-top: 1px solid var(--cream-bd); }
.social-wrap h4 { font-size: 1rem; color: var(--navy-dark); margin-bottom: 4px; }
.social-wrap > p { color: var(--text-med); font-size: .88rem; margin-bottom: 14px; }
.social-icons { display: flex; gap: 10px; margin-bottom: 8px; }
.soc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .95rem; transition: var(--tr);
}
.soc-btn.fb { background: #1877F2; }
.soc-btn.ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.soc-btn.wa { background: var(--wa-green); }
.soc-btn:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.soc-handle { font-weight: 700; color: var(--navy-mid); font-size: .88rem; }

/* Form */
.contact-form-wrap {
  background: var(--white); border-radius: var(--r-xl);
  padding: 38px; box-shadow: var(--sh-md);
}
.contact-form h3 { font-size: 1.45rem; color: var(--navy-dark); margin-bottom: 26px; }
.fg { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 700; font-size: .82rem; color: var(--text-med); margin-bottom: 7px; letter-spacing: .03em; }
input, select, textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--cream-bd); border-radius: var(--r-sm);
  font-family: 'Nunito',sans-serif; font-size: .93rem; color: var(--text-dark);
  transition: var(--tr); background: var(--panel-muted); outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--navy-mid); background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 42, 74, 0.1);
}
textarea { resize: vertical; min-height: 95px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image: var(--poster-stars-tile);
  background-size: 100px 100px;
}
.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
}
.footer-top { padding: 68px 0 44px; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.6fr; gap: 44px;
}

.foot-logo-row { margin-bottom: 14px; }
.foot-logo-img {
  display: block;
  height: clamp(72px, 11vw, 108px);
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.foot-brand p { color: rgba(255, 255, 255, 0.9); font-size: .88rem; line-height: 1.7; margin-bottom: 18px; max-width: 260px; }

.foot-social { display: flex; gap: 9px; margin-bottom: 0; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.92); font-size: .88rem; transition: var(--tr);
}
.foot-social a:hover { background: var(--gold); color: var(--navy-dark); }

.foot-col h4 {
  color: var(--gold); font-size: .95rem; font-weight: 800;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,196,0,.15);
}
.foot-col ul li {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: .88rem;
}
.foot-col ul li a { color: rgba(255, 255, 255, 0.92); font-size: .88rem; transition: var(--tr); }
.foot-col ul li a:hover { color: var(--gold); padding-left: 4px; }
.foot-col ul li i { color: var(--gold); font-size: .58rem; margin-right: 6px; }
.foot-col ul li small { color: rgba(255, 255, 255, 0.75); font-size: .78rem; }

.foot-contact-list p {
  color: rgba(255, 255, 255, 0.9); font-size: .85rem;
  display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; line-height: 1.5;
}
.foot-contact-list p i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.foot-contact-list a { color: rgba(255, 255, 255, 0.95); }
.foot-contact-list a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-tagline { color: var(--gold); font-weight: 700; font-size: .88rem; }
.foot-tagline i { font-size: .68rem; margin: 0 5px; }
.foot-copy { color: rgba(255, 255, 255, 0.58); font-size: .78rem; }

/* ══════════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 88px; right: 24px; z-index: 1000;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: var(--white); font-size: 1.65rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.55);
  transition: var(--tr); cursor: pointer;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(37,211,102,.7);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(-8px); pointer-events: auto; }

.wa-tooltip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(0px);
  background: var(--navy-dark); color: var(--white);
  font-family: 'Nunito',sans-serif; font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: 50px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: var(--tr);
  box-shadow: var(--sh-md); border: 1px solid rgba(255,196,0,.15);
}
.wa-tooltip::after {
  content:''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--navy-dark);
}

/* Ping animation ring */
.wa-ping {
  position: absolute; inset: 0; border-radius: 50%;
  animation: wa-ping 2s ease-out infinite;
  background: var(--wa-green);
  z-index: -1;
}
@keyframes wa-ping {
  0%   { transform: scale(1); opacity: .6; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg,var(--gold),var(--amber));
  color: var(--navy-dark); border: none; cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,196,0,.4);
  opacity: 0; transform: translateY(16px); transition: var(--tr);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(255,196,0,.55); }

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--navy-dark); color: var(--white);
  padding: 13px 24px; border-radius: var(--r-md); font-size: .88rem; font-weight: 600;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transition: var(--tr); z-index: 2000; border: 1px solid rgba(255,196,0,.2);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--green); margin-right: 8px; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1100px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .programs-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .philosophy-inner { gap: 44px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Hero stacks */
  .hero-container {
    grid-template-columns: 1fr; text-align: center;
    padding-top: 110px; gap: 36px;
  }
  .hero-visual { justify-content: center; }
  .hero-photo-wrap { max-width: 480px; }
  .hero-ctas, .hero-stats { justify-content: center; }
  .hero-badge { display: inline-flex; }
  .hero-sub { margin: 0 auto 10px; }

  /* Light hero: single column; flex so image + copy share viewport with feature bar */
  .hero--light .hero-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    text-align: center;
    padding: calc(var(--nav-clearance) + env(safe-area-inset-top, 0px) + 2px) 20px 4px;
    gap: clamp(6px, 1.5vh, 12px);
  }
  .hero--light .hero-content--light {
    padding-right: 0;
    order: 1;
    flex: 0 1 auto;
    min-height: 0;
    justify-content: flex-start;
  }
  .hero--light .hero-sub--light {
    margin-left: auto;
    margin-right: auto;
  }
  .hero--light .hero-school {
    align-self: center;
    align-items: center;
    text-align: center;
    padding: 0 0 10px;
    margin-bottom: clamp(8px, 1.5vh, 14px);
    border-left: none;
    border-bottom: 3px solid var(--gold);
  }
  .hero--light .hero-school-name,
  .hero--light .hero-school-tag {
    text-align: center;
  }
  .hero--light .hero-ctas--light {
    justify-content: center;
  }
  .hero--light .hero-visual--blend {
    margin-right: 0;
    justify-content: center;
    order: 2;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    flex: 1 1 auto;
    min-height: 140px;
    max-height: min(32vh, 240px);
  }
  .hero--light .hero-photo-wrap--blend {
    max-width: none;
    width: 100%;
    min-height: 0;
    height: 100%;
  }
  .hero--light .hero-photo-frame--blend {
    border-radius: 20px;
    min-height: 0;
    height: 100%;
  }
  .hero--light .hero-photo--blend {
    min-height: 0;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }

  /* Philosophy stacks */
  .philosophy-inner { grid-template-columns: 1fr; gap: 36px; }
  .phil-deco-inset { display: none; }
  .phil-img-badge { position: static; transform: none; margin-top: 12px; display: inline-block; }
  .phil-image { display: flex; flex-direction: column; align-items: center; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; }
  .why-right { position: static; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hamburger */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(10, 22, 40,.98); flex-direction: column;
    justify-content: center; align-items: center;
    gap: 6px; z-index: 1005;
  }
  .nav-links.open { display: flex; }
  .navbar--light .nav-links {
    background: rgba(252, 250, 245, 0.97);
    backdrop-filter: blur(12px);
  }
  .nav-link { font-size: 1.15rem; padding: 12px 32px; }
  .nav-cta  { margin-left: 0; margin-top: 10px; font-size: 1.1rem; padding: 12px 28px; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; }
  .prog-card { border-right: none; border-bottom: 1px solid rgba(207, 217, 232, 0.95); }
  .prog-card:last-child { border-bottom: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-form-wrap { padding: 26px 18px; }

  /* WhatsApp */
  .wa-float { width: 52px; height: 52px; font-size: 1.45rem; bottom: 80px; right: 18px; }
  .back-to-top { width: 44px; height: 44px; bottom: 20px; right: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-photo-wrap { max-width: 100%; }
  .hero-headline { font-size: 2.4rem; }
  .hero-headline--serif { font-size: clamp(1.85rem, 9vw, 2.35rem); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }
  .prog-img { aspect-ratio: 16/9; }
  .section-header { margin-bottom: 36px; }
  .pillar { flex-direction: column; text-align: center; align-items: center; }

  .nav-logo-img {
    height: clamp(72px, 18vw, 100px);
    max-width: min(340px, 82vw);
  }
  .foot-logo-img {
    max-width: 260px;
    height: clamp(60px, 14vw, 88px);
  }
}

/* Short viewports (landscape phones, small laptops): compress hero so bar stays on-screen */
@media (max-height: 720px) {
  .hero--light .hero-container {
    padding-top: calc(var(--nav-clearance) + env(safe-area-inset-top, 0px));
    padding-bottom: 4px;
  }
  .hero-headline--serif {
    font-size: clamp(1.45rem, 3.6vw, 2.15rem);
    margin-bottom: 6px;
  }
  .hero-sub--light {
    font-size: 0.88rem;
    margin-bottom: 8px;
    line-height: 1.45;
  }
  .hero-ctas--light {
    gap: 8px;
  }
}

@media (max-width: 900px) and (max-height: 540px) {
  .hero--light .hero-visual--blend {
    max-height: min(26vh, 160px);
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phil-deco-inset { animation: none; }
}
