/* ============================================
   Kidzee Preschool - Modern Responsive Design
   ============================================ */

:root {
  /* Soft pastel palette */
  --primary: #663390;
  --primary-light: #8b5cad;
  --primary-pale: #e8dff0;
  --accent: #f4a261;
  --accent-light: #fce4d4;
  --mint: #a8dadc;
  --mint-pale: #e8f6f7;
  --cream: #fef9f3;
  --cream-dark: #f5ebe0;
  --text: #2d2d2d;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --shadow: rgba(102, 51, 144, 0.08);
  --shadow-hover: rgba(102, 51, 144, 0.15);
  
  /* Typography */
  --font-display: 'Londrina Solid', 'Londrina Outline', sans-serif;
  --font-body: 'Lato', -apple-system, sans-serif;
  
  /* Spacing & Radius */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --nav-height: 112px;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px var(--shadow-hover);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 96px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-pale);
}

.nav-call {
  display: none;
}

.nav-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   Hero Carousel
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 51, 144, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtext {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(102, 51, 144, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 51, 144, 0.45);
}

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

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
}

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

.hero-phone {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.95rem;
}

.hero-location:hover {
  text-decoration: underline;
}

.hero-location svg {
  flex-shrink: 0;
}

.hero-dots {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot:hover,
.hero-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.hero-trust {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  z-index: 3;
}

/* ============================================
   Programs
   ============================================ */

.programs {
  background: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(102, 51, 144, 0.06);
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.program-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 8px;
}

.program-age {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.program-card p {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.btn-card {
  background: var(--primary-pale);
  color: var(--primary);
  align-self: flex-start;
}

.btn-card:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   Gallery
   ============================================ */

.gallery {
  background: var(--cream-dark);
}

.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0;
  max-height: 320px;
}

.gallery-scroll::-webkit-scrollbar {
  height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: var(--primary-pale);
  border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}

.gallery-track {
  display: flex;
  gap: 20px;
  padding: 8px 0;
  min-width: min-content;
  align-items: stretch;
}

.gallery-item {
  flex: 0 0 auto;
  width: 360px;
  height: 270px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

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

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

/* ============================================
   Facilities
   ============================================ */

.facilities {
  background: var(--white);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.facility-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(102, 51, 144, 0.05);
}

.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px var(--shadow-hover);
}

.facility-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.facility-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid rgba(102, 51, 144, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.testimonial-source {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   Contact / Enroll
   ============================================ */

.contact {
  background: var(--cream-dark);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-heading {
  text-align: left;
  margin-bottom: 32px;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid rgba(102, 51, 144, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-error {
  font-size: 0.85rem;
  color: #c0392b;
}

.btn-full {
  width: 100%;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
  background: var(--mint-pale);
  border-radius: var(--radius);
}

.form-success.hidden {
  display: none !important;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--mint);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 8px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: 280px;
  box-shadow: 0 4px 24px var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.contact-phone:hover {
  text-decoration: underline;
}

.contact-address strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.contact-address p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.contact-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 24px;
}

.footer-container {
  text-align: center;
}

.footer-main h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-main a {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-main p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================================
   WhatsApp Float
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 998;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ============================================
   Scroll Animations
   ============================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-item {
    width: 320px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
    gap: 4px;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }
  
  .nav-call {
    display: inline-flex;
  }
  
  .nav-btn {
    width: 100%;
    margin-top: 8px;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .facilities-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .gallery-item {
    width: 280px;
    height: 210px;
  }
  
  .hero-trust {
    bottom: 100px;
    font-size: 0.8rem;
    padding: 0 16px;
    text-align: center;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
