/* ==========================================================
   Services page
   Navy hero ? light "service explorer" (sticky side nav on
   desktop, sticky chips on mobile, scroll-spy) ? navy CTA
   ========================================================== */

/* ---------- Hero ---------- */
.svc-hero-intro {
    max-width: 36rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--white) 78%, transparent);
}

.svc-hero-btn {
    padding: 1rem 1.6rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.svc-hero-link {
    padding: 1rem 0.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

    .svc-hero-link:hover {
        color: var(--accent);
        border-bottom-color: currentColor;
    }

/* Service groups (jump links) */
.svc-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: color-mix(in srgb, var(--white) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
    transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

    .svc-group:hover {
        border-color: color-mix(in srgb, var(--fg) 55%, transparent);
        background: color-mix(in srgb, var(--white) 7%, transparent);
        transform: translateX(4px);
    }

.svc-group-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent);
    color: var(--fg);
}

.svc-group-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--fg);
}

.svc-group-count {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--white) 55%, transparent);
}

.svc-group-arrow {
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--white) 50%, transparent);
    transition: transform 0.3s, color 0.3s;
}

.svc-group:hover .svc-group-arrow {
    color: var(--fg);
    transform: translateY(3px);
}

/* ---------- Side navigation (desktop) ---------- */
.svc-nav {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    display: flex;
    flex-direction: column;
}

.svc-nav-group {
    margin: 1.75rem 0 0.6rem;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

    .svc-nav-group:first-child {
        margin-top: 0;
    }

.svc-nav-link {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 0.55rem 0 0.55rem 1rem;
    border-left: 1px solid color-mix(in srgb, var(--fg-dim) 14%, transparent);
    font-size: 0.9rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--fg-dim) 65%, transparent);
    transition: color 0.25s;
}

    .svc-nav-link::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -1px;
        width: 2px;
        background: var(--fg-on-light);
        transform: scaleY(0);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .svc-nav-link:hover {
        color: var(--fg-dim);
    }

    .svc-nav-link.is-active {
        color: var(--fg-dim);
        font-weight: 600;
    }

        .svc-nav-link.is-active::before {
            transform: scaleY(1);
        }

.svc-nav-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
    color: color-mix(in srgb, var(--fg-dim) 45%, transparent);
}

.svc-nav-link.is-active .svc-nav-num {
    color: var(--gold-ink);
}

/* ---------- Chip navigation (mobile / tablet) ---------- */
.svc-chips {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    margin: -1rem -1.5rem 1rem;
    padding: 0.85rem 1.5rem;
    overflow-x: auto;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--fg-dim) 10%, transparent);
    scrollbar-width: none;
}

    .svc-chips::-webkit-scrollbar {
        display: none;
    }

.svc-chip {
    flex-shrink: 0;
    padding: 0.5rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--fg-dim) 18%, transparent);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--fg-dim);
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

    .svc-chip.is-active {
        background: var(--bg-darker);
        border-color: var(--bg-darker);
        color: var(--fg);
    }

/* ---------- Service sections ---------- */
.svc-section {
    position: relative;
    padding: 3.5rem 0;
    border-top: 1px solid color-mix(in srgb, var(--fg-dim) 12%, transparent);
    /* land just below the sticky chip bar on mobile */
    scroll-margin-top: 70px;
}

    .svc-section:first-of-type {
        border-top: 0;
        padding-top: 1rem;
    }

@media (min-width: 992px) {
    .svc-section {
        padding: 4.5rem 0;
        scroll-margin-top: 1.5rem;
    }

        .svc-section:first-of-type {
            padding-top: 0;
        }
}

/* big outlined number in the corner */
.svc-section::after {
    content: attr(data-num);
    position: absolute;
    top: 2.5rem;
    right: 0;
    font-family: var(--font-display);
    font-size: clamp(5rem, 9vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px color-mix(in srgb, var(--fg-dim) 14%, transparent);
    pointer-events: none;
}

.svc-section:first-of-type::after {
    top: 0;
}

.svc-section-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-right: 5rem;
}

.svc-section-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-darker);
    color: var(--fg);
    font-size: 1.3rem;
}

.svc-section-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.svc-section-title {
    margin-top: 0.4rem;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1;
}

.svc-section-intro {
    max-width: 46rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--fg-dim) 85%, transparent);
}

.svc-lead {
    font-size: 1.15rem;
    color: var(--fg-dim);
}

.svc-includes-label {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--fg-dim) 60%, transparent);
}

.svc-includes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .svc-includes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .svc-includes {
        grid-template-columns: repeat(3, 1fr);
    }
}

.svc-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid color-mix(in srgb, var(--fg-dim) 10%, transparent);
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--fg-dim);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

    .svc-includes li:hover {
        border-color: color-mix(in srgb, var(--fg-on-light) 55%, transparent);
        transform: translateY(-2px);
        box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--fg-dim) 60%, transparent);
    }

.svc-includes i {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 0.05rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fg) 18%, transparent);
    color: var(--gold-ink);
    font-size: 0.6rem;
}

.svc-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: 46rem;
    margin-top: 1.75rem;
    padding: 1.1rem 1.25rem;
    background: color-mix(in srgb, var(--accent) 60%, transparent);
    border-left: 3px solid var(--fg-on-light);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--fg-dim);
}

    .svc-note i {
        margin-top: 0.2rem;
        color: var(--gold-ink);
    }

/* Reveal: header, intro, then the item tiles one after another */
.svc-section > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-section > :nth-child(2) {
    transition-delay: 0.08s;
}

.svc-section > :nth-child(3),
.svc-section > :nth-child(4) {
    transition-delay: 0.16s;
}

.svc-section > :nth-child(5) {
    transition-delay: 0.24s;
}

.svc-section.in-view > * {
    opacity: 1;
    transform: none;
}

/* ---------- CTA ---------- */
.svc-cta {
    overflow: hidden;
}

    .svc-cta::before {
        content: "";
        position: absolute;
        inset: -20% 10%;
        background: radial-gradient( ellipse at center, color-mix(in srgb, var(--fg) 16%, transparent), transparent 60% );
        pointer-events: none;
    }

    .svc-cta > .wrap {
        position: relative;
    }

.svc-cta-text {
    max-width: 34rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--white) 78%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .svc-section > * {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .svc-group,
    .svc-includes li,
    .svc-nav-link::before {
        transition: none;
    }

        .svc-group:hover,
        .svc-includes li:hover {
            transform: none;
        }
}
