/* ============================================================
   SOUTH YORKSHIRE XCAVATE
   INDIVIDUAL SERVICE PAGES
   ============================================================ */


/* ============================================================
   BASE
   ============================================================ */

.service-page {
    overflow: clip;
}


.service-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.3;
    text-transform: uppercase;
}


.service-kicker--dark {
    color: var(--color-primary);
}


.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    transition:
        transform var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}


.service-btn:hover {
    transform: translateY(-2px);
}


.service-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.service-btn--primary {
    background: var(--color-accent);
    color: #111;
}


.service-btn--primary:hover {
    background: #ffd13a;
}


.service-btn--ghost {
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}


.service-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
}


.service-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 800;
}


.service-text-link span {
    color: var(--color-primary);
}



/* ============================================================
   REVEALS
   ============================================================ */

[data-service-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 700ms ease,
        transform 700ms cubic-bezier(.22, 1, .36, 1);
}


[data-service-delay="1"] {
    transition-delay: 110ms;
}


[data-service-delay="2"] {
    transition-delay: 220ms;
}


[data-service-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}



/* ============================================================
   HERO
   ============================================================ */

.service-hero {
    position: relative;
    padding: 70px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%,
            rgba(11, 107, 55, .34),
            transparent 34%),
        linear-gradient(120deg,
            #07120c,
            #0d2619 58%,
            #08150e);
    color: #fff;
}


.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(255, 255, 255, .022) 1px,
            transparent 1px);
    background-size: 48px 48px;
}


.service-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, .82fr);
    gap: clamp(45px, 6vw, 85px);
    align-items: center;
}


.service-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
}


.service-back:hover {
    color: #fff;
}


.service-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 5vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -.057em;
    line-height: .96;
}


.service-hero h1 span {
    display: block;
    color: var(--color-accent);
}


.service-hero__lead {
    max-width: 690px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.05rem, 1.3vw, 1.17rem);
    line-height: 1.7;
}


.service-hero__content>p:not(.service-hero__lead) {
    max-width: 650px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}


.service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}


.service-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}


.service-hero__points span {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .7);
    font-size: .74rem;
    font-weight: 700;
}


.service-hero__visual {
    position: relative;
    min-height: 530px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background:
        radial-gradient(circle at 70% 25%,
            rgba(243, 189, 24, .18),
            transparent 32%),
        linear-gradient(145deg,
            #15552f,
            #082719);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}


.service-hero__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.service-hero__visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            transparent 48%,
            rgba(3, 12, 7, .7));
}


.service-hero__visual-label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(5, 14, 9, .8);
    backdrop-filter: blur(10px);
}


.service-hero__visual-label span,
.service-hero__visual-label strong {
    display: block;
}


.service-hero__visual-label span {
    margin-bottom: 4px;
    color: var(--color-accent);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}


.service-hero__visual-label strong {
    color: #fff;
    font-size: .95rem;
}



/* ============================================================
   BENEFITS
   ============================================================ */

.service-benefits {
    border-bottom: 1px solid var(--color-line);
    background: #fff;
}


.service-benefits__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.service-benefits article {
    padding: 30px 32px 32px 0;
}


.service-benefits article+article {
    padding-left: 32px;
    border-left: 1px solid var(--color-line);
}


.service-benefits article>span {
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
}


.service-benefits strong {
    color: var(--color-ink);
}


.service-benefits p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: .89rem;
    line-height: 1.6;
}



/* ============================================================
   INTRO
   ============================================================ */

.service-intro {
    padding: 96px 0;
    background: #fff;
}


.service-intro__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 76px;
}


.service-intro h2,
.service-heading h2,
.service-process h2,
.service-callout h2,
.service-final h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1;
}


.service-intro__copy p {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 1.03rem;
    line-height: 1.8;
}


.service-intro__copy p:last-child {
    margin-bottom: 0;
}



/* ============================================================
   HEADING
   ============================================================ */

.service-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 55px;
    align-items: end;
    margin-bottom: 44px;
}


.service-heading>p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}


.service-heading--light h2 {
    color: #fff;
}


.service-heading--light>p {
    color: rgba(255, 255, 255, .65);
}



/* ============================================================
   INCLUDED
   ============================================================ */

.service-includes {
    padding: 96px 0;
    background: var(--color-surface-soft);
}


.service-includes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}


.service-includes article {
    padding: 27px;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    background: #fff;
}


.service-includes__number {
    display: block;
    margin-bottom: 35px;
    color: var(--color-primary);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
}


.service-includes h3 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.08rem;
}


.service-includes p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: .9rem;
    line-height: 1.65;
}



/* ============================================================
   GALLERY
   ============================================================ */

.service-gallery {
    padding: 96px 0;
    background: #101511;
}


.service-gallery-slider__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}


.service-gallery-slider__viewport::-webkit-scrollbar {
    display: none;
}


.service-gallery-slider__track {
    display: flex;
    gap: 16px;
}


.service-gallery-card {
    flex: 0 0 calc((100% - 32px) / 3);
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: 15px;
    scroll-snap-align: start;
    background: #1d241f;
}


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


.service-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
}


.service-slider-controls__buttons {
    display: flex;
    gap: 8px;
}


.service-slider-controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}


.service-slider-controls button:hover {
    background: rgba(255, 255, 255, .12);
}


.service-slider-controls svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}


.service-slider-controls__hint {
    color: rgba(255, 255, 255, .55);
    font-size: .8rem;
}





/* ============================================================
   SHOWCASE GALLERY — tall project cards with a visible next slide
   Add .service-gallery--showcase to a service gallery section to use it.
   ============================================================ */

.service-gallery--showcase {
    overflow: hidden;
}

.service-gallery--showcase .service-gallery-slider {
    position: relative;
}

.service-gallery--showcase .service-gallery-slider__viewport {
    margin-right: calc(var(--gutter, 24px) * -1);
    padding-right: var(--gutter, 24px);
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.service-gallery--showcase .service-gallery-slider__track {
    gap: 18px;
}

.service-gallery--showcase .service-gallery-card {
    flex: 0 0 clamp(270px, 28vw, 390px);
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: #1d241f;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.service-gallery--showcase .service-gallery-card img {
    transition: transform 500ms cubic-bezier(.2, .75, .25, 1);
}

.service-gallery--showcase .service-gallery-card:hover img {
    transform: scale(1.025);
}

.service-gallery--showcase .service-slider-controls {
    margin-top: 24px;
}

.service-gallery--showcase .service-slider-controls button {
    width: 46px;
    height: 46px;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.service-gallery--showcase .service-slider-controls button:hover,
.service-gallery--showcase .service-slider-controls button:focus-visible {
    border-color: rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .14);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .service-gallery--showcase .service-gallery-card {
        flex-basis: min(72vw, 360px);
    }
}

@media (max-width: 560px) {
    .service-gallery--showcase .service-gallery-slider__viewport {
        margin-right: calc(var(--gutter, 18px) * -1);
        padding-right: var(--gutter, 18px);
    }

    .service-gallery--showcase .service-gallery-slider__track {
        gap: 12px;
    }

    .service-gallery--showcase .service-gallery-card {
        flex-basis: 84%;
        aspect-ratio: 4 / 5;
        border-radius: 15px;
    }
}


/* ============================================================
   PROCESS
   ============================================================ */

.service-process {
    padding: 100px 0;
    background: #fff;
}


.service-process__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 76px;
    align-items: start;
}


.service-process__intro {
    position: sticky;
    top: 130px;
}


.service-process__intro>p {
    margin: 22px 0 26px;
    color: var(--color-muted);
    line-height: 1.8;
}


.service-process__steps {
    border-top: 1px solid var(--color-line);
}


.service-process__steps article {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 27px 0;
    border-bottom: 1px solid var(--color-line);
}


.service-process__steps article>span {
    color: var(--color-primary);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
}


.service-process h3 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.08rem;
}


.service-process__steps p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: .92rem;
    line-height: 1.65;
}



/* ============================================================
   CALLOUT
   ============================================================ */

.service-callout {
    padding: 78px 0;
    background:
        radial-gradient(circle at 85% 20%,
            rgba(11, 107, 55, .35),
            transparent 30%),
        #0a1710;
    color: #fff;
}


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


.service-callout h2 {
    max-width: 760px;
    color: #fff;
}


.service-callout p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .65);
    line-height: 1.75;
}



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

.service-related {
    padding: 96px 0;
    background: var(--color-surface-soft);
}


.service-related-slider__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}


.service-related-slider__viewport::-webkit-scrollbar {
    display: none;
}


.service-related-slider__track {
    display: flex;
    gap: 16px;
}


.service-related-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}


.service-related-card>a {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    background: #fff;
    text-decoration: none;
    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


.service-related-card>a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}


.service-related-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 25%,
            rgba(243, 189, 24, .2),
            transparent 30%),
        linear-gradient(145deg,
            #0a5a30,
            #06351f);
}


.service-related-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.service-related-card__body {
    padding: 20px;
}


.service-related-card h3 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.02rem;
}


.service-related-card p {
    margin: 10px 0 18px;
    color: var(--color-muted);
    font-size: .87rem;
    line-height: 1.6;
}


.service-related-card strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-ink);
    font-size: .85rem;
}


.service-related-card strong span {
    color: var(--color-primary);
}



/* ============================================================
   FINAL
   ============================================================ */

.service-final {
    padding: 82px 0;
    background: #101511;
    color: #fff;
}


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


.service-final h2 {
    max-width: 720px;
    color: #fff;
}


.service-final p {
    max-width: 690px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .65);
    line-height: 1.7;
}


.service-final__actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 10px;
}



/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1000px) {

    .service-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(350px, .72fr);
        gap: 42px;
    }


    .service-hero__visual {
        min-height: 470px;
    }


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


    .service-related-card {
        flex-basis: calc((100% - 32px) / 3);
    }

}



/* ============================================================
   MOBILE / SMALL TABLET
   ============================================================ */

@media (max-width: 800px) {

    .service-hero {
        padding: 50px 0 58px;
    }


    .service-hero__grid,
    .service-intro__grid,
    .service-heading,
    .service-process__grid {
        grid-template-columns: 1fr;
    }


    .service-hero__grid {
        gap: 34px;
    }


    .service-hero h1 {
        font-size: clamp(2.65rem, 11vw, 4rem);
    }


    .service-hero__visual {
        min-height: 390px;
    }


    .service-benefits__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }


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


    .service-benefits article,
    .service-benefits article+article {
        flex: 0 0 82%;
        padding: 25px 20px 27px 0;
        border-left: 0;
        scroll-snap-align: start;
    }


    .service-benefits article+article {
        padding-left: 18px;
        border-left: 1px solid var(--color-line);
    }


    .service-intro,
    .service-includes,
    .service-gallery,
    .service-process,
    .service-related {
        padding: 65px 0;
    }


    .service-intro__grid,
    .service-process__grid {
        gap: 34px;
    }


    .service-heading {
        gap: 18px;
        margin-bottom: 30px;
    }


    .service-includes__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    .service-includes article {
        padding: 23px;
    }


    .service-includes__number {
        margin-bottom: 18px;
    }


    .service-gallery-card {
        flex-basis: 84%;
    }


    .service-slider-controls__buttons {
        display: none;
    }


    .service-process__intro {
        position: static;
    }


    .service-related-card {
        flex-basis: 82%;
    }


    .service-callout__inner,
    .service-final__inner {
        display: block;
    }


    .service-callout__inner .service-btn {
        margin-top: 28px;
    }


    .service-final__actions {
        margin-top: 28px;
    }

}



/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 560px) {

    .service-hero {
        padding: 42px 0 48px;
    }


    .service-back {
        margin-bottom: 24px;
    }


    .service-hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.4rem);
    }


    .service-hero__lead {
        margin-top: 20px;
        font-size: .98rem;
    }


    .service-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 25px;
    }


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


    .service-hero__visual {
        min-height: 310px;
        border-radius: 15px;
    }


    .service-hero__visual-label {
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 14px;
    }


    .service-intro h2,
    .service-heading h2,
    .service-process h2,
    .service-callout h2,
    .service-final h2 {
        font-size: clamp(2.05rem, 10vw, 3rem);
    }


    .service-gallery-card {
        flex-basis: 89%;
    }


    .service-related-card {
        flex-basis: 87%;
    }


    .service-callout {
        padding: 62px 0;
    }


    .service-final {
        padding: 62px 0;
    }


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


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

}



/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    [data-service-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }


    .service-gallery-slider__viewport,
    .service-related-slider__viewport {
        scroll-behavior: auto;
    }


    .service-btn,
    .service-related-card>a {
        transition: none;
    }

}