/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 5rem 4rem 0; /* Bottom padding removed for connected logo */
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.footer-links-grid {
    max-width: 1400px;
    margin: 0 auto 4rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ffffff;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.footer-col a:hover {
    color: #ffffff;
}

/* Footer Middle Bar */
.footer-middle-bar {
    max-width: 1400px;
    margin: 4rem auto 3rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-middle-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.footer-middle-logo {
    height: 120px; 
    width: auto;
    object-fit: contain;
}

.footer-middle-center {
    flex: 1.5;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.footer-middle-center p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.footer-middle-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
}

.footer-bottom-center p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    border-radius: 0;
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.social-link:hover img {
    filter: brightness(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .site-footer {
        padding: 4rem 1.5rem 0;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col a {
        margin: 0 auto;
    }
    
    .footer-col a:hover {
        /* No transform */
    }
    
    .footer-middle-bar {
        flex-direction: column;
        gap: 2.5rem;
        margin: 3rem auto 2.5rem;
    }

    .footer-middle-left, .footer-middle-center, .footer-middle-right {
        justify-content: center;
        flex: auto;
    }

    .footer-middle-logo {
        height: 90px;
    }
    
    .footer-bottom-bar {
        text-align: center;
    }
}
