/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 960px){

  /* ---------- TOPBAR EMPILHADA ---------- */
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-center{
    border-left: 0;
    padding-left: 0;
  }

  /* ---------- HERO ---------- */
  .hero{
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-media img{
    max-width: 360px;
    border-radius: 28px;
    box-shadow: 0 18px 45px rgba(15,23,42,.35);
  }

  /* ---------- FEATURES ---------- */
  .features-grid{
    grid-template-columns: 1fr 1fr;
  }

  /* ======================================================
     HEADER / MENU MOBILE (SANDUÍCHE LATERAL)
     ====================================================== */

  /* esconde menu desktop e CTA no mobile */
  .nav-links{
    display: none;
  }

  .header-cta{
    display: none;
  }

  /* mostra o botão sanduíche */
  .menu-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: .35rem .55rem;
    border-radius: 999px;
    cursor: pointer;
  }

  /* logo um pouco menor */
  .brand-logo{
    width: 140px;
  }

  /* menu lateral que vem da direita */
  .mobile-menu{
    /* sobrescreve o padrão do header.css */
    display: flex;
    flex-direction: column;
    gap: 1rem;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    width: 270px;
    max-width: 80%;
    padding: 4.5rem 1.5rem 2rem; /* espaço pro topo com logo */

    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -12px 0 30px rgba(15,23,42,.42);

    z-index: 950;
  }

  /* quando tiver hidden (estado fechado via JS), some total */
  .mobile-menu[hidden]{
    display: none !important;
  }

  .mobile-menu a{
    padding: .65rem .2rem;
    border-radius: 8px;
    font-size: .98rem;
  }

  .mobile-menu a:hover{
    background: rgba(107,75,255,.08);
  }

  .mobile-menu .full{
    width: 100%;
    text-align: center;
    margin-top: .5rem;
  }

  /* ---------- FOOTER ---------- */
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* telas bem pequenas */
@media (max-width: 640px){
  .features-grid{
    grid-template-columns: 1fr;
  }

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