/* =============================================
   RESPONSIVE.CSS — Media Queries Mobile‑First
   Alana Amorim | Nutricionista
   ============================================= */

/* =============================================
   Ultrawide 1536px+
   ============================================= */
@media (min-width: 1536px) {
  :root { --container-width: 1400px; }
}

/* =============================================
   Large 1280px and below
   ============================================= */
@media (max-width: 1280px) {
  .especialidades-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* =============================================
   Medium-Large 1024px and below
   ============================================= */
@media (max-width: 1024px) {
  :root { --container-padding: 1.5rem; }

  .hero-grid,
  .sobre-grid,
  .beneficios-grid,
  .ebook-grid,
  .localizacao-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-content,
  .ebook-content {
    align-items: center;
  }

  .hero,
  .sobre-content,
  .ebook-content,
  .beneficios-content,
  .localizacao-info {
    text-align: center;
  }

  .ebook-cta-container {
    justify-content: center;
  }

  .hero {
    padding-top: calc(var(--navbar-height) + 40px);
  }

  .sobre-info {
    text-align: left;
  }

  .beneficio-item {
    text-align: left;
  }

  .contato-item {
    text-align: left;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-inline: auto;
  }

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

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

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -1rem;
    min-width: 160px;
  }

  .hero-badge-alt {
    display: none;
  }

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

  .sobre-deco {
    bottom: -1rem;
    right: -1rem;
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
  }

  .steps-grid::before {
    display: none;
  }

  .beneficios-list {
    align-items: center;
  }

  .beneficios-action {
    justify-content: center;
  }
}

/* =============================================
   Tablets 768px and below
   ============================================= */
@media (max-width: 768px) {
  :root {
    --container-padding: 1.25rem;
    --navbar-height: 70px;
  }

  /* Navbar mobile */
  .navbar-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: rgba(253, 249, 252, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
  }

  .navbar-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar-link {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
  }

  .navbar-link::after {
    display: none;
  }

  .navbar-link:hover {
    background: rgba(169, 72, 139, 0.08);
  }

  .navbar-links .btn {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Sections */
  .section { padding: 70px 0; }
  
  .especialidades.section { padding-top: 10px; }

  .especialidades-grid,
  .steps-grid,
  .depoimentos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .footer-logo-img {
    height: 160px;
  }

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

  .testimonials-track .depoimento-card {
    padding: 1.5rem 1.25rem;
  }

  .carousel-prev,
  .carousel-next {
    display: none !important;
  }

  .sobre-info {
    grid-template-columns: 1fr;
  }

  .cta-trust {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .localizacao-grid {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 320px;
  }
}

/* =============================================
   Small phones 480px and below
   ============================================= */
@media (max-width: 480px) {
  :root { --container-padding: 1rem; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .ebook-cta-container .btn,
  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
  }

  .hero-badge {
    display: none; /* esconde badge flutuante em telas muito pequenas */
  }

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

  .stats-bar {
    padding: 2rem 0;
  }

  .section { padding: 50px 0; }

  .cta-banner {
    padding: 35px 20px;
  }

  .cta-small-tag {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .cta-banner p {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-inline: auto;
  }

  .cta-banner .btn-whatsapp {
    width: 100%;
    padding: 1rem 0.5rem;
    font-size: 0.9375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }

  .cta-trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .especialidade-card, 
  .step-card, 
  .testimonials-track .depoimento-card {
    padding: 1.25rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .hero-image-wrapper img {
    max-width: 280px;
    margin-inline: auto;
  }

  .sobre-image-wrapper {
    max-width: 220px;
  }

  .sobre-deco {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    bottom: 0.25rem;
    right: 0.25rem;
  }

  h2 { font-size: 1.6rem; }
  h1 { font-size: 1.9rem; }
  .section-subtitle { font-size: 0.95rem; }

  .pagamentos-list {
    justify-content: center;
    gap: 0.4rem;
  }

  .pagamento-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    white-space: nowrap;
  }

  /* Seção de contato mobile */
  .contato-item {
    gap: 1rem;
  }

  .contato-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }

  .contato-text span {
    font-size: 0.875rem;
  }

  /* Ebook mobile */
  .ebook-mockup {
    max-width: 220px;
  }

  .ebook-cover {
    transform: none;
  }

  .ebook-benefits li {
    font-size: 0.9rem;
  }

  /* Mapa mobile menor */
  .map-container {
    height: 240px;
  }

  /* Lipedema box mobile */
  .lipedema-box {
    padding: 1rem;
  }

  /* Stats menores */
  .stat-number {
    font-size: 1.8rem;
  }

  /* Hero trust badge menor */
  .hero-trust {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

/* =============================================
   Touch devices — botões com área mínima de toque
   ============================================= */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
  }

  .carousel-prev,
  .carousel-next {
    display: none !important;
  }

  .contato-item {
    cursor: default;
  }

  a.contato-item {
    cursor: pointer;
  }
}
