/* ═══════════════════════════════════════════════════════════════
   COMBO DAS ESTRELAS — RESPONSIVE
   Versão 1.0 | Mobile First
   Agente A1 — Arquiteto Frontend
   ═══════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────────────────────
   BREAKPOINTS:
   xs: < 480px
   sm: 480px – 768px
   md: 768px – 1024px
   lg: > 1024px
   ──────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════
   TABLET E MOBILE — md: ≤ 1024px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* Grid: 2 colunas → 1 coluna */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Núcleo: grid 2→1 */
  .nucleo-grid {
    grid-template-columns: 1fr;
  }

  /* ECOAR: grid 2→1 */
  .ecoar-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ecoar-amelhinha {
    min-height: 300px;
  }

  /* Rodapé: grid → 1 col */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Trio de imagens → 1 col */
  .trio-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE — sm/xs: ≤ 768px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─ Header ─ */
  .nav-desktop { display: none; }
  .hamburger   { display: flex; }
  .nav-mobile  { display: flex; }

  /* ─ Hero ─ */
  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-logo-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 120px;
    height: 120px;
    margin: 2rem auto 0;
  }

  .hero-scroll-hint { display: none; }

  /* ─ Metodologia ─ */
  .metodologia-content {
    max-width: 100%;
  }

  .amelhinha-float {
    position: relative;
    right: auto;
    bottom: auto;
    width: 70%;
    max-width: 280px;
    margin: 2rem auto 0;
    height: auto;
  }

  .amelhinha-float img {
    height: auto;
    width: 100%;
  }

  /* ─ Carrossel ─ */
  .carousel-slide img {
    height: 250px;
  }

  .trio-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .trio-grid img { height: 200px; }

  /* ─ Vídeos ─ */
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .video-tabs {
    gap: 0.4rem;
  }

  .video-tab-btn {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }

  /* ─ ECOAR ─ */
  .ecoar-tagline {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .ecoar-amelhinha {
    order: -1;
    min-height: 260px;
  }

  .ecoar-amelhinha img {
    height: 280px;
  }

  /* ─ Disciplinas ─ */
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─ Serviços grid ─ */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ─ Rodapé ─ */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* ─ WhatsApp flutuante ─ */
  #whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  #scroll-top {
    bottom: 90px;
    right: 24px;
  }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE XS — < 480px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Botões empilhados */
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-gold,
  .btn-gold-outline,
  .btn-ecoar {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  /* Serviços → 1 coluna */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Disciplinas → 1 coluna */
  .disciplines-grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════════════════════════
   ACESSIBILIDADE — reduced-motion
   (animações visuais são parte essencial do design — mantidas)
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
