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

.services-page {
    --services-border: var(--site-border);
    --services-muted: var(--site-muted);
    --services-primary: var(--site-primary);
    --services-surface: var(--site-surface);

    color: var(--site-text);
}

.services-heading {
    max-width: 850px;
    color: #111827;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.services-hero {
    padding: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--services-border);
    border-radius: 1.25rem;
    background:
        radial-gradient(
            ellipse at top right,
            rgb(37 99 235 / 8%),
            transparent 55%
        ),
        var(--services-surface);
}

.services-intro {
    max-width: 780px;
    color: var(--services-muted);
    font-size: 1.1rem;
    line-height: 1.85;
}

.services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.services-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    border-radius: 0.65rem;
    font-weight: 600;
    text-decoration: none;
}

.services-secondary-action {
    color: var(--services-primary);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
}

.services-secondary-action:hover {
    text-decoration: underline;
}

.services-principles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--services-border);
}

.services-principle {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.9rem;
}

.services-principle-mark {
    color: var(--services-primary);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

/* Section headings */

.services-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.services-section-title {
    color: #111827;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.services-section-description {
    max-width: 390px;
    color: var(--services-muted);
    line-height: 1.7;
}

/* Service cards */

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
    border: 1px solid var(--services-border);
    border-radius: 1rem;
    background: #fff;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.service-card:hover {
    border-color: #c7d7f9;
    box-shadow: 0 12px 28px rgb(15 23 42 / 5%);
    transform: translateY(-2px);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.service-number {
    color: var(--services-primary);
    font-size: 0.85rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.service-card-indicator {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--services-border);
    border-radius: 50%;
    color: #64748b;
    font-size: 1.1rem;
}

.service-card-title {
    margin-bottom: 0.8rem;
    color: #172033;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.4;
}

.service-card-description {
    margin-bottom: 1.5rem;
    color: var(--services-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

.service-deliverables {
    display: grid;
    gap: 0.75rem;
    margin: auto 0 0;
    padding: 1.2rem 0 0;
    border-top: 1px solid #eef0f4;
    list-style: none;
}

.service-deliverables li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.service-check {
    flex: 0 0 auto;
    color: var(--services-primary);
    font-weight: 750;
}

/* Design and delivery */

.services-approach {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    gap: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--services-border);
    border-radius: 1rem;
    background: var(--services-surface);
}

.services-approach-copy p:not(.section-eyebrow) {
    color: var(--services-muted);
    line-height: 1.85;
}

.services-delivery-points {
    display: grid;
    align-content: center;
    gap: 1.25rem;
}

.services-delivery-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.services-delivery-icon {
    display: grid;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #dbe6fb;
    border-radius: 0.75rem;
    background: #fff;
    color: var(--services-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.services-delivery-point h3 {
    margin-bottom: 0.35rem;
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.services-delivery-point p {
    margin-bottom: 0;
    color: var(--services-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Workflow */

.services-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--services-border);
    border-radius: 1rem;
    overflow: hidden;
}

.services-process-step {
    min-width: 0;
    padding: 1.4rem;
    background: #fff;
}

.services-process-step + .services-process-step {
    border-left: 1px solid var(--services-border);
}

.services-process-number {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--services-primary);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.services-process-step h3 {
    margin-bottom: 0.6rem;
    color: #172033;
    font-size: 1.05rem;
    font-weight: 700;
}

.services-process-step p {
    margin-bottom: 0;
    color: var(--services-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* Pricing and PDF guide */

.services-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 2rem;
}

.services-pricing-copy > p:not(.section-eyebrow) {
    color: var(--services-muted);
    line-height: 1.85;
}

/* Pricing and full services guide */

.services-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    align-items: center;
    gap: 2rem;
}

.services-pricing-copy > p:not(.section-eyebrow) {
    color: var(--services-muted);
    line-height: 1.85;
}

.services-guide {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.75rem;
    border: 1px solid #cbdaf8;
    border-left: 4px solid var(--services-primary);
    border-radius: 0.85rem;
    background: #f8faff;
}

.services-guide-icon {
    display: grid;
    flex: 0 0 2.85rem;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border-radius: 0.75rem;
    background: #eaf1ff;
    color: var(--services-primary);
}

.services-guide-content {
    min-width: 0;
}

.services-guide-label {
    margin-bottom: 0.5rem;
    color: var(--services-primary);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.09em;
}

.services-guide h3 {
    margin-bottom: 0.65rem;
    color: #172033;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.services-guide p:not(.services-guide-label) {
    margin-bottom: 1.15rem;
    color: var(--services-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

.services-guide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--services-primary);
    border-radius: 0.55rem;
    background: var(--services-primary);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.services-guide-link:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.services-guide-link:focus-visible {
    outline: 3px solid rgb(37 99 235 / 35%);
    outline-offset: 3px;
}

.breadcrumb-divider {
    display: none;
}

@media (max-width: 575.98px) {
    .services-guide {
        gap: 0.85rem;
        padding: 1.2rem;
    }

    .services-guide-icon {
        flex-basis: 2.4rem;
        width: 2.4rem;
        height: 2.4rem;
    }

    .services-guide-link {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-guide-link {
        transition: none;
    }
}

/* Final call to action */

.services-cta {
    padding: 3rem 1.5rem;
    border: 1px solid #dbe6fb;
    border-radius: 1.25rem;
    background:
        radial-gradient(
            ellipse at top,
            rgb(37 99 235 / 8%),
            transparent 65%
        ),
        var(--services-surface);
}

.services-cta-title {
    color: #111827;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 730;
    letter-spacing: -0.035em;
}

.services-cta-description {
    max-width: 600px;
    color: var(--services-muted);
    line-height: 1.8;
}

/* Keyboard accessibility */

.services-page a:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgb(37 99 235 / 35%);
    outline-offset: 4px;
}

/* Responsive layout */

@media (max-width: 767.98px) {
    .services-hero {
        padding: 1.75rem;
    }

    .services-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .services-section-description {
        max-width: 600px;
    }

    .services-approach,
    .services-pricing {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .services-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-process-step:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--services-border);
    }

    .services-process-step:nth-child(4) {
        border-top: 1px solid var(--services-border);
    }
}

@media (max-width: 575.98px) {
    .services-hero {
        padding: 1.35rem;
        border-radius: 1rem;
    }

    .services-intro {
        font-size: 1rem;
        line-height: 1.8;
    }

    .services-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .services-principles {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .services-approach {
        padding: 1.25rem;
    }

    .services-process-step {
        padding: 1rem;
    }

    .services-process-step h3 {
        font-size: 1rem;
    }

    .services-process-step p {
        font-size: 0.86rem;
    }

    .services-guide {
        padding: 1.15rem;
    }

    .services-cta {
        padding: 2.25rem 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}
