/* ============================================
   SECTION: Autism Screening — Tools (M-CHAT-R)
   Full-width pink band. Header, then a white card with the
   image on the left (a decorative swirl bleeding to its
   right, behind the content) and the tool copy + CTA right.
   ============================================ */

.as-tools {
    padding: 100px var(--section-side-padding);
    background: var(--color-primary-light);   /* #ffebf0 */
}

/* ----- Header ----- */
.as-tools__header {
    max-width: var(--container-max);
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.as-tools__heading {
    max-width: 484px;
    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;
}

.as-tools__heading .accent-script {
    color: var(--color-primary);   /* pink */
}

/* ----- Card ----- */
.as-tools__card {
    position: relative;
    overflow: hidden;
    max-width: var(--container-max);
    margin-inline: auto;
    padding: 20px;
    background: var(--color-white) url("../../../images/autism-screening/cutout_toddler_bunny_20260825_213003_hero_diagonal_cutout.19b012e13d3f.png") no-repeat left center / auto 100%;
    border: 2px solid var(--color-surface-line-soft);   /* #f6f6f6 */
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    gap: 40px;
}

/* ----- Media (left) — transparent spacer over the card background photo ----- */
.as-tools__media {
    flex: 0 0 570px;
    max-width: 570px;
    align-self: stretch;
    min-height: 496px;
}

/* ----- Body (right) ----- */
.as-tools__body {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    padding: 24px 0;
}

.as-tools__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;
}

.as-tools__text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-tools__text p {
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-faint);
    margin: 0;
}

.as-tools__cta {
    align-self: flex-start;
}

/* ----- Responsive -----
   Below 1024 the card stacks, but the photo must move off the card
   background and onto the media box — otherwise `auto 100%` scales
   the wide cutout to the full stacked-card height and the copy sits
   on top of it. */
@media (max-width: 1024px) {
    .as-tools__card {
        flex-direction: column;
        gap: 24px;
        background-image: none;
    }

    .as-tools__media {
        flex: initial;
        max-width: none;
        min-height: 0;
        height: 360px;
        background: url("../../../images/autism-screening/cutout_toddler_bunny_20260825_213003_hero_diagonal_cutout.19b012e13d3f.png") no-repeat left center / auto 100%;
        border-radius: 12px;
    }

    .as-tools__body {
        max-width: none;
        align-self: stretch;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .as-tools {
        padding: 60px var(--section-side-padding);
    }
    .as-tools__heading {
        font-size: 32px;
        line-height: 38px;
    }
}

/* ----- Phones ----- */
@media (max-width: 600px) {
    .as-tools__card {
        gap: 20px;
    }

    .as-tools__media {
        height: 220px;
        background-size: cover;
        background-position: left center;
    }

    .as-tools__cta {
        align-self: stretch;
        text-align: center;
    }
}
