/* Footer Section */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)), url('../images/footer/footer-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 225px 0 100px;
    position: relative;
    min-height: 80vh;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(231, 76, 60, 0.1), rgba(52, 152, 219, 0.1));
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 120px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 35px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Logo Section */
.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 35px;
    filter: brightness(0) invert(1);
}

.footer-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #b8b8b8;
    max-width: 500px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 25px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: #72939c;
    transform: translateY(-3px);
    border-color: #72939c;
}

.social-links i {
    font-size: 1.5rem;
}

/* Menu Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 20px;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #72939c;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #72939c;
    font-size: 1.4rem;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -15px;
}

/* Footer Divider */
.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 60px 0;
    position: relative;
    z-index: 2;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.footer-copyright span {
    color: #b8b8b8;
    font-size: 1.1rem;
}

/* Link Hiph - ATUALIZADO (LETRAS BRANCAS E SEM TRAÇO) */
.footer-hiph-link {
    color: #b8b8b8 !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease;
    border-bottom: none !important;
}

.footer-hiph-link:hover {
    color: #72939c !important;
}

/* Ícone de seta para link externo */
.footer-hiph-link::after {
    content: ' ↗';
    font-size: 0.9em;
}

/* Botão Voltar ao Topo - ESTILO ATUALIZADO */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid #72939c;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(114, 147, 156, 0.3);
    z-index: 1000;
}

.back-to-top-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #72939c;
    border-color: #72939c;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(114, 147, 156, 0.6);
}

.back-to-top:hover .back-to-top-icon {
    transform: scale(1.1);
    filter: brightness(0) invert(1);
}

/* REMOVER BORDA VERMELHA DOS BOTÕES QUANDO CLICADOS */
.footer-links a:focus,
.social-links a:focus,
.footer-hiph-link:focus,
.back-to-top:focus {
    outline: 2px solid #72939c !important;
    outline-offset: 2px;
    border-radius: 4px;
}

.back-to-top:focus {
    background: rgba(114, 147, 156, 0.2);
}

/* Animation for footer elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

@media (prefers-contrast: high) {
    .footer {
        background: #000000;
    }

    .footer-section p,
    .footer-links a,
    .footer-copyright span {
        color: #ffffff;
    }

    .social-links a {
        border: 2px solid #ffffff;
    }

    .footer-hiph-link {
        color: #ffffff !important;
    }

    .back-to-top {
        border: 2px solid #ffffff;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .back-to-top:hover {
        background: #72939c;
        border-color: #72939c;
    }
    
    .back-to-top:hover .back-to-top-icon {
        filter: brightness(0) invert(1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-section {
        animation: none;
    }

    .footer-links a,
    .social-links a,
    .footer-hiph-link,
    .back-to-top,
    .back-to-top-icon {
        transition: none;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-links a::before {
        display: none;
    }

    .footer-hiph-link::after {
        display: none;
    }

    .back-to-top:hover {
        transform: none;
    }
    
    .back-to-top:hover .back-to-top-icon {
        transform: none;
        filter: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 180px 0 70px;
        min-height: 70vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
    }

    .footer-section p {
        max-width: none;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.6rem;
    }

    .footer-logo img {
        height: 80px;
    }

    /* Botão Voltar ao Topo - Tablet */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 120px 0 50px;
        min-height: 60vh;
    }

    .footer-content {
        gap: 60px;
    }

    .footer-section h4 {
        font-size: 1.4rem;
    }

    .footer-section p {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 1.1rem;
    }

    .footer-copyright span {
        font-size: 1rem;
    }

    .footer-hiph-link {
        font-size: 1rem;
    }

    .footer-logo img {
        height: 70px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
    }

    .social-links i {
        font-size: 1.3rem;
    }

    /* Botão Voltar ao Topo - Mobile */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top-icon {
        width: 18px;
        height: 18px;
    }
}