/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:   #FFD93D;
  --orange:   #FF6B35;
  --green:    #4CAF7D;
  --blue:     #4A90D9;
  --purple:   #9B59B6;
  --pink:     #FF8FAB;
  --bg:       #FFFBF2;
  --bg-alt:   #FFF5E0;
  --text:     #2D2D2D;
  --text-light: #666;
  --white:    #FFFFFF;
  --radius:   16px;
  --radius-sm: 8px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.12);
  --transition: .25s ease;
  --font-body: 'Nunito', sans-serif;
  --font-head: 'Fredoka One', cursive;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: #e55a28; border-color: #e55a28; }

.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: var(--white); }

.btn-white { background: var(--white); color: var(--orange); border-color: var(--white); }
.btn-white:hover { background: var(--yellow); border-color: var(--yellow); }

.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ===== SECTION COMMON ===== */
.section { padding-block: 5rem; }
.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header p { color: var(--text-light); margin-top: .75rem; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.logo-text { font-family: var(--font-head); font-size: 1.4rem; color: var(--orange); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF8E7 0%, #FFF0D4 100%);
  padding-block: 5rem 4rem;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-tag {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}
.hero-text h1 { margin-bottom: 1.25rem; }
.highlight { color: var(--orange); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(0,0,0,.1);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--orange); }
.stat span { font-size: .85rem; color: var(--text-light); font-weight: 600; }

.hero-img-placeholder {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.hero-img-placeholder span { font-size: 5rem; }
.hero-img-placeholder p { color: var(--white); font-weight: 700; font-size: 1.1rem; }

/* floating shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  opacity: .6;
}
.shape-star  { top: 10%; right: 8%; font-size: 2rem; animation-delay: 0s; }
.shape-heart { top: 70%; left: 5%; font-size: 1.5rem; animation-delay: 1.5s; }
.shape-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--pink);
  opacity: .25;
  bottom: 15%; right: 25%;
  animation-delay: 3s;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid var(--green);
  opacity: .2;
  top: 20%; left: 3%;
  animation-delay: .8s;
}
.shape-dot {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .2;
  top: 50%; right: 3%;
  animation-delay: 2s;
}

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

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.about-card h3 { margin-bottom: .5rem; color: var(--orange); }
.about-card p { color: var(--text-light); font-size: .95rem; }

/* ===== PROGRAMS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.program-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card--featured {
  border-color: var(--orange);
  background: linear-gradient(160deg, #fff8f0 0%, #fff 100%);
  transform: scale(1.04);
}
.program-card--featured:hover { transform: scale(1.04) translateY(-6px); }

.program-badge { font-size: 2.5rem; }
.program-age {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  padding: .2rem .7rem;
  border-radius: 50px;
  width: fit-content;
}
.program-card h3 { color: var(--orange); }
.program-card p { color: var(--text-light); font-size: .93rem; flex: 1; }

.program-features { padding-left: 0; display: flex; flex-direction: column; gap: .35rem; margin-bottom: .5rem; }
.program-features li {
  font-size: .88rem;
  color: var(--text-light);
  padding-left: 1.4rem;
  position: relative;
}
.program-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

.gallery-placeholder {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: transform var(--transition);
  cursor: pointer;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.03); }
.gallery-placeholder span { font-size: 3rem; }
.gallery-placeholder p { color: var(--white); font-weight: 700; font-size: .95rem; }

.gallery-item:nth-child(2) .gallery-placeholder { background: linear-gradient(135deg, #4CAF7D, #2e7d52); }
.gallery-item:nth-child(3) .gallery-placeholder { background: linear-gradient(135deg, #4A90D9, #1a5fa8); }
.gallery-item:nth-child(4) .gallery-placeholder { background: linear-gradient(135deg, #9B59B6, #6c3483); }
.gallery-item:nth-child(5) .gallery-placeholder { background: linear-gradient(135deg, #FF8FAB, #d63060); }
.gallery-item:nth-child(6) .gallery-placeholder { background: linear-gradient(135deg, #43b89c, #1a7a5e); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--yellow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card p { color: var(--text-light); font-style: italic; flex: 1; }

.stars { color: var(--yellow); font-size: 1.1rem; letter-spacing: .1em; }

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-card footer strong { display: block; font-size: .95rem; }
.testimonial-card footer span { font-size: .82rem; color: var(--text-light); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8c42 100%);
  padding-block: 4rem;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); }
.cta-inner p  { color: rgba(255,255,255,.85); margin-top: .5rem; font-size: 1.05rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.info-item strong { display: block; margin-bottom: .25rem; }
.info-item p, .info-item a { color: var(--text-light); font-size: .95rem; }
.info-item a:hover { color: var(--orange); }

/* form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label { font-weight: 700; font-size: .9rem; }
label span { color: var(--orange); }

input, select, textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .7rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
input.error, select.error, textarea.error { border-color: #e74c3c; }
textarea { resize: vertical; min-height: 110px; }

.field-error { color: #e74c3c; font-size: .82rem; font-weight: 600; min-height: 1em; }

.form-success {
  background: #e8f8ef;
  color: #1e7e4a;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-weight: 700;
  text-align: center;
  font-size: .95rem;
}

/* ===== FOOTER ===== */
.footer { background: #1e1e1e; color: rgba(255,255,255,.8); padding-top: 3.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand .logo-text { color: var(--yellow); }
.footer-brand p { margin-top: .75rem; font-size: .9rem; color: rgba(255,255,255,.6); }

.footer h4 { font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--yellow); }

.footer-contact address p { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: .35rem; }
.footer-contact a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--yellow); }

.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: var(--orange); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .program-card--featured { transform: none; }
  .program-card--featured:hover { transform: translateY(-6px); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-stats { gap: 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 2; }
  .cta-inner { flex-direction: column; text-align: center; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .75rem 1.5rem; font-size: 1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .section { padding-block: 3.5rem; }
  .hero { padding-block: 3.5rem 3rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .contact-form { padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== FOCUS & ACCESSIBILITY ===== */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
