/* =====================================================================
   Footer — 1:1 with atlas5.co components/footer.tsx.
   Ink band; brand block + two link columns (1.7fr / 1fr / 1fr from 1080px).
   ===================================================================== */

.a5-footer {
    position: relative; overflow: hidden;
    background: var(--a5-ink); color: var(--a5-surface);
    padding: 3.5rem 0 1.75rem;
    font-family: var(--a5-font-sans);
}

.a5-footer-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    column-gap: var(--a5-space-lg); row-gap: var(--a5-space-2xl);
    padding-bottom: var(--a5-space-2xl);
    border-bottom: 1px solid var(--a5-border-inverse);
}
@media (min-width: 640px) { .a5-footer-grid { column-gap: var(--a5-space-2xl); } }
@media (min-width: 1080px) { .a5-footer-grid { grid-template-columns: 1.7fr 1fr 1fr; } }

.a5-footer-brand { grid-column: span 2; }
@media (min-width: 1080px) { .a5-footer-brand { grid-column: span 1; } }

.a5-footer-logo { display: flex; align-items: center; }
.a5-footer-logo img { display: block; height: 1.625rem; width: auto; }

.a5-footer-desc {
    margin: 0.875rem 0 0; max-width: 17.5rem;
    font-size: var(--a5-text-body); line-height: 1.6; text-transform: capitalize;
    color: var(--a5-muted-inverse);
}

.a5-footer-socials { margin-top: 1.25rem; display: flex; gap: 0.625rem; }
.a5-footer-social,
.a5-footer-social:visited {
    width: 2.375rem; height: 2.375rem; border-radius: var(--a5-radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.09); color: var(--a5-surface);
    transition: background-color .2s ease, color .2s ease;
}
.a5-footer-social:hover { background: rgba(255, 255, 255, 0.16); color: var(--a5-purple-300); }
.a5-footer-social svg { width: 1.125rem; height: 1.125rem; display: block; }

.a5-footer-heading {
    margin: 0 0 0.875rem;
    font-family: var(--a5-font-display); font-size: var(--a5-text-caption); font-weight: 500;
    line-height: 1.4; text-transform: uppercase;
    color: var(--a5-muted-inverse);
}

.a5-footer-link,
.a5-footer-link:visited {
    position: relative; display: block; width: fit-content; margin-bottom: 0.6875rem;
    font-size: var(--a5-text-small); line-height: 1.5; text-transform: capitalize;
    color: var(--a5-surface); opacity: .82;
    transition: opacity .2s ease, color .2s ease;
}
.a5-footer-link::after,
.a5-footer-legal a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--a5-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.a5-footer-link:hover,
.a5-footer-link[aria-current="page"] { color: var(--a5-purple-300); opacity: 1; }
.a5-footer-link:hover::after,
.a5-footer-link[aria-current="page"]::after,
.a5-footer-legal a:hover::after { transform: scaleX(1); }

.a5-footer-bottom {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding-top: var(--a5-space-lg);
    font-size: var(--a5-text-caption); line-height: 1.4; text-transform: capitalize;
    color: var(--a5-muted-inverse);
}
.a5-footer-legal { display: flex; gap: 1.125rem; }
.a5-footer-legal a,
.a5-footer-legal a:visited { position: relative; color: var(--a5-muted-inverse); transition: color .2s ease; }
.a5-footer-legal a:hover { color: var(--a5-purple-300); }
