/*
 * Site footer — 3-row layout, boxed at 1400px.
 *
 *  Row 1: 4 widget columns (admins fill them via Aspetto > Widget).
 *  Row 2: full-width logo (light variant, fixed by design).
 *  Row 3: copyright (left) + inline nav menu (right).
 *
 * Mobile (< 768px) collapses every row to a single column; the bottom row
 * stacks copyright above the inline nav.
 */

.site-footer {
    width: 100%;
}

.site-footer__inner {
    background-color: var(--color-navy-80);
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-sizing: border-box;
    color: #fff;
    margin: 0 auto;
    margin-bottom: 40px;
    max-width: 1400px;
    padding: 40px 20px;
    width: 100%;
}

@media (min-width: 1024px) {
    .site-footer__inner {
        border-radius: 50px;
        margin-bottom: 50px;
        padding: 100px;
    }
}

/* ─────────────────────────────────────────────────────────
 * Row 1 — 4 widget columns
 * ───────────────────────────────────────────────────────── */
.site-footer__row--widgets {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .site-footer__row--widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .site-footer__row--widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-footer__col {
    min-width: 0;
}

/* .footer-widget + .footer-widget {
    margin-top: 1.5rem;
} */

.footer-widget__title {
    color: var(--color-quartz-20);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20px;
    margin: 0 0 18px;
}

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

.footer-widget ul li + li {
    margin-top: 16px;
}

.footer-widget a {
    color: var(--color-quartz-20);
    font-size: 16px;
    line-height: 24px;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.footer-widget a:hover,
.footer-widget a:focus-visible {
    opacity: 0.7;
}

.footer-widget p {
    color: var(--color-quartz-20);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────
 * Row 2 — full-width logo
 * ───────────────────────────────────────────────────────── */
.site-footer__row--logo {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    width: 100%;
}

.site-footer__logo {
    color: inherit;
    display: block;
    line-height: 0;
    text-decoration: none;
    width: 100%;
}

.site-footer__logo img {
    display: block;
    filter: brightness(0) invert(1);
    height: auto;
    width: 100%;
}


@media (min-width: 768px) {
    .site-footer__row--logo {
        margin: 100px 0;
    }
}
/* ─────────────────────────────────────────────────────────
 * Row 3 — copyright + inline menu
 * ───────────────────────────────────────────────────────── */
.site-footer__row--bottom {
    align-items: center;
    border-top: 1px solid currentColor;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .site-footer__row--bottom {
        flex-direction: row;
    }
}

.site-footer__copy {
    font-size: 13px;
    line-height: 20px;
    margin: 0;
}

.site-footer__bottom-list {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__bottom-list a {
    color: inherit;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.site-footer__bottom-list a:hover,
.site-footer__bottom-list a:focus-visible {
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────
 * Color sync with body bg (parity with header)
 * ───────────────────────────────────────────────────────── */
body.bg-dark .site-footer {
    color: #fff;
}

body.bg-light .site-footer {
    color: var(--color-text);
}
