/* ============================================
   SECTION: ABA Therapy — Hero
   Copy on the left; the hero photo (swirls baked in)
   is the section background, anchored bottom-right.
   No bottom padding so the photo sits flush to the
   bottom edge. Accent script is blue here.
   ============================================ */

.aba-hero {
    position: relative;
    overflow: hidden;
    max-width: 2000px;
    margin: auto;
    min-height: 600px;
    /* no bottom padding → photo touches the bottom edge */
    padding: 36px var(--section-side-padding) 0;
    display: flex;
    align-items: stretch;
    background-color: var(--color-white);
    background-image: url("../../../images/aba-therapy/aba-therapy__aba-therapy-hero.453fdcc666e7.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 100%;       /* full section height, anchored bottom-right */
}

.aba-hero__inner {
    max-width: var(--container-max);
    width: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--color-surface-line-soft);
}

/* ----- Copy (left) ----- */
.aba-hero__content {
    position: relative;
    z-index: 1;                       /* above the background photo */
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0;
}

.aba-hero__heading {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-normal);
    line-height: 58px;
    letter-spacing: -2px;
    color: var(--color-text-heading);
    margin: 0;
}

.aba-hero__heading .accent-script {
    font-size: var(--text-5xl);
    line-height: 58px;
    letter-spacing: -0.03em;
    color: #53bcee;                  /* blue accent for this page */
}

.aba-hero__lede {
    font-size: var(--text-md);
    font-weight: var(--font-weight-medium);
    line-height: 28px;
    color: var(--color-text-heading);
    margin: 0;
}

.aba-hero__actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

/* ----- Responsive: photo drops below the copy ----- */
@media (max-width: 900px) {
    .aba-hero {
        display: block;
        min-height: 0;
        padding: 24px var(--section-side-padding) 0;
        background-position: center bottom;
        background-size: 92% auto;    /* near-full-width photo pinned to the bottom */
        padding-bottom: 86vw;         /* ~square photo needs room below the copy */
    }
    .aba-hero__inner {
        display: block;
        border-bottom: none;
    }
    .aba-hero__content {
        max-width: none;
        padding: 0 0 24px;
    }
}

@media (max-width: 768px) {
    .aba-hero__heading,
    .aba-hero__heading .accent-script {
        font-size: var(--text-3xl);
        line-height: 1.15;
    }
}

/* ----- Phones -----
   Centred, text-only hero matching the journey / neuroaffirming heroes:
   the photo gives way to the blue chalk mark it carried, tucked into the
   bottom-right and cropped by the section edge. */
@media (max-width: 600px) {
    .aba-hero {
        background-image: url("../../../images/decorative/rectangle-blue.f2572dd084c3.png");
        background-position: right -22px bottom 10px;
        background-size: 96px auto;
        padding-bottom: 56px;
    }

    .aba-hero__content {
        align-items: center;
        text-align: center;
        padding-bottom: 32px;
    }
}
