/* =============================================
   Modern Footer Styles
   ============================================= */

.site-footer {
    background: var(--footer-bg, #111827);
    color: var(--footer-text, #9ca3af);
    margin-top: 4rem;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Brand */
.footer-brand {
    flex-shrink: 0;
}

.footer-logo,
.footer-logo-link {
    display: inline-block;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--footer-heading, #ffffff);
    letter-spacing: -0.025em;
    transition: opacity 0.2s ease;
    line-height: 0;
}

.footer-logo:hover,
.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo-img {
    display: block;
    width: calc(var(--logo-width, 150px) * 0.8);
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.footer-tagline {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    max-width: 280px;
}

/* Footer Navigation */
.footer-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    display: inline-block;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    font-weight: 450;
    color: var(--footer-link, #d1d5db);
    transition: color 0.15s ease;
}

.footer-menu a:hover {
    color: var(--footer-link-hover, #ffffff);
}

/* Footer Widgets Section */
.footer-widgets {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-widget-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-widget {
    margin: 0;
}

.footer-widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--footer-heading, #ffffff);
    letter-spacing: -0.01em;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget li {
    margin: 0;
}

.footer-widget a {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: var(--footer-link, #d1d5db);
    transition: color 0.15s ease;
}

.footer-widget a:hover {
    color: var(--footer-link-hover, #ffffff);
}

.footer-widget p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    color: var(--footer-text, #9ca3af);
    line-height: 1.6;
}

.footer-widget p:last-child {
    margin-bottom: 0;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--footer-text, #9ca3af);
}

.footer-bottom-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-menu li {
    margin: 0;
}

.footer-bottom-menu a {
    font-size: 0.875rem;
    color: var(--footer-link, #d1d5db);
    transition: color 0.15s ease;
}

.footer-bottom-menu a:hover {
    color: var(--footer-link-hover, #ffffff);
}

/* Responsive Styles */
@media (max-width: 900px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        padding: 2.5rem 0;
    }

    .footer-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-menu {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-menu a {
        padding: 0.5rem 0;
    }

    .footer-widgets {
        padding: 2.5rem 0;
    }

    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 0;
    }

    /* Show menu first, then copyright on mobile */
    .footer-bottom-nav {
        order: -1;
    }

    .footer-copy {
        order: 0;
    }

    .footer-tagline {
        max-width: none;
    }
}
