/* ====================================
   FOOTER RESPONSIVO - ATLANTIDA DMC
   ==================================== */

/* === ESTILOS GERAIS DO FOOTER === */
footer {
    background-color: var(--primary-dark) !important;
    color: #fff !important;
    padding: 15px 0 !important;
    margin: 0 !important;
}

footer .container {
    padding: 0 !important;
    margin: 0 auto !important;
}

/* === CONTAINER PRINCIPAL === */
.footer-responsive {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* === LOGO ATLANTIDA DMC === */
.footer-logo {
    flex: 0 0 auto !important;
    position: relative !important;
    height: 150px !important;
    width: 280px !important;
    overflow: hidden !important;
    min-width: 280px !important;
    padding: 0 !important;
}

.footer-logo img {
    height: 300px !important;
    width: 300px !important;
    position: absolute !important;
    left: -20px !important;
    top: -75px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* === SEÇÕES DO FOOTER === */
.footer-section {
    text-align: left !important;
    margin-top: 20px !important;
}

.footer-section.center {
    text-align: center !important;
}

/* === TÍTULOS DAS SEÇÕES === */
.footer-section h3 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Correção: Todos os títulos com o mesmo tamanho */
.footer-section.connect h3 {
    font-size: 14px !important; /* Era 18px, agora igual aos outros */
}

/* === SEÇÃO CONTACTOS === */
.footer-section p {
    margin: 3px 0 !important;
    font-size: 16px !important;
}

.footer-section a {
    color: #fff !important;
    text-decoration: none !important;
}

/* === SEÇÃO CONNECT === */
.footer-section.connect div {
    display: flex !important;
    gap: 8px !important;
    justify-content: left !important;
}

.footer-section.connect div a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 30px !important;
    background-color: transparent !important;
    border: 1px solid #fff !important;
    border-radius: 50% !important;
}

.footer-section.connect div a i {
    color: #fff !important;
    font-size: 18px !important;
}

/* === SEÇÃO PARTNERS === */
.footer-section.partner div {
    display: flex !important;
    align-items: flex-start !important; /* Correção: alinhamento superior */
    gap: 15px !important;
}

.footer-section.partner img {
    display: block !important;
}

/* === COPYRIGHT === */
.footer-copyright {
    text-align: center !important;
    padding-top: 5px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.footer-copyright p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
}

.footer-copyright a[href*="cloudsupport"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ====================================
   RESPONSIVO - TABLETS (768px - 1024px)
   ==================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-responsive {
        max-width: 100% !important;
        padding: 0 20px !important;
    }
    
    .footer-logo {
        width: 200px !important;
        min-width: 200px !important;
    }
    
    .footer-section {
        margin-top: 15px !important;
    }
    
    .footer-section.partner img {
        height: auto !important;
        max-height: 60px !important;
    }
}

/* ====================================
   RESPONSIVO - MOBILE (≤768px)
   ==================================== */
@media (max-width: 768px) {
    .footer-responsive {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 20px !important;
        gap: 20px !important;
    }
    
    /* Logo Atlantida em mobile */
    .footer-logo {
        margin-bottom: 20px !important;
        height: auto !important;
        width: auto !important;
        min-width: auto !important;
        overflow: visible !important;
    }
    
    .footer-logo img {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        height: 150px !important;
        width: 150px !important;
        transform: none !important;
    }
    
    /* Seções em mobile */
    .footer-section {
        margin: 10px 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .footer-section h3 {
        font-size: 16px !important;
        text-align: left !important;
    }
    
    /* Connect em mobile */
    .footer-section.connect div {
        justify-content: center !important;
    }
    
    /* Partners em mobile */
    .footer-section.partner div {
        justify-content: left !important;
        flex-wrap: wrap !important;
    }
    
    .footer-section.partner img {
        height: auto !important;
        max-height:60px !important;
    }
    
    /* Copyright em mobile */
    .footer-copyright {
        padding: 20px 20px !important;
    }
    
    .footer-copyright p {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }
}

/* ====================================
   SOBREPOR ESTILOS INLINE
   ==================================== */
/* Regras com alta especificidade para sobrepor estilos inline quando necessário */

/* Sobrepor qualquer regra que possa esconder o logotipo */
footer img[src*="logo_branco"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
