/* --------------------------------------------------------------
Theme Name: WP31
Description: A WordPress theme for preschools
Author: CMS Themefactory
Version: 1.3 - Fully Responsive, Polished & Smooth Scroll (2025)
-------------------------------------------------------------- */

/* === GLOBAL RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Nunito', sans-serif;
  color: #333;
  background: #faf3e0;
  line-height: 1.8;
  scroll-behavior: smooth; /* ✅ smooth scroll globally */
}

#wrapper {
  width: 100%;
  background-color: #faf3e0;
}

/* ================================================================
   HEADER SECTION
================================================================ */
header.site-header {
  display: flex;
  justify-content: space-between;   /* moves brand to left, nav/CTA to right */
  align-items: center;
  padding: 20px 50px;
  background: #faf3e0;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 100;
}

.brand {
  margin-right: auto;
}

.brand img {
  width: 260px;     /* bigger desktop size */
  height: auto;
  display: block;
}

/* Desktop Navigation */
nav.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  transition: all 0.4s ease;
}

nav.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav.main-nav a:hover {
  color: #4f8a4d;
}

/* Header Buttons */
.header-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
}



.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  padding: 10px 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tour {
  background-color: #4f8a4d;
  color: #fff !important;
  font-size: 20px !important;  /* was 16px */
  padding: 12px 30px;          /* slightly wider button */
}

.btn-call {
  background-color: #a7c5f9;
  color: #fff !important;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ================================================================
   MOBILE NAVIGATION (Hamburger Menu + Overlay)
================================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 4000;
}

.nav-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate hamburger into "X" */
.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.mobile-ctas {
  display: none;
}

/* ===== Mobile Menu Drawer ===== */
@media (max-width: 992px) {
  header.site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    z-index: 3000;
    background: transparent !important;
    border-bottom: none !important;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0) !important; /* Fully transparent */
  }

   .site-title {
    font-size: 32px;
  }

  .brand img {
    width: 280px;
  }

  /* Hamburger button */
  .nav-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 25px;
  }

  /* Drawer menu */
  nav.main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    background: rgba(250, 243, 224, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    right: -280px;
    height: 100%;
    width: 260px;
    padding: 100px 25px 40px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.35s ease-in-out;
    z-index: 3500;
    overflow-y: auto;
  }

  nav.main-nav.show {
    right: 0;
  }

  nav.main-nav a {
    font-size: 18px;
    padding: 8px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-ctas {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .mobile-ctas .btn {
    text-align: center;
    width: 100%;
    font-size: 16px;
    border-radius: 10px;
    padding: 10px 0;
  }

  /* Hide desktop CTAs */
  .header-ctas {
    display: none;
  }

  /* Dim background when menu is open */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* ================================================================
   SECTION BASE
================================================================ */
.section {
  width: 100%;
  padding: 80px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.section p,
.section ul li {
  font-size: 18px;
  color: #3a3a3a;
  margin-bottom: 16px;
}

.section ul {
  list-style: disc;
  margin: 20px 0 20px 40px;
}

/* ================================================================
   HERO SECTION
================================================================ */
.home-hero .hero-image {
  width: 100%;
  height: 480px;
  background-image: url('/wp-content/themes/preschool-wp31/images/newupdatedbanner.png');
  background-size: cover;
  background-position: center 40%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: brightness(1.1); /* 🔆 brightens the background photo slightly */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-title {
  position: relative;
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 48px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

/* ================================================================
   CTA
================================================================ */
.cta {
  background-color: #4f8a4d;
  color: #fff !important;
  border-radius: 10px;
  padding: 12px 26px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.cta-center {
  text-align: center;
  margin-top: 30px;
}

/* ================================================================
   CONFIDENTLY READY
================================================================ */
.confidently-ready {
  background-color: #faf3e0;
  text-align: center;
  padding: 80px 20px;
}

.confidently-ready p {
  max-width: 900px;
  margin: 0 auto 20px;
}

/* ================================================================
   READY ICONS
================================================================ */
.ready-icons {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 70px;
}

.ready-item {
  text-align: center;
  width: 260px;
  position: relative;
}

.curve-wrapper {
  height: 120px;
  margin-bottom: -50px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.curve-text text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  font-size: 22px;
  fill: #333;
  letter-spacing: 2px;
}

.circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.circle img {
  width: 200%;
  height: auto;
  object-fit: contain;
}

.circle.confidence { background-color: #d64b4b; }
.circle.curiosity { background-color: #6caef0; }
.circle.love { background-color: #ffcc53; }

/* Responsive tweaks */
@media (max-width: 992px) {
  .ready-icons {
    gap: 50px;
  }
  .ready-item {
    width: 220px;
  }
  .circle {
    width: 210px;
    height: 210px;
  }
  .circle img {
    width: 150%;
  }
  .curve-wrapper {
    height: 100px;
    margin-bottom: -40px;
  }
  .curve-text text {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .ready-icons {
    flex-direction: column;
    gap: 50px;
  }
  .curve-text text {
    font-size: 18px;
  }
  .circle {
    width: 200px;
    height: 200px;
  }
  .circle img {
    width: 150%;
  }

  .brand img {
    width: 230px;
  }
  
}

/* ================================================================
   CERTIFIED TEACHERS SECTION
================================================================ */
.section.teachers {
  background-color: #faf3e0;
  padding: 80px 0;
}

.teachers-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.teachers-photo {
  flex: 1;
  max-width: 600px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.teachers-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teachers-copy {
  flex: 1;
  font-size: 18px;
  line-height: 1.8;
  color: #3a3a3a;
  text-align: left;
  max-width: 600px;
}

/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonials {
  padding: 80px 0;
}

.testimonials h2 {
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  font-size: 36px;
  margin: 0;
  color: #333;
}

.carousel {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
}

.quote-box {
  background: #fff;
  border-left: 5px solid #f5b77a;
  border-radius: 12px;
  padding: 30px 40px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.quote-mark {
  font-size: 50px;
  color: #f5b77a;
}

.quote-text {
  font-size: 18px;
  color: #444;
  margin-top: 10px;
}

.quote-author {
  margin-top: 15px;
  font-weight: 700;
  color: #4f8a4d;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dots .dot.active {
  background-color: #4f8a4d;
  transform: scale(1.2);
}

/* ================================================================
   FAQ SECTION
================================================================ */
.faq {
  padding: 60px 0;
}

.faq .section-inner {
  text-align: center;
}

.faq-banner {
  background-color: #4f8a4d;
  color: #fff;
  text-align: center;
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  margin: 0 auto 30px;
}

.faq-banner h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 800;
  font-size: 34px;
  margin: 0;
  color: #fff;
}

.faq-list {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 12px;
}

.faq-question h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

.faq-answer {
  margin-top: 10px;
  display: block;
}

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: #faf3e0;
  padding: 30px 0 10px;
  text-align: center;
  color: #333;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column.left { text-align: right; }
.footer-column.right { text-align: left; }

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -10px;  /* tweak if needed */
}

.footer-logo img {
  width: 380px !important;
  height: auto !important;
}

.footer-tagline {
  font-size: 12px;
  color: #444;
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 8px;
}

.footer-bottom p {
  font-size: 13px;
  color: #555;
}


/* ================================================================
   SMALL SCREEN TWEAKS
================================================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
    padding: 0 15px;
  }

   .hero-overlay {
    background: rgba(0, 0, 0, 0) !important; /* Fully transparent */
  }

  .section h2 {
    font-size: 28px;
  }

  .ready-icons {
    flex-direction: column;
    gap: 30px;
  }

  .faq-banner {
    max-width: 90%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .footer-logo img {
    width: 110px;
  }

  .teachers-row {
    flex-direction: column;
    gap: 30px;
  }

  .teachers-photo {
    max-width: 100%;
    width: 100%;
  }

  .teachers-copy {
    text-align: center;
    max-width: 90%;
  }
}

/* === Dropdown contact menu (for Request a Tour) === */
.cta-wrapper,
.rqst-center {
  position: relative;
  display: inline-block;
  text-align: center;
}

/* Shared button styling (same as top-right Request a Tour) */
.btn-tour {
  background-color: #4f8a4d;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  padding: 12px 26px;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-tour:hover {
  background-color: #3f703e;
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* === Dropdown Styling === */
.contact-dropdown {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  min-width: 220px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-dropdown.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown links */
.contact-dropdown a {
  color: #333;
  text-decoration: none;
  padding: 12px 16px;
  font-weight: 600;
  display: flex;
  font-size: 16px;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.contact-dropdown a:hover {
  background: #4f8a4d;
  color: #fff;
}

/* === Mobile Dropdown (Drawer) === */
.mobile-ctas {
  position: relative;
}

.mobile-ctas .contact-dropdown {
  position: static;
  box-shadow: none;
  border: none;
  padding-top: 5px;
  opacity: 1;
  transform: none;
  display: none;
   flex-direction: column;
}

.mobile-ctas .contact-dropdown a {
  white-space: normal;     /* Allow wrapping */
  word-break: break-word;  /* Break long email */
  line-height: 1.3;
  text-align: left;        /* Prevent center squishing */
  display: flex;
  align-items: flex-start; /* Align icon + text cleanly */
}

.mobile-ctas .contact-dropdown.show {
  display: flex;
}


/* === Center (FAQ Section) Button === */
.rqst-center {
  position: relative;
  text-align: center;
  margin-top: 40px;
}

.rqst-center .btn-tour {
  position: relative;
  z-index: 2;
}

#dropdownFooter {
  top: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

#dropdownFooter.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Divider styling */
.section-divider {
  text-align: center;
  margin: 25px 0 40px;
}

.section-divider img {
  width: 260px;
  max-width: 80%;
  height: auto;
  opacity: 0.9;
}

.testimonial-subtitle {
  text-align: center;
  font-size: 18px;
  margin-top: -10px;
  margin-bottom: 30px;
  color: #444;
}
