/* ========== RESPONSIVIDADE MOBILE ========== */

/* Tablets e telas médias (até 968px) */
@media (max-width: 968px) {
  /* Menu mobile */
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  /* Dark Mode Toggle - ajuste para mobile */
  .dark-mode-toggle {
    width: 50px;
    height: 28px;
  }

  .dark-mode-toggle::before {
    width: 20px;
    height: 20px;
  }

  .dark-mode-toggle .moon-icon,
  .dark-mode-toggle .sun-icon {
    font-size: 0.8rem;
  }

  body.dark-mode .dark-mode-toggle::before {
    left: calc(100% - 24px);
  }

  /* Ajustes gerais */
  section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Carousel */
  .carousel {
    height: 70vh;
  }

  .carousel-content h1 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 1.1rem;
  }

  .btn-primary {
    padding: 14px 30px;
    font-size: 1rem;
  }

  /* Grids em 2 colunas */
  .sobre-content,
  .contato-grid,
  .ajudar-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Cards ajustados */
  .stat-card,
  .servico-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-icon {
    font-size: 2.5rem;
  }

  /* Ajudar cards */
  .ajudar-card {
    padding: 2rem;
  }

  .ajudar-card h3 {
    font-size: 1.5rem;
  }

  .ajudar-icon {
    font-size: 3rem;
  }

  /* Depoimentos */
  .depoimento-texto {
    font-size: 1.1rem;
  }

  /* Parceiros */
  .parceiro-logo {
    min-width: 140px;
    height: 80px;
  }

  .parceiro-logo img {
    max-height: 70px;
  }

  /* WhatsApp */
  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
  }
}

/* Smartphones (até 600px) */
@media (max-width: 600px) {
  /* Header */
  nav {
    padding: 1rem 1rem;
  }

  .logo img {
    height: 40px;
  }

  /* Seções */
  section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 2rem;
  }

  .section-title::after {
    width: 60px;
    height: 3px;
  }

  /* Carousel */
  .carousel {
    height: 60vh;
  }

  .carousel-content {
    padding: 15px;
  }

  .carousel-content h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .carousel-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .carousel-controls {
    bottom: 20px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  /* Sobre */
  .sobre-text {
    font-size: 1rem;
  }

  /* Stats - 1 coluna */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  /* Serviços - 1 coluna */
  .servicos-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .servico-card {
    padding: 1.5rem;
  }

  .servico-icon {
    font-size: 2rem;
  }

  .servico-titulo {
    font-size: 1rem;
  }

  /* Ajudar */
  .ajudar-card {
    padding: 2rem 1.5rem;
  }

  .ajudar-card h3 {
    font-size: 1.3rem;
  }

  .ajudar-card p {
    font-size: 1rem;
  }

  .ajudar-icon {
    font-size: 2.5rem;
  }

  /* Depoimentos */
  .depoimento-slide {
    padding: 1rem;
  }

  .depoimento-foto {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .depoimento-texto {
    font-size: 1rem;
    padding: 0 10px;
  }

  .depoimento-autor {
    font-size: 1rem;
  }

  .depoimento-situacao {
    font-size: 0.85rem;
  }

  /* Parceiros */
  .parceiros-track {
    gap: 2rem;
  }

  .parceiro-logo {
    min-width: 120px;
    height: 70px;
    padding: 0.8rem;
  }

  .parceiro-logo img {
    max-height: 60px;
  }

  /* Contato */
  .mapa-container {
    min-height: 300px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Evita zoom automático no iOS */
  }

  .btn-submit {
    font-size: 1rem;
    padding: 0.9rem;
  }

  /* Social links */
  .social-links {
    gap: 1.5rem;
  }

  .social-icon {
    font-size: 1.8rem;
  }

  /* Footer */
  .footer-content {
    gap: 1.5rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .footer-links a {
    font-size: 0.95rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
    padding-top: 1.5rem;
  }

  /* Modal */
  .modal {
    padding: 15px;
  }

  .modal-content {
    padding: 1.5rem;
    max-height: 85vh;
  }

  .modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .modal-close {
    font-size: 1.8rem;
    top: 0.8rem;
    right: 0.8rem;
  }

  /* Doações */
  .donation-container {
    flex-direction: column;
  }

  .donation-column {
    min-width: 100%;
  }

  .donation-option {
    padding: 1.2rem;
  }

  .donation-option h3 {
    font-size: 1.1rem;
  }

  /* PIX */
  .pix-conteudo {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .pix-logo img {
    width: 140px;
  }

  .pix-info {
    text-align: center;
  }

  .pix-info h3 {
    font-size: 1.2rem;
  }

  .pix-key {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .pix-legenda {
    font-size: 0.85rem;
  }

  /* Banco */
  .banco-conteudo {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 12px;
  }

  .banco-logo img {
    width: 110px;
  }

  .banco-info {
    text-align: center;
  }

  .banco-info h3 {
    font-size: 1rem;
  }

  .banco-info p {
    font-size: 0.9rem;
  }

  /* WhatsApp */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    bottom: 15px;
    right: 15px;
  }

  /* Botões */
  .btn-inscrever {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .btn-donate {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Smartphones pequenos (até 400px) */
@media (max-width: 400px) {
  /* Header */
  .logo img {
    height: 35px;
  }

  /* Seções */
  section {
    padding: 2rem 0.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Carousel */
  .carousel {
    height: 50vh;
  }

  .carousel-content h1 {
    font-size: 1.4rem;
  }

  .carousel-content p {
    font-size: 0.9rem;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Cards */
  .stat-card,
  .servico-card,
  .ajudar-card {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .ajudar-card h3 {
    font-size: 1.2rem;
  }

  /* Depoimentos */
  .depoimento-foto {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .depoimento-texto {
    font-size: 0.95rem;
  }

  /* Parceiros */
  .parceiro-logo {
    min-width: 100px;
    height: 60px;
  }

  .parceiro-logo img {
    max-height: 50px;
  }

  /* Modal */
  .modal-content {
    padding: 1.2rem;
  }

  .modal-content h2 {
    font-size: 1.3rem;
  }

  /* PIX e Bancos */
  .pix-logo img {
    width: 120px;
  }

  .banco-logo img {
    width: 90px;
  }

  /* WhatsApp */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
  }

  /* Landscape em smartphones */
  @media (max-height: 500px) and (orientation: landscape) {
    .carousel {
      height: 100vh;
    }

    .carousel-content h1 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }

    .carousel-content p {
      font-size: 0.9rem;
      margin-bottom: 0.8rem;
    }

    .btn-primary {
      padding: 10px 24px;
    }

    .carousel-controls {
      bottom: 15px;
    }
  }

  /* Menu mobile aberto - ajustes para telas pequenas */
  @media (max-width: 600px) {
    .nav-links.mobile-active {
      top: 70px;
      padding: 1rem;
      gap: 1rem;
    }

    .nav-links.mobile-active a {
      font-size: 0.95rem;
    }

    .nav-links.mobile-active .btn-donate {
      padding: 0.6rem 1.2rem;
    }

    .nav-links.mobile-active .dropdown-content a {
      padding: 0.6rem 1rem;
      font-size: 0.9rem;
    }
  }

  /* Ajustes para impressão */
  @media print {
    header,
    .whatsapp-float,
    .carousel-controls,
    .mobile-menu {
      display: none !important;
    }

    section {
      page-break-inside: avoid;
    }

    .modal {
      display: none !important;
    }
  }
}