/* ============================================================
   Services hero - covers the full-screen section with the 771 mobile service montage.
============================================================ */
.hero--services {
    background-color: var(--color-dark);
    background-image: linear-gradient(90deg, rgb(0 20 59 / 85%), rgb(0 20 59 / 55%)), url("/assets/img/services/Hydro-Core-Services-771.webp?v=f6cfcc98a7d540fd&release=1.1.4");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

/* ============================================================
   Services hero heading - keeps the title white above softer supporting text.
============================================================ */
.hero--services h1 {
    color: #fff;
}

/* ============================================================
   Services hero focus - uses a light keyboard outline over the photo.
============================================================ */
.hero--services a:focus-visible {
    outline-color: #fff;
}

/* ============================================================
   Service guide - extends the panel blue across the full section width.
============================================================ */
.services-guide {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #00143b;
    overflow-x: clip;
    border-style: solid;
    border-color: #00143b;
    border-width: 10px;
    border-left: none;
    border-right: none;
}

/* ============================================================
   Service band controls - adjust seam angle, text clearance and padding here.
   Set text-follow-seam to 0 for straight text or 1 to follow the diagonal.
============================================================ */
.service-band {
    --seam-offset: 150px;
    --seam-half-gap: 5px;
    --text-seam-clearance: 32px;
    --text-outer-padding: 32px;
    --text-vertical-padding: 56px;
    --text-follow-seam: 1;
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 0;
    margin-bottom: 0;
    scroll-margin-top: 32px;
    background-color: #00143b;
}

/* ============================================================
   Service photography - presents decorative images without text overlays.
============================================================ */
.service-band-photo {
    --service-photo-overlay: linear-gradient(180deg, rgb(0 20 59 / 92%) 0%, rgb(0 20 59 / 76%) 60%, rgb(0 20 59 / 25%) 100%);
    min-height: 300px;
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    background-color: var(--color-dark);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ============================================================
   Plumbing photograph - shows drain cleaning equipment.
============================================================ */
.service-band--plumbing .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Hydro-jetting%20equipment%20and%20clean%20drain%20pipe-1.webp?v=e13a5473779c0d4c&release=1.1.4");
}

/* ============================================================
   Purification photograph - shows a reverse-osmosis system.
============================================================ */
.service-band--purification .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Premium%20reverse-osmosis%20water%20purification%20system-3.webp?v=990448abd86a8126&release=1.1.4");
}

/* ============================================================
   Construction photograph - shows tiled finishes and repair work.
============================================================ */
.service-band--construction .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Polished%20Tiles%20and%20Precision%20Repairs-4.webp?v=0e36bdf1e63e9c45&release=1.1.4");
}

/* ============================================================
   Electrical photograph - shows an organised electrical panel.
============================================================ */
.service-band--electrical .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Modern%20Electrical%20Panel%20and%20Organized%20Wiring-2.webp?v=e808bff4f29296a6&release=1.1.4");
}

/* ============================================================
   Steelwork photograph - shows a steel gate.
============================================================ */
.service-band--steelwork .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Steel%20Gate%20at%20Blue%20Hour-6.webp?v=b87b722015dec27a&release=1.1.4");
}

/* ============================================================
   Woodworking photograph - shows decking and timber roof beams.
============================================================ */
.service-band--woodworking .service-band-photo {
    background-image: var(--service-photo-overlay), url("/assets/img/services/Timber%20Decking%20and%20Roof%20Beams-5.webp?v=9f4c276ae62ab4ea&release=1.1.4");
}

/* ============================================================
   Service copy - keeps readable text separate from the clipped background.
============================================================ */
.service-band-copy {
    padding: 40px 24px;
    color: #e3e4e6;
    overflow-wrap: anywhere;
}

/* ============================================================
   Text seam spacer - stays hidden while service panels are stacked.
============================================================ */
.service-text-shape {
    display: none;
}

/* ============================================================
   Copy background - matches the section blue without clipping focus outlines.
============================================================ */
.service-band-copy::before {
    content: "";
    position: absolute;
    inset: 300px 0 0;
    z-index: -1;
    background-color: #00143b;
}

/* ============================================================
   Service headings - gives each band a clear white title and subheadings.
============================================================ */
.service-band-copy h2 {
    color: #fff;
    font-size: clamp(32px, 3vw, 48px);
    margin-bottom: 24px;
}

/* ============================================================
   Scope headings - separates detailed service information.
============================================================ */
.service-band-copy h3 {
    margin: 28px 0 12px;
    color: #fff;
    font-size: 20px;
    line-height: 1.35;
}

/* ============================================================
   Service numbering - carries the light blue brand accent.
============================================================ */
.service-band-copy .eyebrow {
    color: #75caff;
    margin-bottom: 20px;
}

/* ============================================================
   Service paragraphs - keeps consistent space between explanations.
============================================================ */
.service-band-copy p:not(.eyebrow) {
    margin: 0 0 20px;
}

/* ============================================================
   Service lists - retains a compact readable scope with blue bullets.
============================================================ */
.service-band-copy ul {
    margin: 0 0 28px;
    padding-left: 20px;
    list-style-position: inside;
}

/* ============================================================
   Service list spacing - gives each individual item breathing room.
============================================================ */
.service-band-copy li {
    padding-left: 4px;
    margin-bottom: 10px;
}

/* ============================================================
   Service list markers - highlights the approved service scope.
============================================================ */
.service-band-copy li::marker {
    color: #75caff;
    
}

/* ============================================================
   Service enquiry buttons - fits the label and stays beneath the seam layer.
============================================================ */
.service-enquiry {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    position: relative;
    z-index: 0;
    color: #75caff;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}
.service-enquiry:hover{
    transform: scale(1.1);
}
/* ============================================================
   Enquiry feedback - highlights hover and keyboard focus on dark panels.
============================================================ */
.service-enquiry:focus-visible {
    outline-color: #fff;
}

/* ============================================================
   Services closing invitation - centres the final contact action below the guide.
============================================================ */
.services-contact-cta .container {
    margin-top: 0;
    text-align: center;
}

/* ============================================================
   Closing CTA copy - keeps the contact invitation compact and easy to read.
============================================================ */
.services-contact-cta .lead {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Desktop zigzag - fits diagonal panels once there is room for the copy.
============================================================ */
@media (min-width: 1300px) {

    /* ========================================================
       Joined desktop band - shares one content-driven height across both sides.
    ======================================================== */
    .service-band {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        min-height: 720px;
    }

    /* ========================================================
       Left photo edge - runs from centre plus 150px to centre minus 150px.
    ======================================================== */
    .service-band-photo {
        --service-photo-overlay: linear-gradient(90deg, rgb(0 20 59 / 25%) 0%, rgb(0 20 59 / 76%) 35%, rgb(0 20 59 / 92%) 65%);
        position: absolute;
        inset: -0.5px auto -0.5px calc(50% - 50vw);
        margin-left: 0;
        min-height: 0;
        background-size: cover;
        background-position: left center;
        clip-path: polygon(0 0, calc(50% + var(--seam-offset) - var(--seam-half-gap)) 0, calc(50% - var(--seam-offset) - var(--seam-half-gap)) 100%, 0 100%);
    }

    /* ========================================================
       Right service copy - reserves room for the inward diagonal corner.
    ======================================================== */
    .service-band-copy {
        grid-column: 1 / -1;
        width: calc(50% + var(--seam-offset));
        margin-left: calc(50% - var(--seam-offset));
        padding: var(--text-vertical-padding) var(--text-outer-padding) var(--text-vertical-padding) 24px;
    }

    /* ========================================================
       Diagonal text flow - wraps lines along the photo edge with breathing room.
    ======================================================== */
    .service-text-shape {
        display: block;
        float: left;
        width: var(--text-shape-width, calc(2 * var(--seam-offset) + var(--text-seam-clearance)));
        height: var(--text-shape-height, 608px);
        shape-outside: var(--text-shape-polygon, inset(0));
        pointer-events: none;
    }

    /* ========================================================
       Enquiry sizing - retains a content-width button alongside the angled text.
    ======================================================== */
    .service-enquiry {
        display: inline-flex;
    }

    /* ========================================================
       Seam foreground - keeps the light-grey zigzag above enquiry buttons.
    ======================================================== */
    .service-band::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        background-color: #e3e4e6;
        pointer-events: none;
        clip-path: polygon(calc(50% + var(--seam-offset) - var(--seam-half-gap)) 0, calc(50% + var(--seam-offset) + var(--seam-half-gap)) 0, calc(50% - var(--seam-offset) + var(--seam-half-gap)) 100%, calc(50% - var(--seam-offset) - var(--seam-half-gap)) 100%);
    }

    /* ========================================================
       Reversed seam foreground - protects the alternate diagonal border.
    ======================================================== */
    .service-band--reverse::after {
        clip-path: polygon(calc(50% - var(--seam-offset) - var(--seam-half-gap)) 0, calc(50% - var(--seam-offset) + var(--seam-half-gap)) 0, calc(50% + var(--seam-offset) + var(--seam-half-gap)) 100%, calc(50% + var(--seam-offset) - var(--seam-half-gap)) 100%);
    }

    /* ========================================================
       Right panel edge - matches the photo with a 10px horizontal seam gap.
    ======================================================== */
    .service-band-copy::before {
        inset: 0;
        clip-path: polygon(calc(50% + var(--seam-offset) + var(--seam-half-gap)) 0, 100% 0, 100% 100%, calc(50% - var(--seam-offset) + var(--seam-half-gap)) 100%);
    }

    /* ========================================================
       Alternating photo - reverses the slope and places the image on the right.
    ======================================================== */
    .service-band--reverse .service-band-photo {
        --service-photo-overlay: linear-gradient(270deg, rgb(0 20 59 / 25%) 0%, rgb(0 20 59 / 76%) 35%, rgb(0 20 59 / 92%) 65%);
        background-position: right center;
        clip-path: polygon(calc(50% - var(--seam-offset) + var(--seam-half-gap)) 0, 100% 0, 100% 100%, calc(50% + var(--seam-offset) + var(--seam-half-gap)) 100%);
    }

    /* ========================================================
       Alternating copy - moves text left with safe space beside the diagonal.
    ======================================================== */
    .service-band--reverse .service-band-copy {
        grid-column: 1 / -1;
        margin-left: 0;
        padding: var(--text-vertical-padding) 24px var(--text-vertical-padding) var(--text-outer-padding);
        text-align: right;
    }

    /* ========================================================
       Reversed text flow - follows the diagonal on the right of the copy.
    ======================================================== */
    .service-band--reverse .service-text-shape {
        float: right;
        shape-outside: var(--text-shape-polygon, inset(0));
    }

    /* ========================================================
       Left-panel lists - places bullets beside the right-aligned service text.
    ======================================================== */
    .service-band--reverse .service-band-copy ul {
        padding-left: 0;
        list-style-position: inside;
    }

    /* ========================================================
       Alternating copy edge - connects the reversed slope to the previous band.
    ======================================================== */
    .service-band--reverse .service-band-copy::before {
        clip-path: polygon(0 0, calc(50% - var(--seam-offset) - var(--seam-half-gap)) 0, calc(50% + var(--seam-offset) - var(--seam-half-gap)) 100%, 0 100%);
    }
}

/* ============================================================
   Medium Services screens - selects the 1920 image above 771px.
============================================================ */
@media (min-width: 772px) {

    /* ========================================================
       Medium Services background - loads the landscape service montage.
    ======================================================== */
    .hero--services {
        background-image: linear-gradient(90deg, rgb(0 20 59 / 85%), rgb(0 20 59 / 55%)), url("/assets/img/services/Hydro-Core-Services-1920.webp?v=1047fc1bb6a75615&release=1.1.4");
    }
}
/* ============================================================
   Large Services screens - selects the 2560 service montage above 1920px.
============================================================ */
@media (min-width: 1921px) {

    /* ========================================================
       Large Services background - loads the higher-resolution photo.
    ======================================================== */
    .hero--services {
        background-image: linear-gradient(90deg, rgb(0 20 59 / 85%), rgb(0 20 59 / 55%)), url("/assets/img/services/Hydro-Core-Services-2560.webp?v=74959afb116d0eac&release=1.1.4");
    }
}
