/* Stack91 Services page. Uses the global system from pages/index/index.css. */

.services-page-body {
    background: #000;
    color: var(--white);
    font-family: var(--font-primary);
}

.services-main {
    overflow: hidden;
    background: #000;
}

.services-page-header {
    z-index: 20;
}

.services-hero-section {
    position: relative;
    min-height: clamp(680px, 56.25vw, 1080px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background: #03070d;
}

.services-hero-media,
.services-hero-media::after,
.services-hero-shade,
.services-hero-noise,
.services-hero-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.services-hero-media {
    z-index: -5;
    overflow: hidden;
}

.services-hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
    filter: brightness(.82) contrast(1.05) saturate(1.05);
}

.services-hero-media::after {
    content: "";
    z-index: 1;
    background:
        radial-gradient(circle at 50% 50%, rgba(0,0,0,.02) 0%, rgba(0,0,0,.22) 46%, rgba(0,0,0,.74) 100%),
        linear-gradient(180deg, rgba(2,7,15,.62) 0%, rgba(1,5,11,.30) 42%, rgba(1,4,10,.70) 100%),
        linear-gradient(90deg, rgba(5,22,49,.46) 0%, rgba(0,0,0,.10) 48%, rgba(0,0,0,.48) 100%);
}

.services-hero-shade {
    z-index: -3;
    background:
        radial-gradient(circle at 50% 24%, rgba(28, 80, 157, .16) 0%, transparent 30%),
        radial-gradient(circle at 50% 54%, rgba(218, 50, 39, .16) 0%, transparent 28%);
    mix-blend-mode: screen;
}

.services-hero-noise {
    z-index: -2;
    opacity: .18;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: radial-gradient(circle at center, #000 0%, transparent 76%);
}

.services-hero-border {
    z-index: 4;    ;
    opacity: .88;
}

.services-hero-content {
    position: relative;
    z-index: 6;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    padding-top: clamp(126px, 9.3vw, 185px);
    text-align: center;
}

.services-hero-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, .9vw, 18px);
    font-family: var(--font-primary);
    font-size: clamp(58px, 5.3vw, 104px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.services-hero-title span,
.services-hero-title strong {
    display: block;
}

.services-hero-title strong {
    color: var(--stack-red);
    font-weight: 900;
}

.services-hero-btn {
    min-width: clamp(325px, 0vw, 300px);
    min-height: clamp(65px, 0vw, 0px);
    margin-top: clamp(26px, 1.15vw, 29px);
    padding: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--stack-red);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    line-height: 1;
    box-shadow:
        0 24px 64px rgba(237,48,43,.32),
        inset 0 1px 0 rgba(255,255,255,.24);
    transition: transform .34s ease, box-shadow .34s ease, background .34s ease;
}

.services-hero-btn:hover,
.services-hero-btn:focus-visible {
    background: #f23b33;
    transform: translateY(-3px);
    box-shadow:
        0 32px 82px rgba(237,48,43,.42),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.services-page-body .site-fixed-connect,
.services-page-body .site-fixed-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.services-page-body.hero-scrolled-menu-only .site-fixed-connect,
.services-page-body.hero-scrolled-menu-only .site-fixed-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1180px) {
    .services-hero-section {
        min-height: 760px;
    }

    .services-hero-content {
        padding-top: 150px;
    }
}

@media (max-width: 767px) {
    .services-hero-section {
        min-height: 720px;
    }

    .services-hero-content {
        width: min(100% - 32px, 560px);
        padding-top: 150px;
    }

    .services-hero-title {
        font-size: clamp(42px, 13vw, 64px);
        letter-spacing: -0.045em;
        gap: 10px;
    }

    .services-hero-btn {
        min-width: min(100%, 315px);
        min-height: 58px;
        padding: 0 24px;
        font-size: 16px;
        margin-top: 26px;
    }

    .services-hero-border {
        border-width: 1px;
    }
}

@media (max-width: 420px) {
    .services-hero-title {
        font-size: 40px;
    }

    .services-hero-btn {
        min-width: 280px;
    }
}
h1.services-hero-title.h1-size {
    font-size: 60px !important;
}
/* Detailed services section */
.services-detail-section {
    position: relative;
    padding: clamp(90px, 1vw, 100px) 0 clamp(0px, 0vw, 100px);
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.services-detail-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000;
}

.services-detail-bg::before,
.services-detail-bg::after {
    content: "";
    position: absolute;
    width: clamp(260px, 25vw, 520px);
    height: clamp(260px, 25vw, 520px);
    border-radius: 50%;
    border: 1px solid rgba(28, 80, 157, .26);
    filter: blur(.1px);
    opacity: .55;
}

.services-detail-bg::before {
    left: -13%;
    top: 5%;
}

.services-detail-bg::after {
    right: -12%;
    bottom: 16%;
    border-color: rgba(218, 50, 39, .24);
}

.services-detail-container {
    width: min(1360px, calc(100% - 96px));
    margin: 0 auto;
}

.services-detail-heading {
    max-width: 960px;
    margin: 0 auto clamp(62px, 6vw, 108px);
    text-align: center;
}

.services-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(28, 80, 157, .72);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 18px 52px rgba(28, 80, 157, .14);
    margin-bottom: 22px;
}

.services-detail-title {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.9vw, 82px);
    line-height: .98;
    letter-spacing: -.045em;
}

.services-detail-title strong {
    color: var(--stack-red);
}

.services-detail-copy {
    width: min(740px, 100%);
    margin: 22px auto 0;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

.services-detail-list {
    display: grid;
    gap: clamp(34px, 4vw, 72px);
}

.service-showcase {
    display: grid;
    grid-template-columns: minmax(290px, .92fr) minmax(360px, 1fr);
    gap: clamp(36px, 5vw, 86px);
    align-items: center;
    min-height: clamp(440px, 36vw, 600px);
}

.service-showcase--media-right {
    grid-template-columns: minmax(360px, 1fr) minmax(290px, .92fr);
}

.service-showcase--media-right .service-showcase-media {
    order: 2;
}

.service-showcase-media {
    position: relative;
    min-height: clamp(330px, 31vw, 520px);
    border-radius: clamp(22px, 2.2vw, 34px);
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.11);
    box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.service-showcase-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.18));
    pointer-events: none;
}

.service-showcase-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .8s ease;
}

.service-showcase:hover .service-showcase-media img {
    transform: scale(1.08);
}

.service-showcase-content {
    position: relative;
    padding: clamp(8px, 1vw, 18px) 0;
}

.service-showcase-index {
    display: inline-flex;
    color: var(--stack-red);
    margin-bottom: 18px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.service-showcase-content h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 4.5vw, 72px);
    line-height: .92;
    letter-spacing: -.048em;
}

.service-showcase-content p {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
}

.service-showcase-tags {
    width: min(560px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.16);
}

.service-showcase-tags span {
    color: #fff;
    font-weight: 800;
}

.service-showcase-btn {
    margin-top: 32px;
    min-width: 208px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--stack-red);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 62px rgba(218,50,39,.28);
}

.service-point-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(290px, 405px);
    gap: 26px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 28px;
    margin: -24px 0 clamp(34px, 5vw, 78px);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(218,50,39,.85) rgba(255,255,255,.08);
}

.service-point-rail::-webkit-scrollbar {
    height: 7px;
}

.service-point-rail::-webkit-scrollbar-track {
    background: rgba(255,255,255,.08);
    border-radius: 999px;
}

.service-point-rail::-webkit-scrollbar-thumb {
    background: var(--stack-red);
    border-radius: 999px;
}

.service-point-card {
    scroll-snap-align: start;
    border-radius: 24px;
    padding: 14px 14px 24px;
    background: rgba(8, 17, 35, .92);
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 24px 64px rgba(0,0,0,.34);
    transition: transform .32s ease, border-color .32s ease, background .32s ease;
}

.service-point-card:hover {
    transform: translateY(-8px);
    border-color: rgba(28, 80, 157, .58);
    background: rgba(10, 23, 48, .98);
}

.service-point-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
}

.service-point-card h4 {
    margin: 0 6px 10px;
    color: #fff;
    font-weight: 900;
}

.service-point-card p {
    margin: 0 6px;
    color: rgba(255,255,255,.68);
    line-height: 1.62;
}

@media (max-width: 1024px) {
    .services-detail-container {
        width: min(100% - 48px, 860px);
    }

    .service-showcase,
    .service-showcase--media-right {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-showcase--media-right .service-showcase-media {
        order: 0;
    }

    .service-showcase-media {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .services-detail-section {
        padding: 72px 0 0px;
    }

    .services-detail-container {
        width: min(100% - 32px, 560px);
    }

    .services-detail-title {
        font-size: clamp(34px, 12vw, 52px);
    }

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

    .service-showcase-media {
        min-height: 280px;
        border-radius: 22px;
    }

    .service-showcase-content h3 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .service-showcase-tags {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-point-rail {
        grid-auto-columns: minmax(260px, 86vw);
        gap: 18px;
        margin-top: -10px;
    }
}


/* Services page requested clean black background */
.services-page-body,
.services-main,
.services-detail-section {
    background: #000 !important;
}

.services-detail-bg {
    background: #000 !important;
}

.services-detail-bg::before,
.services-detail-bg::after {
    display: none !important;
}

.services-detail-eyebrow {
    display: none !important;
}

/* Service points dot marker */
.service-showcase-tags span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-showcase-tags span::before {
    content: "•";
    flex: 0 0 auto;
    color: currentColor;
    line-height: 1;
}

/* Separator line after each service section */
.services-detail-list > .service-point-rail {
    position: relative;
    padding-bottom: clamp(34px, 4vw, 72px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
