/* ===========================
   GURUKUL PRESCHOOL - CSS
   =========================== */

/* --- ROOT VARIABLES --- */
:root {
  --red: #e53935;
  --dark-red: #c62828;
  --yellow: #fbc02d;
  --blue: #4fc3f7;
  --green: #81c784;
  --cream: #fff8e7;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark: #1a1a2e;
  --text: #444444;
  --font-main: "Poppins", sans-serif;
  --font-script: "Courgette", cursive;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-main);
  color: var(--text);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 15px;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}
.script-text,
.section-title span {
  font-family: var(--font-script);
  color: #fabd2d;
  font-weight: 400;
}
.section-subtitle {
  color: #777;
  margin-top: 10px;
  font-size: 1rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(229, 57, 53, 0.4);
}
.btn-secondary {
  background: white;
  color: var(--red);
  border-color: var(--red);
}
.btn-secondary:hover {
  background: var(--cream);
  transform: translateY(-3px);
}
.btn-white {
  background: white;
  color: var(--red);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-3px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline-white:hover {
  background: white;
  color: var(--red);
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-top {
  background: var(--dark-red);
  padding: 7px 0;
  font-size: 0.82rem;
  color: white;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.header-contact {
  display: flex;
  gap: 20px;
}
.header-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-top-btns {
  display: flex;
  gap: 10px;
}
.top-btn {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.3s;
}
.top-btn.admission {
  background: var(--yellow);
  color: var(--dark);
}
.top-btn.summer {
  background: var(--blue);
  color: var(--dark);
}
.top-btn.franchise {
  background: var(--green);
  color: var(--dark);
}
.top-btn:hover {
  transform: scale(1.05);
}

.navbar {
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
}
.site-header.scrolled .navbar {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 65px;
}
.text-logo {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1.2;
}
.text-logo small {
  font-family: var(--font-main);
  font-size: 0.6rem;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: rgba(229, 57, 53, 0.08);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: var(--cream);
  color: var(--red);
  padding-left: 28px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  transition: all 0.3s;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  background: linear-gradient(135deg, #fff5f5 0%, #fff8e7 50%, #e3f2fd 100%);
  min-height: 100vh;
  padding-top: 130px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Floating Elements */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cloud {
  position: absolute;
  font-size: 3rem;
  animation: floatCloud 8s ease-in-out infinite;
  opacity: 0.5;
}
.cloud1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}
.cloud2 {
  top: 25%;
  right: 8%;
  animation-delay: 3s;
  font-size: 2rem;
}
.cloud3 {
  top: 60%;
  left: 2%;
  animation-delay: 5s;
  font-size: 2.5rem;
}
.balloon {
  position: absolute;
  font-size: 2.5rem;
  animation: floatBalloon 6s ease-in-out infinite;
}
.balloon1 {
  top: 20%;
  right: 20%;
  animation-delay: 1s;
}
.balloon2 {
  top: 50%;
  right: 5%;
  animation-delay: 3s;
  font-size: 2rem;
}
.star {
  position: absolute;
  animation: twinkle 2s ease-in-out infinite;
}
.star1 {
  top: 10%;
  left: 30%;
  font-size: 1.5rem;
  animation-delay: 0.5s;
}
.star2 {
  top: 40%;
  left: 15%;
  font-size: 1rem;
  animation-delay: 1.5s;
}
.star3 {
  top: 70%;
  right: 30%;
  font-size: 1.2rem;
  animation-delay: 2.5s;
}

@keyframes floatCloud {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}
@keyframes floatBalloon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-title-script {
  font-family: var(--font-script);
  color: var(--red);
  font-weight: 400;
}
.hero-subtitle {
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
}
.stat-label {
  font-size: 0.75rem;
  color: #888;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-img-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}
.hero-img-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid white;
  box-shadow: 0 20px 60px rgba(229, 57, 53, 0.2);
}
.hero-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  animation: floatCard 3s ease-in-out infinite;
  white-space: nowrap;
}
.card-icon {
  font-size: 1.3rem;
}
.card1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.card2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 1s;
}
.card3 {
  top: 40%;
  right: -15%;
  animation-delay: 2s;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-wave {
  margin-top: auto;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
  background: var(--cream);
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
}
.about-img-wrapper img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.about-badge {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--red);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}
.about-exp-card {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--yellow);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow);
}
.exp-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}
.exp-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
}

.section-title-script {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title-script span {
  color: var(--red);
}
.about-desc {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.value-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.value-dot.red {
  background: var(--red);
}
.value-dot.blue {
  background: var(--blue);
}
.value-dot.green {
  background: var(--green);
}
.value-dot.yellow {
  background: var(--yellow);
}

/* ===========================
   PROGRAMS SECTION
   =========================== */
.programs-section {
  padding: 80px 0;
  background: var(--light-gray);
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.program-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px 25px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.program-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}
.program-card:hover::before {
  transform: scaleX(1);
}
.program-icon {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.age-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--dark-red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.program-card p {
  color: #888;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.program-link {
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.program-link:hover {
  gap: 12px;
}

/* ===========================
   WHY CHOOSE US
   =========================== */
.why-section {
  padding: 80px 0;
  background: white;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
}
.why-card:hover {
  background: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(229, 57, 53, 0.25);
}
.why-card:hover h4,
.why-card:hover p {
  color: white;
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.why-card p {
  font-size: 0.88rem;
  color: #777;
  line-height: 1.6;
  transition: color 0.3s;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
  padding: 80px 0;
  background: var(--cream);
}
.testimonials-slider {
  max-width: 700px;
  margin: 0 auto 30px;
}
.testimonial-card {
  display: none;
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stars {
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: italic;
}
.parent-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.parent-avatar {
  font-size: 2.5rem;
}
.parent-info strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}
.parent-info span {
  font-size: 0.82rem;
  color: #888;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--red);
  width: 30px;
  border-radius: 5px;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--red), var(--dark-red));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-balloon {
  position: absolute;
  font-size: 3rem;
  top: 10%;
  left: 5%;
  animation: floatBalloon 5s ease-in-out infinite;
}
.cta-star {
  position: absolute;
  font-size: 2rem;
  top: 20%;
  right: 10%;
  animation: twinkle 2s ease-in-out infinite;
}
.cta-star2 {
  position: absolute;
  font-size: 1.5rem;
  bottom: 20%;
  left: 15%;
  animation: twinkle 3s ease-in-out infinite;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: white;
  font-weight: 800;
  margin-bottom: 15px;
}
.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 35px;
}
.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
}
.footer-wave {
  line-height: 0;
}
.footer-wave svg {
  display: block;
  width: 100%;
}
.footer-main {
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--yellow);
  margin-bottom: 15px;
}
.footer-about p {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.3s;
  color: white;
}
.social-btn.fb {
  background: #3b5998;
}
.social-btn.ig {
  background: linear-gradient(
    45deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
}
.social-btn.yt {
  background: #ff0000;
}
.social-btn.wa {
  background: #25d366;
}
.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
}
.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}
.footer-col ul a:hover {
  color: var(--yellow);
  padding-left: 5px;
}
.contact-list li {
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.contact-list i {
  color: var(--yellow);
  margin-top: 2px;
}
.newsletter {
  display: flex;
  margin-top: 15px;
}
.newsletter input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 8px 0 0 8px;
  font-family: var(--font-main);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  font-size: 0.85rem;
}
.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.newsletter button {
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 10px 15px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.newsletter button:hover {
  background: var(--red);
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .programs-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-img-wrapper {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .hamburger {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    display: none;
  }
  .hero-buttons,
  .hero-stats {
    justify-content: center;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .card1,
  .card2,
  .card3 {
    display: none;
  }
}
