/* =====================================================================
   ABMN · melhorias de 11/10/2026 (carregar DEPOIS de style.css e fixes.css)
   - menu no celular (botão ☰)
   - primeira dobra do celular com brasão menor (título e botão visíveis)
   - ícones e "saiba mais" nos cartões de atuação
   - botão flutuante de WhatsApp
   ===================================================================== */

/* ---------- menu no celular ---------- */
.menu-toggle { display: none; }

@media (max-width: 820px) {
    .site-header .header-inner { position: relative; }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 2.9rem; height: 2.9rem; padding: 0;
        border: 1px solid var(--line); border-radius: .2rem;
        background: rgba(10, 8, 6, .6); color: var(--gold-light); cursor: pointer;
    }
    .menu-toggle svg { width: 1.4rem; height: 1.4rem; }
    .menu-toggle .fechar { display: none; }
    .menu-aberto .menu-toggle .abrir { display: none; }
    .menu-aberto .menu-toggle .fechar { display: block; }

    .site-header nav.nav-principal {
        position: absolute; top: calc(100% + 1px); left: 50%; width: 100vw; transform: translateX(-50%);
        display: none; flex-direction: column; gap: 0;
        padding: .5rem max(1.25rem, calc((100vw - 72rem) / 2)) 1rem;
        border-bottom: 1px solid var(--line);
        background: rgba(8, 6, 5, .97); backdrop-filter: blur(10px);
    }
    .menu-aberto .site-header nav.nav-principal { display: flex; }
    .site-header nav.nav-principal a {
        padding: .95rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem;
    }
    .site-header nav.nav-principal a:last-child { border-bottom: 0; }
    .menu-aberto .site-header { background: rgba(8, 6, 5, .97); }

    /* ---------- primeira dobra: brasão menor ---------- */
    .hero-grid { min-height: auto; gap: 1rem; padding-top: 6.25rem; padding-bottom: 3.5rem; }
    .hero { min-height: auto; }
    .crest, .crest-stage .crest { width: min(44vw, 11rem) !important; }
    .crest-halo { width: 92%; }
    .hero .eyebrow { margin-bottom: .7rem; }
    .hero h1 { margin-bottom: 1rem; }
    .hero .lead { margin-bottom: 1.5rem; }
}

/* ---------- cartões de atuação ---------- */
.card { display: flex; flex-direction: column; }
.card-icone {
    display: grid; width: 3rem; height: 3rem; place-items: center; margin-bottom: 1.6rem;
    border: 1px solid var(--line); border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 145, 33, .16), transparent 70%); color: var(--gold-light);
}
.card-icone svg { width: 1.45rem; height: 1.45rem; }
.card .card-number { margin-bottom: .6rem; }
.card-link {
    margin-top: auto; padding-top: 1.4rem;
    color: var(--gold-light); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.card-link:hover, .card-link:focus-visible { text-decoration: underline; }
.card { min-height: 0; }

/* ---------- botão flutuante de WhatsApp ---------- */
.whats-flutuante {
    position: fixed; z-index: 50; right: 1rem; bottom: 1rem;
    display: grid; width: 3.6rem; height: 3.6rem; place-items: center;
    border-radius: 50%; background: #25d366; color: #fff;
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .45);
    opacity: 0; transform: translateY(1rem) scale(.9); pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.whats-flutuante svg { width: 1.85rem; height: 1.85rem; fill: currentColor; }
.whats-flutuante.visivel { opacity: 1; transform: none; pointer-events: auto; }
.whats-flutuante:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .whats-flutuante { transition: none; } }
