/* ============================================================
   COGUMELO ESCOLA INFANTIL - STYLES (Fidelidade Figma Orgânica)
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary-blue: #2C5FCD;
  --secondary-red: #CD2C2F;
  --secondary-green: #BBD352;
  --accent-yellow: #FFE800;
  --light-blue: #BCD1FF;
  --pastel-blue: #E2ECFE;
  --pastel-pink: #FDE8E8;
  --white: #FFFFFF;
  --text-dark: #070713;
  --text-gray: #4A4A50;
  --bg-gray: #F4F6F8;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius-blob-1: 43% 57% 65% 35% / 43% 52% 58% 48%;
  --radius-blob-2: 48% 52% 35% 65% / 55% 45% 55% 45%;
  --radius-blob-3: 35% 65% 65% 35% / 50% 35% 65% 50%;
  --radius-lg: 20px;
  --radius-pill: 50px;
  --transition: 0.3s ease;
  --max-width: 1100px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Baloo 2', cursive;
  line-height: 1.2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilities ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn svg {
  display: block;
  flex-shrink: 0;
}

.arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.btn-red {
  background: var(--secondary-red);
  color: var(--white);
}

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

.btn-green {
  background: var(--secondary-green);
  color: var(--text-dark);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white) !important;
  font-size: 14px;
  padding: 10px 24px;
  margin-top: 8px;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.red-badge {
  background: var(--secondary-red);
  color: var(--white);
}

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

.section-header {
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: 36px;
  color: var(--text-dark);
}

.text-white h2 {
  color: var(--white);
}

/* Waves */
.wave-top {
  width: 100%;
  height: 60px;
  background-size: 100% 100%;
  position: absolute;
  top: -59px;
  left: 0;
  z-index: 5;
}

.white-wave {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 60" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,30 C320,80 640,-10 960,30 C1120,50 1320,0 1440,30 L1440,60 L0,60 Z" fill="%23FFFFFF"/></svg>');
}

.blue-wave {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 60" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,30 C320,80 640,-10 960,30 C1120,50 1320,0 1440,30 L1440,60 L0,60 Z" fill="%232C5FCD"/></svg>');
}

.red-wave {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 60" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,30 C320,80 640,-10 960,30 C1120,50 1320,0 1440,30 L1440,60 L0,60 Z" fill="%23CD2C2F"/></svg>');
}

/* ---------- 1. TOP BAR & HEADER ---------- */
.top-bar {
  background: var(--secondary-red);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contact span {
  margin-right: 20px;
  font-weight: 500;
}

.top-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  transition: opacity var(--transition);
  text-decoration: none;
}

.instagram-link:hover {
  opacity: 0.85;
}

.instagram-link svg {
  display: block;
  flex-shrink: 0;
}

.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 24px;
  font-family: 'Baloo 2', cursive;
  color: var(--primary-blue);
  font-weight: 700;
}

.nav-list {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-list a {
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}

.header-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-list a:hover {
  color: var(--secondary-red);
}

.hamburger {
  display: none;
}

/* ---------- 2. HERO ---------- */
.hero {
  position: relative;
  background-color: #2D60CE;
  opacity: 1;
  background: radial-gradient(circle, transparent 20%, #2D60CE 20%, #2D60CE 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #2D60CE 20%, #2D60CE 80%, transparent 80%, transparent) 25px 25px, linear-gradient(#1e56cf 2px, transparent 2px) 0 -1px, linear-gradient(90deg, #1e56cf 2px, #2D60CE 2px) -1px 0;
  background-size: 50px 50px, 50px 50px, 25px 25px, 25px 25px;
  padding: 80px 0 120px;
}

/* Wavy bottom overlap */
.hero-bg-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,60 C360,140 720,20 1080,100 C1260,130 1380,80 1440,60 L1440,120 L0,120 Z" fill="%23FFFFFF"/></svg>');
  background-size: 100% 100%;
  z-index: 2;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  /* Vazando por cima da onda de baixo */
  margin-bottom: -180px;
  z-index: 1;
}

.hero-boy {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.hero-content {
  padding-right: 20px;
  position: relative;
  z-index: 3;
}

.hero-content h1 {
  font-size: 42px;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ---------- 3. FEATURES (BLOBS) ---------- */
.features {
  background: var(--white);
  padding: 60px 0 60px;
  position: relative;
  z-index: 10;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-blob {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.3s;
  border-radius: var(--radius-blob-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-blob:hover {
  transform: translateY(-5px);
}

.blob-blue {
  background: var(--pastel-blue);
  border: 3px dashed var(--primary-blue);
  /* Borda tracejada azul */
  border-radius: var(--radius-blob-1);
}

.blob-pink {
  background: var(--pastel-pink);
  border: 3px dashed var(--secondary-red);
  /* Borda tracejada vermelha */
  border-radius: var(--radius-blob-2);
}

.feature-blob .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.feature-icon-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blob-blue .feature-icon-svg {
  color: var(--primary-blue);
}

.blob-pink .feature-icon-svg {
  color: var(--secondary-red);
}

.feature-blob h3 {
  font-size: 20px;
  color: var(--primary-blue);
  margin-bottom: 2px;
}

.feature-blob p {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-red);
  margin-bottom: 4px;
}

.feature-blob.blob-pink h3 {
  color: var(--secondary-red);
}

.feature-blob.blob-pink p {
  color: var(--primary-blue);
}

.feature-blob span {
  font-size: 13px;
  color: var(--text-gray);
}

/* ---------- 4. ABOUT ---------- */
.about {
  padding: 60px 0 100px;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 20px;
  font-size: 38px;
  color: var(--primary-blue);
}

.about-content p {
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--text-gray);
}

.about-list {
  margin-bottom: 32px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.about-list span {
  color: var(--secondary-red);
  font-weight: bold;
}

.blob-image-wrapper {
  background: var(--pastel-blue);
  border-radius: var(--radius-blob-3);
  padding: 20px;
  transform: rotate(-2deg);
}

.blob-image {
  border-radius: var(--radius-blob-1);
  width: 100%;
  transform: rotate(2deg);
}

/* ---------- 5. ACTIVITIES ---------- */
.activities {
  background: var(--primary-blue);
  padding: 80px 0;
  position: relative;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.activity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.activity-info {
  padding: 24px;
}

.activity-info h3 {
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.activity-info p {
  font-size: 14px;
  color: var(--text-gray);
}

/* ---------- 6. STATS ---------- */
.stats {
  background: var(--secondary-red);
  padding: 30px 0 120px;
  position: relative;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 32px;
}

.stat-text strong {
  display: block;
  font-size: 18px;
  font-family: 'Baloo 2', cursive;
}

.stat-text span {
  font-size: 13px;
  opacity: 0.9;
}

/* ---------- 7. TESTIMONIALS ---------- */
.testimonials {
  background: var(--white);
  padding: 60px 0 100px;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.testimonial-blob {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-blob-1);
  padding: 60px 48px 45px;
  text-align: center;
  border: 3px dashed;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blob-border-pink {
  border-color: var(--secondary-red);
  background: var(--pastel-pink);
}

.blob-border-blue {
  border-color: var(--primary-blue);
  background: var(--pastel-blue);
}

.blob-border-red {
  border-color: var(--accent-yellow);
  background: #FFFDE7;
}

.testimonial-avatar {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--accent-yellow);
  font-size: 20px;
  margin-bottom: 12px;
}

.testimonial-blob p {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text-gray);
}

.testimonial-blob strong {
  font-size: 14px;
  color: var(--text-dark);
}

/* ---------- 8. ROUTINE ---------- */
.routine {
  background: var(--primary-blue);
  padding: 80px 0;
  position: relative;
}

.routine-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.routine-content h2 {
  margin-bottom: 20px;
  font-size: 36px;
}

.routine-content p {
  margin-bottom: 30px;
  font-size: 16px;
  opacity: 0.9;
}

.routine-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  color: var(--white);
}

.schedule-bar span {
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.schedule-bar strong {
  font-size: 18px;
  font-family: 'Baloo 2', cursive;
}

.bg-red {
  background: var(--secondary-red);
}

.bg-green {
  background: var(--secondary-green);
  color: var(--text-dark);
}

/* ---------- 9. SCENIC FOOTER / CONTACT ---------- */
.scenic-footer {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #D4E5FF 30%, #87B4FF 100%);
  padding: 100px 0 0;
  overflow: hidden;
  /* Evita barra de rolagem horizontal com o movimento das nuvens */
}

/* ---------- SCENIC CLOUDS ---------- */
.scenic-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  /* Fica atrás do container do formulário (z-index: 10) e da grama (z-index: 5) */
}

.cloud {
  position: absolute;
  left: 0;
  /* Garante que todas iniciem da mesma linha base horizontal */
  opacity: 0.58;
  /* Opacidade alta e bem nítida conforme solicitado */
  filter: blur(0.5px);
  will-change: transform;
}

.cloud-1 {
  top: 6%;
  width: 150px;
  height: 90px;
  animation: drift-cloud-1 65s linear infinite;
}

.cloud-2 {
  top: 26%;
  width: 210px;
  height: 126px;
  animation: drift-cloud-2 95s linear infinite;
  animation-delay: -28s;
  /* Inicia já espalhada pela tela */
}

.cloud-3 {
  top: 48%;
  width: 180px;
  height: 108px;
  animation: drift-cloud-3 80s linear infinite;
  animation-delay: -52s;
  /* Inicia já espalhada pela tela */
}

.cloud-4 {
  top: 16%;
  width: 190px;
  height: 114px;
  animation: drift-cloud-4 75s linear infinite;
  animation-delay: -15s;
  /* Inicia já espalhada pela tela */
}

.cloud-5 {
  top: 38%;
  width: 160px;
  height: 96px;
  animation: drift-cloud-5 90s linear infinite;
  animation-delay: -42s;
  /* Inicia já espalhada pela tela */
}

.cloud-6 {
  top: 58%;
  width: 220px;
  height: 132px;
  animation: drift-cloud-6 70s linear infinite;
  animation-delay: -60s;
  /* Inicia já espalhada pela tela */
}

@keyframes drift-cloud-1 {
  0% {
    transform: translateX(-180px);
  }

  100% {
    transform: translateX(100vw);
  }
}

@keyframes drift-cloud-2 {
  0% {
    transform: translateX(-240px);
  }

  100% {
    transform: translateX(100vw);
  }
}

@keyframes drift-cloud-3 {
  0% {
    transform: translateX(-200px);
  }

  100% {
    transform: translateX(100vw);
  }
}

@keyframes drift-cloud-4 {
  0% {
    transform: translateX(-220px);
  }

  100% {
    transform: translateX(100vw);
  }
}

@keyframes drift-cloud-5 {
  0% {
    transform: translateX(-190px);
  }

  100% {
    transform: translateX(100vw);
  }
}

@keyframes drift-cloud-6 {
  0% {
    transform: translateX(-250px);
  }

  100% {
    transform: translateX(100vw);
  }
}

/* Contact Box Form */
.contact-container {
  position: relative;
  z-index: 10;
  margin-bottom: 60px;
}

.contact-box {
  background: var(--white);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.contact-info {
  background: var(--bg-gray);
  padding: 50px 40px;
}

.contact-info h3 {
  color: var(--primary-blue);
  font-size: 24px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-gray);
  margin-bottom: 32px;
  font-size: 15px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item .icon {
  font-size: 24px;
}

.info-item strong {
  color: var(--text-dark);
}

.contact-form {
  padding: 50px 40px;
}

.form-group {
  position: relative;
  margin-bottom: 12px;
  width: 100%;
  text-align: left;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 4px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(44, 95, 205, 0.15);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: var(--secondary-red);
  background-color: #FFF5F5;
}

.contact-form input.error:focus,
.contact-form select.error:focus,
.contact-form textarea.error:focus {
  border-color: var(--secondary-red);
  box-shadow: 0 0 0 3px rgba(205, 44, 47, 0.15);
}

.error-message {
  color: var(--secondary-red);
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  padding-left: 4px;
  min-height: 16px;
}

.form-success-message {
  display: none;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  background-color: #E6F6ED;
  border: 2px dashed #20BA5A;
  color: #155724;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.form-success-message.show {
  display: flex;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-message.error-alert {
  background-color: #FDF2F2;
  border-color: var(--secondary-red);
  color: #721C24;
}

.form-success-message.error-alert .success-icon {
  background-color: var(--secondary-red);
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #20BA5A;
  color: white;
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

.success-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.success-content strong {
  font-family: 'Baloo 2', cursive;
  font-size: 16px;
  line-height: 1.2;
}

.success-content span {
  font-size: 14px;
  opacity: 0.9;
}

.loading-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The Grass Background */
.scenic-grass {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 240" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,90 C480,30 960,30 1440,90 L1440,240 L0,240 Z" fill="%23A4BE38"/><path d="M0,120 C480,65 960,65 1440,120 L1440,240 L0,240 Z" fill="%23BBD352"/></svg>');
  background-size: 100% 100%;
  background-position: bottom;
  background-repeat: no-repeat;
  padding-top: 185px;
  /* Mais profundidade/espessura para o chão de grama */
  padding-bottom: 45px;
  position: relative;
  z-index: 5;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  justify-content: center;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-dark);
  font-weight: 700;
}

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

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ---------- FOOTER SCENE ELEMENTS ---------- */
.scenic-grass {
  position: relative;
  overflow: visible;
}

.scene-element {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  animation: float-micro 4s ease-in-out infinite;
}

/* Specific animations for butterflies, flowers, ladybugs */
@keyframes float-micro {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.butterfly-left,
.butterfly-right {
  animation: flutter 4s ease-in-out infinite;
}

@keyframes flutter {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scaleX(1);
  }

  50% {
    transform: translateY(-8px) rotate(6deg) scaleX(0.8);
  }
}

.flower-yellow-left,
.flower-yellow-right {
  animation: sway 6s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(3deg);
  }
}

.ladybug-right {
  animation: ladybug-crawl 8s ease-in-out infinite;
}

@keyframes ladybug-crawl {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(4px, -2px);
  }
}

/* Positions on desktop */
.mushroom-red-left {
  left: 8%;
  bottom: 100px;
  width: 66px;
  height: 66px;
}

.mushroom-blue-left {
  left: 13%;
  bottom: 90px;
  width: 50px;
  height: 50px;
}

.flower-yellow-left {
  left: 18%;
  bottom: 82px;
  width: 40px;
  height: 40px;
}

.butterfly-left {
  left: 23%;
  bottom: 155px;
  width: 44px;
  height: 44px;
}

.ladybug-right {
  right: 25%;
  bottom: 90px;
  width: 28px;
  height: 28px;
}

.mushroom-red-right {
  right: 8%;
  bottom: 95px;
  width: 58px;
  height: 58px;
}

.flower-yellow-right {
  right: 14%;
  bottom: 85px;
  width: 36px;
  height: 36px;
}

.butterfly-right {
  right: 18%;
  bottom: 160px;
  width: 48px;
  height: 48px;
}

/* Responsive adjustments to keep it clean and prevent layout issues on small screens */
@media (max-width: 992px) {

  .butterfly-left,
  .butterfly-right,
  .ladybug-right {
    display: none;
  }

  .mushroom-red-left {
    left: 6%;
    bottom: 98px;
    width: 52px;
    height: 52px;
  }

  .mushroom-blue-left {
    left: 13%;
    bottom: 90px;
    width: 42px;
    height: 42px;
  }

  .flower-yellow-left {
    left: 18%;
    bottom: 82px;
    width: 34px;
    height: 34px;
  }

  .mushroom-red-right {
    right: 6%;
    bottom: 92px;
    width: 48px;
    height: 48px;
  }

  .flower-yellow-right {
    right: 13%;
    bottom: 84px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .logo-img {
    height: 38px;
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 13px;
  }

  .header-cta .arrow-circle {
    display: none;
  }

  .flower-yellow-left,
  .flower-yellow-right {
    display: none;
  }

  .mushroom-red-left {
    left: 5%;
    bottom: 90px;
    width: 44px;
    height: 44px;
  }

  .mushroom-blue-left {
    display: none;
  }

  .mushroom-red-right {
    right: 5%;
    bottom: 85px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {

  .hero-inner,
  .about-inner,
  .routine-inner,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    margin-bottom: -140px;
    order: 2;
  }

  .hero-content {
    order: 1;
    padding-right: 0;
    text-align: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .activities-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {

  /* Prevent flex items from squishing in iOS Safari */
  .logo {
    flex-shrink: 0;
  }

  .hamburger {
    flex-shrink: 0;
  }

  /* Premium slide-in mobile navigation menu drawer */
  .nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    /* Standard modern viewport height for iOS Safari */
    background: var(--white);
    z-index: 999;
    visibility: hidden;
    /* Isolates the menu in Safari when closed */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s linear;
    padding: 100px 32px 40px;
  }

  .nav.open {
    right: 0;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .nav-list a {
    font-size: 20px;
    font-family: 'Baloo 2', cursive;
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(44, 95, 205, 0.1);
  }

  .nav-list a:hover {
    color: var(--secondary-red);
    padding-left: 4px;
  }

  /* Hamburger menu interactive animation and properties */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--secondary-red);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--secondary-red);
  }

  /* Header CTA scaling down & flex isolation to prevent squishing in iOS Safari */
  .header-cta {
    padding: 8px 16px;
    font-size: 14px;
    gap: 6px;
    white-space: nowrap;
    /* Forces text to stay on a single line */
    flex-shrink: 0;
    /* Prevents iOS Safari from narrowing the button */
  }

  .header-cta .arrow-circle {
    width: 20px;
    height: 20px;
  }

  .header-cta .arrow-circle svg {
    width: 8px;
    height: 8px;
  }

  /* Top bar layout fixes */
  .top-bar {
    padding: 8px 0;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
  }

  .top-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .top-contact span {
    margin-right: 0;
  }

  /* Grid layout responsive behavior */
  .features-grid,
  .activities-grid,
  .testimonials-grid,
  .stats-inner {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }

  /* Footer spacing and link wrapping */
  .scenic-grass {
    padding-top: 130px;
    padding-bottom: 40px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 24px;
  }

  .footer-links a {
    font-size: 15px;
    white-space: nowrap;
    /* Prevents bad wrapping like "A Escola" */
  }

  /* Hide absolutely positioned garden elements to prevent overlapping with text */
  .scene-element {
    display: none !important;
  }
}

/* ---------- FIGMA PREMIUM DECORATIONS & DOODLES ---------- */

/* Anéis de Alvo concêntricos atrás do menino */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero-rings {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  z-index: 0;
  pointer-events: none;
}

.hero-boy {
  position: relative;
  z-index: 1;
  /* O menino fica na frente dos anéis */
}

/* Seção Sobre - Container e Wrapper */
.about {
  position: relative;
}

.about-content {
  position: relative;
}

/* Seção Sobre - Borda Tracejada da Imagem */
.about-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blob-image-wrapper {
  background: var(--pastel-blue);
  border-radius: var(--radius-blob-3);
  padding: 16px;
  transform: rotate(-2deg);
  border: 3.5px dashed var(--secondary-red);
  /* Borda tracejada vermelha premium do Figma */
  position: relative;
  z-index: 1;
}

/* Ocultação e ajustes responsivos para telas menores para evitar quebra de layout */
@media (max-width: 992px) {
  .hero-rings {
    display: none !important;
  }
}

/* Hide top-bar (red bar with contact and Instagram details) on mobile */
@media (max-width: 768px) {
  .top-bar {
    display: none !important;
  }
}