:root {
  --primary-bg: #FFFFFF;
  --primary-light: #F8F9FA;
  --secondary-blue: #A8D5E2;
  --secondary-green: #C8E6A7;
  --secondary-lavender: #D8B9FF;
  --accent-coral: #FF6B9D;
  --accent-peach: #FFD1DC;
  --accent-yellow: #FFF9C4;
  --text-dark: #2B2F3A;
  --text-medium: #4A5568;
  --text-light: #718096;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Quicksand', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

header {
  background: var(--primary-bg);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--secondary-lavender);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  gap: 1.5rem;
  position: relative;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(200, 230, 167, 0.25);
  border: 2px solid var(--secondary-lavender);
  border-radius: 50%;
  cursor: pointer;
  gap: 0.4rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 55%;
  height: 3px;
  background: var(--text-medium);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(200, 230, 167, 0.45);
  border-color: var(--accent-coral);
  transform: translateY(-1px);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(255, 107, 157, 0.4);
  outline-offset: 2px;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Baloo 2', 'Quicksand', sans-serif;
  background: linear-gradient(135deg, var(--accent-coral), var(--secondary-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  line-height: 1.3;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

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

nav a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:not(.logo):hover {
  color: var(--accent-coral);
}

nav a:not(.logo)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-coral);
  transition: width 0.3s ease;
  border-radius: 2px;
}

nav a:not(.logo):hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  nav {
    padding: 1.1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1.5rem;
    background: var(--primary-bg);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    display: block;
    text-align: center;
  }

  body.nav-open nav ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.hero-section {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-green) 100%);
  padding: 5rem 2rem;
  text-align: center;
}

body.program-group .hero-section {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-blue) 100%);
}

body.program-infant .hero-section {
  background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-green) 100%);
}

body.program-school-age .hero-section {
  background: linear-gradient(135deg, var(--accent-coral) 0%, var(--secondary-lavender) 100%);
}

.hero-section h1 {
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.content-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-section p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-section h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin: 3rem 0 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-coral);
  border-radius: 2px;
}

.content-section ul {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.content-section ul li {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}

.content-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-coral);
  font-weight: 700;
  font-size: 1.3rem;
}

.highlight-box {
  background: var(--accent-yellow);
  border-left: 5px solid var(--accent-coral);
  padding: 2rem;
  border-radius: 15px;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}

.highlight-box p {
  margin-bottom: 0;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.program-card {
  background: var(--primary-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--primary-light);
  transition: all 0.3s ease;
  text-align: center;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-coral);
}

.program-card img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.program-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.program-card p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
}

.cta-section {
  background: var(--secondary-lavender);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-peach));
  color: white;
  padding: 1.15rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

footer {
  background: linear-gradient(135deg, var(--secondary-lavender) 0%, #c9a8f5 100%);
  color: var(--text-dark);
  padding: 5rem 2rem 1.5rem;
}

.location-container {
  max-width: 1280px;
  margin: 0 auto 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.location {
  background: var(--primary-bg);
  padding: 1.75rem 2rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.location::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-coral), var(--secondary-blue));
  transition: height 0.3s ease;
}

.location:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: white;
}

.location:hover::before {
  height: 100%;
  opacity: 0.06;
}

.location h2 {
  color: var(--accent-coral);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.location h2::after {
  display: none;
}

.location p,
.location address {
  color: var(--text-medium);
  font-style: normal;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}

.location address {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
}

.footer-contact {
  max-width: 1280px;
  margin: 0 auto 3rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.footer-contact > div {
  background: var(--primary-bg);
  padding: 1.75rem 1.9rem;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-contact > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transition: height 0.3s ease;
}

.footer-contact .call::before {
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-peach));
}

.footer-contact .mail::before {
  background: linear-gradient(90deg, var(--secondary-blue), var(--secondary-green));
}

.footer-contact .social::before {
  background: linear-gradient(90deg, var(--secondary-lavender), var(--accent-coral));
}

.footer-contact > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: white;
}

.footer-contact > div:hover::before {
  height: 100%;
  opacity: 0.06;
}

.footer-contact h2 {
  color: var(--text-dark);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-contact h2::after {
  display: none;
}

.footer-contact p {
  color: var(--accent-coral);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.footer-contact .call p {
  font-size: 1.35rem;
  letter-spacing: 0.3px;
}

.footer-contact .mail p {
  font-size: 1.05rem;
  letter-spacing: 0.15px;
  overflow-wrap: anywhere;
}

.footer-contact .mail a {
  position: relative;
  z-index: 1;
}

.footer-contact .social-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--accent-coral);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: color 0.3s ease;
  z-index: 1;
}

.footer-contact .social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-contact .social-link:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom p {
  color: var(--text-dark);
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .hero-section h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .location-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-section {
    padding: 3rem 1.5rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .content-section {
    padding: 3rem 1.5rem;
  }
}
