/* config/style.css */

:root{
    --primary:#c41212;
    --primary-dark:#8f0d0d;
    --secondary:#1f7a35;
    --secondary-dark:#145325;
    --light:#ffffff;
    --text:#222222;
    --bg:#f5f5f5;
    --bg-soft:#f0f3f1;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins', sans-serif;
    background:var(--bg);
    color:var(--text);
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* HEADER */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:var(--light);
    z-index:999;
    box-shadow:0 2px 15px rgba(0,0,0,0.08);
    border-bottom:4px solid var(--primary);
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:80px;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo{
    width:55px;
    height:55px;
    object-fit:contain;
}

.logo-area h1{
    font-size:20px;
    color:var(--primary);
    font-weight:700;
}

.logo-link{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.menu ul{
    display:flex;
    list-style:none;
    gap:30px;
}

.menu ul li{
    position:relative;
}

.menu ul li a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    transition:0.3s;
}

.menu ul li a:hover{
    color:var(--primary);
}

/* SUBMENU */

.dropdown{
    position:relative;
}

.submenu{
    position:absolute;
    top:100%;
    left:0;
    background:var(--light);
    width:220px;
    display:none !important;
    flex-direction:column;
    padding:10px 0;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    border-top:4px solid var(--secondary);
    z-index:999;
}

.dropdown:hover .submenu{
    display:flex !important;
}

.submenu li{
    padding:0;
}

.submenu li a{
    display:block;
    padding:12px 20px;
    font-size:14px;
    transition:0.3s;
}

.submenu li a:hover{
    background:rgba(0,0,0,0.05);
    color:var(--primary);
}

/* MOBILE */

.menu-mobile-btn{
    display:none;
    font-size:28px;
    cursor:pointer;
    color:var(--primary);
}

/* BANNER */

.banner{
    width:100%;
    height:100vh;
    position:relative;
    overflow:hidden;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:1s;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(90, 0, 0, 0.50);
    z-index:1;
}

.banner-content{
    position:relative;
    z-index:2;
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:var(--light);
    padding:20px;
}

.banner-content h2{
    font-size:60px;
    margin-bottom:20px;
    text-shadow:0 4px 15px rgba(0,0,0,0.35);
}

.banner-content p{
    font-size:20px;
    max-width:700px;
    line-height:1.8;
}

.btn{
    margin-top:30px;
    background:var(--secondary);
    color:var(--light);
    text-decoration:none;
    padding:14px 35px;
    border-radius:40px;
    transition:0.3s;
    font-weight:600;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.btn:hover{
    background:var(--secondary-dark);
    transform:translateY(-2px);
}

/* SOBRE */

.sobre{
    padding:120px 0;
    background:var(--light);
}

.sobre .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.sobre-img img{
    width:100%;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.sobre-texto span,
.titulo span,
.contato-info span{
    color:var(--primary);
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.sobre-texto h2,
.titulo h2,
.contato-info h2{
    font-size:40px;
    margin:15px 0 25px;
    color:var(--secondary);
}

.sobre-texto p{
    margin-bottom:20px;
    line-height:1.9;
    color:#555;
}

.instagram-btn{
    display:inline-block;
    margin-top:15px;
    background:var(--primary);
    color:var(--light);
    text-decoration:none;
    padding:14px 30px;
    border-radius:40px;
    transition:0.3s;
    font-weight:600;
}

.instagram-btn:hover{
    background:var(--primary-dark);
}

/* AÇÕES */

.acoes{
    padding:120px 0;
    background:var(--bg-soft);
}

.titulo{
    text-align:center;
    margin-bottom:60px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.card{
    background:var(--light);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.4s;
    border-bottom:5px solid transparent;
}

.card:hover{
    transform:translateY(-8px);
    border-bottom:5px solid var(--primary);
}

.card img{
    width:100%;
    height:250px;
    object-fit:cover;
}

.card h3{
    padding:25px 25px 10px;
    color:var(--secondary);
}

.card p{
    padding:0 25px 30px;
    line-height:1.7;
    color:#555;
}

/* CONTATO */

.contato{
    padding:120px 0;
    background:var(--light);
}

.contato-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.contato-info p{
    margin-bottom:15px;
    line-height:1.8;
    color:#555;
}

.contato-img img{
    width:100%;
    border-radius:20px;
}

/* MAPA */

.contato-img.mapa{
    width:100%;
    height:100%;
}

.contato-img.mapa iframe{
    width:100%;
    height:500px;
    border:none;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* FOOTER PROFISSIONAL */

.footer{
    background:var(--primary);
    color:var(--light);
    padding:70px 0 20px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.footer-col h3,
.footer-col h4{
    margin-bottom:20px;
}

.footer-col p{
    line-height:1.8;
    margin-bottom:12px;
    color:rgba(255,255,255,0.85);
}

.footer-col ul{
    list-style:none;
}

.footer-col ul li{
    margin-bottom:12px;
}

.footer-col a{
    color:rgba(255,255,255,0.85);
    text-decoration:none;
    transition:0.3s;
}

.footer-col a:hover{
    color:#fff;
}

.footer-bottom{
    margin-top:50px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,0.15);
    text-align:center;
}

.footer-bottom p{
    font-size:14px;
    color:rgba(255,255,255,0.75);
}

/* RESPONSIVO FOOTER */

@media(max-width:768px){

    .footer-container{
        grid-template-columns:1fr;
    }

}

/* RESPONSIVO */

@media(max-width:991px){

    .menu{
        position:absolute;
        top:80px;
        right:-100%;
        width:280px;
        background:var(--light);
        height:calc(100vh - 80px);
        transition:0.4s;
        padding-top:30px;
        box-shadow:-5px 0 20px rgba(0,0,0,0.08);
    }

    .menu.active{
        right:0;
    }

    .menu ul{
        flex-direction:column;
        padding-left:30px;
    }

    .submenu{
        position:relative;
        top:10px;
        box-shadow:none;
        width:100%;
    }

    .menu-mobile-btn{
        display:block;
    }

    .banner-content h2{
        font-size:38px;
    }

    .banner-content p{
        font-size:17px;
    }

    .sobre-texto h2,
    .titulo h2,
    .contato-info h2{
        font-size:32px;
    }

    .sobre .container,
    .contato-container,
    .cards{
        grid-template-columns:1fr;
    }

}

/* AJUSTES MOBILE HEADER E FOOTER */

@media(max-width:768px){

    /* OCULTAR NOME NO HEADER MOBILE */
    .logo-area h1{
        display:none;
    }

}

@media(max-width:768px){

    /* ESCONDER COLUNAS DO FOOTER */
    .footer-container{
        display:none;
    }

    /* AJUSTAR ESPAÇAMENTO */
    .footer{
        padding:25px 0;
    }

    .footer-bottom{
        margin-top:0;
        padding-top:0;
        border-top:none;
    }

}

/* BOTÃO DOCUMENTOS */

.btn-download{
    display:inline-block;
    padding:14px 30px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
    background:var(--primary);
    color:#fff;
    border:none;
}

.btn-download:hover{
    background:#8b1010;
    transform:translateY(-2px);
}

/* ==================================================
DOCUMENTOS PÚBLICOS
================================================== */

.documentos-section{
    padding:120px 0;
    background:#f4f6f5;
}

.documentos-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
}

.documento-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;
    border-left:6px solid var(--secondary);
}

.documento-card:hover{
    transform:translateY(-5px);
}

.documento-icon{
    font-size:55px;
    flex-shrink:0;
}

.documento-info{
    flex:1;
}

.documento-info h3{
    font-size:24px;
    margin-bottom:12px;
    color:var(--primary);
}

.documento-info p{
    line-height:1.8;
    color:#555;
}

.documento-actions{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.btn-documento,
.btn-download{
    display:inline-block;
    padding:14px 28px;
    border-radius:40px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.btn-documento{
    background:var(--primary);
    color:#fff;
}

.btn-documento:hover{
    background:#8b1010;
}

.btn-download{
    background:var(--secondary);
    color:#fff;
}

.btn-download:hover{
    background:#17662f;
}

/* RESPONSIVO */

@media(max-width:768px){

    .documento-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .documento-actions{
        width:100%;
        flex-direction:column;
    }

    .btn-documento,
    .btn-download{
        width:100%;
        text-align:center;
    }

}

/* RESPONSIVO DOCUMENTOS */

@media(max-width:768px){

    .documento-actions{
        width:100%;
    }

    .btn-download{
        width:100%;
        text-align:center;
    }

}

/* ==================================================
MODAL PDF
================================================== */

.pdf-modal{
    display:none;
    position:fixed;
    z-index:99999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    justify-content:center;
    align-items:center;
    padding:15px;
}

.pdf-modal-content{
    position:relative;
    width:100%;
    max-width:1100px;
    height:90vh;
    background:#222;
    border-radius:16px;
    overflow:hidden;
}

#pdfViewer{
    width:100%;
    height:100%;
    overflow-y:auto;
    padding:20px;
}

#pdfViewer canvas{
    display:block;
    margin:auto auto 20px;
    width:100% !important;
    height:auto !important;
    background:#fff;
    border-radius:8px;
}

.fechar-modal{
    position:absolute;
    top:10px;
    right:20px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    z-index:10;
}

@media(max-width:768px){

    .pdf-modal{
        padding:10px;
    }

    .pdf-modal-content{
        height:92vh;
        border-radius:12px;
    }

    #pdfViewer{
        padding:10px;
    }

}

/* MELHORIAS MOBILE PDF */

@media(max-width:768px){

    #pdfViewer{
        padding:10px;
    }

    #pdfViewer canvas{
        width:100% !important;
        height:auto !important;
    }

}