.hb-footer {
    --hb-footer-bg: #313A3C;
    --hb-footer-text: #FFFFFFCC;
    --hb-footer-text-muted: #FFFFFFB8;
    --hb-footer-border: #FFFFFF1A;

    background: var(--hb-footer-bg);
    color: var(--hb-footer-text);
}

.hb-footer__top {
    max-width: 1290px;
    margin: 0 auto;
    padding: 48px 20px 40px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.2fr;
    gap: 32px;
    border-bottom: 1px solid var(--hb-footer-border);
}

.hb-footer__col-heading {
    margin: 0 0 14px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
}

.hb-footer__lead {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.hb-footer__brand {
    display: flex;
    flex-direction: column;
}

.hb-footer__brand .hb-footer__col-heading {
    margin-top: 18px;
}

.hb-footer__social-heading {
    margin-top: 22px;
}

.hb-footer__email,
.hb-footer__phone,
.hb-footer__address {
    display: block;
    text-decoration: none;
    color: var(--hb-footer-text-muted);
    transition: color .2s ease;
}

.hb-footer__email {
    font-size: .92rem;
    margin-bottom: 8px;
}

.hb-footer__email:hover {
    color: var(--primary);
}

.hb-footer__phone {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.hb-footer__phone:hover {
    color: var(--primary);
}

.hb-footer__address {
    font-size: .92rem;
}

.hb-footer__address:hover {
    color: var(--primary);
}

.hb-footer__social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hb-footer__social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--hb-footer-border);
    border-radius: 50%;
    color: var(--hb-footer-text-muted);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hb-footer__social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.hb-footer__social-icons svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.hb-footer__bbb-seal {
    display: inline-block;
    margin-top: 16px;
}

.hb-footer__bbb-seal img {
    display: block;
    border: 0;
    max-width: 100%;
    height: auto;
}

.hb-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hb-footer__nav a {
    text-decoration: none;
    font-size: .92rem;
    color: var(--hb-footer-text-muted);
    transition: color .2s ease;
}

.hb-footer__nav a:hover {
    color: var(--primary);
}

.hb-footer__map-embed {
    position: relative;
    width: 100%;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--hb-footer-border);
}

.hb-footer__map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hb-footer__bottom {
    max-width: 1290px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.hb-footer__copyright {
    margin: 0;
    font-size: .82rem;
    color: var(--hb-footer-text-muted);
}

.hb-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.hb-footer__legal a {
    font-size: .82rem;
    color: var(--hb-footer-text-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.hb-footer__legal a:hover {
    color: var(--primary);
}

@media (max-width: 1023px) {
    .hb-footer__top {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand brand"
            "links services"
            "map map";
        padding: 40px 20px 32px;
        gap: 32px;
    }

    .hb-footer__brand {
        grid-area: brand;
    }

    .hb-footer__links {
        grid-area: links;
    }

    .hb-footer__services {
        grid-area: services;
    }

    .hb-footer__map {
        grid-area: map;
    }
}

@media (max-width: 599px) {
    .hb-footer__top {
        padding: 36px 20px 28px;
        gap: 30px;
    }

    .hb-footer__lead {
        font-size: 1.3rem;
    }
}
