@charset "utf-8";
/*
 * Public footer — styles for the CP's "Site Template > Footer"
 * HTML (tbl_websitecontent.footercontent, first editor at
 * /cp/template_footer, rendered by partials/footer). Design follows the
 * reference footer in public/islandrealtygroup (index.php + styles.css):
 * navy logo band, grey contact bar, navy link columns, white copyright.
 * Its images live in public/images/site-footer/.
 *
 * Loaded only by layouts/app (public site) and inside the first footer
 * editor's iframe on /cp/template_footer (contentsCss) for an accurate
 * preview. Every rule is scoped to .site-footer. Text rows use <div>, not
 * <p>, because layouts/app forces `p { line-height: 40px !important }`.
 */

/* Montserrat (the reference footer's font), self-hosted under a
   footer-only family name so it can't change any other part of the site. */
@font-face {
    font-family: "Site Footer Montserrat";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/montserrat-latin-400-800.woff2") format("woff2");
}

.site-footer {
    -webkit-text-size-adjust: none;
}

/* Set on every element (not just inherited) so page CSS such as
   body.irg-theme's font-family, or element rules for a/button/li, can't
   switch the footer to another font. */
.site-footer,
.site-footer * {
    font-family: "Site Footer Montserrat", "Montserrat", sans-serif;
}

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

.site-footer img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navy logo band (reference: #002966, 40px above/below the logo). */
.site-footer-logo {
    padding: 40px 16px;
    text-align: center;
    background: #002966;
}

.site-footer-logo img {
    width: 577px;
    margin: 0 auto;
}

/* Grey contact bar: phone · address · social icons (images, as in the
   reference; .site-footer img's max-width lets the address shrink). */
.site-footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 14px;
    padding: 25px 16px;
    background: #d9dfe8;
}

.site-footer-contact > a {
    min-width: 0;
    max-width: 100%;
}

.site-footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer-social img {
    width: auto;
    height: 28px;
}

/* Navy link columns (reference column widths 13/21/25/22/18 of 1000px). */
.site-footer-links {
    padding: 40px 16px;
    background: #002966;
}

.site-footer-cols {
    display: grid;
    grid-template-columns: 13fr 21fr 25fr 22fr 18fr;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 22px;
    font-size: 16px;
    line-height: 28px;
    color: #dee2e4;
}

.site-footer-heading {
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.site-footer-col--main a {
    font-weight: 700;
}

.site-footer-links a {
    color: #e6ebf2;
    text-decoration: none;
}

.site-footer-links a:hover {
    color: #ffffff;
}

/* White copyright / legal rows. */
.site-footer-copyright {
    padding: 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    text-align: center;
    background: #ffffff;
}

.site-footer-copyright a,
.site-footer-copyright button {
    color: #666666;
    text-decoration: none;
}

.site-footer-copyright a:hover,
.site-footer-copyright button:hover {
    color: #333333;
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    margin-top: 8px;
    font-size: 14px;
}

.site-footer-legal button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}

.site-footer-legal svg {
    width: 24px;
    height: 16px;
}

/* Tablet */
@media (max-width: 1023px) {
    /* The dots only make sense on one row; wrapped rows get plain gaps. */
    .site-footer-contact {
        column-gap: 30px;
    }

    .site-footer .site-footer-dot {
        display: none;
    }

    .site-footer-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 28px;
        padding-left: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .site-footer-logo img {
        width: 300px;
    }

    .site-footer-contact {
        flex-direction: column;
        text-align: center;
    }

    .site-footer-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-col--main {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        gap: 4px 24px;
    }
}

@media (max-width: 420px) {
    .site-footer-cols {
        grid-template-columns: minmax(0, 1fr);
    }
}
