/*
 * Footer — brand column + three link columns, rule, bottom bar.
 * Loaded on every page (see functions.php enqueue()).
 *
 * Layout by breakpoint, mirroring the original site:
 *   > 1024px  brand and the three columns in one row
 *   ≤ 1024px  brand on its own row, three columns under it
 *   ≤ 767px   everything stacked, bottom bar centred
 */

/* No background of its own — the page background shows through, as on prod. */
.site-footer {
    padding: 80px 20px 35px;
}

/* ── Columns ───────────────────────────────────────────────────────────── */
/* Proportional, not fixed: the brand takes 2 parts and each link column 1,
   i.e. 40% / 20% / 20% / 20% of the space left after the gaps — the same
   split the original uses, so no column collapses as the row narrows. */
.site-footer__cols {
    display: flex;
    gap: 20px;
}

.site-footer__brand {
    flex: 2;
    min-width: 0;
}

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

/* Block, not inline-block — an inline wrapper sits on the text baseline and
   leaves a few pixels of descender space under the image. */
.site-footer__logo {
    display: block;
    width: fit-content;
}

.site-footer__logo-image {
    display: block;
    width: 180px;
    height: auto;
}

.site-footer__text {
    max-width: 350px;
    margin: 31px 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 16px;
    color: var(--color-muted);
}

.site-footer__heading {
    margin: 0 0 24px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__link,
.site-footer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 16px;
    color: var(--color-muted);
    text-decoration: none;
    /* The email is longer than the column on narrow desktops. `anywhere`, not
       `break-word`: only the former lowers the min-content width, which is what
       lets the text shrink inside a flex row instead of spilling over. */
    overflow-wrap: anywhere;
    min-width: 0;
}

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

/* Icons are drawn with currentColor, so the colour is set per context:
   gold for contact details, white for the social list. */
.site-footer__icon {
    flex-shrink: 0;
    color: var(--color-primary);
}

.site-footer__link--social .site-footer__icon {
    color: var(--color-text);
}

/* ── Bottom bar ────────────────────────────────────────────────────────── */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(157, 136, 82, .2);
}

.site-footer__copy {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 16px;
    color: var(--color-muted);
}

.site-footer__legal-list {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    .site-footer {
        padding: 40px 20px 20px;
    }

    .site-footer__cols {
        flex-wrap: wrap;
        row-gap: 20px;
    }

    .site-footer__brand {
        flex: 0 0 100%;
    }

    .site-footer__col {
        flex: 1;
    }

    .site-footer__bottom {
        margin-top: 28px;
        padding-top: 28px;
    }
}

/* ── Phone ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

    .site-footer {
        padding: 20px 16px;
    }

    .site-footer__cols {
        flex-direction: column;
    }

    .site-footer__col {
        flex: none;
    }

    .site-footer__text {
        margin-top: 23px;
    }

    .site-footer__heading {
        margin-bottom: 16px;
    }

    /* Menu items carry their own vertical padding here, the way the original
       does — the other lists keep the gap-based rhythm. */
    .site-footer__list--menu {
        gap: 0;
    }

    .site-footer__list--menu .site-footer__link {
        padding: 12px 0;
    }

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

    .site-footer__legal-list {
        justify-content: center;
    }
}
