/* =====================================================================
   Site footer (x-footer, board: Home)
   Brand, three link columns and Get in touch on a pale ground, then a thin
   legal bar. Square corners; links are quiet grey until hovered.
   ===================================================================== */

.eb-site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--eb-border-default);
    background: var(--eb-gray-50);
    font-size: 14px;
}

.eb-site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.eb-site-footer__logo img {
    width: auto;
    height: 32px;
}

.eb-site-footer__blurb {
    max-width: 30ch;
    margin: 12px 0 0;
    line-height: 1.6;
    color: var(--eb-gray-600);
}

.eb-site-footer__heading {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 900;
    color: var(--eb-gray-900);
}

.eb-site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--eb-gray-600);
}

.eb-site-footer a {
    color: var(--eb-gray-600);
    text-decoration: none;
}

.eb-site-footer a:hover,
.eb-site-footer a:focus-visible {
    color: var(--eb-gray-900);
    text-decoration: underline;
}

.eb-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 14px;
}

.eb-site-footer .eb-site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--eb-border-default);
    background: var(--eb-white);
    color: var(--eb-gray-700);
}

.eb-site-footer .eb-site-footer__social-link:hover {
    color: var(--eb-gray-900);
    text-decoration: none;
}

.eb-site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 16px;
    padding-bottom: 28px;
    border-top: 1px solid var(--eb-border-default);
    font-size: 13px;
    color: var(--eb-gray-500);
}

.eb-site-footer__legal p {
    margin: 0;
}

.eb-site-footer__legal p + p {
    margin-top: 4px;
}

.eb-site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.eb-site-footer__legal a {
    color: var(--eb-gray-500);
}

@media (max-width: 991.98px) {
    .eb-site-footer__main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eb-site-footer__brand {
        grid-column: 1 / -1;
    }
}

/* Phones: two link columns, contact below. Room for the sticky sell button. */
@media (max-width: 575.98px) {
    .eb-site-footer {
        margin-top: 32px;
    }

    .eb-site-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .eb-site-footer__legal {
        flex-direction: column;
        padding-bottom: 96px;
    }
}

/* Column headings are summaries: plain headings on wide screens, folding rows on phones. */
.eb-site-footer summary.eb-site-footer__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: default;
}

.eb-site-footer summary.eb-site-footer__heading::-webkit-details-marker {
    display: none;
}

.eb-site-footer summary.eb-site-footer__heading i,
.eb-site-footer summary.eb-site-footer__heading svg {
    display: none;
    width: 18px;
    height: 18px;
}

@media (max-width: 575.98px) {
    .eb-site-footer__main {
        gap: 0;
    }

    .eb-site-footer__brand {
        grid-column: 1 / -1;
        padding-bottom: 16px;
    }

    .eb-site-footer__col {
        grid-column: 1 / -1;
        border-bottom: 1px solid var(--eb-border-default);
    }

    .eb-site-footer summary.eb-site-footer__heading {
        min-height: 48px;
        margin: 0;
        cursor: pointer;
    }

    .eb-site-footer summary.eb-site-footer__heading i,
    .eb-site-footer summary.eb-site-footer__heading svg {
        display: block;
    }

    .eb-site-footer__col[open] summary.eb-site-footer__heading svg,
    .eb-site-footer__col[open] summary.eb-site-footer__heading i {
        transform: rotate(180deg);
    }

    .eb-site-footer__col .eb-site-footer__links {
        padding-bottom: 16px;
    }
}
