/* 
  ========================================
  KINDERGENTIUS SEAMLESS REDESIGN (KIDZEE)
  ========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Sniglet:wght@400;800&display=swap');

:root {
  /* Kidzee-Inspired Color Palette */
  --brand: #4B1675;
  /* Deep Purple */
  --brand-light: #6A2D9D;
  --accent: #FAEF35;
  /* Kidzee Yellow */
  --accent-soft: #FFF9E6;
  --bg-soft: #F1E9F9;
  /* Soft Lavender */
  --bg-white: #ffffff;
  --text: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --text-dark: #2D0A54;

  /* Shapes & Effects */
  --radius: 40px;
  --radius-sm: 20px;
  --shadow: 0 10px 30px rgba(75, 22, 117, 0.1);
  --shadow-hover: 0 15px 40px rgba(75, 22, 117, 0.2);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Navigation sizing */
  --nav-offset: 12px;
  --nav-height: 64px;
  --nav-gap: 10px;
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Sniglet', cursive;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-white);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 210, 0, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(75, 22, 117, 0.05) 0%, transparent 20%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--brand);
}

a {
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Typography Scale */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 30px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  text-align: center;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--brand);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 210, 0, 0.4);
}

.btn-primary:active,
.btn-primary.is-pressed {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 210, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--brand);
  transform: translateY(-5px);
}

.btn-outline:active,
.btn-outline.is-pressed {
  background-color: var(--white);
  color: var(--brand);
  transform: translateY(-5px);
}

/* Header (Floating Pill Style) */
.site-header {
  background: var(--brand);
  padding: 0;
  position: relative;
  z-index: 1000;
  min-height: calc(var(--nav-offset) + var(--nav-height) + var(--nav-gap));
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(75, 22, 117, 0.75);
  padding: 12px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(33, 12, 55, 0.22);
  position: fixed;
  top: var(--nav-offset);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1001;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Seamless Hero */
.hero {
  background: var(--brand);
  color: var(--white);
  padding: 100px 0 180px;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}

.hero h1,
.hero h2,
.hero h3 {
  color: var(--white);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  border: 12px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  }
}

/* Organic Divider (The Transition) */
.organic-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  background: transparent;
  line-height: 0;
  z-index: 5;
  --divider-fill: var(--bg-white);
  --divider-tint: 255, 255, 255;
}

.organic-divider svg {
  display: block;
  width: 100%;
  height: 120px;
}

.divider-bg {
  fill: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.divider-fill {
  fill: var(--divider-fill);
}

.parallax > use {
  animation: move-forever 60s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 25s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 35s;
}

.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 50s;
}

.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 70s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Decorative Sprinkles */
.decor-sprinkle {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translate(0, 0) rotate(0);
  }

  to {
    transform: translate(10px, 20px) rotate(15deg);
  }
}

/* Playful Animations (Wiggle & Jelly) */
@keyframes wiggle {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

@keyframes jelly {

  0%,
  100% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(0.9, 1.1);
  }

  50% {
    transform: scale(1.1, 0.9);
  }

  75% {
    transform: scale(0.95, 1.05);
  }
}

.btn:hover {
  animation: jelly 0.5s ease-in-out;
}

.btn:active,
.btn.is-pressed {
  animation: jelly 0.5s ease-in-out;
}

.card:hover .card-icon {
  animation: wiggle 0.6s ease-in-out infinite;
}

/* Hand-Drawn Stickers & Doodles */
.sticker {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.doodle-underline {
  position: relative;
  display: inline-block;
}

.doodle-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='20' viewBox='0 0 200 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,10 Q50,0 100,10 T198,10' fill='none' stroke='%23FFD200' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

.section-bg-soft {
  background-color: var(--bg-soft);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--grid-gap, 40px);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 250px), 1fr));
}

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

.grid-split {
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

/* Kidzee Style Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-hover);
  border-color: var(--bg-soft);
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--bg-soft);
  color: var(--brand);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Admissions Cards (Playful Glass Style) */
.admissions-section {
  background: #EBE1FF;
  color: var(--brand);
}

.admissions-header {
  text-align: center;
  margin-bottom: 50px;
}

.admissions-header h2 {
  color: var(--brand);
}

.admissions-header p {
  color: var(--text-dark);
  opacity: 0.7;
  max-width: 720px;
  margin: 0 auto;
}

.admissions-header h2 span {
  color: var(--accent);
  -webkit-text-stroke: 0;
  letter-spacing: 0.04em;
  text-shadow:
    1.5px 0 0 var(--brand),
    -1.5px 0 0 var(--brand),
    0 1.5px 0 var(--brand),
    0 -1.5px 0 var(--brand),
    1.5px 1.5px 0 var(--brand),
    -1.5px -1.5px 0 var(--brand),
    1.5px -1.5px 0 var(--brand),
    -1.5px 1.5px 0 var(--brand);
}

.admission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.admission-card {
  border-radius: 40px;
  padding: 35px 25px;
  position: relative;
  background: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 20px 40px rgba(74, 20, 140, 0.08);
  transition: all 0.3s ease;
  color: var(--brand);
  font-family: 'Fredoka', sans-serif;
}

.admission-card:hover {
  transform: translateY(-15px);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(74, 20, 140, 0.15);
}

.admission-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.admission-card__badge {
  background: var(--accent);
  color: var(--brand);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(250, 239, 53, 0.3);
}

.admission-card__initial {
  width: 45px;
  height: 45px;
  background: #EBE1FF;
  color: var(--brand);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.admission-card__age {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--brand);
  text-align: center;
  width: 100%;
  display: block;
}

.admission-card__sub {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 25px;
  display: block;
  text-align: center;
  width: 100%;
}

.admission-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.admission-card__item {
  background: #F8F5FF;
  border: 1.5px dashed var(--brand);
  border-radius: 15px;
  padding: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-dark);
  font-weight: 500;
}

.admission-card__btn {
  width: 100%;
  background: var(--brand);
  border: none;
  color: var(--white);
  padding: 15px;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  display: inline-block;
  transition: all 0.2s;
}

.admission-card__btn:hover {
  background: var(--text-dark);
}

.admissions-note {
  margin-top: 40px;
  text-align: center;
  color: var(--text-dark);
  opacity: 0.7;
}

.admission-card--compact {
  padding: 28px 22px;
}

.admission-card--compact .admission-card__badge {
  font-size: 1rem;
  padding: 7px 16px;
}

.admission-card--compact .admission-card__initial {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-radius: 12px;
}

.admission-card--compact .admission-card__age {
  font-size: 1.25rem;
}

.admission-card--compact .admission-card__item {
  font-size: 0.92rem;
}

/* Programs (Playful Cards) */
.programs-header {
  text-align: center;
  margin-bottom: 50px;
}

.programs-header p {
  max-width: 720px;
  margin: 0 auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.program-card {
  background: var(--card-bg, #fff8c7);
  border-radius: 32px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(75, 22, 117, 0.08);
  transition: var(--transition);
}

.program-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  background: var(--card-accent, var(--accent));
  opacity: 0.2;
  border-radius: 40% 60% 55% 45%;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.program-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.program-card__badge {
  background: var(--card-accent, var(--accent));
  color: var(--brand);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
}

.program-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 2px solid rgba(75, 22, 117, 0.12);
}

.program-card__age {
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.program-card__note {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.program-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.program-card__list li {
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(75, 22, 117, 0.15);
  font-size: 0.98rem;
}

.program-card--compact {
  padding: 24px;
}

.program-card--compact .program-card__icon {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.program-card--compact .program-card__note {
  font-size: 0.95rem;
}

.programs-cta {
  margin-top: 50px;
  padding: 30px;
  border-radius: 28px;
  background: var(--bg-soft);
  text-align: center;
}

.programs-cta p {
  margin: 12px auto 24px;
  max-width: 640px;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Footer (Deep Purple) */
.site-footer {
  background: var(--brand);
  color: var(--white);
  padding: 80px 0 30px;
  position: relative;
}

.site-footer h3 {
  color: var(--accent);
  margin-bottom: 25px;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0 20px;
  padding-top: 20px;
  text-align: center;
}

/* Social Icons */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(75, 22, 117, 0.1);
  color: var(--brand);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(75, 22, 117, 0.18);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link--light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.social-link--light:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(37, 211, 102, 0.35);
  z-index: 1100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 20px 36px rgba(37, 211, 102, 0.45);
}

.whatsapp-float__text {
  line-height: 1;
}

/* Mobile Navigation Toggle (Hidden on Desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  margin-left: auto;
}

.hamburger {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--white);
  position: relative;
  transition: var(--transition);
  border-radius: 3px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--white);
  left: 0;
  transition: var(--transition);
  border-radius: 3px;
}

.hamburger::before {
  top: -10px;
}

.hamburger::after {
  top: 10px;
}

/* Responsive Media Query */
@media (max-width: 968px) {

  /* Layout & Typography */
  .container {
    padding: 0 20px;
  }

  :root {
    --nav-offset: 10px;
    --nav-height: 58px;
    --nav-gap: 8px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  /* Header & Nav */
  .nav-toggle {
    display: block;
  }

  .nav-inner {
    padding: 10px 18px;
    border-radius: 28px;
    width: calc(100% - 20px);
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-offset) + var(--nav-height));
    left: 0;
    width: 100%;
    background: var(--brand);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    align-items: center;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    max-height: calc(100vh - var(--nav-offset) - var(--nav-height));
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  /* Hamburger Animation State */
  .nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Hero Section */
  .hero {
    padding: 60px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero-image {
    order: 0;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-text h1 {
    margin-bottom: 15px;
  }

  .hero-text {
    order: -1;
  }

  .hero-text p {
    font-size: 1.1rem !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .hero-actions .btn {
    margin: 0 !important;
    width: 100%;
    max-width: 300px;
  }

  /* Organic Dividers */
  .organic-divider svg {
    height: 95px;
  }

  /* Cards */
  .card {
    padding: 30px 20px;
  }

  .admission-card {
    padding: 26px;
  }

  .admission-card__badge {
    font-size: 1rem;
  }

  .admission-card__initial {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .program-card {
    padding: 26px;
  }

  .program-card__icon {
    width: 48px;
    height: 48px;
  }

  .program-card__badge {
    font-size: 0.95rem;
  }

  .decor-sprinkle {
    display: none;
  }

  section {
    padding: 80px 0;
  }

  .grid {
    gap: var(--grid-gap-mobile, 30px);
  }

  .grid-two,
  .grid-split {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    padding: 60px 0 30px;
  }

  .site-footer .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-offset: 8px;
    --nav-height: 52px;
    --nav-gap: 6px;
  }
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .nav-inner {
    padding: 8px 14px;
    width: calc(100% - 16px);
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero-image img {
    border-width: 8px;
  }

  .hero-image {
    max-width: 260px;
  }

  .hero-text p {
    font-size: 1rem !important;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .organic-divider svg {
    height: 80px;
  }

  section {
    padding: 60px 0;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}
