/**
 * VGSYS Footer Ultra Moderno - CSS Corrigido
 * Design System Completo para Footer Profissional
 * Compatible | Modern | Performance | Fixed
 * Arquivo: footer-style.css
 * Versão: 2.0 - Totalmente Corrigida
 */

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-dark: #1a202c;
    --accent-green: #48bb78;
    --gradient-green: linear-gradient(135deg, #48bb78, #38a169);
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== FOOTER PRINCIPAL ===== */
.footer-ultra-modern {
    position: relative;
    background: var(--primary-dark);
    color: white;
    padding-top: 6rem;
    padding-bottom: 2rem;
    overflow: hidden;
    margin-top: 6rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== BACKGROUND E EFEITOS ===== */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.95) 50%, rgba(74, 85, 104, 0.95) 100%);
    z-index: 2;
}

.footer-animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0.1;
}

.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-green), rgba(72, 187, 120, 0.5));
    animation: footerFloat 25s infinite linear;
}

.footer-shape.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.footer-shape.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    animation-delay: -8s;
}

.footer-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes footerFloat {
    0% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 0.2;
    }
    100% { 
        transform: translateY(0px) rotate(360deg) scale(1);
        opacity: 0.1;
    }
}

.footer-particle-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 30px 50px, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 80px 30px, rgba(72, 187, 120, 0.1), transparent),
        radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.05), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particles 30s infinite linear;
    z-index: 4;
}

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

.footer-container {
    position: relative;
    z-index: 5;
}

/* ===== FOOTER BRAND ===== */
.footer-brand {
    position: relative;
    margin-bottom: 2rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 20px rgba(72, 187, 120, 0.3));
    transition: all var(--transition-normal);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(72, 187, 120, 0.5));
}

.brand-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.2), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.footer-brand:hover .brand-glow {
    opacity: 1;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ===== INFORMAÇÕES DE CONTATO ===== */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: var(--accent-green);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-value {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-normal);
}

.contact-value:hover {
    color: var(--accent-green);
}

/* ===== CERTIFICAÇÕES ===== */
.footer-certifications {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
    transition: all var(--transition-normal);
}

.cert-item:hover {
    background: rgba(72, 187, 120, 0.2);
    transform: translateY(-2px);
}

.cert-item i {
    font-size: 0.9rem;
}

/* ===== SEÇÕES DO FOOTER ===== */
.footer-section {
    height: 100%;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    color: white;
}

.title-icon {
    font-size: 1.1rem;
}

.title-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-green);
    border-radius: 2px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 55px;
    width: 20px;
    height: 3px;
    background: rgba(72, 187, 120, 0.3);
    border-radius: 2px;
}

/* ===== LINKS DO FOOTER ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.footer-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    padding-left: 1rem;
}

.footer-link i {
    width: 16px;
    text-align: center;
    color: var(--accent-green);
    transition: all var(--transition-normal);
}

.footer-link:hover i {
    transform: scale(1.2);
}

.link-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 187, 120, 0.1), transparent);
    transition: left var(--transition-slow);
}

.footer-link:hover .link-glow {
    left: 100%;
}

/* ===== NEWSLETTER ===== */
.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.newsletter-form {
    margin-bottom: 2rem;
}

.form-group-newsletter {
    position: relative;
    margin-bottom: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 120px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

.newsletter-button {
    position: absolute;
    right: 6px;
    top: 6px;
    bottom: 6px;
    background: var(--gradient-green);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 0 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.newsletter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.4);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.newsletter-button:hover .button-glow {
    left: 100%;
}

.input-glow-newsletter {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: var(--gradient-green);
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.newsletter-input:focus + .newsletter-button + .input-glow-newsletter {
    opacity: 0.3;
}

.newsletter-terms {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.newsletter-terms i {
    color: var(--accent-green);
}

/* ===== REDES SOCIAIS ===== */
.social-section {
    margin-top: 2rem;
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: #1877f2;
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
}

.social-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: #0a66c2;
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.social-link i {
    font-size: 1.1rem;
    transition: transform var(--transition-normal);
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.social-link:hover .social-glow {
    left: 100%;
}

/* ===== DIVISOR ELEGANTE ===== */
.footer-divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.divider-decoration {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* ===== FOOTER BOTTOM - CORRIGIDO ===== */
.footer-bottom {
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-bottom .row {
    align-items: flex-start;
    justify-content: space-between;
}

.footer-bottom .col-md-6 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom .col-md-6:first-child {
    align-items: flex-start;
    text-align: left;
}

.footer-bottom .col-md-6:last-child {
    align-items: flex-end;
    text-align: right;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.copyright-symbol {
    color: var(--accent-green);
    font-weight: bold;
}

.copyright-company {
    color: white;
    font-weight: 600;
}

.made-with {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.heartbeat {
    color: #e53e3e;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-normal);
    white-space: nowrap;
}

.legal-link:hover {
    color: var(--accent-green);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    white-space: nowrap;
}

.badge-item i {
    color: var(--accent-green);
}

/* ===== SCROLL TO TOP BUTTON - SIMPLES ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
    
    /* SEM BORDAS */
    border: none !important;
    outline: none !important;
    
    /* CENTRALIZAÇÃO PERFEITA DA SETA */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.scroll-to-top:focus,
.scroll-to-top:active {
    border: none !important;
    outline: none !important;
}

.scroll-to-top i {
    font-size: 1.2rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    display: block;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(72, 187, 120, 0.5);
}

/* ===== RESPONSIVIDADE DESKTOP ===== */
@media (min-width: 992px) {
    .footer-bottom .row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .footer-bottom .col-md-6:first-child {
        flex: 0 0 50%;
        padding-right: 2rem;
    }
    
    .footer-bottom .col-md-6:last-child {
        flex: 0 0 50%;
        padding-left: 2rem;
    }
    
    .copyright {
        justify-content: flex-start;
    }
    
    .made-with {
        justify-content: flex-start;
    }
    
    .footer-legal-links {
        justify-content: flex-end;
    }
    
    .footer-badges {
        justify-content: flex-end;
    }
}

/* ===== RESPONSIVIDADE TABLET ===== */
@media (max-width: 991px) and (min-width: 769px) {
    .footer-bottom .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-bottom .col-md-6:first-child,
    .footer-bottom .col-md-6:last-child {
        align-items: center;
    }
    
    .copyright,
    .made-with {
        justify-content: center;
    }
    
    .footer-legal-links,
    .footer-badges {
        justify-content: center;
    }
}

/* ===== RESPONSIVIDADE MOBILE ===== */
@media (max-width: 768px) {
    .footer-ultra-modern {
        padding-top: 4rem;
        margin-top: 4rem;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 1.5rem;
        align-items: center !important;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center !important;
    }
    
    .footer-badges {
        flex-direction: column;
        align-items: center;
        justify-content: center !important;
    }
    
    .footer-divider {
        gap: 1rem;
    }
    
    .newsletter-input {
        padding-right: 20px;
        margin-bottom: 1rem;
    }
    
    .newsletter-button {
        position: static;
        width: 100%;
        justify-content: center;
    }
    
    .copyright,
    .made-with {
        justify-content: center !important;
    }
    
    /* CORREÇÃO: Scroll to top mobile - SEM BORDAS */
    .scroll-to-top {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 1rem !important;
        border: none !important;
        outline: none !important;
    }
    
    .scroll-to-top:focus,
    .scroll-to-top:active {
        border: none !important;
        outline: none !important;
    }
}

/* ===== RESPONSIVIDADE MOBILE PEQUENO ===== */
@media (max-width: 480px) {
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .footer-certifications {
        justify-content: center;
    }
    
    .contact-item {
        padding: 0.5rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* CORREÇÃO: Botão extra pequeno - SEM BORDAS */
    .scroll-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 15px !important;
        right: 15px !important;
        font-size: 0.9rem !important;
        border: none !important;
        outline: none !important;
    }
    
    .scroll-to-top:focus,
    .scroll-to-top:active,
    .scroll-to-top:hover {
        border: none !important;
        outline: none !important;
    }
    
    .footer-legal-links {
        gap: 0.25rem;
    }
    
    .legal-link {
        font-size: 0.8rem;
    }
    
    .separator {
        margin: 0 0.25rem;
    }
}

/* ===== ANIMAÇÕES VALIDAÇÃO ===== */
.newsletter-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.newsletter-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.footer-notification {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== ANIMAÇÕES FADE IN ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.footer-ultra-modern * {
    will-change: auto;
}

.footer-link,
.social-link,
.contact-item,
.scroll-to-top {
    will-change: transform;
}

/* ===== RESET GLOBAL PARA BOTÃO ===== */
.scroll-to-top,
.scroll-to-top::before,
.scroll-to-top::after {
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
}

/* Garantindo que Bootstrap ou outros frameworks não interfiram */
button.scroll-to-top,
.btn.scroll-to-top,
input.scroll-to-top {
    border: none !important;
    outline: none !important;
    background-clip: padding-box !important;
}

/* ===== SUPORTE A REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .footer-animated-shapes,
    .footer-particle-system,
    .heartbeat {
        animation: none;
    }
    
    .footer-shape {
        opacity: 0.05;
    }
    
    .scroll-to-top,
    .footer-link,
    .social-link {
        transition: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .footer-ultra-modern {
        /* Já otimizado para dark mode */
        color-scheme: dark;
    }
}

/* ===== HIGH CONTRAST SUPPORT ===== */
@media (prefers-contrast: high) {
    .footer-ultra-modern {
        border-top: 2px solid var(--accent-green);
    }
    
    .footer-link,
    .social-link,
    .legal-link {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .scroll-to-top {
        border: 2px solid white;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .footer-animated-shapes,
    .footer-particle-system,
    .scroll-to-top {
        display: none !important;
    }
    
    .footer-ultra-modern {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* ===== FIM DO ARQUIVO ===== */