/* 
 * ==========================================
 * PLANO DE SAÚDE BH - RESPONSIVE STYLES
 * ==========================================
 * Cliente: planodesaudebh.com.br
 * Versão: 1.0 (Etapa 1 - Responsividade)
 * Tecnologia: CSS3 Puro
 */

/* --- BREAKPOINT TABLETS E NOTEBOOKS MENORES (Até 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-benefits {
    justify-content: center;
  }
  
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hospitals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  /* Menu Mobile Activator */
  .menu-toggle {
    display: flex !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    z-index: 998;
    align-items: flex-start;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item-dropdown {
    width: 100%;
  }
  
  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .nav-dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    padding-top: 0.5rem;
    display: none; /* Controlado via JS */
  }
  
  .nav-dropdown-menu.active {
    display: block;
  }
  
  .header-actions-desktop {
    display: none !important;
  }
}

/* --- BREAKPOINT CELULARES GRANDES (Até 768px) --- */
@media (max-width: 768px) {
  .section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
  
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .form-card {
    padding: 2rem 1.5rem;
  }
  
  .header-container {
    height: 70px;
  }
  
  .nav-menu {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .hero {
    padding-top: 8rem;
    padding-bottom: 4.5rem;
  }
}

/* --- BREAKPOINT CELULARES PEQUENOS (Até 480px) --- */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-benefits {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hospitals-grid {
    grid-template-columns: 1fr;
  }
  
  .age-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* --- MENU BURGER BUTTON (Injetado via JS / Estilizado aqui) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-navy);
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
