/* ============================================================
   Matoshri Kindergarten School — Design System
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  color: #2d2a4a;
  line-height: 1.65;
  background: #fffdf7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ----- Tokens ----- */
:root {
  --yellow: #ffd23f;
  --orange: #ff8a3d;
  --coral:  #ff6b6b;
  --pink:   #ff6b9d;
  --teal:   #4ecdc4;
  --blue:   #5fb3f9;
  --indigo: #5b6ee1;
  --purple: #a26eff;
  --green:  #95d44a;
  --cream:  #fffdf7;
  --peach:  #fff3e6;
  --ink:    #2d2a4a;
  --muted:  #6b6886;

  --g-warm: linear-gradient(135deg,#ff8a3d 0%,#ff6b9d 100%);
  --g-sun:  linear-gradient(135deg,#ffd23f 0%,#ff8a3d 100%);
  --g-cool: linear-gradient(135deg,#4ecdc4 0%,#5b6ee1 100%);
  --g-sky:  linear-gradient(180deg,#fff8ec 0%,#ffeedd 100%);
  --g-pink: linear-gradient(135deg,#ff9ec7 0%,#ff6b9d 100%);
  --g-mint: linear-gradient(135deg,#a8eedd 0%,#4ecdc4 100%);
  --g-grape:linear-gradient(135deg,#c4a8ff 0%,#a26eff 100%);
  --g-leaf: linear-gradient(135deg,#c0e88a 0%,#95d44a 100%);

  --shadow-sm: 0 4px 14px rgba(45,42,74,.08);
  --shadow-md: 0 10px 30px rgba(45,42,74,.10);
  --shadow-lg: 0 20px 50px rgba(45,42,74,.14);
  --shadow-color: 0 14px 36px rgba(255,107,157,.30);
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .55em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem);    font-weight: 700; }
h3 { font-size: 1.45rem; }
p  { margin: 0 0 1em; }

.script {
  font-family: 'Caveat', cursive;
  font-weight: 600;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--peach); }
.section--mint { background: #ecfaf7; }
.section__head {
  text-align: center; max-width: 680px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--orange);
  background: #fff;
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px;
  background: var(--orange); border-radius: 50%;
}
.accent { color: var(--orange); position: relative; }
.accent::after {
  content: ""; position: absolute; left: 0; right: 0;
  bottom: -6px; height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2,8 C50,2 100,12 198,4' stroke='%23ffd23f' stroke-width='5' fill='none' stroke-linecap='round'/></svg>") no-repeat center/100% 100%;
}
.muted  { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g-warm);
  color: #fff; font-weight: 700;
  font-family: 'Fredoka', sans-serif;
  padding: 15px 28px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-color);
  font-size: 1rem;
  position: relative; overflow: hidden;
}
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(255,107,157,.40);
}
.btn--ghost {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 11px 20px; font-size: .92rem; }

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--g-warm);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  overflow: hidden; position: relative;
}
.announce__track {
  display: flex; gap: 60px;
  white-space: nowrap;
  padding: 10px 0;
  animation: scroll 30s linear infinite;
}
.announce__track span { display: inline-flex; gap: 8px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,247,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffe5cc;
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
}
.brand { display: flex; align-items: center; gap: 12px;
         font-family: 'Fredoka', sans-serif; }
.brand__logo {
  width: 48px; height: 48px;
  background: var(--g-warm);
  color: #fff; border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem;
  box-shadow: var(--shadow-color);
  transform: rotate(-6deg);
}
.brand__text {
  font-weight: 600; font-size: 1.05rem;
  line-height: 1.1;
}
.brand__text small {
  font-weight: 500; color: var(--muted);
  font-size: .72rem; letter-spacing: .04em;
}
.nav__links {
  display: flex; gap: 30px; align-items: center;
}
.nav__links a {
  font-weight: 600; color: var(--ink);
  position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 3px;
  background: var(--orange); border-radius: 3px;
  transition: all .2s ease;
  transform: translateX(-50%);
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__toggle {
  display: none;
  background: transparent; border: 0;
  font-size: 1.7rem; cursor: pointer; color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 70px 0 130px;
  background:
    radial-gradient(circle at 85% 15%, #ffe4ed 0%,
                    transparent 45%),
    radial-gradient(circle at 10% 85%, #d4f5f2 0%,
                    transparent 45%),
    radial-gradient(circle at 50% 50%, #fff8ec 0%,
                    transparent 60%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,138,61,.08) 1.5px,
                    transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; padding: 8px 16px 8px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: .88rem; font-weight: 700;
  margin-bottom: 22px;
}
.hero__badge .dot {
  width: 26px; height: 26px;
  background: var(--g-leaf);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: .9rem;
}
.hero__copy .lead {
  font-size: 1.15rem; color: var(--muted);
  max-width: 540px; margin-bottom: 30px;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero__stats {
  display: flex; gap: 36px; flex-wrap: wrap;
}
.hero__stat {
  display: flex; align-items: center; gap: 12px;
}
.hero__stat-icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.5rem; color: #fff;
  box-shadow: var(--shadow-sm);
}
.hero__stat-icon.s1 { background: var(--g-sun); }
.hero__stat-icon.s2 { background: var(--g-pink); }
.hero__stat-icon.s3 { background: var(--g-mint); }
.hero__stat strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem; color: var(--ink); display: block;
  line-height: 1;
}
.hero__stat span {
  font-size: .82rem; color: var(--muted);
}

/* ---- Hero centered layout (dancing-name version) ---- */
.hero__deco {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero__deco > * { position: absolute; }
.hero__center {
  position: relative; z-index: 2;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}
.hero__center .hero__badge { margin: 0 auto 22px; }
.hero__center .lead {
  max-width: 600px; margin: 0 auto 36px;
  font-size: 1.1rem; color: var(--muted);
}
.hero__center .hero__cta {
  justify-content: center;
  margin-bottom: 56px;
}
.hero__center .hero__stats {
  justify-content: center;
}

/* Dancing school name — each letter bobs in its own color */
.school-name {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: .03em;
  line-height: 1;
  margin: 28px 0 4px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.school-name span {
  display: inline-block;
  animation: dance 2.2s ease-in-out infinite;
  text-shadow: 0 6px 0 rgba(45,42,74,.08),
               0 10px 20px rgba(45,42,74,.12);
}
.school-name span:nth-child(1) {
  color: #ff8a3d; animation-delay: 0s;
}
.school-name span:nth-child(2) {
  color: #ff6b9d; animation-delay: .12s;
}
.school-name span:nth-child(3) {
  color: #4ecdc4; animation-delay: .24s;
}
.school-name span:nth-child(4) {
  color: #ffd23f; animation-delay: .36s;
}
.school-name span:nth-child(5) {
  color: #a26eff; animation-delay: .48s;
}
.school-name span:nth-child(6) {
  color: #95d44a; animation-delay: .60s;
}
.school-name span:nth-child(7) {
  color: #5fb3f9; animation-delay: .72s;
}
.school-name span:nth-child(8) {
  color: #ff6b6b; animation-delay: .84s;
}
@keyframes dance {
  0%, 100% { transform: translateY(0)    rotate(-6deg); }
  25%      { transform: translateY(-10px) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(6deg); }
  75%      { transform: translateY(-10px) rotate(0deg); }
}

.school-name__sub {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--ink);
  margin: 0 0 28px;
  letter-spacing: .02em;
}

.hero__tagline {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.3;
}
.hero__tagline .accent::after { bottom: -4px; height: 9px; }

/* Sparkle accent emojis */
.float-emoji {
  font-size: 1.8rem;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(45,42,74,.18));
}
.float-emoji.fe1 { top: 22%;  left: 8%;  animation-delay: 0s; }
.float-emoji.fe2 { top: 35%;  right: 7%; animation-delay: -1s;
                   font-size: 2.2rem; }
.float-emoji.fe3 { bottom: 24%; left: 10%; animation-delay: -2s;
                   font-size: 2.4rem; }
.float-emoji.fe4 { bottom: 30%; right: 11%; animation-delay: -1.5s; }
.float-emoji.fe5 { top: 14%; left: 42%; animation-delay: -2.5s;
                   font-size: 1.4rem; opacity: .8; }

/* Reposition existing SVG decorations for centered layout */
.hero__sun     { top: 40px;  right: 60px;  width: 110px; height: 110px; }
.hero__cloud.c1{ top: 70px;  left: 40px;   width: 110px; }
.hero__cloud.c2{ top: 50px;  right: 220px; width: 85px;  opacity: .65; }
.hero__balloon.b1 { top: 38%; right: 80px; width: 55px; }
.hero__balloon.b2 { top: 42%; left: 70px;  width: 55px; }

/* Old illustration container — kept harmless */
.hero__art {
  position: relative;
  min-height: 480px;
}
.hero__sun {
  position: absolute; top: -10px; right: 10px;
  width: 130px; height: 130px;
  animation: spin 20s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.hero__cloud {
  position: absolute;
  animation: drift 12s ease-in-out infinite;
}
.hero__cloud.c1 { top: 40px; left: 20px;
                  width: 100px; opacity: .8; }
.hero__cloud.c2 { top: 200px; right: 140px;
                  width: 80px;
                  animation-delay: -4s; opacity: .7; }
@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(20px); }
}
.hero__balloon {
  position: absolute; width: 60px;
  animation: bob 5s ease-in-out infinite;
}
.hero__balloon.b1 { top: 110px; right: 30px;
                    animation-delay: -1s; }
.hero__balloon.b2 { top: 260px; left: 60px;
                    animation-delay: -2s; }

.hero__main {
  position: absolute; bottom: 20px; right: 30px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--g-warm);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero__main::before {
  content: ""; position: absolute;
  inset: -20px; border-radius: 50%;
  border: 2px dashed rgba(255,138,61,.4);
  animation: spin 30s linear infinite;
}
.hero__main-emoji { font-size: 8rem; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-15px); }
}

.float-card {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: 14px 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  animation: bob 4s ease-in-out infinite;
}
.float-card .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.2rem; color: #fff;
}
.fc1 { top: 50px; left: 0;          animation-delay: 0s; }
.fc1 .ic { background: var(--g-sun); }
.fc2 { top: 350px; left: 30px;       animation-delay: -1.5s; }
.fc2 .ic { background: var(--g-mint); }
.fc3 { top: 380px; right: 0;         animation-delay: -2.5s; }
.fc3 .ic { background: var(--g-grape); }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ----- Section divider (wave) ----- */
.divider {
  position: absolute; left: 0; right: 0;
  height: 80px; line-height: 0; pointer-events: none;
}
.divider svg { width: 100%; height: 100%; display: block; }
.divider--bottom { bottom: -1px; }
.divider--top    { top: -1px; transform: scaleY(-1); }

/* ============================================================
   About
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px; align-items: center;
}
.about__art {
  position: relative; min-height: 420px;
}
.polaroid {
  position: absolute;
  background: #fff;
  padding: 14px 14px 50px;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
  margin: 0;
}
.polaroid img {
  width: 220px; height: 220px;
  object-fit: cover; border-radius: 2px;
  background: #ffe9d6;
}
.polaroid figcaption {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem; color: var(--ink);
}
.polaroid--1 { top: 0; left: 10px; transform: rotate(-6deg); }
.polaroid--2 { top: 40px; right: 0; transform: rotate(5deg); }
.polaroid--3 { bottom: 0; left: 80px; transform: rotate(3deg); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 2; }

.about__art-deco {
  position: absolute; pointer-events: none;
}
.deco-star {
  font-size: 2rem; color: var(--yellow);
  filter: drop-shadow(0 4px 8px rgba(255,210,63,.4));
  animation: bob 3s ease-in-out infinite;
}
.deco-star.d1 { top: 10px; right: 30px; }
.deco-star.d2 { bottom: 60px; right: 10px;
                animation-delay: -1.5s; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li {
  padding: 10px 0 10px 38px;
  position: relative; font-weight: 500;
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px;
  background: var(--g-leaf);
  color: #fff; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
  box-shadow: 0 4px 10px rgba(149,212,74,.4);
}

/* ============================================================
   Programs
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  position: relative;
  background: #fff;
  border-radius: 28px;
  padding: 36px 26px 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute;
  top: -60px; left: -60px;
  width: 160px; height: 160px;
  border-radius: 50%; opacity: .18;
  transition: transform .4s ease;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scale(1.6); }
.card--yellow::before { background: var(--g-sun); }
.card--pink::before   { background: var(--g-pink); }
.card--blue::before   { background: var(--g-mint); }
.card--green::before  { background: var(--g-leaf); }

.card__badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--g-warm);
  color: #fff; font-size: .68rem;
  font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  box-shadow: var(--shadow-color);
  z-index: 2;
}
.card__icon {
  position: relative; z-index: 1;
  font-size: 2.5rem;
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.card--yellow .card__icon { background: var(--g-sun); }
.card--pink   .card__icon { background: var(--g-pink); }
.card--blue   .card__icon { background: var(--g-mint); }
.card--green  .card__icon { background: var(--g-leaf); }
.card h3 { position: relative; z-index: 1; margin-bottom: 6px; }
.card__age {
  position: relative; z-index: 1;
  color: var(--orange); font-weight: 700;
  font-size: .88rem; margin: 0 0 12px;
  text-transform: uppercase; letter-spacing: .08em;
}
.card p { position: relative; z-index: 1; margin: 0;
          color: var(--muted); font-size: .95rem; }

/* ============================================================
   Features
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: #fff;
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.6rem; color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.feature:nth-child(1) .feature__icon { background: var(--g-warm); }
.feature:nth-child(2) .feature__icon { background: var(--g-mint); }
.feature:nth-child(3) .feature__icon { background: var(--g-pink); }
.feature:nth-child(4) .feature__icon { background: var(--g-grape); }
.feature:nth-child(5) .feature__icon { background: var(--g-leaf); }
.feature:nth-child(6) .feature__icon { background: var(--g-sun); }
.feature h4 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p  { margin: 0; color: var(--muted); font-size: .94rem; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { background: #ecfaf7; position: relative; }
.testimonials::before {
  content: ""; position: absolute;
  inset: 0; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(78,205,196,.18) 1.5px,
                    transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
  position: relative; z-index: 1;
}
.t-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease;
}
.t-card:hover { transform: translateY(-6px); }
.t-card__quote {
  font-family: 'Fredoka', sans-serif;
  font-size: 4rem; line-height: .8;
  color: var(--orange); opacity: .25;
  position: absolute; top: 14px; right: 22px;
}
.t-card p {
  font-size: 1.02rem; color: var(--ink);
  margin: 0 0 22px; position: relative; z-index: 1;
}
.t-card__stars { color: var(--yellow); margin-bottom: 10px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}
.avatar--pink   { background: var(--g-pink); }
.avatar--orange { background: var(--g-warm); }
.avatar--teal   { background: var(--g-mint); }
.t-author strong { display: block; font-family: 'Fredoka',
                   sans-serif; font-size: 1rem; }
.t-author small  { color: var(--muted); font-size: .82rem; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery__item {
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.gallery__item:nth-child(odd)  { transform: rotate(-1.5deg); }
.gallery__item:nth-child(even) { transform: rotate(1.5deg); }
.gallery__item:hover {
  transform: rotate(0) scale(1.05);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Portrait shots — fill tile, but anchor crop near the top
   so the face stays visible */
.gallery__item:nth-child(11) img,
.gallery__item:nth-child(12) img {
  object-position: center top;
}

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--cream); position: relative; }
.contact::before {
  content: ""; position: absolute;
  top: 60px; right: 40px;
  width: 200px; height: 200px;
  background: var(--g-sun); opacity: .12;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px; align-items: start;
  position: relative; z-index: 1;
}
.info { margin-top: 28px; }
.info__row {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed #ffd9b8;
}
.info__row:last-child { border-bottom: 0; }
.info__icon {
  width: 50px; height: 50px;
  border-radius: 16px;
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.info__row:nth-child(1) .info__icon { background: var(--g-warm); }
.info__row:nth-child(2) .info__icon { background: var(--g-mint); }
.info__row:nth-child(3) .info__icon { background: var(--g-grape); }
.info__row:nth-child(4) .info__icon { background: var(--g-leaf); }
.info strong { font-family: 'Fredoka', sans-serif;
               font-size: 1.05rem; }
.info p { margin: 4px 0 0; color: var(--muted); }
.info a { color: var(--orange); font-weight: 700; }
.contact__cta { display: flex; gap: 12px; margin-top: 24px;
                flex-wrap: wrap; }

.map { margin-top: 30px; }
.map iframe {
  display: block;
  box-shadow: var(--shadow-md);
  border-radius: 22px;
}
.map__link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--orange);
}
.map__link:hover { text-decoration: underline; }

.form {
  background: #fff;
  padding: 36px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  border-top: 6px solid #ff8a3d;
}
.form h3 { margin-top: 0; }
.form label {
  display: block; margin-bottom: 16px;
  font-weight: 600; font-size: .9rem;
}
.form input, .form select, .form textarea {
  width: 100%; margin-top: 8px;
  padding: 13px 16px;
  border: 2px solid #ffe5cc;
  background: #fffaf2;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem; color: var(--ink);
  transition: all .2s ease;
}
.form input:focus, .form select:focus,
.form textarea:focus {
  outline: 0; border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,138,61,.15);
}
.form .btn { width: 100%; margin-top: 8px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #1f1d36;
  color: #d8d4ee;
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: var(--g-warm); opacity: .15;
  border-radius: 50%;
  filter: blur(50px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  position: relative; z-index: 1;
}
.footer h5 {
  color: #fff; font-size: 1.05rem;
  margin: 0 0 18px;
  font-family: 'Fredoka', sans-serif;
}
.footer a {
  display: block; padding: 5px 0;
  color: #d8d4ee;
  transition: color .15s ease, transform .15s ease;
}
.footer a:hover { color: var(--yellow);
                  transform: translateX(3px); }
.footer .muted { color: #a8a3c9; }
.brand--footer .brand__logo { background: var(--g-sun); }
.brand--footer .brand__text,
.brand--footer .brand__text small { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  padding: 0; transition: all .2s ease;
}
.socials a:hover {
  background: var(--g-warm);
  transform: translateY(-3px);
  color: #fff;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.footer__bar {
  border-top: 1px solid #3d3a5e;
  padding: 24px 0;
  text-align: center;
  font-size: .9rem;
  color: #a8a3c9;
  position: relative; z-index: 1;
}

/* ============================================================
   Scroll reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 70px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 14px 22px 20px;
    border-bottom: 1px solid #ffe5cc;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 0; width: 100%; }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 50px 0 110px; }
  .hero__sun     { top: 16px; right: 16px;
                   width: 70px; height: 70px; }
  .hero__cloud.c1{ top: 28px; left: 12px; width: 70px; }
  .hero__cloud.c2{ display: none; }
  .hero__balloon.b1 { top: auto; bottom: 12%;
                      right: 8px; width: 40px; }
  .hero__balloon.b2 { top: auto; bottom: 18%;
                      left: 8px; width: 40px; }
  .float-emoji.fe1, .float-emoji.fe2,
  .float-emoji.fe5 { display: none; }
  .float-emoji.fe3 { bottom: 6%; left: 4%;
                     font-size: 1.6rem; }
  .float-emoji.fe4 { bottom: 4%; right: 4%;
                     font-size: 1.6rem; }
  .school-name { letter-spacing: .01em; }
  .hero__stats { gap: 22px; }
  .hero__center .hero__cta { margin-bottom: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .polaroid img { width: 170px; height: 170px; }
  .polaroid--1 { left: 0; }
  .polaroid--2 { right: 10px; }
  .polaroid--3 { left: 50px; }
}
