/* ==========================================================================
   Service detail page — tinted hero, sticky section tabs with a scroll
   progress rule, and alternating text/image sections separated by a dark
   name band. Written in plain CSS: the site loads Tailwind from the CDN,
   which never reads tailwind.config.js, so its custom colour names are inert.
   ========================================================================== */

.gw-service {
    --gw-teal: #008a8a;
    --gw-teal-deep: #164b44;
    --gw-green: #25c97a;
    --gw-ink: #111517;
    --gw-grey: #6b7a80;
    --gw-header-height: 96px;
    --gw-pad: 24px;
}

/* ---------- hero ---------- */
.gw-service__hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    padding: calc(var(--gw-header-height) + 48px) var(--gw-pad) 56px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.gw-service__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 75, 68, .94) 0%, rgba(22, 75, 68, .74) 38%, rgba(22, 75, 68, .34) 100%),
        linear-gradient(0deg, rgba(0, 138, 138, .28), rgba(0, 138, 138, .28));
}

.gw-service__hero-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    color: #fff;
}

.gw-service__hero h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 1.2rem + 1.7vw, 42px);
    font-weight: 700;
    line-height: 1.12;
}

.gw-service__hero p {
    margin: 0;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.62;
    color: rgba(255, 255, 255, .88);
}

/* ---------- sticky tabs ---------- */
.gw-service__tabs {
    position: sticky;
    top: var(--gw-header-height);
    z-index: 900;
    background: #f2f2f2;
}

.gw-service__tabs-inner {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.4vw, 30px);
    padding: 14px var(--gw-pad);
    overflow-x: auto;
    scrollbar-width: none;
}

.gw-service__tabs-inner::-webkit-scrollbar { display: none; }

.gw-service__tab {
    flex: none;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--gw-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}

.gw-service__tab:hover {
    color: var(--gw-teal);
}

.gw-service__tab.is-active {
    border-color: var(--gw-ink);
    background: #fff;
    color: var(--gw-ink);
    font-weight: 600;
}

/* scroll progress across the sections below */
.gw-service__progress {
    height: 4px;
    background: transparent;
}

.gw-service__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--gw-green);
}

/* ---------- section ---------- */
/* Every slide sits in the same grid cell, so the track is as tall as the
   tallest one and switching never reflows the page. */
.gw-service__slides {
    display: grid;
    /* inactive slides are parked 24px to the side; clip so they cannot widen
       the page */
    overflow-x: hidden;
    scroll-margin-top: calc(var(--gw-header-height) + 76px);
}

.gw-service__section {
    grid-area: 1 / 1;
    padding: clamp(48px, 6vw, 96px) var(--gw-pad);
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.gw-service__section.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.gw-service__section.is-leaving {
    transform: translateX(-24px);
}

.gw-service__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1320px;
    margin: 0 auto;
    align-items: center;
}

.gw-service__eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa5aa;
}

.gw-service__section h2 {
    margin: 0 0 20px;
    font-size: clamp(24px, 1.1rem + 1.3vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gw-teal);
}

.gw-service__section p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.72;
    color: var(--gw-grey);
}

.gw-service__section ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
    color: var(--gw-grey);
    font-size: 15px;
    line-height: 1.72;
}

.gw-service__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---------- per-section stepper ---------- */
.gw-service__steps {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
}

.gw-service__step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 8px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.gw-service__step-dot {
    width: 7px;
    height: 7px;
    border: 1px solid #b9c4c8;
    border-radius: 50%;
}

.gw-service__step-num {
    display: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--gw-green);
}

.gw-service__step.is-active .gw-service__step-dot { display: none; }
.gw-service__step.is-active .gw-service__step-num { display: block; }

/* ---------- desktop ---------- */
@media (min-width: 992px) {
    .gw-service {
        --gw-pad: 48px;
    }

    .gw-service__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(48px, 6vw, 110px);
    }

    /* the design keeps text left and image right throughout */
    .gw-service__media { order: 2; }
    .gw-service__text  { order: 1; }
}

@media (min-width: 1440px) {
    .gw-service { --gw-pad: 64px; }
}

@media (prefers-reduced-motion: reduce) {
    .gw-service__tab,
    .gw-service__progress span,
    .gw-service__section {
        transition: none;
    }

    .gw-service__section,
    .gw-service__section.is-leaving {
        transform: none;
    }
}

/* ==========================================================================
   Scroll-mode pages (data-mode="scroll"): sections stack rather than swap.
   ========================================================================== */
.gw-service[data-mode="scroll"] .gw-service__slides {
    display: block;
    overflow-x: visible;
}

.gw-service[data-mode="scroll"] .gw-service__section {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    scroll-margin-top: calc(var(--gw-header-height) + 76px);
}

/* underline instead of a boxed tab */
.gw-service__tabs--underline .gw-service__tab {
    padding: 8px 4px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
}

.gw-service__tabs--underline .gw-service__tab.is-active {
    background: transparent;
    border-bottom-color: var(--gw-ink);
}

/* ---------- full-width prose block ---------- */
.gw-service__prose {
    max-width: 1320px;
    margin: 0 auto;
}

.gw-service__prose h2 {
    margin: 0 0 24px;
    font-size: clamp(24px, 1.1rem + 1.3vw, 36px);
    font-weight: 700;
    color: var(--gw-teal);
}

.gw-service__prose p {
    margin: 0 0 18px;
    max-width: 92ch;
    font-size: 15px;
    line-height: 1.78;
    color: var(--gw-grey);
}

/* ---------- feature block: portrait, copy, teal tier band ---------- */
.gw-service__feature {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.gw-service__feature-media {
    position: relative;
    align-self: start;
}

.gw-service__feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* the brand shield, drawn over the portrait */
.gw-service__shield {
    position: absolute;
    left: 50%;
    top: 6%;
    width: 78%;
    height: 88%;
    transform: translateX(-50%);
    pointer-events: none;
}

.gw-service__feature-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa5aa;
}

.gw-service__feature h2 {
    margin: 0 0 18px;
    font-size: clamp(22px, 1rem + 1.4vw, 34px);
    font-weight: 700;
    line-height: 1.24;
    color: var(--gw-teal);
}

.gw-service__feature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: var(--gw-grey);
}

.gw-service__tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
    background: #3f8f88;
    color: #fff;
}

.gw-service__tiers h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.gw-service__tiers p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

/* ---------- partners marquee ---------- */
.gw-service__partners h2 {
    margin: 0 0 32px;
    font-size: 17px;
    font-weight: 700;
    color: var(--gw-ink);
}

.gw-service__marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gw-service__marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    width: max-content;
    animation: gw-marquee 38s linear infinite;
}

.gw-service__marquee img {
    height: clamp(34px, 4vw, 52px);
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .32;
}

@keyframes gw-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- FAQs ---------- */
.gw-service__faq {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.gw-service__faq h2 {
    margin: 0;
    font-size: clamp(26px, 1.2rem + 1.4vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    color: var(--gw-ink);
}

.gw-service__faq-list {
    display: grid;
    gap: 14px;
}

.gw-service__faq-item {
    background: #f4f6f6;
}

.gw-service__faq-item[open] {
    background: #3f8f88;
    color: #fff;
}

.gw-service__faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gw-ink);
    cursor: pointer;
    list-style: none;
}

.gw-service__faq-item summary::-webkit-details-marker { display: none; }

.gw-service__faq-item[open] summary { color: #fff; }

.gw-service__faq-icon {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.gw-service__faq-icon::before,
.gw-service__faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.gw-service__faq-icon::before { width: 9px; height: 1px; }
.gw-service__faq-icon::after  { width: 1px; height: 9px; }

/* open items show a minus */
.gw-service__faq-item[open] .gw-service__faq-icon::after { display: none; }

.gw-service__faq-answer {
    padding: 0 24px 22px;
    font-size: 14px;
    line-height: 1.68;
    color: rgba(255, 255, 255, .86);
}

.gw-service__faq-item:not([open]) .gw-service__faq-answer { display: none; }

/* ---------- desktop ---------- */
@media (min-width: 992px) {
    .gw-service__feature {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: clamp(40px, 5vw, 72px);
        align-items: start;
    }

    .gw-service__feature-text {
        padding-top: 24px;
    }

    /* the band runs from inside the portrait across to the right edge */
    .gw-service__tiers {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px;
        margin: max(-260px, -14vw) 0 0 12%;
        padding: 34px 40px;
        position: relative;
        z-index: 1;
    }

    .gw-service__faq {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        gap: clamp(40px, 6vw, 100px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-service__marquee-track { animation: none; }
}
