/* ==========================================================
   Little Angels Nursery & Primary School
   Soft pastel · rounded · modern · kid-friendly (not cartoon)
   ========================================================== */

:root {
  --sky: #A8D8EA;
  --mint: #B5EAD7;
  --peach: #FFD3B6;
  --coral: #FF8B94;
  --cream: #FFF8F0;
  --ink: #3D405B;
  --ink-soft: #5b5e7a;
  --ink-muted: #8b8ea6;
  --line: #ECE6DC;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(61, 64, 91, 0.06);
  --shadow: 0 12px 30px rgba(61, 64, 91, 0.08);
  --shadow-lg: 0 24px 60px rgba(61, 64, 91, 0.12);

  --container: 1200px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); text-wrap: pretty; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,139,148,0.2); }
.eyebrow--alt { background: rgba(168, 216, 234, 0.25); border-color: transparent; color: #2c5e74; }

.hl {
  background: linear-gradient(120deg, transparent 0 6%, #FFD3B6 6% 94%, transparent 94%);
  padding: 0 6px;
  border-radius: 6px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 139, 148, 0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,139,148,0.5); background: #ff7681; }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* ----- Language switching ----- */
[data-lang] { display: contents; }
html[lang="en"] [data-lang="ta"],
html[lang="ta"] [data-lang="en"] { display: none; }

html[lang="ta"] body,
html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4,
html[lang="ta"] .nav__brandText strong,
html[lang="ta"] .nav__link,
html[lang="ta"] .btn,
html[lang="ta"] .eyebrow,
html[lang="ta"] .saturday__tag,
html[lang="ta"] .stat__label,
html[lang="ta"] .checklist li {
  font-family: 'Catamaran', 'Hind Madurai', 'Mukta Malar', system-ui, sans-serif;
}
html[lang="ta"] .nav__brandText strong { letter-spacing: 0; font-size: 1.3rem; }
html[lang="ta"] .nav__brandText em { font-size: 0.78rem; }
html[lang="ta"] body { line-height: 1.75; }
html[lang="ta"] h1,
html[lang="ta"] h2,
html[lang="ta"] h3,
html[lang="ta"] h4 {
  line-height: 1.38;
}
html[lang="ta"] p,
html[lang="ta"] li,
html[lang="ta"] blockquote,
html[lang="ta"] .hero__sub,
html[lang="ta"] .section__head p,
html[lang="ta"] .program p,
html[lang="ta"] .pillar p,
html[lang="ta"] .activity p,
html[lang="ta"] .step p,
html[lang="ta"] .enquiry__intro p,
html[lang="ta"] .contactCard p,
html[lang="ta"] .footer p {
  line-height: 1.85;
}
html[lang="ta"] .btn,
html[lang="ta"] .nav__link,
html[lang="ta"] .eyebrow,
html[lang="ta"] .saturday__tag,
html[lang="ta"] .stat__label,
html[lang="ta"] label {
  line-height: 1.45;
}
html[lang="ta"] .nav__menu { gap: 2px; }
html[lang="ta"] .nav__link {
  white-space: nowrap;
  padding-inline: 10px;
  font-size: 0.9rem;
  line-height: 1.25;
}
html[lang="ta"] .nav__cta {
  white-space: nowrap;
  padding-inline: 16px;
}

.langToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.langToggle:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
html[lang="ta"] .langToggle [data-lang-label] {
  font-family: 'Nunito', system-ui, sans-serif;
}
html[lang="en"] .langToggle [data-lang-label] {
  font-family: 'Catamaran', system-ui, sans-serif;
}

/* ----- Top bar ----- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
}
.topbar__list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.topbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d8d9e6;
}
.topbar__list a:hover { color: #fff; }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow .25s, background .25s;
}
.nav.is-scrolled {
  background: rgba(255, 248, 240, 0.95);
  box-shadow: 0 4px 24px rgba(61,64,91,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo {
  display: inline-flex;
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  /* Overflow symmetrically so the logo can be large without making the nav tall */
  margin: -24px 0;
  position: relative;
  z-index: 1;
}
.nav__brandText { display: flex; flex-direction: column; line-height: 1.15; }
.nav__brandText strong { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.nav__brandText em { font-style: normal; font-size: 0.85rem; color: var(--ink-muted); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: rgba(168,216,234,0.25); }
.nav__link.is-active { color: var(--ink); background: rgba(255, 211, 182, 0.5); }
.nav__cta { margin-left: 10px; padding: 10px 22px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
}
.nav__hamburger span {
  width: 22px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(168,216,234,0.5), transparent 50%),
    radial-gradient(ellipse at 0% 60%, rgba(255,211,182,0.5), transparent 55%),
    radial-gradient(ellipse at 100% 80%, rgba(181,234,215,0.45), transparent 55%),
    var(--cream);
  padding: 60px 0 100px;
}
.hero__inner {
  display: flex;
  align-items: center;
  min-height: 480px;
  position: relative;
  z-index: 3;
}
.hero__content { max-width: 560px; }
.hero__title {
  margin-top: 18px;
  margin-bottom: 18px;
}
.hero__hl {
  display: inline-block;
  position: relative;
  color: var(--coral);
}
.hero__hl::after {
  content: "";
  position: absolute;
  inset: auto -4px 4px -4px;
  height: 10px;
  background: var(--mint);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.7;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__avatars { display: flex; }
.hero__avatars span {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  margin-left: -10px;
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__trustStars {
  color: #f5b300;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.hero__trustStars strong { color: var(--ink); margin-left: 4px; }
.hero__trust span { font-size: 0.88rem; color: var(--ink-muted); }

/* Hero — right-half background photo */
.hero__bgImage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero__bgImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  /* Fade left edge into the cream hero, soften top + bottom into bg/wave */
  -webkit-mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 12%, #000 36%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(100deg, transparent 0%, rgba(0,0,0,0.35) 12%, #000 36%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 88%, transparent 100%);
          mask-composite: intersect;
}

/* Bubbles */
.hero__bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: float 14s ease-in-out infinite;
  opacity: 0.55;
}
.bubble.b1 { width: 80px; height: 80px; background: var(--sky); top: 12%; left: 8%; animation-delay: 0s; }
.bubble.b2 { width: 50px; height: 50px; background: var(--peach); top: 70%; left: 18%; animation-delay: -3s; }
.bubble.b3 { width: 110px; height: 110px; background: var(--mint); top: 8%; left: 45%; animation-delay: -7s; opacity: 0.4; }
.bubble.b4 { width: 60px; height: 60px; background: var(--coral); top: 78%; left: 60%; animation-delay: -2s; opacity: 0.35; }
.bubble.b5 { width: 38px; height: 38px; background: var(--peach); top: 30%; left: 90%; animation-delay: -5s; }
.bubble.b6 { width: 70px; height: 70px; background: var(--sky); top: 60%; left: 88%; animation-delay: -9s; opacity: 0.45; }
.bubble.b7 { width: 28px; height: 28px; background: var(--coral); top: 22%; left: 30%; animation-delay: -11s; opacity: 0.5; }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-22px) translateX(10px); }
  50% { transform: translateY(-8px) translateX(-15px); }
  75% { transform: translateY(-30px) translateX(5px); }
}


.hero__wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  height: 80px;
  display: block;
}

/* ----- Stats ----- */
.stats {
  background: #fff;
  padding: 50px 0;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--coral);
  line-height: 1;
}
.stat__num::after {
  content: "+";
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--peach);
}
.stat__label {
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Section heads */
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__head h2 { margin: 14px 0 14px; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ----- About ----- */
.about {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(168,216,234,0.3), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(255,211,182,0.4), transparent 50%),
    var(--cream);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about__visual { position: relative; min-height: 480px; }
.about__cardStack { position: relative; height: 100%; min-height: 480px; }
.about__blob {
  position: absolute;
  inset: 10% 10% 10% 10%;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  border-radius: 50% 40% 55% 45% / 50% 45% 55% 50%;
  z-index: 1;
  animation: blobMorph 14s ease-in-out infinite;
}
@keyframes blobMorph {
  0%, 100% { border-radius: 50% 40% 55% 45% / 50% 45% 55% 50%; }
  50% { border-radius: 40% 55% 45% 50% / 55% 50% 50% 45%; }
}
.floatCard {
  position: absolute;
  z-index: 3;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  animation: cardBob 5s ease-in-out infinite;
}
.floatCard strong { display: block; font-family: 'Fredoka', sans-serif; }
.floatCard span { color: var(--ink-muted); font-size: 0.82rem; }
.floatCard__icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.fc-1 { top: 6%; left: 0%; animation-delay: 0s; }
.fc-2 { top: 46%; right: 0%; animation-delay: -1.6s; }
.fc-3 { bottom: 6%; left: 8%; animation-delay: -3.2s; }

/* Tamil motto cards + Tiruvalluvar centerpiece */
.floatCard--tamil strong {
  font-family: 'Catamaran', 'Hind Madurai', 'Mukta Malar', system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.floatCard--tamil span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.about__valluvar {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 320px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.about__valluvar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(61, 64, 91, 0.25));
  animation: valluvarFloat 8s ease-in-out infinite;
}
@keyframes valluvarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about__copy h2 { margin-top: 14px; margin-bottom: 18px; }
.checklist { margin: 22px 0 32px; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink);
}
.check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: #2a6f55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ----- Academics / Programs ----- */
.academics {
  padding: 100px 0;
  background: #fff;
}
.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  border: 1.5px solid transparent;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.program::before {
  content: "";
  position: absolute;
  inset: -50% -50% auto auto;
  width: 160px; height: 160px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(2px);
  transition: transform .5s var(--ease);
}
.program:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.program:hover::before { transform: scale(1.15); }
.program__icon {
  position: relative;
  font-size: 2rem;
  width: 64px; height: 64px;
  border-radius: 20px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.program__age {
  position: relative;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.program h3 { position: relative; margin-bottom: 8px; }
.program p { position: relative; font-size: 0.94rem; margin: 0; }

/* ----- Why ----- */
.why {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(181,234,215,0.4), transparent 50%),
    var(--cream);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.92rem; margin: 0; }

/* Why — pillars (philosophy) */
.why__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.pillar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--accent, var(--mint));
  transition: transform .3s var(--ease), box-shadow .3s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar__icon {
  width: 60px; height: 60px;
  border-radius: 20px;
  background: var(--accent, var(--mint));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.pillar h3 { margin-bottom: 10px; font-size: 1.25rem; }
.pillar p { font-size: 0.95rem; margin: 0; }

/* Why — activities */
.why__activitiesHead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.why__activitiesHead h3 {
  font-size: 1.7rem;
  margin: 14px 0 8px;
}
.why__activitiesHead p { margin: 0; }

.why__activities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.activity {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.activity:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.activity__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent, var(--cream));
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.activity h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.activity p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Why — Saturday bookless day banner */
.saturday {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,139,148,0.18), transparent 55%),
    linear-gradient(135deg, #FFF1E0, rgba(255,211,182,0.45));
  border: 2px dashed rgba(255,139,148,0.55);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}
.saturday__art {
  width: 92px; height: 92px;
  border-radius: 26px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: var(--shadow-sm);
}
.saturday__tag {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.saturday h3 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.saturday p { margin: 0; font-size: 0.95rem; }

/* ----- Gallery ----- */
.gallery {
  padding: 100px 0;
  background: #fff;
}
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}
.masonry__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.masonry__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.masonry__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 18px 18px;
  background: linear-gradient(to top, rgba(61,64,91,0.85), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.masonry__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover figcaption { transform: translateY(0); }

.m-1 { grid-column: span 2; grid-row: span 2; }
.m-2 { grid-column: span 1; grid-row: span 1; }
.m-3 { grid-column: span 1; grid-row: span 2; }
.m-4 { grid-column: span 1; grid-row: span 1; }
.m-5 { grid-column: span 2; grid-row: span 1; }
.m-6 { grid-column: span 1; grid-row: span 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 22, 36, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox figcaption {
  text-align: center;
  color: #fff;
  margin-top: 16px;
  font-weight: 600;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

/* ----- Admissions ----- */
.admissions {
  padding: 100px 0;
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  position: relative;
}
.step {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  position: relative;
}
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px rgba(255,139,148,0.4);
}
.step:nth-child(2) .step__num { background: var(--sky); color: #2c5e74; box-shadow: 0 6px 18px rgba(168,216,234,0.5); }
.step:nth-child(3) .step__num { background: var(--mint); color: #2a6f55; box-shadow: 0 6px 18px rgba(181,234,215,0.6); }
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; margin: 0; }

/* Enquiry — WhatsApp admission form */
.enquiry {
  background:
    radial-gradient(circle at 100% 0%, rgba(37,211,102,0.10), transparent 55%),
    linear-gradient(135deg, rgba(168,216,234,0.25), rgba(181,234,215,0.25));
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.enquiry__intro h3 {
  font-size: 1.7rem;
  margin: 14px 0 10px;
}
.enquiry__intro p { margin: 0; font-size: 0.98rem; }
.enquiry__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37,211,102,0.35);
}
.enquiry__perks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.enquiry__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.enquiry__perks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: #2a6f55;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.enquiry__form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.enquiry__submit {
  width: 100%;
  justify-content: center;
  background: #25D366;
  color: #fff;
  margin-top: 10px;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
}
.enquiry__submit:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.45);
}
.enquiry__note {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ----- Contact ----- */
.contact {
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(255,211,182,0.4), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(168,216,234,0.25), transparent 55%),
    var(--cream);
}
.contact .section__head { margin-bottom: 50px; }
.contact__ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.contact__cta { padding: 14px 26px; }
.contact__cta--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
}
.contact__cta--wa:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,0.45);
}
.contact__cta--call {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(61,64,91,0.25);
}
.contact__cta--call:hover {
  background: #2c2e44;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(61,64,91,0.35);
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.contactCard {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contactCard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contactCard__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--accent, var(--peach));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.contactCard h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.contactCard p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.contactCard p a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1.5px dashed var(--line);
  transition: color .2s, border-color .2s;
}
.contactCard p a:hover { color: var(--coral); border-color: var(--coral); }
.contactCard__link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--coral);
  align-self: flex-start;
  transition: color .2s, transform .2s;
}
.contactCard__link:hover { color: #ff6573; transform: translateX(3px); }
.contactCard__hint {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* Field tokens (still used by enquiry form) */
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(168,216,234,0.25);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ----- Footer ----- */
.footer {
  background: var(--ink);
  color: #d8d9e6;
  padding: 70px 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer__logo strong { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.55rem; letter-spacing: -0.01em; }
.footer__logoImg {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}
.footer__brand p { color: #a9aac1; font-size: 0.92rem; max-width: 320px; }

.footer__col h4 {
  font-family: 'Fredoka', sans-serif;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer__col ul li a { color: #a9aac1; transition: color .2s; }
.footer__col ul li a:hover { color: var(--peach); }
.footer__contact li { color: #a9aac1; font-size: 0.92rem; line-height: 1.55; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #a9aac1;
}
.footer__bottom a { color: #d8d9e6; }
.footer__bottom a:hover { color: var(--peach); }

/* ============== Reveal animation ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .hero__inner { min-height: auto; padding-top: 20px; padding-bottom: 30px; }
  .hero__content { max-width: 100%; }
  .hero__bgImage {
    width: 70%;
    opacity: 0.35;
  }
  .hero__bgImage img {
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 50%, #000 100%);
            mask-image: linear-gradient(100deg, transparent 0%, #000 50%, #000 100%);
    -webkit-mask-composite: source-over;
            mask-composite: add;
  }
  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .about__visual { min-height: 380px; }
  .about__valluvar { width: 200px; height: 260px; }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__pillars { grid-template-columns: 1fr; gap: 18px; margin-bottom: 60px; }
  .why__activities { grid-template-columns: repeat(2, 1fr); }
  .saturday { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
  .saturday__art { margin: 0 auto; }
  .enquiry { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .steps { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto 50px; }
  .contact__cards { grid-template-columns: repeat(2, 1fr); }
  .contact__ctas .btn { flex: 1 1 240px; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .m-1 { grid-column: span 2; grid-row: span 2; }
  .m-2, .m-3, .m-4, .m-5, .m-6 { grid-column: span 1; grid-row: span 1; }
  .m-3 { grid-row: span 2; }
}

@media (max-width: 720px) {
  .topbar__hours { display: none; }
  .topbar__inner { flex-wrap: wrap; gap: 8px; }

  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    width: min(85vw, 340px);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 30px;
    gap: 8px;
    box-shadow: -16px 0 40px rgba(61,64,91,0.15);
    transform: translateX(110%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link { padding: 14px 18px; font-size: 1rem; }
  .nav__cta { margin: 12px 0 0; padding: 14px; justify-content: center; }
  .nav__hamburger { display: flex; z-index: 60; }

  .hero { padding: 40px 0 80px; }
  .hero__sub { font-size: 1rem; }
  .hero__bgImage { display: none; }
  .programs { grid-template-columns: 1fr; }
  .why__activities { grid-template-columns: 1fr; }
  .enquiry { padding: 28px 20px; }
  .enquiry__form { padding: 24px 20px; }
  .saturday { padding: 26px 20px; }
  .contact__cards { grid-template-columns: 1fr; }
  .contactCard { padding: 26px 22px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { font-size: 0.78rem; }
  .topbar__list { gap: 14px; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 10px; }

  .stats__inner { grid-template-columns: 1fr 1fr; gap: 22px; }

  .why__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { justify-content: center; text-align: center; }

  .masonry { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .m-1, .m-3 { grid-row: span 1; }

  .section__head { margin-bottom: 40px; }
  .about, .academics, .why, .gallery, .admissions, .contact { padding: 70px 0; }
}
