@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #2563EB;
  --soft-green: #10B981;
  --warm-orange: #FB923C;
  --light-gray: #F3F4F6;
  --dark-gray: #1F2937;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 48px;
  color: var(--primary-blue);
}

h2 {
  font-size: 36px;
  color: var(--dark-gray);
}

h3 {
  font-size: 24px;
  color: var(--dark-gray);
}

p {
  margin-bottom: 1rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 14px;
  color: var(--dark-gray);
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a.active {
  color: var(--primary-blue);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.phone-header {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.phone-header:hover {
  color: #1D4ED8;
}

.phone-header::before {
  content: '📞';
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--light-gray) 0%, #E0E7FF 100%);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--soft-green) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 20px;
  color: var(--dark-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-accent {
  background-color: var(--warm-orange);
  color: var(--white);
}

.btn-accent:hover {
  background-color: #EA580C;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: 'Fredoka', sans-serif;
}

.stat-label {
  font-size: 14px;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 18px;
  color: var(--dark-gray);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 1rem;
}

.feature-card {
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  margin-bottom: 2rem;
}

.testimonial::before {
  content: '"';
  font-size: 60px;
  color: var(--primary-blue);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-blue);
}

/* CTA Section */
.cta {
  background-color: var(--primary-blue);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 2rem 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta p {
  font-size: 18px;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Age Group Cards */
.age-group-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 0.95) 100%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.age-group-card:hover {
  border-color: var(--primary-blue);
  background: rgba(255, 255, 255, 0.98);
}

.age-icon {
  font-size: 48px;
  margin-bottom: 1rem;
}

/* Ratios Table */
.ratios-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.ratios-table th,
.ratios-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.ratios-table th {
  background-color: var(--primary-blue);
  color: var(--white);
}

.ratios-table tr:hover {
  background-color: var(--light-gray);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--light-gray);
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

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

/* Location Map */
.map-container {
  background-color: var(--light-gray);
  height: 400px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Enhanced Image Styles */
.image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: carouselFade 16s infinite;
}

.carousel-image:nth-child(1) { animation-delay: 0s; }
.carousel-image:nth-child(2) { animation-delay: 4s; }
.carousel-image:nth-child(3) { animation-delay: 8s; }
.carousel-image:nth-child(4) { animation-delay: 12s; }

@keyframes carouselFade {
  0%, 20% { opacity: 0; transform: scale(1.1); }
  25%, 45% { opacity: 0.3; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.1); }
}

/* Section Background Images with Parallax */
.section-with-bg {
  position: relative;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(1px);
  transform: translateY(0);
  will-change: transform;
}

.section-bg.parallax img {
  transition: transform 0.3s ease-out;
}

/* Enhanced Hero with Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(245, 245, 245, 0.95) 0%, 
    rgba(224, 231, 255, 0.85) 50%,
    rgba(245, 245, 245, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Floating Elements */
.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

/* Image Overlays for Cards */
.card-with-bg {
  position: relative;
  overflow: hidden;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 0;
  transition: all 0.3s ease;
}

.card-with-bg:hover .card-bg {
  opacity: 0.1;
  transform: scale(1.05);
}

.card-content {
  position: relative;
  z-index: 1;
}

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

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

@keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--soft-green);
  color: var(--white);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .header-content {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .phone-header {
    font-size: 16px;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  section {
    padding: 2rem 0;
  }
}