:root {
  --orange: #f79623;
  --blue: #1f4294;
  --cream: #f4ecd9;
  --lime: #cbfe3c;
  --sky: #84d3fe;
  --ink: #16213d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 66, 148, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(203, 254, 60, 0.45), transparent 24%),
    radial-gradient(circle at top right, rgba(132, 211, 254, 0.42), transparent 26%),
    linear-gradient(180deg, #fffef8 0%, var(--cream) 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.nav,
.hero,
.intro,
.classes,
.teacher,
.gallery,
.contact,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0 0.6rem;
}

.brand img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 26px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.nav-menu a {
  font-weight: 800;
  color: var(--blue);
}

.translate-toggle {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-toggle {
  display: none;
  background: var(--blue);
  border: 0;
  border-radius: 14px;
  padding: 0.75rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--white);
  border-radius: 999px;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  min-height: 24vh;
  padding: 0;
}

.hero-media {
  display: block;
  min-width: 0;
  min-height: 100%;
}

.hero-side-image-wrap {
  height: 500px;
}

.hero-side-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 2rem -1.1rem auto;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at 30% 30%, var(--lime) 0 28%, transparent 29%),
    radial-gradient(circle at 68% 55%, var(--orange) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 78%, var(--sky) 0 18%, transparent 19%);
  z-index: -1;
}

.hero-side-image {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.8rem 1.4rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(31, 66, 148, 0.08);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Baloo 2", cursive;
  line-height: 0.95;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  color: var(--blue);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--blue);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--blue);
}

p {
  line-height: 1.65;
}

.hero-text {
  font-size: 0.98rem;
}

.hero-actions,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.social-links a:hover,
.social-links a:focus-visible,
.nav-menu a:hover,
.nav-menu a:focus-visible,
.translate-toggle:hover,
.translate-toggle:focus-visible {
  transform: translateY(-2px);
}

.translate-toggle:hover,
.translate-toggle:focus-visible {
  background: var(--orange);
  box-shadow: 0 10px 18px rgba(247, 150, 35, 0.25);
}

.button-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(247, 150, 35, 0.3);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #e98312;
  box-shadow: 0 16px 30px rgba(247, 150, 35, 0.38);
}

.button-secondary {
  background: var(--blue);
  color: var(--white);
}

.button-light {
  background: var(--white);
  color: var(--blue);
}

.intro,
.classes,
.gallery,
.contact {
  padding: 2rem 0 4.5rem;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.class-card,
.contact-card,
.contact-form,
.teacher-copy {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.highlight-panel {
  padding: 2rem;
  border: 3px solid rgba(247, 150, 35, 0.2);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  font-weight: 700;
}

.feature-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
}

.stats-panel {
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(132, 211, 254, 0.9), rgba(203, 254, 60, 0.68));
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-family: "Baloo 2", cursive;
  font-size: 2.25rem;
  color: var(--blue);
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.class-card {
  padding: 1.8rem;
  border-top: 10px solid var(--orange);
}

.class-subtitle,
.class-age {
  margin: 0.45rem 0;
  font-weight: 700;
}

.teacher {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 4.5rem;
}

.teacher-copy {
  padding: 2rem;
}

.teacher-photo-stack {
  position: relative;
  min-height: 480px;
}

.photo-main,
.photo-accent {
  position: absolute;
  border-radius: 30px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.photo-main {
  inset: 0 5rem 5rem 0;
  width: auto;
  height: 100%;
}

.photo-accent {
  right: 0;
  bottom: 0;
  width: 42%;
  border: 8px solid var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 220px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.cta-band {
  width: min(calc(100% - 2rem), 980px);
  margin: 0 auto 4.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--orange), #ffba63 55%, var(--lime));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cta-band p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
}

.contact-card,
.contact-form {
  padding: 2rem;
}

.social-links a {
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--blue);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 2px solid rgba(31, 66, 148, 0.15);
  border-radius: 16px;
  font: inherit;
  background: #fffdfa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(247, 150, 35, 0.15);
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 800;
  color: var(--blue);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 0 2.5rem;
}

.site-footer img {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .teacher,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .class-grid {
    grid-template-columns: 1fr;
  }

  .teacher-photo-stack {
    min-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media {
    min-height: auto;
  }

  .hero-side-image {
    min-height: 420px;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
  }

  .brand img {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    top: 7.5rem;
    right: 1rem;
    left: 1rem;
    z-index: 30;
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
  }

  .translate-toggle {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0.75rem;
  }

  .hero-side-image {
    min-height: 180px;
    height: auto;
    border-radius: 24px;
  }

  .hero-side-image-wrap::after {
    inset: auto 0.25rem -0.45rem auto;
    width: 120px;
    height: 120px;
  }

  .hero-card,
  .highlight-panel,
  .teacher-copy,
  .contact-card,
  .contact-form {
    padding: 1.4rem;
  }

  .teacher-photo-stack {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .photo-main,
  .photo-accent {
    position: static;
    width: 100%;
    height: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}
