:where(.site-footer) {
    background-color: var(--color-brand-navy);
    color: var(--color-primary-white);
    padding: 4rem 0;

    .footer-wrap {
        display: grid;
        grid-template-areas:
            'logo footernav footernav'
            'address copylinks socialbuttons';
        column-gap: 4rem;
        row-gap: 2rem;
        align-items: center;

    }


    .logo {
        grid-area: logo;
    }

    .footer-nav {
        grid-area: footernav;
    }

    .footer-contact-info {
        grid-area: address;

        .call-to-action {
            --button-style-color: var(--color-primary-white);
            background: var(--color-brand-navy);
        }
    }

    .footer-copy-and-links {
        grid-area: copylinks;
    }

    .footer-social {
        grid-area: socialbuttons;
    }


    .footer-logo-svg-mobile {
        display: none;
    }

}

.site-footer .logo img {
    height: 15rem;
}

.footer-button {
    &:hover {
        background: var(--color-primary-white);
    }
}

.site-footer :where(.footer-nav a) {
    color: var(--color-primary-white);
    text-decoration: none;
    font-size: 1.8rem;
    line-height: 1.2;

    &:where(:hover, :focus-within) {
        text-decoration: underline;
    }
}

/* Disclaimer copy + housekeeping links (both inherited body 1.6rem) -> 1.4rem */
.site-footer :where(.footer-copy-and-links) {
    font-size: 1.4rem;
}

/* Footer copy is a WYSIWYG: keep its paragraphs flush (the flex column gap handles
   spacing) and make any in-copy links legible against the navy background. */
.site-footer :where(.footer-copy p) {
    margin-block: 0;
}

.site-footer :where(.footer-copy a) {
    color: var(--color-primary-white);
    text-decoration: underline;
}

/* Address + phone text -> 1.4rem (scoped so the footer button keeps its size) */
.site-footer :where(.footer-contact-info .address-info, .footer-contact-info .phone) {
    font-size: 1.4rem;
}

.site-footer .phone a {
    color: inherit;
    text-decoration: none;
}


@media print {
    :where(.site-footer) {
        background-color: transparent !important;
        padding: 1rem 0 0;
        border-top: 1px solid #ccc;

        .footer-wrap {
            display: block;
        }

        .footer-nav,
        .footer-contact-info,
        .footer-copy-and-links,
        .footer-social {
            display: none !important;
        }

        .logo {
            display: block;
        }

        .footer-logo-svg-mobile {
            display: none !important;
        }

        .footer-logo-svg svg {
            width: auto;
            height: 5rem;
            filter: invert(1);
        }
    }
}

@media screen and (max-width: 1024px) {
    .site-footer  {
        .footer-logo-svg-mobile {
            display: block;

            & > svg {
                width: 100%;
                max-width: 45rem;
                height: auto;
            }

        }

        .footer-logo-svg {
            display: none;
        }


        .footer-contact-info {
            text-align: center;
            align-items: center;
        }

        .footer-wrap {
            grid-template-areas:
            'logo'
            'address'
            'footernav'
            'copylinks';
            row-gap: 4rem;
            justify-content: center;
            place-content: center;
            place-items: center;
        }

        .footer-social {
            display: none;
        }

        .footer-menu {
            display: flex;
            flex-flow: column;
            gap: 2rem;
        }
    }
}

@media screen and (max-width: 790px) {
    .site-footer {
        padding-bottom: 8rem;
    }
}

@media screen and (max-width: 525px) {
    .site-footer  {
        .footer-copy-and-links {
            ul {
                display: grid;
                grid-template-columns: 1fr 1fr;
                justify-content: space-between;
                gap: 2rem;
                align-self: center;
                width: 100%;
                padding-inline: 2rem;
            }
        }
    }

}
