/* ============================================
   SECTION: ABA Therapy — Collaborative Approach
   Header (heading + CTA left, lede right) above a wide
   photo in a pink rounded frame. Capped at 1240.
   ============================================ */

.aba-collab {
    padding: 80px var(--section-side-padding);
    background: var(--color-white);
}

.aba-collab__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ----- Header (heading + CTA left, lede right) ----- */
.aba-collab__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 24px;
}

.aba-collab__heading-group {
    flex: 0 1 491px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.aba-collab__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1.26px;
    color: var(--color-text-heading);
    margin: 0;
}

.aba-collab__heading .accent-script {
    color: #ea627e;              /* rose accent per the design */
}

.aba-collab__lede {
    flex: 0 1 400px;
    margin: 0;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-body);
}

/* ----- Photo frame ----- */
.aba-collab__frame {
    background: var(--color-primary-light);   /* #ffebf0 */
    border-radius: 12px;
    overflow: hidden;
}

.aba-collab__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1240 / 700;
    object-fit: cover;
    object-position: center center;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .aba-collab__header {
        flex-direction: column;
        gap: 16px;
    }
    /* Stacked, the desktop flex-basis would set the *height* of each block
       (491px / 400px) instead of its width — size them to their content. */
    .aba-collab__heading-group,
    .aba-collab__lede {
        flex: 0 1 auto;
    }
}

/* Below the desktop breakpoint the photo runs edge to edge — the side gutter
   and the corner radius both go, matching the other photo bands. The header
   keeps the section's padding, so the frame bleeds out on its own. */
@media (max-width: 1024px) {
    .aba-collab__frame {
        margin-inline: calc(-1 * var(--section-side-padding));
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .aba-collab {
        padding: 56px var(--section-side-padding);
    }
    .aba-collab__heading {
        font-size: 32px;
        line-height: 38px;
    }
    .aba-collab__photo {
        aspect-ratio: 4 / 3;
    }
}
