.ghome-card-grids {
    width: 100%;
    font-family: "Titillium Web", Arial, sans-serif;
}

.ghome-card-grids__inner {
    width: 100%;
    margin: 0 auto;
}

.ghome-card-grids__header {
    margin-bottom: 26px;
}

.ghome-card-grids__heading,
.ghome-card-grids__card h3,
.ghome-card-grids__callout-heading {
    font-family: "Tungsten", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.ghome-card-grids__heading {
    margin: 0;
    font-size: clamp(38px, 3vw, 58px);
    line-height: .95;
}

.ghome-card-grids__heading span + span {
    margin-left: 8px;
}

.ghome-card-grids__divider {
    display: block;
    width: 52px;
    height: 4px;
    margin: 10px 0 13px;
}

.ghome-card-grids__intro {
    max-width: 1100px;
    font-size: 16px;
    line-height: 1.5;
}

.ghome-card-grids__grid {
    display: grid;
    align-items: stretch;
}

.ghome-card-grids__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.ghome-card-grids__image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
}

.ghome-card-grids__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Related Services */
.ghome-card-grids--related-services .ghome-card-grids__grid {
    grid-template-columns: repeat(5, minmax(0,1fr));
}

.ghome-card-grids--related-services .ghome-card-grids__card {
    background: #111;
    border-radius: 4px;
    overflow: hidden;
}

.ghome-card-grids__service-footer {
    min-height: 92px;
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.ghome-card-grids__icon {
    flex: 0 0 34px;
    font-size: 28px;
}

.ghome-card-grids__icon svg {
    width: 30px;
    height: 30px;
}

.ghome-card-grids__service-footer h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.05;
}

/* Cities */
.ghome-card-grids--cities-served .ghome-card-grids__grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.ghome-card-grids--cities-served .ghome-card-grids__card {
    background: transparent;
}

.ghome-card-grids--cities-served .ghome-card-grids__image {
    border-radius: 6px;
}

.ghome-card-grids__city-copy {
    padding: 14px 4px 0;
}

.ghome-card-grids__city-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ghome-card-grids__location-icon {
    flex: 0 0 auto;
    font-size: 27px;
}

.ghome-card-grids__location-icon svg {
    width: 25px;
    height: 25px;
}

.ghome-card-grids__city-title h3 {
    margin: 0;
    font-size: 29px;
    line-height: 1;
}

.ghome-card-grids__description {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.52;
}

/* Center the bottom three when there are seven city cards */
@media (min-width: 1025px) {
    .ghome-card-grids--cities-served .ghome-card-grids__grid--count-7 {
        grid-template-columns: repeat(8, minmax(0,1fr));
    }
    .ghome-card-grids--cities-served .ghome-card-grids__grid--count-7 .ghome-card-grids__card {
        grid-column: span 2;
    }
    .ghome-card-grids--cities-served .ghome-card-grids__grid--count-7 .ghome-card-grids__card:nth-child(5) {
        grid-column: 1 / span 2;
    }
    .ghome-card-grids--cities-served .ghome-card-grids__grid--count-7 .ghome-card-grids__card:nth-child(6) {
        grid-column: 3 / span 2;
    }
    .ghome-card-grids--cities-served .ghome-card-grids__grid--count-7 .ghome-card-grids__card:nth-child(7) {
        grid-column: 5 / span 2;
    }
}

/* Results */
.ghome-card-grids--results-deliver .ghome-card-grids__grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.ghome-card-grids--results-deliver .ghome-card-grids__card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 7px rgba(0,0,0,.07);
    border-radius: 4px;
    overflow: visible;
}

.ghome-card-grids__result-icon {
    width: 58px;
    height: 58px;
    margin: -29px auto 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #ef3123;
    color: #fff;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghome-card-grids__result-icon svg {
    width: 29px;
    height: 29px;
    fill: #fff;
}

.ghome-card-grids__result-copy {
    padding: 18px 22px 25px;
    text-align: center;
}

.ghome-card-grids__result-copy h3 {
    margin: 0;
    font-size: 25px;
    line-height: 1.05;
}

/* Bottom callouts */
.ghome-card-grids__callout {
    margin-top: 28px;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 26px;
    background: #f4f4f4;
}

.ghome-card-grids--results-deliver .ghome-card-grids__callout {
    background: #080808;
    color: #fff;
}

.ghome-card-grids__callout-icon {
    flex: 0 0 62px;
    font-size: 44px;
}

.ghome-card-grids__callout-icon svg {
    width: 48px;
    height: 48px;
}

.ghome-card-grids__callout-copy {
    flex: 1;
    min-width: 0;
}

.ghome-card-grids__callout-heading {
    font-size: 29px;
    line-height: 1;
    margin-bottom: 6px;
}

.ghome-card-grids__cta {
    flex: 0 0 auto;
    display: inline-block;
    padding: 16px 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .ghome-card-grids--related-services .ghome-card-grids__grid,
    .ghome-card-grids--cities-served .ghome-card-grids__grid,
    .ghome-card-grids--results-deliver .ghome-card-grids__grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 767px) {
    .ghome-card-grids__heading span {
        display: block;
        margin-left: 0 !important;
    }

    .ghome-card-grids--related-services .ghome-card-grids__grid,
    .ghome-card-grids--cities-served .ghome-card-grids__grid,
    .ghome-card-grids--results-deliver .ghome-card-grids__grid {
        grid-template-columns: 1fr;
    }

    .ghome-card-grids__callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .ghome-card-grids__cta {
        width: 100%;
        text-align: center;
    }
}



/* v1.4 related-services carousel navigation */
.ghome-card-grids__slider {
    position: relative;
}

.ghome-card-grids--related-services .ghome-card-grids__grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.ghome-card-grids--related-services .ghome-card-grids__grid::-webkit-scrollbar {
    display: none;
}

.ghome-card-grids--related-services .ghome-card-grids__card {
    flex: 0 0 calc((100% - 88px) / 5);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.ghome-card-grids__navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 24px;
}

.ghome-card-grids__navigation-label {
    display: none;
    margin-right: auto;
    color: #555;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ghome-card-grids__navigation-buttons {
    display: flex;
    gap: 12px;
}

.ghome-card-grids__nav-button {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 2px solid #ef3123;
    border-radius: 50%;
    background: #fff;
    color: #ef3123;
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
}

.ghome-card-grids__nav-button:disabled {
    opacity: .28;
    cursor: default;
}

/* Exactly five cards do not need desktop navigation. */
@media (min-width: 768px) {
    .ghome-card-grids--five-or-less .ghome-card-grids__navigation {
        display: none;
    }
}

@media (max-width: 767px) {
    .ghome-card-grids {
        overflow: hidden;
    }

    .ghome-card-grids__inner {
        max-width: 100% !important;
    }

    .ghome-card-grids__heading span {
        display: block;
        margin-left: 0 !important;
    }

    .ghome-card-grids--related-services .ghome-card-grids__grid {
        width: 100%;
        gap: 16px !important;
        padding: 0 !important;
        scroll-padding-left: 0;
    }

    .ghome-card-grids--related-services .ghome-card-grids__card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        scroll-snap-align: start;
    }

    .ghome-card-grids--related-services .ghome-card-grids__image {
        height: auto !important;
        aspect-ratio: 16 / 10;
    }

    .ghome-card-grids__navigation {
        justify-content: space-between;
        margin-top: 20px;
    }

    .ghome-card-grids__navigation-label {
        display: block;
    }
}
