/* ============================================
   SECTION: Why Join ANNA — Hero ("hero bg menu" type)
   Full-height pink hero with a two-column grid so the
   photo stays centered in its column on wide screens
   (background-image heroes hug the right viewport edge).
   The navbar bleeds into the hero on this page and fades
   to solid white as soon as the page starts scrolling
   (body.nav-solid, set by JS).
   ============================================ */

/* Blend the menu into the hero on this page only; it fades to
   solid white the moment scrolling begins (body.nav-solid). */
.page-wja .navbar {
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.page-wja.nav-solid .navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.wja-hero {
    position: relative;
    overflow: hidden;
    margin-top: -76px;            /* pull the hero up behind the sticky navbar */
    /* Match .navbar side inset so copy/photo align with logo + Get In Touch */
    --navbar-side-extra: 24px;
    padding: 76px calc(var(--section-side-padding) + var(--navbar-side-extra)) 0;
    background: var(--color-primary-light);   /* #ffebf0 */
    min-height: 820px;
}

.wja-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin-inline: auto;
    min-height: calc(820px - 76px);
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
}

/* ----- Copy (left) ----- */
.wja-hero__content {
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0 48px;
}

.wja-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 0 20px;
}

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

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

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

/* ----- Photo (right) — right edge lines up with navbar CTA -----
   Portrait cutout is 1080×1350 (0.8:1) — taller/narrower than hero.png. */
.wja-hero__media {
    justify-self: end;
    align-self: end;
}

.wja-hero__photo {
    width: auto;
    max-width: 100%;
    max-height: calc(820px - 76px);   /* matches old background-size: auto 100% */
    height: auto;
    display: block;
}

/* Narrow desktop: scale photo down slightly */
@media (max-width: 1439px) {
    .wja-hero__photo {
        max-height: calc((820px - 76px) * 0.9);
    }
}

/* Side-by-side runs out of room — stack copy above a centred photo */
@media (max-width: 1100px) {
    .wja-hero {
        min-height: 0;
        padding: 76px calc(var(--section-side-padding) + var(--navbar-side-extra)) 56px;
    }

    .wja-hero__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wja-hero__content {
        padding: 24px 0 0;
    }

    .wja-hero__media {
        justify-self: stretch;
        align-self: auto;
        min-width: 0;
        width: 100%;
    }

    .wja-hero__photo {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        display: block;
        margin-inline: auto;
    }
}

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

/* ----- Phones -----
   Centred copy with the full photo below — no overflow crop. */
@media (max-width: 600px) {
    .wja-hero__content {
        align-items: center;
        text-align: center;
    }

    .wja-hero__actions {
        justify-content: center;
        width: 100%;
    }

    .wja-hero__photo {
        width: 100%;
        max-width: 100%;
    }
}
