/* ====================================
   CORREÇÃO DO RODAPÉ - CLUBE DOS CRUZEIROS
   Versão 1.0 - Dezembro 2024
   ==================================== */

/* Reset e correção de caracteres especiais */
footer {
    position: relative;
    z-index: 10;
    clear: both;
}

/* Correção do background do footer */
.bg-footer {
    background-image: url('../images/bg-footer.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    min-height: 400px;
}

.bg-line-footer {
    background-image: url('../images/curva-line-footer.png');
    background-repeat: no-repeat;
    background-position: top center;
    height: 50px;
}

/* Correção dos menus do footer */
footer .primary-menu, 
footer .primary-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

footer .primary-menu li {
    display: inline-block;
    position: relative;
    margin-right: 15px;
    border: none !important; /* Remove bordas problemáticas */
}

footer .primary-menu li:last-child {
    margin-right: 0;
}

footer .primary-menu li a {
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    color: rgb(143,181,204) !important;
    transition: all 0.3s ease;
}

footer .primary-menu li a:hover {
    text-decoration: underline;
    color: #fff !important;
}

/* Menu Secundário Footer */
footer .menu-secundario {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

footer .menu-secundario li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 0 10px;
}

footer .menu-secundario li:last-child {
    border-right: none !important;
    text-align: right;
}

footer .menu-secundario li:first-child {
    text-align: left;
}

footer .menu-secundario li a {
    font-weight: 900;
    font-size: 17px;
    text-decoration: none;
    color: rgb(255,255,255) !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

footer .menu-secundario li a:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Remove setas após itens do menu (Font Awesome) */
footer .menu-secundario li::after {
    display: none !important;
}

/* Newsletter Section */
.newsletter-section {
    padding: 40px 0;
    background: rgba(0,0,0,0.3);
}

.newsletter-input {
    width: 100%;
    height: 45px;
    border-radius: 5px;
    border: none;
    padding-left: 15px;
    font-size: 14px;
    color: #333;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255,185,21,0.5);
}

.newsletter-submit {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../images/bg-btn-enviar-footer.png');
    background-color: #005999;
    width: 100%;
    height: 45px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.newsletter-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer Line Divider */
.footer-line {
    border-bottom: 1px solid #1a4965;
    height: 1px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Cores e tipografia */
.fonte-azul-footer {
    color: rgb(143,181,204) !important;
}

.cinza-copyright {
    color: rgb(89,113,128) !important;
    letter-spacing: 2px;
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 991px) {
    footer .menu-secundario {
        flex-direction: column;
    }
    
    footer .menu-secundario li {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
        text-align: center !important;
    }
    
    footer .menu-secundario li a {
        font-size: 14px;
    }
    
    .newsletter-submit {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    footer .primary-menu {
        flex-direction: column;
        text-align: center;
    }
    
    footer .primary-menu li {
        margin: 5px 0;
    }
}

/* Fix para Contact Form 7 no footer */
footer div.wpcf7 .ajax-loader {
    display: none !important;
}

footer span.wpcf7-not-valid-tip {
    color: #fff !important;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

footer div.wpcf7-response-output {
    border: none !important;
    margin: 15px 0 !important;
    padding: 10px !important;
    color: #fff !important;
    background: rgba(0,0,0,0.5);
    border-radius: 5px;
    text-align: center;
}

footer div.wpcf7-mail-sent-ok {
    background: rgba(94,181,24,0.5);
}

footer div.wpcf7-mail-sent-ng,
footer div.wpcf7-validation-errors {
    background: rgba(220,53,69,0.5);
}