/* Responsividade */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  /* Garantir que o header seja sempre clicável */
  header {
    z-index: 1001 !important;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    /* Fundo sólido para melhor compatibilidade */
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(26, 115, 232, 0.15);
    width: 80%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002; /* garantir que fique acima do conteúdo da página */
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .nav-toggle {
    display: block !important;
    z-index: 1003 !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 8px !important;
    border-radius: 5px !important;
    border: 1px solid var(--primary) !important;
    position: relative !important;
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: scale(1.05) !important;
  }

  .nav-toggle i {
    font-size: 1.5rem !important;
    color: var(--primary) !important;
  }

  /* Contraste adequado para links no menu móvel */
  .nav-menu a {
    color: #1f2a44;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--primary);
  }

  /* Botão dentro do menu móvel em fundo colorido */
  .nav-menu .btn {
    background-color: var(--primary);
    color: #fff;
  }

  .nav-menu .btn:hover {
    background-color: var(--primary-dark);
    color: #fff;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 150px 0 80px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }
}
