/**
 * Estilos do Footer Personalizado
 * Custom Header & Footer Plugin
 */

/* Reset e base */
.custom-footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seção Principal do Footer */
.custom-footer-main {
    background-color: #1e1e1e;
    padding: 50px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.8fr 1fr;
    gap: 40px;
}

/* Ajuste para colunas de acesso rápido */
.footer-quick-access {
    min-width: 180px;
}

/* Remover regra de esconder título - agora temos títulos diferentes */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-column-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column-links li {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

.footer-link:hover {
    color: #3366cc;
    text-decoration: none;
    transform: translateX(3px);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #3366cc;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Coluna de Atendimento */
.footer-service {
    min-width: 250px;
    max-width: 350px;
}

.service-hours {
    margin-bottom: 15px;
}

.service-text {
    margin: 0 0 8px 0;
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}

.service-address {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.service-address .service-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
}

.service-address-icon {
    color: #3366cc;
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-contact-item i {
    color: #3366cc;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.footer-contact-item .footer-link {
    color: #cccccc;
    font-size: 14px;
}

.footer-contact-item .footer-link:hover {
    color: #3366cc;
}

/* Coluna Pague com */
.footer-payment {
    min-width: 200px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 0;
}

.payment-methods-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0;
}

/* Divisória entre métodos de pagamento e certificados */
.payment-certificates-divider {
    width: 100%;
    height: 1px;
    background-color: #2a2a2a;
    margin: 20px 0;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #3366cc;
    font-size: 28px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.payment-icon:hover {
    transform: translateY(-3px) scale(1.1);
    opacity: 0.8;
}

.payment-icon i {
    line-height: 1;
}

/* Manter suporte para imagens de métodos de pagamento customizados */
.payment-method-link {
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.payment-method-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.payment-method-logo {
    height: auto;
    max-width: 80px;
    width: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 5px;
    border-radius: 4px;
}

/* Seção de Certificados */
.certificates-section {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.certificate-logo {
    height: auto;
    max-width: 80px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.certificate-logo:hover {
    opacity: 1;
}

/* Barra de Copyright */
.custom-footer-copyright {
    background-color: #3366cc;
    padding: 20px 0;
    border-top: 1px solid #2a2a2a;
}

.copyright-content {
    text-align: center;
}

.copyright-text {
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-quick-access:first-of-type {
        grid-column: 1;
    }
    
    .footer-quick-access:last-of-type {
        grid-column: 2;
    }
    
    .footer-service {
        grid-column: 1 / -1;
    }
    
    .footer-payment {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .custom-footer-main {
        padding: 40px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-quick-access:first-of-type,
    .footer-quick-access:last-of-type {
        grid-column: 1;
    }
    
    .footer-column-title {
        font-size: 15px;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .service-text {
        font-size: 13px;
    }
    
    .payment-icon {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .payment-methods-image {
        max-width: 100%;
    }
    
    .payment-method-logo {
        max-width: 70px;
    }
    
    .certificates-section {
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start;
    }
    
    .certificate-logo {
        max-width: 70px;
    }
    
    .copyright-text {
        font-size: 12px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .custom-footer-main {
        padding: 30px 0;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-column-title {
        font-size: 14px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .service-text {
        font-size: 12px;
    }
    
    .footer-contact-item i {
        font-size: 16px;
    }
    
    .payment-methods {
        gap: 10px;
    }
    
    .payment-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .payment-methods-image {
        max-width: 100%;
    }
    
    .payment-method-logo {
        max-width: 60px;
    }
    
    .certificates-section {
        flex-direction: row;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .certificate-logo {
        max-width: 60px;
    }
    
    .copyright-text {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* Ajustes para impressão */
@media print {
    .custom-footer {
        page-break-inside: avoid;
    }
    
    .custom-footer-main {
        background-color: #ffffff !important;
    }
    
    .custom-footer-copyright {
        background-color: #f5f5f5 !important;
    }
    
    .footer-column-title,
    .footer-link,
    .service-text {
        color: #333333 !important;
    }
    
    .copyright-text {
        color: #ffffff !important;
    }
    
    .custom-footer-copyright {
        background-color: #3366cc !important;
    }
}

/* Dropdown DPN AR Secovi-SP */
.footer-dpn-dropdown {
    position: relative;
    margin-top: 20px;
}

.footer-dpn-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    min-height: 48px;
    background-color: transparent;
    border: 1px solid #3366cc;
    border-radius: 6px;
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.footer-dpn-btn:hover {
    background-color: rgba(51, 102, 204, 0.1);
    border-color: #3366cc;
    color: #3366cc;
}

.footer-dpn-btn[aria-expanded="true"] {
    background-color: rgba(51, 102, 204, 0.15);
    border-color: #3366cc;
    color: #3366cc;
}

.footer-dpn-btn[aria-expanded="true"] .footer-dpn-icon {
    transform: rotate(180deg);
}

.footer-dpn-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.footer-dpn-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 8px;
    background-color: #2a2a2a;
    border: 1px solid #3366cc;
    border-radius: 6px;
    padding: 8px 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.footer-dpn-menu li {
    margin: 0;
    padding: 0;
}

.footer-dpn-menu .footer-link {
    display: block;
    padding: 10px 15px;
    color: #cccccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-dpn-menu .footer-link:last-child {
    border-bottom: none;
}

.footer-dpn-menu .footer-link:hover {
    background-color: rgba(51, 102, 204, 0.15);
    color: #3366cc;
    padding-left: 18px;
}

/* Responsividade para o dropdown */
@media (max-width: 768px) {
    .footer-dpn-btn {
        padding: 14px 18px;
        min-height: 44px;
    }
    
    .footer-dpn-menu {
        position: static;
        bottom: auto;
        top: auto;
        margin-top: 8px;
        margin-bottom: 0;
        box-shadow: none;
        border: 1px solid rgba(51, 102, 204, 0.3);
    }
}

