/* Services page only — shared homepage styles remain unchanged. */

/* Services hero:
   uses the new technical hero image which already contains its own soft,
   dark-to-detailed transition. Overlay is intentionally light so the image
   fade does the work, similar to the homepage feel without a hard split. */
.services-page .services-intro {
    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
    color: #ffffff;
    background: var(--navy-deep);
}

.services-page .services-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/hero-av-services-technical.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.services-page .services-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(8, 27, 38, 0.28) 0%,
            rgba(8, 27, 38, 0.20) 22%,
            rgba(8, 27, 38, 0.12) 46%,
            rgba(8, 27, 38, 0.06) 68%,
            rgba(8, 27, 38, 0.02) 100%
        ),
        linear-gradient(
            180deg,
            rgba(8, 27, 38, 0.14) 0%,
            rgba(8, 27, 38, 0.10) 58%,
            rgba(8, 27, 38, 0.22) 100%
        );
}

.services-page .services-hero-content {
    position: relative;
    z-index: 2;
}

.services-page h1,
.services-page .service-detail h2,
.services-page .engagement h2 {
    font-family: var(--alldigital-font-light);
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.services-page h1 {
    color: #ffffff;
    font-size: clamp(42px, 5.3vw, 66px);
}

.services-page .services-lead {
    max-width: 650px;
    margin-top: 24px;
    color: #ffffff;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.45;
}

.services-page .services-summary {
    max-width: 635px;
    margin-top: 22px;
    color: #dce5ec;
    font-size: 16px;
    line-height: 1.75;
}

/* Service cards: align the group with the hero copy. */
.services-page .service-directory {
    position: relative;
    margin-top: 20px;
    padding-bottom: 22px;
}

.services-page .service-jump-links {
    display: grid;
    width: 630px;
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    box-shadow: none;
}

.services-page .service-jump-links > a {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 145px;
    padding: 15px 15px 13px;
    color: var(--navy);
    background: #ffffff;
    border-top: 3px solid var(--blue);
    border-right: 0;
    border-radius: 7px;
    transition: background .2s ease;
}

.services-page .service-jump-links > a:last-child {
    border-right: 0;
}

.services-page .service-jump-links > a:hover {
    background: #f0f4f7;
}

.services-page .service-link-meta {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .13em;
    font-family: var(--alldigital-font-semibold);
}

.services-page .service-link-title {
    margin: 8px 0 10px;
    font-family: var(--alldigital-font-light);
    font-size: 18px;
    line-height: 1.2;
}

.services-page .service-link-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.services-page .service-link-footer > span {
    color: var(--blue);
    font-size: 23px;
    line-height: 1;
}

.services-page .service-detail,
.services-page .engagement {
    padding: 76px 0;
    scroll-margin-top: 24px;
}

.services-page .service-detail .two-column-section {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 66px;
}

.services-page .service-heading {
    border-top: 1px solid #ccd7df;
    padding-top: 20px;
}

.services-page .service-heading .section-label {
    color: var(--blue);
}

.services-page .service-detail h2,
.services-page .engagement h2 {
    color: var(--navy);
    font-size: clamp(30px, 3.3vw, 42px);
    overflow-wrap: break-word;
}

.services-page #integrator-support {
    background: #edf2f6;
    border-block: 1px solid #dce4eb;
}

.services-page .section-copy > p:first-child {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.6;
}

.services-page .deliverables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 28px 0 24px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.services-page .deliverables li {
    position: relative;
    padding: 18px 18px 18px 30px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.services-page .deliverables li::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 15px;
    width: 4px;
    height: 4px;
    background: var(--blue);
}

.services-page .service-note {
    padding-left: 18px;
    border-left: 2px solid #a4bacb;
    font-size: 14px;
    line-height: 1.7;
}

.services-page .engagement {
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.services-page .engagement h2 {
    border-left: 3px solid var(--blue);
    padding-left: 24px;
}

.services-page a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
}

@media (max-width: 900px) {
    .services-page .service-detail .two-column-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-page .service-jump-links > a {
        padding: 15px 14px 13px;
    }
}

@media (max-width: 700px) {
    .services-page .service-jump-links {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .services-page .services-intro {
        padding: 38px 0 0;
    }

    .services-page .services-hero-image {
        background-position: 62% center;
    }

    .services-page .services-hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(10, 38, 52, 0.82) 0%,
                rgba(10, 38, 52, 0.70) 100%
            );
    }

    .services-page .service-directory {
        margin-top: 28px;
        padding-bottom: 0;
    }

    .services-page .service-jump-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .services-page .service-jump-links > a {
        min-height: 0;
        padding: 15px 20px;
        border-top-width: 1px;
        border-right: 0;
    }

    .services-page .service-link-title {
        margin: 10px 0 14px;
        font-size: 24px;
    }

    .services-page .service-detail,
    .services-page .engagement {
        padding: 48px 0;
    }

    .services-page .deliverables {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-page {
        scroll-behavior: auto;
    }

    .services-page .service-jump-links > a {
        transition: none;
    }
}
