/* ==========================================================================
   FOOTER - CSS OTIMIZADO
   Preserva 100% do design original com otimizações de performance.
   ========================================================================== */

.footer {
    background: #0a0a0a;
    color: rgba(255,255,255,0.8);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242,176,59,0.5) 25%, rgba(42,91,127,0.5) 50%, rgba(217,102,71,0.5) 75%, transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

/* Coluna Sobre */
.footer-about .footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Badges e Social */
.footer-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
}

.footer-badge img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.footer-badge i {
    color: #F2B03B;
    font-size: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Colunas de Links e Contato */
.footer-column h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #F2B03B;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #F2B03B;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 12px;
    color: #F2B03B;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-item i {
    width: 35px;
    height: 35px;
    background: rgba(242,176,59,0.1);
    border: 1px solid rgba(242,176,59,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F2B03B;
    font-size: 14px;
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #F2B03B;
}

/* CTA do Footer */
.footer-cta {
    background: linear-gradient(135deg, rgba(42,91,127,0.2) 0%, rgba(217,102,71,0.2) 100%);
    border: 1px solid rgba(242,176,59,0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.footer-cta h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-cta p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, #ff3b30 100%);
    color: white;
    padding: 10px 10px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217,102,71,0.2);
}

.btn-footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217,102,71,0.3);
}

/* Sparkles para o botão do footer */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #F2B03B;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

/* Bottom Footer */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    margin-top: -35px;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: #F2B03B;
}

/* ==========================================================================
   COMPONENTES FLUTUANTES - OTIMIZADOS
   ========================================================================== */

/* WhatsApp Float - Animação condicional */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

/* Pulse apenas com reduced motion check */
@media (prefers-reduced-motion: no-preference) {
    .whatsapp-float-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25D366;
        animation: whatsappPulse 3s infinite;
        z-index: -1;
    }
    
    @keyframes whatsappPulse {
        0%, 100% { 
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.5);
            opacity: 0;
        }
    }
}

.whatsapp-notification-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

@media (prefers-reduced-motion: no-preference) {
    .whatsapp-notification-bubble {
        animation: bubblePulse 2s ease-in-out infinite;
    }
    
    @keyframes bubblePulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 120%;
    right: 0;
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.whatsapp-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: rgba(42,91,127,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Métodos de Pagamento */
.payment-methods-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0px;
}

.payment-label {
    font-size: 14px;
    color: var(--gray);
    white-space: nowrap;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--gray);
    font-size: 16px;
    transition: all 0.3s ease;
}

.payment-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVIDADE - OTIMIZADA
   ========================================================================== */

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-about,
    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods-footer {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Touch targets adequados mobile */
    .social-link,
    .back-to-top {
        min-width: 44px;
        min-height: 44px;
    }
    
    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.social-link:focus-visible,
.footer-links a:focus-visible,
.btn-footer-cta:focus-visible,
.whatsapp-float-btn:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid #F2B03B;
    outline-offset: 2px;
}

/* High Contrast */
@media (prefers-contrast: high) {
    .footer {
        border-top: 2px solid white;
    }
    
    .footer-badge,
    .contact-item i {
        border-width: 2px;
    }
}