/* ==============================
   FOOTER - GOVHUB (reutilizável)
   ============================== */

.footer {
    background: #7A34F3;
    color: #fff;
    padding: 6rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section - Initiative and Support text */
.footer-top {
    margin-bottom: 1.5rem;
}

.footer-initiative-text,
.footer-support-text {
    display: flex;
    align-items: flex-end;
}

.footer-initiative-text p, .footer-support-text p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.3;
}

/* Espaçamento invisível para alinhamento */
.footer-spacer {
    display: flex;
    visibility: hidden;
}

.footer-spacer p {
    margin: 0;
    line-height: 1.3;
}

/* Three Column Layout */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    height: 50px; /* Altura fixa para alinhar as logos */
    justify-content: flex-start;
}

.footer-logo-lablivre {
    display: flex;
    align-items: center;
}

.footer-logo-lablivre img {
    height: 40px;
    width: auto;
}

.footer-logo-unb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-unb img {
    height: 30px;
    width: auto;
}

.footer-logo-ipea {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-ipea img {
    height: 30px;
    width: auto;
}

.footer-logo-capibaribe {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.footer-logo-capibaribe img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Converte para branco */
}

/* Main Content Section */
.footer-middle {
    margin-bottom: 2.5rem;
}

.footer-nav,
.footer-how-to-use,
.footer-contact {
    align-self: stretch; /* Faz as seções ocuparem toda a largura da coluna */
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-how-to-use h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.footer-how-to-use ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

/* Links de navegação em negrito */
.footer-nav a {
    font-weight: 700;
    opacity: 0.95;
}

.footer a:hover { 
    opacity: 1; 
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a { 
    font-size: 32px;
    color: #ffffff; 
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 1;
}

/* Estilos para ícones SVG no footer */
.footer-social .social-icon-img {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.footer-social a:hover .social-icon-img {
    transform: scale(1.1);
}

/* Bottom Section - Copyright */
.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    margin-left: 0;
}

.footer-bottom p {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive Design - Alinhado com Bootstrap Grid System */

/* Desktop - Manter layout original */
@media (min-width: 768px) {
    .footer-middle {
        display: block; /* Reset do grid para desktop */
    }
    
    .footer-column {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .footer-column:first-child .footer-logo-section {
        display: flex; /* Mostrar logo Lab Livre na primeira coluna no desktop */
    }
    
    .footer-column:nth-child(2) .footer-logo-section::before {
        display: none; /* Esconder pseudo-elemento no desktop */
    }
    
    /* Desktop: Esconder logo Lab Livre da segunda coluna */
    .footer-column:nth-child(2) .footer-logo-lablivre.mobile-only {
        display: none;
    }
    
    /* Desktop: Esconder área de contatos mobile */
    .footer-contact-mobile {
        display: none;
    }
    
    /* Desktop: Mostrar seção de contatos original */
    .footer-column:last-child .footer-contact {
        display: block;
    }
}

/* Tablet e Mobile - Bootstrap breakpoint md (768px) */
@media (max-width: 767.98px) {
    .footer {
        padding: 2.5rem 1rem 2rem 1rem;
    }
    
    .footer-top {
        text-align: center;
    }
    
    .footer-initiative-text,
    .footer-support-text {
        justify-content: center;
    }
    
    .footer-column {
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo-section {
        justify-content: center;
    }
    
    .footer-nav ul,
    .footer-how-to-use ul,
    .footer-contact ul {
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Esconder seções desnecessárias no mobile */
    .footer-nav,
    .footer-how-to-use,
    .footer-contact {
        display: none;
    }
    
    /* Layout simplificado - Sequência vertical: iniciativa -> logos (lab livre + unb) -> apoio -> logo ipea */
    
    .footer-initiative-text {
        text-align: center;
    }
    
    .footer-support-text {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Diminuir fonte da iniciativa */
    .footer-initiative-text p {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }
    
    .footer-support-text p {
        font-size: 14px;
        font-weight: 600;
        margin: 0;
    }
    
    .footer-middle {
        margin-bottom: 2rem;
    }
    
    /* MOBILE: Reorganizar layout usando CSS Grid */
    .footer-middle {
        display: grid;
        grid-template-areas: 
            "initiative"
            "logos"
            "support"
            "ipea"
            "contact";
        gap: 1.5rem;
    }
    
    /* Primeira coluna: apenas o texto da iniciativa */
    .footer-column:first-child {
        grid-area: initiative;
        align-items: center;
        text-align: center;
    }
    
    /* Segunda coluna: apenas as logos do Lab Livre e UnB */
    .footer-column:nth-child(2) {
        grid-area: logos;
        align-items: center;
        text-align: center;
    }
    
    /* Terceira coluna: texto de apoio e logo IPEA */
    .footer-column:last-child {
        grid-area: support;
        align-items: center;
        text-align: center;
    }
    
    
    /* MOBILE: Criar nova área de contatos separada */
    .footer-contact-mobile {
        grid-area: contact;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-contact-mobile h4 {
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 1rem 0;
        color: #fff;
    }
    
    .footer-contact-mobile ul {
        list-style: none;
        padding: 0;
        margin: 0 0 1rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-contact-mobile a {
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.3;
        opacity: 0.85;
        transition: opacity 0.2s ease;
    }
    
    .footer-contact-mobile a:hover { 
        opacity: 1; 
    }
    
    /* Esconder o spacer na segunda coluna */
    .footer-column:nth-child(2) .footer-spacer {
        display: none;
    }
    
    /* Layout das logos: Lab Livre e UnB lado a lado */
    .footer-column:nth-child(2) .footer-logo-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        justify-content: center;
    }
    
    /* Logo IPEA centralizada */
    .footer-column:last-child .footer-logo-section {
        display: flex;
        justify-content: center;
    }
    
    /* MOBILE: Esconder logo Lab Livre da primeira coluna */
    .footer-column:first-child .footer-logo-section {
        display: none;
    }
    
    /* MOBILE: Mostrar logo Lab Livre na segunda coluna */
    .footer-column:nth-child(2) .footer-logo-lablivre.mobile-only {
        display: flex;
        align-items: center;
    }
    
    .footer-column:nth-child(2) .footer-logo-lablivre.mobile-only img {
        height: 30px;
        width: auto;
    }
    
    .footer-logo-lablivre img,
    .footer-logo-unb img,
    .footer-logo-ipea img {
        height: 30px;
        width: auto;
    }
    
    .footer-logo-capibaribe img {
        height: 30px;
        width: auto;
        filter: brightness(0) invert(1); /* Converte para branco */
    }
    
    .footer-bottom {
        text-align: center;
        margin-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Mobile Small - Bootstrap breakpoint sm (576px) */
@media (max-width: 575.98px) {
    .footer {
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    .footer-logo-lablivre img,
    .footer-logo-unb img,
    .footer-logo-ipea img {
        height: 25px;
    }
    
    .footer-logo-capibaribe img {
        height: 25px;
        filter: brightness(0) invert(1); /* Converte para branco */
    }
    
    /* Ajustar fonte para telas menores */
    .footer-initiative-text p,
    .footer-support-text p {
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}


