/* ===========================
   Site Footer
   Relies on brand variables declared in variables.css —
   make sure that file is linked BEFORE this one in _Layout.cshtml.
   =========================== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--font-sans);
    padding: 3rem 2rem 0;
}

.site-footer__top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--footer-border);
}

.site-footer__columns {
    display: contents; /* children become direct grid items of .site-footer__top, aligning 1:1 under the header nav columns */
}

/* --- About / branding column --- */
.site-footer__about .footer-logo {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--aca-text-white);
    margin-bottom: 0.75rem;
}

.site-footer__about p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--footer-text-muted);
    margin: 0 0 1.25rem;
    max-width: 32ch;
}

.social-icons {
    display: flex;
    gap: 0.65rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--footer-icon-bg);
    color: var(--footer-text);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .social-icon:hover,
    .social-icon:focus-visible {
        background-color: var(--footer-icon-hover-bg);
        color: var(--footer-icon-hover-text);
    }

    .social-icon i {
        font-size: 1rem;
        line-height: 1;
    }

/* --- Link columns --- */
.footer-column h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--footer-heading-accent);
    margin: 0 0 1rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

    .footer-column a {
        display: block;
        font-size: 0.9rem;
        color: var(--footer-text-muted);
        text-decoration: none;
        padding: 0.35rem 0;
        transition: color 0.2s ease;
    }

        .footer-column a:hover,
        .footer-column a:focus-visible {
            color: var(--aca-text-white);
        }

/* --- Legal bar --- */
.site-footer__legal {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 0;
    font-size: 0.8rem;
    color: var(--footer-text-faint);
}

    .site-footer__legal .copyright {
        font-variant-numeric: tabular-nums;
    }

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

    .legal-links a {
        color: var(--footer-text-faint);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .legal-links a:hover,
        .legal-links a:focus-visible {
            color: var(--aca-text-white);
        }

/* ===========================
   Responsive breakpoints
   =========================== */

/* Tablet: about section spans full width, columns become 2x2 */
@media (max-width: 992px) {
    .site-footer__top {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }
}

/* Mobile: everything single column */
@media (max-width: 576px) {
    .site-footer {
        padding: 2.5rem 1.25rem 0;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        row-gap: 1.75rem;
    }

    .site-footer__legal {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .legal-links {
        gap: 1rem;
    }
}
