/* Shared footer strip and matching background for the adjoining footer. */
.gg-footer-brand {
    --gg-footer-cat-width: clamp(240px, 25vw, 400px);
    overflow: hidden;
    width: 100%;
    background: #000;
    color: #fff;
}

.gg-footer-brand + #site-footer,
.gg-footer-brand + #site-footer .footer--row-inner {
    background: #000;
}

.gg-footer-brand__pattern {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.gg-footer-brand__row {
    display: flex;
    justify-content: center;
    gap: 22px;
    width: max-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.gg-footer-brand__row + .gg-footer-brand__row {
    margin-left: calc(var(--gg-footer-cat-width) * -0.5);
    margin-top: 8px;
}

.gg-footer-brand__cat {
    display: block;
    position: relative;
    flex: 0 0 var(--gg-footer-cat-width);
    width: var(--gg-footer-cat-width);
    aspect-ratio: 1800 / 440;
    overflow: hidden;
}

/* Display the original supplied logo through a cat-only viewport.
 * The stepped clip excludes the wordmark while preserving the front paw. */
.gg-footer-brand__cat img {
    display: block;
    position: absolute;
    width: 120.388889%;
    max-width: none;
    height: auto;
    left: -9.444444%;
    top: -7.954545%;
    clip-path: polygon(0 0, 100% 0, 100% 65.517241%, 80.295339% 65.517241%, 80.295339% 62.758621%, 0 62.758621%);
    filter: grayscale(1) contrast(2);
}

.gg-footer-brand__contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 24px 24px;
    font-size: 16px;
    line-height: 1.5;
}

.gg-footer-brand a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.gg-footer-brand a:hover {
    color: #d5d5d5;
}

.gg-footer-brand a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 6px;
}

.gg-footer-brand__phone > a {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.gg-footer-brand__hours {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 13px;
}

.gg-footer-brand__contact-link {
    border-left: 1px solid #454545;
    padding-left: 30px;
}

/* Keep the existing footer links in three evenly spaced, labelled groups. */
.gg-footer-brand + #site-footer .footer-main-inner {
    padding: 16px 0 20px;
}

.gg-footer-brand + #site-footer .customify-container {
    max-width: 1120px;
    padding-right: 24px;
    padding-left: 24px;
}

.gg-footer-brand + #site-footer .footer-main .customify-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 40px;
    margin: 0;
}

.gg-footer-brand + #site-footer .footer-main .builder-item {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.gg-footer-brand + #site-footer .footer-main .item--inner {
    display: block;
    margin: 0;
    padding: 0;
}

.gg-footer-brand + #site-footer .gg-footer-group-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
}

.gg-footer-brand + #site-footer .widget,
.gg-footer-brand + #site-footer .wp-block-list {
    margin: 0;
    padding: 0;
}

.gg-footer-brand + #site-footer .wp-block-list,
.gg-footer-brand + #site-footer .wp-block-list li {
    /* Override the existing inline footer rule that forces disc !important. */
    list-style: none !important;
}

.gg-footer-brand + #site-footer .wp-block-list li {
    margin: 0 0 10px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.gg-footer-brand + #site-footer .wp-block-list li:last-child {
    margin-bottom: 0;
}

.gg-footer-brand + #site-footer .builder-first--footer-social-icons {
    grid-column: 1 / -1;
    text-align: center;
}

.gg-footer-brand + #site-footer .footer-social-icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gg-footer-brand + #site-footer .footer-bottom-inner {
    padding: 12px 0 20px;
}

.gg-footer-brand + #site-footer .footer-copyright {
    color: #999;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 640px) {
    .gg-footer-brand {
        --gg-footer-cat-width: 230px;
    }

    .gg-footer-brand__row {
        gap: 16px;
    }

    .gg-footer-brand__contacts {
        flex-direction: column;
        gap: 16px;
        padding: 26px 20px 24px;
        text-align: center;
    }

    .gg-footer-brand__contact-link {
        border-left: 0;
        padding-left: 0;
    }

    .gg-footer-brand + #site-footer .footer-main .customify-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .gg-footer-brand + #site-footer .footer-main-inner {
        padding-top: 12px;
    }

    .gg-footer-brand + #site-footer .gg-footer-group-title {
        margin-bottom: 10px;
    }
}
