/* ============================================================
   RESPONSIVIDADE - PÁGINA DE PROJETOS CBA 2026
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

: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;
    }

    .projetos-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;
    }

  /* 3. GRID DE PROJETOS (CARDS) */
    .projetos-grid {
        padding: 40px 15px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .projeto-card {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        /* Define uma altura mínima para os cards não ficarem muito pequenos */
        min-height: 500px; 
        margin: 0;
        border-radius: 15px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    .projeto-img {
        width: 100%;
        height: 220px;
        flex-shrink: 0; /* Impede a imagem de diminuir */
        position: relative;
    }

    .projeto-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .projeto-info {
        padding: 20px;
        display: flex;
        flex-direction: column;
        flex: 1; /* FAZ ESTA DIV OCUPAR TODO O ESPAÇO RESTANTE */
    }

    .projeto-info h3 {
        font-size: 1.3rem;
        color: #1a365d;
        margin-bottom: 10px;
    }

    .projeto-info p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 20px;
        color: #555;
        flex: 1; /* FAZ O TEXTO ESTICAR PARA EMPURRAR O FOOTER PARA BAIXO */
    }

    /* 4. RODAPÉ DO CARD (STATUS E BOTÃO) */
    .projeto-footer {
        display: flex;
        flex-direction: column;
        gap: 15px;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: auto; /* GARANTE QUE FIQUE SEMPRE NO FINAL DO CARD */
    }

    .status {
        font-size: 0.85rem;
        font-weight: bold;
        color: #27ae60;
    }

    .btn-saber {
        width: 100%;
        text-align: center;
        padding: 12px;
        background-color: #1a365d;
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        font-weight: bold;
    }

    /* 6. CONTATOS 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;
        text-align: center;
        gap: 30px;
    }

    /* Ícone Hambúrguer */
    #mobile-menu.is-active .bar {
        background-color: #fff !important;
    }

    /* Animação do ícone Hambúrguer para Branco quando o menu abrir */
    #mobile-menu.is-active .bar {
        background-color: #fff !important;
    }

    #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);
    }
}

/* Celulares muito pequenos */
@media screen and (max-width: 480px) {
    .projeto-img {
        height: 180px;
    }

    .projeto-info h3 {
        font-size: 1.1rem;
    }
}