/* =========================================
   Services page
   ========================================= */

.page-header--services {
    padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 44px);
    background:
        radial-gradient(44rem 22rem at 92% -10%, rgba(42, 125, 225, 0.11), transparent 65%),
        var(--color-white);
}

.page-header--services h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem);
}


/* Jump chips */

.service-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.service-jump__chip {
    --accent: var(--color-primary);

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.service-jump__chip .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.service-jump__chip:hover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, white);
    color: var(--accent);
}


/* =========================================
   Service rows
   ========================================= */

.service-list {
    padding: clamp(48px, 7vw, 88px) 0;
    background: var(--color-background);
}

.service-row {
    --accent: var(--color-primary);

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    scroll-margin-top: 110px;
}

.service-row + .service-row {
    margin-top: clamp(48px, 7vw, 88px);
}

.service-row--flip .service-row__media {
    order: 2;
}


/* Media */

.service-row__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.service-row__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-row__placeholder {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28), transparent 45%),
        linear-gradient(140deg, color-mix(in srgb, var(--accent) 78%, #06142e) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 70%, white) 100%);
}

.service-row__placeholder::before,
.service-row__placeholder::after {
    content: "";
    position: absolute;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.06) 50%, transparent 70%);
}

.service-row__placeholder::before {
    top: 14%;
    right: 16%;
    width: 52px;
    height: 52px;
}

.service-row__placeholder::after {
    bottom: 18%;
    left: 14%;
    width: 30px;
    height: 30px;
}

.service-row__placeholder-icon {
    display: grid;
    place-items: center;
    width: 38%;
    aspect-ratio: 1;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 28%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.service-row__placeholder-icon .icon {
    width: 50%;
    height: 50%;
    stroke-width: 1.6;
}


/* Body */

.service-row__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, white);
    color: var(--accent);
}

.service-row__icon .icon {
    width: 24px;
    height: 24px;
}

.service-row__body h2 {
    margin-bottom: 12px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.service-row__description {
    max-width: 540px;
    margin-bottom: 22px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.service-row__includes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-bottom: 24px;
    list-style: none;
}

.service-row__includes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.service-row__includes .tick {
    background: var(--accent);
}

.service-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.service-row__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-row__meta strong {
    color: var(--color-text);
    font-size: 1.1rem;
}

.service-row__meta .icon {
    width: 16px;
    height: 16px;
}

.service-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.service-row__actions .button--primary {
    background: var(--accent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.service-row__actions .button--primary:hover {
    background: color-mix(in srgb, var(--accent) 82%, black);
}

.service-list__empty {
    padding: 48px 24px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    text-align: center;
}

.service-list__empty h2 {
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.service-list__empty p {
    color: var(--color-muted);
}


/* the CTA band from home.css sits right after the list here */
.service-list + .cta-band {
    padding-top: 0;
}


/* =========================================
   Breakpoints
   ========================================= */

@media (max-width: 900px) {
    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row--flip .service-row__media {
        order: 0;
    }

    .service-row__media {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 560px) {
    .service-jump {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        padding-right: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .service-jump::-webkit-scrollbar {
        display: none;
    }

    .service-jump__chip {
        flex: none;
    }

    .service-row__includes {
        grid-template-columns: 1fr;
    }

    .service-row__actions .button {
        flex: 1 1 100%;
    }
}
