/* ============================================
   SECTION: Autism Testing — Hero
   Two-column layout (copy left, photo right) capped at the
   site container width — the photo stays within the
   container rather than bleeding off the edge. Accent
   script is pink here. Mirrors the Journey hero.
   ============================================ */

.at-hero {
    /* No top padding — hero photo sits flush under the sticky navbar. */
    padding: 0 var(--section-side-padding) 25px;
    background: var(--color-white);
    overflow: hidden;
}

.at-hero__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    /* Keep the Figma rule, but clear the CTA so the line doesn’t kiss the button
       when the copy column is taller than the photo (~1024). */
    padding-bottom: 40px;
    border-bottom: 2px solid var(--color-surface-line-soft);
}

/* ----- Left: copy ----- */
.at-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: 36px;
}

.at-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;
}

.at-hero__heading .accent-script {
    font-size: var(--text-5xl);
    line-height: 58px;
    letter-spacing: -0.03em;
    color: var(--color-primary);     /* pink accent for this page */
}

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

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

/* ----- Right: photo ----- */
.at-hero__media {
    justify-self: end;
}

.at-hero__photo {
    width: 100%;
    max-width: 689px;
    height: auto;
    display: block;
}

/* ----- Responsive ----- */
@media (max-width: 1300px) {
    /* ~900–1300: copy column often outruns the photo and the rule lands on
       the Get In Touch button. Keep it off through stacked layouts too. */
    .at-hero__inner {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 900px) {
    .at-hero {
        padding: 0 var(--section-side-padding) 56px;
    }
    .at-hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .at-hero__content {
        padding-top: 24px;
    }
    .at-hero__media {
        justify-self: center;
    }
}

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

/* ----- Phones -----
   Centred copy with the photo below, cropped to its top half so the hero
   stays compact — matching the cropped heroes on the sibling pages. The
   media box is exactly half the photo's aspect ratio (689 / 645÷2), so the
   image fills the width and the bottom half is clipped. */
@media (max-width: 600px) {
    .at-hero__inner {
        gap: 24px;
        border-bottom: none;
    }

    .at-hero__content {
        align-items: center;
        text-align: center;
    }

    .at-hero__media {
        justify-self: stretch;
        aspect-ratio: 1378 / 645;
        overflow: hidden;
    }

    .at-hero__photo {
        max-width: none;
    }
}
