/* =========================================================
   HB GROUP
   SERVICES
========================================================= */

.service-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--hb-blue-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.service-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--hb-blue);
}


/* =========================================================
   HEROES
========================================================= */

.services-hero,
.service-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 88px;
    background:
        radial-gradient(circle at 86% 16%, rgba(38, 140, 255, .15), transparent 31%),
        radial-gradient(circle at 96% 88%, rgba(255, 56, 56, .08), transparent 25%),
        #050505;
    color: #fff;
}


/* Services landing page hero image */
.services-hero--image {
    isolation: isolate;
    background: #050505;
}

.services-hero--image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg,
            rgba(2, 5, 10, .98) 0%,
            rgba(2, 5, 10, .95) 28%,
            rgba(2, 5, 10, .82) 48%,
            rgba(2, 5, 10, .42) 72%,
            rgba(2, 5, 10, .20) 100%),
        linear-gradient(180deg,
            rgba(2, 5, 10, .16) 0%,
            rgba(2, 5, 10, .14) 56%,
            rgba(2, 5, 10, .58) 100%),
        url("/assets/images/services/services-hero-hb-group.webp");
    background-position:
        center,
        center,
        center right;
    background-repeat: no-repeat;
    background-size: cover;
}


.services-hero::after,
.service-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent);
}

.services-hero .container,
.service-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero__grid,
.service-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    align-items: end;
    gap: 70px;
}

.services-hero h1,
.service-hero h1 {
    max-width: 900px;
    margin: 18px 0 22px;
    color: #fff;
    font-size: clamp(50px, 6vw, 88px);
    font-weight: 800;
    line-height: .96;
    letter-spacing: -.055em;
}

.services-hero h1 span,
.service-hero h1 span {
    display: block;
    color: var(--hb-blue-light);
}

.service-hero--red h1 span {
    color: var(--hb-red-light);
}

.service-hero--mixed h1 span {
    background: linear-gradient(90deg, var(--hb-red-light), var(--hb-blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-hero__grid>div>p,
.service-hero__content>p {
    max-width: 720px;
    margin: 0;
    color: #9da8b7;
    font-size: 15px;
    line-height: 1.8;
}

.services-hero__actions,
.service-hero__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.services-phone {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.services-hero__panel,
.service-hero__summary {
    padding: 27px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(12px);
}

.services-hero__panel>span,
.service-hero__summary>span {
    display: block;
    margin-bottom: 13px;
    color: #6d798a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.services-hero__panel>strong {
    display: block;
    margin-bottom: 17px;
    font-size: 23px;
    line-height: 1.15;
}

.services-hero__panel ul,
.service-hero__summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-hero__panel li,
.service-hero__summary li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .075);
    color: #8b96a5;
    font-size: 10px;
}

.services-hero__panel li::before,
.service-hero__summary li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--hb-blue-light);
}

.service-hero--red .service-hero__summary li::before {
    color: var(--hb-red-light);
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.service-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 44px;
    color: #6a7687;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service-breadcrumbs a:hover {
    color: var(--hb-blue-light);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.services-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 34px;
}

.services-heading h2 {
    margin: 10px 0 0;
    color: #0b0d12;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
}

.services-groups .services-heading h2,
.service-content .services-heading h2,
.service-faq .services-heading h2 {
    color: #fff;
}

.services-groups .services-heading>p,
.service-content .services-heading>p,
.service-faq .services-heading>p {
    color: #8b96a5;
}

.services-heading>p {
    max-width: 510px;
    margin: 0;
    color: #6b7687;
    font-size: 13px;
    line-height: 1.7;
}

.service-text-link {
    color: var(--hb-blue);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   SERVICES INDEX
========================================================= */

.services-index,
.services-areas,
.service-overview,
.service-local,
.related-services {
    padding: 82px 0;
    background: #f6f7f9;
}

.service-slider {
    position: relative;
}

.service-slider__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.service-slider__controls button {
    width: 45px;
    height: 45px;
    border: 1px solid #dce1e8;
    border-radius: 50%;
    background: #fff;
    color: #11151c;
    cursor: pointer;
    transition: .2s ease;
}

.service-slider__controls button:hover {
    border-color: #050505;
    background: #050505;
    color: #fff;
}

.service-slider__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service-index-card {
    --card-accent: var(--hb-blue);
    position: relative;
    min-height: 310px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e6ec;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(4, 8, 18, .055);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease;
}

.service-index-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--card-accent);
}

.service-index-card--red {
    --card-accent: var(--hb-red);
}

.service-index-card--mixed {
    --card-accent: var(--hb-blue);
}

.service-index-card--mixed::before {
    background: linear-gradient(90deg, var(--hb-red), var(--hb-blue));
}

.service-index-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-accent) 35%, #e1e6ec);
}

.service-index-card__top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.service-index-card__top>span {
    color: var(--card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.service-index-card__top small {
    color: #929aa7;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.service-index-card h3 {
    margin: 55px 0 14px;
    color: #0a0d12;
    font-size: 27px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.service-index-card p {
    margin: 0;
    color: #6d7888;
    font-size: 11px;
    line-height: 1.75;
}

.service-index-card>strong {
    margin-top: auto;
    padding-top: 22px;
    color: #12171e;
    font-size: 10px;
    font-weight: 800;
}

.service-slider__progress {
    display: none;
    height: 2px;
    margin-top: 18px;
    background: #dce1e7;
    overflow: hidden;
}

.service-slider__progress span {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--hb-blue);
    transform-origin: left;
}


/* =========================================================
   SERVICE GROUPS
========================================================= */

.services-groups,
.service-content,
.service-faq {
    padding: 88px 0;
    background: #050505;
    color: #fff;
}

.services-groups__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .08);
}

.service-group {
    --group-accent: var(--hb-blue);
    min-height: 420px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: #0a0b0e;
}

.service-group--red {
    --group-accent: var(--hb-red);
}

.service-group--mixed {
    --group-accent: var(--hb-blue);
}

.service-group>span {
    color: var(--group-accent);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.service-group h2 {
    margin: 55px 0 16px;
    color: #fff;
    font-size: 31px;
    line-height: 1.02;
    letter-spacing: -.04em;
}

.service-group>p {
    margin: 0;
    color: #7c8797;
    font-size: 12px;
    line-height: 1.8;
}

.service-group>div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 28px;
}

.service-group>div a {
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 5px;
    color: #b9c1cc;
    font-size: 9px;
    font-weight: 700;
}

.service-group>div a:hover {
    color: #fff;
    border-color: color-mix(in srgb, var(--group-accent) 45%, transparent);
}


/* =========================================================
   AREA LINKS
========================================================= */

.services-area-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.services-area-links a {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    background: #fff;
    transition: transform .2s ease, border-color .2s ease;
}

.services-area-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(38, 140, 255, .35);
}

.services-area-links span {
    color: var(--hb-blue);
    font-size: 9px;
    font-weight: 800;
}

.services-area-links strong {
    margin-top: 35px;
    color: #11151b;
    font-size: 17px;
    line-height: 1.15;
}

.services-area-links small {
    margin-top: 5px;
    color: #8b94a2;
    font-size: 9px;
}


/* =========================================================
   SERVICE OVERVIEW
========================================================= */

.service-overview__grid {
    display: grid;
    grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr);
    gap: 70px;
}

.service-overview__intro h2 {
    margin: 12px 0 16px;
    color: #0b0d12;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
}

.service-overview__intro p {
    color: #6c7788;
    font-size: 12px;
    line-height: 1.8;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #e0e5eb;
    background: #fff;
}

.service-list-grid>div {
    min-height: 105px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

.service-list-grid span {
    color: var(--hb-blue);
    font-size: 8px;
    font-weight: 800;
}

.service-list-grid strong {
    color: #2b3543;
    font-size: 11px;
}


/* =========================================================
   SERVICE PROJECT GALLERY
========================================================= */

.service-gallery {
    padding: 82px 0;
    background: #fff;
}

.service-gallery__heading {
    margin-bottom: 28px;
}

.service-gallery__track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.service-gallery__item {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e3e7ec;
    border-radius: 14px;
    background: #0a0b0e;
    box-shadow: 0 16px 42px rgba(4, 8, 18, .07);
}

.service-gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(2, 4, 7, .76) 0%,
            rgba(2, 4, 7, .10) 34%,
            transparent 58%);
    pointer-events: none;
}

.service-gallery__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.service-gallery__item:hover img {
    transform: scale(1.025);
}

.service-gallery__item figcaption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 2;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.service-gallery__mobile-hint {
    display: none;
}


/* =========================================================
   SERVICE CONTENT CARDS
========================================================= */

.service-content__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.service-content__cards article {
    min-height: 340px;
    padding: 30px;
    background: #0a0b0e;
}

.service-content__cards article>span {
    color: var(--hb-blue-light);
    font-size: 9px;
    font-weight: 800;
}

.service-content__cards h2 {
    margin: 70px 0 15px;
    color: #fff;
    font-size: 27px;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.service-content__cards p {
    color: #7f8998;
    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   RELATED SERVICES
========================================================= */

.related-services__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.related-service-card {
    --related-accent: var(--hb-blue);
    min-height: 240px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    background: #fff;
}

.related-service-card--red {
    --related-accent: var(--hb-red);
}

.related-service-card>span {
    color: var(--related-accent);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.related-service-card h3 {
    margin: 35px 0 10px;
    color: #10141b;
    font-size: 20px;
    line-height: 1.1;
}

.related-service-card p {
    margin: 0;
    color: #758090;
    font-size: 10px;
    line-height: 1.7;
}

.related-service-card strong {
    margin-top: auto;
    padding-top: 20px;
    color: #11151c;
    font-size: 9px;
}


/* =========================================================
   FAQ
========================================================= */

.service-faq__grid {
    display: grid;
    grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
    gap: 80px;
}

.service-faq h2 {
    margin: 13px 0 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
}

.service-faq__list details {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.service-faq__list details:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.service-faq__list summary {
    position: relative;
    padding: 20px 40px 20px 0;
    cursor: pointer;
    list-style: none;
    color: #e4e8ee;
    font-size: 12px;
    font-weight: 700;
}

.service-faq__list summary::-webkit-details-marker {
    display: none;
}

.service-faq__list summary::after {
    content: "+";
    position: absolute;
    top: 17px;
    right: 5px;
    color: var(--hb-blue);
    font-size: 19px;
}

.service-faq__list details[open] summary::after {
    content: "−";
}

.service-faq__list p {
    margin: 0;
    padding: 0 40px 20px 0;
    color: #798494;
    font-size: 11px;
    line-height: 1.8;
}



/* =========================================================
   BOILER SERVICING FEATURE
========================================================= */

.service-proof {
    padding: 82px 0;
    background: #f6f7f9;
}

.service-proof__grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 34px;
    align-items: stretch;
}

.service-proof__content {
    min-width: 0;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    border: 1px solid #e1e6ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(4, 8, 18, .045);
}

.service-proof__content .service-kicker {
    color: var(--hb-blue);
}

.service-proof__content h2 {
    max-width: 620px;
    margin: 16px 0 18px;
    color: #0b0d12;
    font-size: clamp(36px, 4vw, 56px);
    line-height: .98;
    letter-spacing: -.05em;
}

.service-proof__content>p {
    max-width: 650px;
    margin: 0;
    color: #687485;
    font-size: 13px;
    line-height: 1.82;
}

.service-proof__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.service-proof__points span {
    padding: 8px 10px;
    border: 1px solid #dfe5ec;
    border-radius: 5px;
    background: #f8fafb;
    color: #2f3946;
    font-size: 9px;
    font-weight: 750;
}

.service-proof__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

.service-proof__actions>a:last-child {
    color: #11151c;
    font-size: 13px;
    font-weight: 850;
}

.service-proof__media {
    position: relative;
    height: 530px;
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #111318;
}

.service-proof__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 58%;
}

.service-proof__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(3, 5, 8, .82) 0%,
            rgba(3, 5, 8, .18) 31%,
            transparent 62%);
    pointer-events: none;
}

.service-proof__media figcaption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    z-index: 2;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .service-proof__grid {
        grid-template-columns: 1fr;
    }

    .service-proof__content {
        min-height: auto;
    }

    .service-proof__media {
        height: 380px;
        min-height: 380px;
    }
}

@media (max-width: 560px) {
    .service-proof {
        padding: 58px 0;
    }

    .service-proof__content {
        padding: 28px 22px;
    }

    .service-proof__content h2 {
        font-size: clamp(34px, 10vw, 46px);
    }

    .service-proof__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-proof__actions .btn {
        width: 100%;
    }

    .service-proof__media {
        height: 320px;
        min-height: 320px;
    }
}


/* =========================================================
   CTA
========================================================= */

.service-cta {
    padding: 55px 0;
    background:
        radial-gradient(circle at 85% 50%, rgba(38, 140, 255, .16), transparent 32%),
        #0a0a0c;
    color: #fff;
}

.service-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.service-cta h2 {
    margin: 9px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.04em;
}

.service-cta__inner>div:last-child {
    display: flex;
    align-items: center;
    gap: 24px;
}

.service-cta__inner>div:last-child>a:last-child {
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .service-slider__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-area-links,
    .related-services__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {

    .services-hero--image::before {
        background-image:
            linear-gradient(90deg,
                rgba(2, 5, 10, .96) 0%,
                rgba(2, 5, 10, .91) 48%,
                rgba(2, 5, 10, .72) 100%),
            linear-gradient(180deg,
                rgba(2, 5, 10, .12) 0%,
                rgba(2, 5, 10, .38) 100%),
            url("/assets/images/services/services-hero-hb-group.webp");
        background-position:
            center,
            center,
            67% center;
    }

    .services-hero,
    .service-hero {
        padding: 60px 0;
    }

    .services-hero__grid,
    .service-hero__grid,
    .service-overview__grid,
    .service-faq__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .services-hero h1,
    .service-hero h1 {
        font-size: clamp(43px, 12vw, 62px);
    }

    .services-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .service-slider__track {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .service-slider__track::-webkit-scrollbar {
        display: none;
    }

    .service-index-card {
        min-width: 86%;
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .service-slider__progress {
        display: block;
    }

    .services-groups__grid {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        background: transparent;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .service-group {
        min-width: 88%;
        flex: 0 0 88%;
        scroll-snap-align: start;
        border: 1px solid rgba(255, 255, 255, .08);
    }

    .services-area-links,
    .related-services__track {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .services-area-links a,
    .related-service-card {
        min-width: 78%;
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .service-gallery__track {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .service-gallery__track::-webkit-scrollbar {
        display: none;
    }

    .service-gallery__item {
        min-width: 78%;
        flex: 0 0 78%;
        scroll-snap-align: start;
    }

    .service-gallery__mobile-hint {
        display: block;
        margin: 13px 0 0;
        color: #87909d;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .service-list-grid {
        grid-template-columns: 1fr;
    }

    .service-content__cards {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        background: transparent;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .service-content__cards article {
        min-width: 88%;
        flex: 0 0 88%;
        scroll-snap-align: start;
        border: 1px solid rgba(255, 255, 255, .08);
    }

    .service-cta__inner {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    .services-hero--image::before {
        background-position:
            center,
            center,
            72% center;
    }

    .services-index,
    .services-groups,
    .services-areas,
    .service-overview,
    .service-gallery,
    .service-content,
    .service-local,
    .related-services,
    .service-faq {
        padding: 58px 0;
    }

    .services-hero__actions,
    .service-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-hero__actions .btn,
    .service-hero__actions .btn {
        width: 100%;
    }

    .service-index-card {
        min-width: 91%;
        flex-basis: 91%;
    }

    .service-cta__inner>div:last-child {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .service-cta__inner .btn {
        width: 100%;
    }

}

/* =========================================================
   SERVICES PAGE — FEATURED MEDIA / GAP FIXES
========================================================= */

/*
 * The main service grid has 4 cards in a 3-column layout.
 * The final Plumbing card occupies column 1 and this image fills
 * columns 2–3 instead of leaving a large empty block.
 */

.services-groups--overview .service-group-media {
    position: relative;
    grid-column: span 2;

    /* Keep this feature image at the same height as the service card */
    height: 420px;
    min-height: 420px;

    margin: 0;
    overflow: hidden;
    background: #111318;
}

.services-groups--overview .service-group-media img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    min-height: 0;

    display: block;
    object-fit: cover;
    object-position: center 42%;

    transition: transform .45s ease;
}

.services-groups--overview .service-group-media:hover img {
    transform: scale(1.025);
}

.services-groups--overview .service-group-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(3, 5, 8, .94) 0%,
            rgba(3, 5, 8, .56) 30%,
            rgba(3, 5, 8, .08) 62%,
            rgba(3, 5, 8, .03) 100%);
    pointer-events: none;
}

.services-groups--overview .service-group-media figcaption {
    position: absolute;
    right: 30px;
    bottom: 28px;
    left: 30px;
    z-index: 2;
}

.services-groups--overview .service-group-media figcaption>span {
    display: block;
    margin-bottom: 8px;
    color: var(--hb-blue-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.services-groups--overview .service-group-media figcaption>strong {
    display: block;
    max-width: 480px;
    color: #fff;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1;
    letter-spacing: -.04em;
}

.services-groups--overview .service-group-media figcaption>a {
    display: inline-flex;
    margin-top: 18px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    background: rgba(4, 7, 12, .45);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.services-groups--overview .service-group-media figcaption>a:hover {
    border-color: rgba(38, 140, 255, .6);
    background: rgba(38, 140, 255, .14);
}


/* =========================================================
   LOCAL SEO — FINAL AIR CONDITIONING FEATURE
========================================================= */

/*
 * Seven cards in a 3-column layout would otherwise leave 2 empty
 * columns on the final row. Air Conditioning becomes a designed,
 * full-width feature instead.
 */

.services-groups--local-seo .service-group--local-feature {
    position: relative;
    grid-column: 1 / -1;
    min-height: 360px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 70px;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 25%, rgba(38, 140, 255, .16), transparent 31%),
        linear-gradient(130deg, #0a0b0e, #10141a);
}

.services-groups--local-seo .service-group--local-feature::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    opacity: .24;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to left, #000, transparent);
    pointer-events: none;
}

.services-groups--local-seo .service-group--local-feature>span,
.services-groups--local-seo .service-group--local-feature>h2,
.services-groups--local-seo .service-group--local-feature>p,
.services-groups--local-seo .service-group--local-feature>div {
    grid-column: 1;
    position: relative;
    z-index: 1;
}

.services-groups--local-seo .service-group--local-feature h2 {
    margin-top: 34px;
    font-size: clamp(34px, 4vw, 52px);
}

.services-groups--local-seo .service-group--local-feature>p {
    max-width: 560px;
}

.services-groups--local-seo .service-group--local-feature>div {
    margin-top: 28px;
    padding-top: 0;
    align-self: end;
}

.services-groups--local-seo .local-feature-panel {
    grid-column: 2;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 294px;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(10px);
}

.services-groups--local-seo .local-feature-panel>span {
    color: var(--hb-blue-light);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.services-groups--local-seo .local-feature-panel h3 {
    max-width: 500px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1;
    letter-spacing: -.045em;
}

.services-groups--local-seo .local-feature-panel p {
    max-width: 520px;
    margin: 0;
    color: #7f8998;
    font-size: 11px;
    line-height: 1.8;
}

.services-groups--local-seo .local-feature-panel>div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.services-groups--local-seo .local-feature-panel a {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
    color: #d9e0e9;
    font-size: 9px;
    font-weight: 800;
}

.services-groups--local-seo .local-feature-panel a:first-child {
    border-color: rgba(38, 140, 255, .38);
    background: rgba(38, 140, 255, .08);
    color: #fff;
}

.services-groups--local-seo .local-feature-panel a:hover {
    border-color: rgba(38, 140, 255, .6);
    color: #fff;
}


/* =========================================================
   FEATURE GAP FIXES — RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .services-groups--overview .service-group-media {
        grid-column: span 2;
    }

    .services-groups--local-seo .service-group--local-feature {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
        column-gap: 34px;
    }

}

@media (max-width: 760px) {

    .services-groups--overview .services-groups__grid,
    .services-groups--local-seo .services-groups__grid {
        display: flex;
    }

    .services-groups--overview .service-group-media {
        min-width: 88%;
        flex: 0 0 88%;
        height: 420px;
        min-height: 420px;
        scroll-snap-align: start;
        border: 1px solid rgba(255, 255, 255, .08);
    }

    .services-groups--overview .service-group-media img {
        height: 100%;
        min-height: 0;
    }

    .services-groups--local-seo .service-group--local-feature {
        min-width: 88%;
        flex: 0 0 88%;
        min-height: 420px;
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
    }

    .services-groups--local-seo .service-group--local-feature>div {
        margin-top: auto;
        padding-top: 24px;
    }

    .services-groups--local-seo .local-feature-panel {
        display: none;
    }

}

@media (max-width: 480px) {

    .services-groups--overview .service-group-media {
        min-width: 91%;
        flex-basis: 91%;
        height: 390px;
        min-height: 390px;
    }

    .services-groups--overview .service-group-media img {
        height: 100%;
        min-height: 0;
    }

    .services-groups--overview .service-group-media figcaption {
        right: 22px;
        bottom: 22px;
        left: 22px;
    }

    .services-groups--local-seo .service-group--local-feature {
        min-width: 91%;
        flex-basis: 91%;
    }

}