/* Estilos Base do Footer */
.footer {
    background: linear-gradient(180deg, #0d1a2d 0%, #0c1623 100%);
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seção Superior do Footer */
.footer-top {
    padding: 50px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.footer-heading {
    color: #0e9dff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0px;
    bottom: 0px;
    width: -webkit-fill-available;
    height: 2px;
    background-color: #0e9dff;
}

/* Informações de Contato */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a9b3c1;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #fff;
}

.contact-item i {
    min-width: 24px;
    color: #0e9dff;
    font-size: 1rem;
}

.contact-item strong {
    color: #fff;
    font-family: 'Poppins';
    font-weight: 400;
    position: relative;
    line-height: 1em;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-link:hover {
    color: #20ba5a;
    text-decoration: underline;
}

/* Ícones Sociais */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: -30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3sease;
}

.social-icon:hover {
    background-color: #0e9dff;
    transform: translateY(-3px);
}

/* Seção Inferior do Footer */
.footer-bottom {
    padding: 5px 0px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: -15px;
}

.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

/* Logo e Slogan */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 2;
    min-width: 300px;
}

.logo-container img {
    height: 80px;
    filter: brightness(1.2);
}

.logo-text h2 {
    color: #0e9dff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-text h2 span {
    font-weight: 400;
    color: white;
}

.logo-text p {
    color: #a9b3c1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 350px;
}

/* Links Rápidos */
.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    color: #0e9dff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: -webkit-fill-available;
    height: 2px;
    background-color: #0e9dff;
}

.footer-links ul {
    list-style: none;
    padding: 0px;
    margin: 10px;
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.footer-links ul li a {
    color: #a9b3c1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.footer-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #0e9dff;
    transition: width 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
}

.footer-links ul li a:hover::after {
    width: 100%;
}

/* Formulário de Inscrição */
.footer-subscribe {
    flex: 1;
    min-width: 250px;
}

.footer-subscribe h3 {
    color: #0e9dff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-subscribe h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: -webkit-fill-available;    
    height: 2px;
    background-color: #0e9dff;
}

.subscribe-box {
    display: flex;
    gap: 10px;
}

.subscribe-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.subscribe-box input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(14, 157, 255, 0.3);
}

.subscribe-box input::placeholder {
    color: #a9b3c1;
}

.subscribe-box button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    background-color: #0e9dff;
    color: #fff;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-box button:hover {
    background-color: #0a85d8;
    transform: translateY(-2px);
}

/* Copyright */
.footer-copyright {
    padding: 20px 0;
    text-align: center;
}

.footer-copyright p {
    color: #a9b3c1;
    font-size: 0.9rem;
    width: -webkit-fill-available;
    margin: -10px;
    position: absolute;
}

/* Responsividade */
@media (max-width: 992px) {
    .footer-columns,
    .footer-bottom-content {
        gap: 40px;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-container img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .footer-top,
    .footer-bottom {
        padding: 30px 0;
    }
    
    .footer-column {
        min-width: 100%;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo,
    .footer-links,
    .footer-subscribe {
        min-width: 100%;
    }
    
    .logo-text p {
        max-width: 100%;
    }
    
    .footer-links ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-links ul {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .subscribe-box {
        flex-direction: column;
    }
    
    .subscribe-box button {
        width: 100%;
    }
}

/* Suporte para Dark Mode */
@media (prefers-color-scheme: dark) {
    .footer {
        /* Já está escuro por padrão, então mantemos */
        background: linear-gradient(180deg, #0d1a2d 0%, #0c1623 100%);
        color: #fff;
    }
    
    /* Garantindo que alguns elementos permaneçam visíveis no modo escuro */
    .contact-item, .logo-text p, .footer-copyright p {
        color: #a9b3c1;
    }
    
    .footer-heading, .logo-text h2, .footer-links h3, .footer-subscribe h3 {
        color: #0e9dff;
    }
    
    .contact-item:hover, .footer-links ul li a:hover {
        color: #fff;
    }
    
    .subscribe-box input {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .subscribe-box input:focus {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Estilo para a nova seção de copyright com ícones sociais */
.copyright-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-copyright .social-icons {
    display: flex;
    gap: 10px;
    margin: 0;
}


.footer-copyright p {
    position: relative;
    margin: 0;
    width: auto;
}

/* Responsividade para a seção de copyright */
@media (max-width: 768px) {
    .copyright-social {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-copyright .social-icons {
        justify-content: center;
    }
}

/* DARK MODE para o Footer */
.footer.dark-mode {
    background: linear-gradient(180deg, #080f18 0%, #06090f 100%) !important;
}

.footer.dark-mode .footer-heading,
.footer.dark-mode .logo-text h2,
.footer.dark-mode .footer-links h3,
.footer.dark-mode .footer-subscribe h3 {
    color: #1e9fff !important;
}

.footer.dark-mode .footer-heading::after,
.footer.dark-mode .footer-links h3::after,
.footer.dark-mode .footer-subscribe h3::after {
    background-color: #1e9fff !important;
}

.footer.dark-mode .contact-item i {
    color: #1e9fff !important;
}

.footer.dark-mode .subscribe-box button {
    background-color: #1e9fff !important;
}

.footer.dark-mode .subscribe-box button:hover {
    background-color: #0a85d8 !important;
}

.footer.dark-mode .social-icon:hover {
    background-color: #1e9fff !important;
}

/* DARK MODE para o Footer - versão mais específica */
body.dark-mode .footer,
html.dark-mode .footer {
    background: #111 !important;
    background-image: none !important;
}

body.dark-mode .footer-top,
html.dark-mode .footer-top {
    background: #111 !important;
    border-bottom-color: #333 !important;
}

body.dark-mode .footer-bottom,
html.dark-mode .footer-bottom {
    background: #111 !important;
    margin: 0px;
    padding: 10px 0px 10px 0px;
    border-bottom-color: #333 !important;
}

body.dark-mode .footer-copyright,
html.dark-mode .footer-copyright {
    background: #111 !important;
}

/* Elementos internos no dark mode */
body.dark-mode .footer .footer-heading,
body.dark-mode .footer .logo-text h2,
body.dark-mode .footer .footer-links h3,
body.dark-mode .footer .footer-subscribe h3,
html.dark-mode .footer .footer-heading,
html.dark-mode .footer .logo-text h2,
html.dark-mode .footer .footer-links h3,
html.dark-mode .footer .footer-subscribe h3 {
    color: #1e9fff !important;
}

body.dark-mode .footer .footer-heading::after,
body.dark-mode .footer .footer-links h3::after,
body.dark-mode .footer .footer-subscribe h3::after,
html.dark-mode .footer .footer-heading::after,
html.dark-mode .footer .footer-links h3::after,
html.dark-mode .footer .footer-subscribe h3::after {
    background-color: #1e9fff !important;
}

.social-icons .social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icons .social-icon.whatsapp {
    background-color: #25D366;
    color: white;
}

.social-icons .social-icon:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.social-icons .social-icon.facebook {
    background-color: #1877F2;
    color: white;
}

/* Correções para o footer */

/* Corrigir o layout do slogan */
.logo-text {
    display: block;
    max-width: 400px;
}

.logo-text span {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
    color: #a9b3c1;
    font-size: 0.9rem;
}

/* Corrigir margens negativas que estão quebrando o layout */
.footer-bottom {
    padding: 0px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0; /* Remover margem negativa */
}

/* Corrigir propriedades com valores incorretos */
.footer-heading::after,
.footer-links h3::after,
.footer-subscribe h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%; /* Substituir -webkit-fill-available */
    height: 2px;
    background-color: #0e9dff;
}

/* Melhorar o alinhamento do conteúdo */
.footer-logo {
    display: flex;
    align-items: flex-start; /* Alinhar pelo topo */
    gap: 20px;
    flex: 2;
    min-width: 300px;
}

/* Ajustar espaçamento do conteúdo do footer */
.footer-bottom-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
    padding: 10px 0;
}

/* Garantir que o texto do logotipo e slogan estejam adequadamente formatados */
.logo-text h2 {
    color: #0e9dff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Corrigir problemas de responsividade */
@media (max-width: 992px) {
    .footer-logo {
        flex-direction: row; /* Manter na horizontal em telas maiores */
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        flex-direction: column; /* Mudar para vertical em telas menores */
        align-items: flex-start;
    }
}


.footer .logo-text {
    display: block;
    max-width: 400px;
}

.footer .logo-text h2 {
    color: #0e9dff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.footer .logo-text span {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
    color: #a9b3c1;
    font-size: 0.9rem;
}