/* ============================================================
   RESPONSIVIDADE - PÁGINA DE MATERIAIS CBA 2026
   ============================================================ */

:root {
    --primary: #1a365d;
    --secondary: #27ae60;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2d3436;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* 2. BLOQUEIO DE ROLAGEM (Ajustado para travar a tela cheia) */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important; 
    top: 0;
    left: 0;
}

/* --- AJUSTES PARA TELAS ATÉ 992px --- */
@media screen and (max-width: 992px) {

    .navbar {
        background-color: transparent;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 3000; /* Elevado para ficar acima de tudo */
        height: 70px;
        display: flex;
        align-items: center;
        transition: background-color 0.4s ease;
    }

    .navbar.rolagem {
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }

    /* 3. ALTERAÇÃO PRINCIPAL: MENU OCUPANDO TODA A TELA */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* ALTERADO: de 280px para 100% */
        height: 100vh;
        background-color: #003366; /* Cor sólida para cobrir o fundo */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: 0.5s ease-in-out; /* Transição mais suave para full screen */
        z-index: 2500;
        box-shadow: none; /* Removido sombra lateral pois preenche tudo */
    }

    .nav-links.active {
        right: 0;
    }

    /* Garante que o ícone do menu (X) fique visível sobre o fundo azul */
    #mobile-menu.is-active .bar {
        background-color: #fff !important;
    }

    /* --- RESTANTE DO SEU CÓDIGO ORIGINAL MANTIDO ABAIXO --- */
    
    .navbar.rolagem .logo-texto { 
        color: #1a365d; 
    }

    .navbar-container { 
        width: 100%; 
        padding: 0 20px; 
        display: flex; 
        justify-content: 
        space-between; 
        align-items: center; 
    }

    .logo img { 
        height: 35px; 
    }

    .logo-texto { 
        font-size: 0.85rem; 
        color: #fff; 
        line-height: 1.2; 
    }

    .logo-texto span { 
        display: block; 
        font-size: 0.55rem; 
    }

    .menu-toggle { 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        width: 28px; 
        height: 18px; 
        cursor: pointer; 
        z-index: 3100; 
    }

    .menu-toggle .bar { 
        width: 100%; 
        height: 3px; 
        background-color: #fff; 
        border-radius: 3px; 
        transition: 0.3s; 
    }

    .navbar.rolagem .menu-toggle .bar { 
        background-color: #1a365d; 
    }

    .nav-links li { 
        width: 100%; 
    }

    .nav-links a { 
        color: #fff; 
        text-decoration: none; 
        display: block; 
        padding: 15px; 
        text-align: center; 
        font-size: 1.5rem; 
    }

    .btn-oferta { 
        color: #003366 !important; 
        margin: 10px 10px;  
        font-weight: bold; 
    }

    .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 0 20px 60px 20px;
        text-align: center;
        background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, transparent 60%), url('../images/capa_mobile.jpeg');
        background-size: 100% 100%;
        background-position: center bottom;
        height: 100vh; /* Garante que o hero ocupe toda a altura da tela */
    }

    .hero-content h1 { 
        font-size: 1.5rem; 
        color: #fff; 
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 1); 
        margin-bottom: 15px; 
    }

    .hero-content p { 
        font-size: 1.1rem; 
        color: #fff; 
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 1); 
        margin-bottom: 25px; 
    }

    /* 5. GRID DE MATERIAIS (ESTRUTURA DE DOWNLOADS) */
    .materiais-grid {
        padding: 10px 5px;
    }

    .categoria-materiais {
        margin-bottom: 20px;
    }

    .categoria-materiais h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        border-left: 4px solid #FFCC00;
        padding-left: 12px;
    }

    .cards-downloads {
        display: flex;
        flex-direction: column; /* Empilha os cards no mobile */
        gap: 15px;
    }

    .item-download {
        display: flex;
        flex-direction: column; /* Texto em cima, botão embaixo no mobile */
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 10px;
        background: #f9f9f9;
        border-radius: 10px;
        border: 1px solid #eee;
    }

    .item-download span {
        font-weight: bold;
        font-size: 1rem;
        color: #1a365d;
    }

    .btn-download {
        width: 100%; /* Botão ocupa a largura total para facilitar o toque */
        justify-content: center;
        padding: 12px;
    }

    /* 6. CANAIS DE CONTATO E FOOTER */
    .canais-contato {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-content: center;
    }

    .contato-card {
        width: 100%;
        flex-direction: row;
        text-align: left;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    /* 7. ANIMAÇÃO HAMBÚRGUER PARA X */
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media screen and (max-width: 480px) {
    .status-impacto .container {
        grid-template-columns: 1fr;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .logo img {
        height: 32px;
    }
}