/* ============================================
   NOVO RODAPÉ MSGÁS - Idêntico ao site principal
   ============================================ */

/* Importar a fonte Plus Jakarta Sans do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Rodapé Principal */
.footer-msgas {
    position: relative;
    background-color: #1a1a1a;
    background-image: url('https://msgas.com.br/wp-content/uploads/2024/01/footer-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

/* Overlay escuro sobre a imagem de fundo */
.footer-msgas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(24, 25, 35, 0.9); /* Tom azul escuro/preto do site */
    z-index: 0;
}

/* Conteúdo do rodapé */
.footer-content {
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
}

/* Colunas do rodapé */
.footer-col {
    margin-bottom: 30px;
}

/* Logo do rodapé */
.footer-logo img {
    max-width: 200px;
    height: auto;
}

/* Descrição da empresa */
.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Redes sociais */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background-color: #76b82a; /* Verde do site principal */
    border-color: #76b82a;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Títulos das seções */
.footer-title {
    font-size: 18px;
    font-weight: 800;
    color: #76b82a; /* Verde do site principal */
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

/* Adicionando o pequeno quadrado branco ao lado dos títulos, igual ao site principal */
.footer-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Listas de links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
}

.footer-links a:hover {
    color: #76b82a;
    padding-left: 5px;
}

/* Links com ícones */
.footer-links-icon a i,
.footer-links-icon a svg {
    margin-right: 12px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    width: 20px !important;
    height: 16px !important;
    display: inline-block !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
    vertical-align: middle !important;
}

.footer-links-icon a:hover i,
.footer-links-icon a:hover svg {
    color: #76b82a !important;
}

/* Links com setas */
.footer-links-arrow a i,
.footer-links-arrow a svg {
    margin-right: 10px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
    vertical-align: middle !important;
}

.footer-links-arrow a:hover i,
.footer-links-arrow a:hover svg {
    color: #76b82a !important;
}

/* Lista de contatos */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    color: #ffffff;
    font-size: 16px;
    min-width: 20px;
    width: 20px;
    display: inline-block;
    text-align: center;
    transition: color 0.2s ease;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #76b82a;
}

.footer-contact li:hover i {
    color: #76b82a;
}

/* Rodapé Inferior */
.footer-bottom {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-leaf {
    max-width: 32px;
    height: auto;
}

.footer-bottom p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    font-weight: 300;
}

.footer-bottom strong {
    color: #ffffff;
    font-weight: 700;
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0069b4; /* Azul de destaque do site principal */
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 105, 180, 0.3);
}

.back-to-top:hover {
    background-color: #76b82a; /* Muda para verde ao passar o mouse */
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(118, 184, 42, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Responsividade */
@media (max-width: 991px) {
    .footer-content {
        padding: 60px 0 40px;
    }

    .footer-col {
        margin-bottom: 40px;
    }

    .footer-title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .footer-description {
        text-align: left;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* Ajustes para o container do portal */
.footer-msgas .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-msgas .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.footer-msgas [class*="col-"] {
    padding: 0 15px;
}

/* Larguras das colunas baseadas em Bootstrap Grid */
@media (min-width: 992px) {
    .footer-msgas .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-msgas .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .footer-msgas .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
