/* ── Site footer ─────────────────────────────────────────────
   Figma: desktop 903:38235, tablet 1349:175, mobile 903:38293.
   ─────────────────────────────────────────────────────────── */

.site-footer {
    padding: var(--pad-y) var(--pad-x) 36px;
    background: var(--color-canvas);
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.site-footer__top {
    display: flex;
    gap: 48px;
}


/* ── Logo, tagline and contact ────────────────────────────── */
.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
    width: 212px;
}

.site-footer__logo-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__logo {
    display: block;
    width: 106px;
}

.site-footer__logo img {
    width: 106px;
    height: 86px;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-style: normal;
    line-height: 1.55;
    letter-spacing: 0.07px;
    color: var(--color-ink-soft);
    white-space: nowrap;
}

/* A blank line between the address and the phone number. */
.site-footer__address {
    margin-bottom: 1.55em;
}

.site-footer__contact a:hover {
    color: var(--color-copper-text);
}

.site-footer__logo:focus-visible,
.site-footer__contact a:focus-visible,
.site-footer__link:focus-visible,
.site-footer__credit:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 2px;
}


/* ── Link columns ─────────────────────────────────────────── */
.site-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    flex: 1;
}

.site-footer__column,
.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__link {
    display: block;
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "SOFT" 0, "WONK" 1;
    line-height: 1.2;
    color: var(--color-beamwood);
    transition: color var(--transition);
}

.site-footer__link:hover {
    color: var(--color-copper-text);
}


/* ── Copyright and credit ─────────────────────────────────── */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
}

.site-footer__credit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-family: "Metropolis", sans-serif;
    font-size: 16px;
    line-height: 20.8px;
    color: var(--color-walnut);
}

.site-footer__credit img {
    width: 78px;
    height: 13px;
}


/* Tablet — 1024px and below */
@media (max-width: 1024px) {
    .site-footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .site-footer__brand {
        flex-direction: row;
        gap: 26px;
        width: auto;
    }

    .site-footer__columns {
        grid-template-columns: repeat(3, 205px);
        gap: 40px 24px;
    }

    /* Copyright on two lines */
    .site-footer__copyright span {
        display: block;
    }

    .site-footer__copyright .site-footer__separator {
        display: none;
    }
}

/* Mobile — 767px and below */
@media (max-width: 767px) {
    .site-footer {
        padding-bottom: var(--pad-y);
    }

    .site-footer__top {
        gap: 32px;
    }

    .site-footer__brand {
        justify-content: space-between;
    }

    .site-footer__logo-block {
        align-items: center;
        gap: 12px;
        width: 106px;
    }

    .site-footer__tagline {
        text-align: center;
    }

    .site-footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 60px;
    }

    .site-footer__link {
        font-size: 16px;
    }

    .site-footer__bottom {
        flex-direction: column;
        padding-top: 0;
        text-align: center;
    }
}
