/* ==================================================================
   Service pages: the hero (same photo cut as the sector pages, see
   .rs-sx-hero in sector-page.css) and the sector carousel.
   ================================================================== */

/* ---------- Hero: full-bleed photo; the white wedge cuts the bottom-right corner ---------- */
.rs-svh {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(520px, 86vh, 800px);
    padding: 160px 0 clamp(88px, 10vh, 120px);
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.rs-svh__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* a light wash for the navbar, a little more from the left where the copy sits */
.rs-svh__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .2) 48%, rgba(0, 0, 0, 0) 76%),
        linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, .1) 42%, rgba(0, 0, 0, .42) 100%);
}

.rs-svh::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 48%;
    height: clamp(28px, 4vw, 52px);
    background: #fff;
    clip-path: polygon(clamp(18px, 2.4vw, 34px) 0, 100% 0, 100% 100%, 0 100%);
}

.rs-svh__inner {
    position: relative;
    width: 100%;
    color: #fff;
}

.rs-svh__crumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .8);
}

.rs-svh__crumb li + li::before {
    content: "/";
    margin-right: 10px;
    color: rgba(255, 255, 255, .5);
}

.rs-svh__crumb a {
    color: inherit;
    text-decoration: none;
}

.rs-svh__crumb a:hover {
    color: #fff;
}

.rs-svh__crumb [aria-current] {
    color: #fff;
}

.rs-svh__tag {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
}

.rs-svh .rs-svh__title {
    max-width: 17em;
    margin: 0;
    font-family: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif !important;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
}

.rs-svh .rs-svh__lead {
    max-width: 640px;
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -.005em;
    color: rgba(255, 255, 255, .94);
}

.rs-svh__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 991px) {
    .rs-svh .rs-svh__title {
        font-size: 40px;
        line-height: 1.12;
    }

    .rs-svh::after {
        width: 62%;
    }
}

@media (max-width: 767px) {
    .rs-svh {
        min-height: 480px;
        padding: 120px 0 64px;
    }

    .rs-svh::after {
        height: 24px;
    }

    .rs-svh .rs-svh__title {
        font-size: 28px;
        line-height: 1.15;
    }

    .rs-svh .rs-svh__lead {
        font-size: 15px;
    }

    .rs-svh__shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .58) 100%);
    }
}

/* ---------- Sector carousel: light panel, then a strip of captioned photos ----------
   Formal, light version (Nov 2026): the panel is pale with a blue top rule; the photos stand
   side by side at one height, carry their name on a white strip under the photo, and the strip
   slides one photo at a time (includes/service-sectors.php). */
.rs-svs {
    --svs-cap: 62px;
    --svs-gap: 14px;
    --svs-per: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 3fr);
    gap: var(--svs-gap);
    min-height: clamp(380px, 27vw, 500px);
    font-family: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
}

.rs-svs__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 2.1vw, 36px);
    background: #f4f6fb;
    border-top: 3px solid #0b2dbe;
    color: #0a1230;
}

.rs-svs .rs-svs__title {
    margin: 0 0 14px;
    font-family: inherit !important;
    font-size: clamp(22px, 1.75vw, 30px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #0a1230;
}

.rs-svs .rs-svs__text {
    margin: 0 0 18px;
    font-size: clamp(14px, .95vw, 16px);
    line-height: 1.6;
    color: #4a5568;
}

.rs-svs a.rs-svs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    color: #0b2dbe;
}

.rs-svs a.rs-svs__link:hover {
    color: #0b2dbe;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.rs-svs__link svg {
    width: 8px;
    height: 10px;
}

.rs-svs__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.rs-svs__count {
    flex: 0 0 auto;
    min-width: 3.4em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .04em;
    color: #0a1230;
}

.rs-svs__arrows {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.rs-svs__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #cfd6e4;
    border-radius: 0;
    background: #fff;
    color: #0a1230;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.rs-svs__arrow:hover {
    border-color: #0b2dbe;
    color: #0b2dbe;
}

.rs-svs__arrow:focus-visible {
    outline: 2px solid #0b2dbe;
    outline-offset: 1px;
}

.rs-svs__arrow svg {
    width: 15px;
    height: 15px;
}

.rs-svs__line {
    position: relative;
    flex: 1 1 auto;
    height: 1px;
    background: #cfd6e4;
}

.rs-svs__line i {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0b2dbe;
    transform-origin: 0 50%;
    transition: transform .7s cubic-bezier(.65, 0, .2, 1);
}

/* the window onto the strip */
.rs-svs__view {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.rs-svs__track {
    display: flex;
    column-gap: var(--svs-gap);
    height: 100%;
    transition: transform .7s cubic-bezier(.65, 0, .2, 1);
    will-change: transform;
}

.rs-svs__track.is-snap {
    transition: none;
}

.rs-svs a.rs-svs__tile {
    position: relative;
    display: block;
    flex: 0 0 calc((100% - (var(--svs-per) - 1) * var(--svs-gap)) / var(--svs-per));
    overflow: hidden;
    background: #eef2f8;
    outline: 1px solid #dfe4ee;
    outline-offset: -1px;
    color: #0a1230;
    text-decoration: none;
}

/* the photo fills the frame above the caption strip */
.rs-svs__tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--svs-cap));
    object-fit: cover;
}

.rs-svs__tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: var(--svs-cap);
    background: #fff;
    border: 1px solid #dfe4ee;
}

.rs-svs__label {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--svs-cap);
    padding: 0 clamp(14px, 1.2vw, 20px);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 500;
    line-height: 1.25;
    color: #0a1230;
}

.rs-svs__num {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #0b2dbe;
}

.rs-svs__name {
    flex: 1 1 auto;
    min-width: 0;
}

.rs-svs__label svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: #0b2dbe;
}

.rs-svs__tile:hover .rs-svs__name {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 991px) {
    .rs-svs {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .rs-svs__view {
        aspect-ratio: 9 / 4;
    }
}

@media (max-width: 575px) {
    .rs-svs {
        --svs-cap: 52px;
        --svs-gap: 10px;
        --svs-per: 2;
    }

    .rs-svs__view {
        aspect-ratio: 4 / 3;
    }

    .rs-svs__label {
        gap: 8px;
        font-size: 14px;
    }

    .rs-svs__label svg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-svs__line i,
    .rs-svs__track {
        transition: none;
    }
}
