/* ========================================
   MAPPLEWOOD PRESCHOOL - MAIN STYLESHEET
   ======================================== */

/* CSS Variables / Theme Colors */
:root {
  --primary-color: #4e6ccd;
  --secondary-color: #4e6ccd;
  --accent-color: #4e6ccd; /* changed from #FFE66D */
  --dark-text: #2C3E50;
  --light-bg: #F8F9FA;
  --white: #ffffff;
  --gray-light: #ecf0f1;
  --gray-medium: #6c757d;
  --shadow-sm: 0 2px 15px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.15);
  --transition-speed: 0.3s;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

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

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

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
  background: var(--white) !important;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  transition: all var(--transition-speed) ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand img {
  height: 50px;
  margin-right: 12px;
}

.navbar-brand .brand-icon {
  font-size: 1.8rem;
  margin-right: 10px;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--dark-text) !important;
  margin: 0 10px;
  padding: 8px 15px !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.btn-enroll {
  background: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.btn-enroll:hover {
  background: transparent;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78,110,205,0.3); /* adjusted to blue tint */
}

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 5px;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
  padding-top: 100px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 30px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease 0.4s both;
}

.hero-image canvas {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 100%;
  height: auto;
}

.hero-buttons {
  margin-top: 30px;
}

.btn-hero {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  margin: 10px;
  transition: all var(--transition-speed) ease;
  display: inline-block;
  border: 2px solid transparent;
}

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

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.3);
  color: var(--primary-color);
}

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

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-text);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-title.text-left::after {
  left: 0;
  transform: translateX(0);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-medium);
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle.text-left {
  text-align: left;
  margin-left: 0;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  height: 100%;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.05;
  transition: height var(--transition-speed) ease;
}

.feature-card:hover::before {
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  transition: transform var(--transition-speed) ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--dark-text);
}

.feature-text {
  color: var(--gray-medium);
  line-height: 1.7;
}

/* ========================================
   CURRICULUM SECTION
   ======================================== */

.curriculum-section {
  padding: 80px 0;
  background: var(--white);
}

.curriculum-card {
  background: var(--light-bg);
  padding: 35px;
  border-radius: 15px;
  transition: all var(--transition-speed) ease;
  height: 100%;
  border: 2px solid transparent;
  display: flex;
  align-items: start;
}

.curriculum-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
  background: var(--white);
}

.curriculum-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-right: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
}

.curriculum-card:hover .curriculum-icon {
  transform: scale(1.1) rotate(-5deg);
}

.curriculum-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.curriculum-text {
  color: var(--gray-medium);
  line-height: 1.7;
}

.approach-badge {
  background: var(--light-bg);
  padding: 25px 15px;
  border-radius: 15px;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.approach-badge:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.approach-badge i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: block;
  color: var(--secondary-color);
}

.approach-badge:hover i {
  color: var(--white);
}

.approach-badge p {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */

.why-choose {
  padding: 80px 0;
  background: var(--white);
}

.why-list {
  list-style: none;
  padding: 0;
}

.why-list li {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: start;
  transition: all var(--transition-speed) ease;
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list li:hover {
  padding-left: 10px;
  background: rgba(78, 110, 205, 0.05);
  border-radius: 10px;
}

.why-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  transition: all var(--transition-speed) ease;
}

.why-list li:hover .why-icon {
  transform: scale(1.1);
  background: var(--secondary-color);
  color: var(--white);
}

.why-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark-text);
}

.why-content p {
  margin: 0;
  color: var(--gray-medium);
  line-height: 1.7;
}

.why-image canvas {
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-speed) ease;
}

.why-image:hover canvas {
  transform: scale(1.02);
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */

.programs-section {
  padding: 80px 0;
  background: var(--light-bg);
}

.program-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

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

.program-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.program-image canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.program-card:hover .program-image canvas {
  transform: scale(1.1);
}

.program-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.program-content {
  padding: 30px;
}

.program-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-text);
}

.program-age {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.program-text {
  color: var(--gray-medium);
  margin-bottom: 20px;
  line-height: 1.7;
}

.program-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.program-features li {
  padding: 8px 0;
  color: var(--gray-medium);
  transition: all var(--transition-speed) ease;
}

.program-features li:hover {
  padding-left: 5px;
  color: var(--dark-text);
}

.program-features li i {
  color: var(--secondary-color);
  margin-right: 10px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
  padding: 80px 0;
  background: var(--white);
}

.testimonial-card {
  background: var(--light-bg);
  padding: 40px;
  border-radius: 15px;
  position: relative;
  height: 100%;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.quote-icon {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 4rem;
  color: var(--secondary-color);
  opacity: 0.2;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-medium);
  margin-bottom: 25px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  margin-right: 15px;
  font-size: 1.2rem;
}

.author-info h5 {
  margin: 0;
  color: var(--dark-text);
  font-size: 1.1rem;
}

.author-info p {
  margin: 0;
  color: var(--gray-medium);
  font-size: 0.9rem;
}

.stars {
  color: #ffc107;
  margin-bottom: 10px;
}

.stars i {
  margin-right: 2px;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-section .btn-hero {
  position: relative;
  z-index: 1;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: #2C3E50;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer h5 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer p {
  color: var(--gray-light);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 15px;
  display: flex;
  align-items: start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
  margin-top: 3px;
  width: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  color: var(--white);
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--dark-text);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  color: #95a5a6;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary {
  background: var(--primary-color) !important;
}

.bg-secondary {
  background: var(--secondary-color) !important;
}

.bg-light-custom {
  background: var(--light-bg) !important;
}

/* Spacing utilities */
.py-80 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.my-80 {
  margin-top: 80px;
  margin-bottom: 80px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and below */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .feature-card,
  .program-card {
    margin-bottom: 30px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }

  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .btn-hero {
    padding: 12px 30px;
    font-size: 1rem;
    display: block;
    margin: 10px 0;
  }
  
  .feature-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .btn-enroll {
    margin-left: 0;
    margin-top: 10px;
    display: block;
    text-align: center;
  }
  
  .program-content {
    padding: 20px;
  }
  
  .testimonial-card {
    padding: 30px 20px;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .feature-card {
    padding: 30px 20px;
  }
  
  .why-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .why-content h4 {
    font-size: 1.1rem;
  }
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pulse animation for buttons */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  .navbar,
  .footer,
  .cta-section,
  .btn-hero,
  .btn-enroll {
    display: none;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .hero-section {
    page-break-after: always;
  }
}
