/* ============================================
   SECTION: Our Approach — Our Services
   "How this comes to life at ANNA" — 2-col header
   (heading left, lede right) + two equal-height
   service cards. Each card: copy on top, a full-width
   photo bleeding across the bottom (swirls baked into
   the photo assets). Capped at the site container width.
   ============================================ */

.approach-services {
    padding: 100px var(--section-side-padding);
    background: var(--color-white);
}

.approach-services__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ----- Header (heading left, lede right) ----- */
.approach-services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 56px;
}

.approach-services__heading-group {
    flex: 0 1 520px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.approach-services__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    color: var(--color-text-heading);
    margin: 0;
}

.approach-services__heading .accent-script {
    color: var(--color-primary);
}

.approach-services__lede {
    flex: 0 1 400px;
    /* aligns the lede's top with the H2's top (eyebrow line-height 22 + 24 gap) */
    margin-top: 46px;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-body);
    margin-bottom: 0;
}

/* ----- Cards ----- */
.approach-services__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;          /* both cards share the taller height */
}

.approach-service-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 2px solid var(--color-surface-line-soft);
    border-radius: 12px;
    overflow: hidden;              /* clips the photo to the rounded corners */
}

.approach-service-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 40px;
}

.approach-service-card__title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    line-height: 32px;
    color: var(--color-text-heading);
    margin: 0;
}

.approach-service-card__desc {
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-faint);
    margin: 0;
}

.approach-service-card__cta {
    margin-top: 8px;
}

.approach-service-card__media {
    margin-top: auto;              /* push the photo to the bottom of the card */
}

.approach-service-card__photo {
    display: block;
    width: 100%;                   /* full card width (assets are 610px wide) */
    height: auto;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .approach-services__header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }
    /* The 520/400px bases above are widths for the desktop row; once the
       header stacks they'd apply to HEIGHT and leave a ~750px hole between
       the heading and the lede. */
    .approach-services__heading-group,
    .approach-services__lede {
        flex: 0 1 auto;
    }
    .approach-services__lede {
        margin-top: 0;
    }
    .approach-services__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .approach-services {
        padding: 60px var(--section-side-padding);
    }
    .approach-services__heading {
        font-size: 32px;
        line-height: 38px;
    }
    .approach-service-card__body {
        padding: 28px;
    }
}

/* ----- Phones -----
   Text-only cards: the design drops the photo and leaves the card at a
   fixed 318px with a full-width CTA. */
@media (max-width: 600px) {
    .approach-services {
        padding: 60px var(--section-side-padding);
    }

    .approach-services__header {
        gap: 16px;
        margin-bottom: 48px;
    }

    .approach-services__heading-group {
        gap: 20px;
    }

    .approach-services__heading {
        line-height: 34px;
    }

    .approach-services__lede {
        line-height: 24px;
    }

    .approach-services__cards {
        gap: 12px;
    }

    .approach-service-card__body {
        padding: 40px 16px 24px;
    }

    .approach-service-card__cta {
        width: 100%;
        margin-top: 16px;
    }

    /* The photo gives way to a brush arc across the card's bottom. Its
       wrapper is reused as that layer: pinned to the bottom, behind the
       copy, so it decorates without adding to the card's height. */
    .approach-service-card {
        position: relative;
    }

    .approach-service-card__body {
        position: relative;
        z-index: 1;
    }

    .approach-service-card__photo {
        display: none;
    }

    .approach-service-card__media {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
        margin-top: 0;
        pointer-events: none;
        background-repeat: no-repeat;
    }

    .approach-service-card--ndbi .approach-service-card__media {
        height: 263px;                /* the asset is authored at 328x263 */
        background-image: url("../../../images/decorative/vector-271_2.a2992990e358.svg");
        background-position: center bottom;
        background-size: contain;
    }

    .approach-service-card--neuro .approach-service-card__media {
        height: 60px;                 /* the asset is authored at 328x60 */
        background-image: url("../../../images/decorative/vector-271.4a77d52b1e46.svg");
        background-position: right bottom;
        background-size: contain;
    }
}
