.site-footer {
    padding: var(--space-6) var(--space-7) var(--space-5);
    border-top: 1px solid rgba(242, 242, 240, 0.2);
    background: var(--color-navy);
    color: var(--color-off-white);
    font-size: var(--fs-small);
}

.site-footer a {
    color: var(--color-off-white);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: none;
    color: var(--color-accent);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) 2.2fr;
    gap: var(--space-6);
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.footer-brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 88px;
    width: auto;
    max-width: 100%;
    display: block;
}

.footer-brand-link {
    display: inline-flex;
    cursor: pointer;
}

.footer-brand-link:hover,
.footer-brand-link:focus-visible {
    color: inherit;
}

.footer-tagline {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 600;
}

.footer-description {
    margin: 0;
    color: rgba(242, 242, 240, 0.8);
    max-width: 44ch;
}

.footer-social {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.footer-social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 0;
    color: var(--color-off-white);
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    fill: var(--color-off-white);
    transition: fill 0.15s ease;
    display: block;
}

.footer-social-link:hover .footer-social-icon {
    fill: var(--color-accent);
}

.footer-social-icon-x {
    width: 28px;
    height: 28px;
}

.footer-quick-links {
    display: flex;
    gap: var(--space-4);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    max-width: 760px;
    justify-self: start;
}

.footer-col-title {
    margin: 0 0 var(--space-2);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-2);
}

.footer-bottom {
    margin-top: var(--space-5);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
}

.footer-bottom-left {
    display: grid;
    gap: var(--space-3);
}

.footer-bottom-right {
    display: grid;
    gap: var(--space-2);
    align-items: flex-end;
    text-align: right;
}

.footer-legal,
.footer-copy {
    color: rgba(242, 242, 240, 0.85);
}

@media (max-width: 980px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: var(--space-4);
    }

    .footer-brand,
    .footer-columns {
        align-items: center;
    }

    .footer-brand-lockup {
        align-items: center;
    }

    .footer-description {
        max-width: 36ch;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-quick-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-columns {
        width: 100%;
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .footer-links {
        justify-items: center;
    }

    .footer-bottom {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-left {
        align-items: center;
    }

    .footer-bottom-right {
        text-align: center;
        align-items: center;
    }
}

/* Legacy footer layout (until shared/footer.html is updated everywhere) */
.footer-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-grid .footer-brand {
    font-weight: 700;
    display: inline;
}
