/* Programs & Pricing page, first section (template-parts/pricing/hero.php, docs/sections/programs/programs-hero.png).
   Fonts, colours, buttons and the header over the hero: home-hero.css (body .amerlink-genesis-home). */

.prc-hero {
    --prc-ink: #01216a;
    --prc-muted: #5f75a1;
    --prc-line: #d9e5f3;
    --prc-overlap: clamp(44px, 3vw, 58px); /* the steps card over the stage (and the photo's rebuilt bottom strip) */
    position: relative;
    padding-bottom: clamp(28px, 2.6vw, 48px);
    background: linear-gradient(180deg, #e2ecf7 0%, #eef4fb 55%, #f5f9fe 100%);
    color: var(--prc-ink);
}

/* ---------- The navy stage: photo on the right, under a navy gradient that carries the texts on the left. */

.prc-hero-stage {
    position: relative;
    min-height: min(760px, max(620px, 36vw));
    overflow: hidden;
    background: var(--amh-navy);
    color: #fff;
    isolation: isolate;
}

.prc-hero-media {
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(55%, 1100px); /* starts past the texts: the face stays clear of them */
    /* The left edge of the cut-out is bright (a tree): it fades into the navy instead of ending in a line. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}

.prc-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% 30%;
}

.prc-hero-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, #052a63 0%, #0a3678 36%, rgba(14, 62, 128, .85) 45%, rgba(14, 62, 128, .3) 53%, rgba(14, 62, 128, 0) 61%),
        linear-gradient(180deg, rgba(0, 29, 63, .5) 0%, rgba(0, 29, 63, 0) 24%);
}

/* "More / Than a Dream / A Plan" in the sky, right of the face, as in the design (below the header menu). */
.prc-hero-handwritten {
    position: absolute;
    top: clamp(170px, 11vw, 215px);
    right: 3.5%;
    margin: 0;
    color: #0c1d45;
    font-family: 'Segoe Print', 'Bradley Hand', cursive;
    font-size: clamp(24px, 2.1vw, 40px);
    font-style: italic;
    line-height: 1.22;
    text-align: center;
    transform: rotate(-10deg);
}

.prc-hero-handwritten::after {
    display: block;
    width: 78%;
    height: 3px;
    margin: 10px 0 0 auto;
    border-radius: 3px;
    background: var(--amh-pink);
    content: '';
    transform: rotate(-6deg);
}

.prc-hero-inner {
    display: flex;
    width: min(100% - 64px, 1510px);
    min-height: inherit;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    padding: clamp(190px, 12vw, 220px) 0 calc(var(--prc-overlap) + clamp(36px, 3vw, 56px));
}

.prc-hero-copy {
    width: min(100%, 58%, 860px);
}

.prc-hero-eyebrow {
    margin: 0 0 clamp(26px, 2vw, 34px);
    color: #d5e6f5;
    font-size: clamp(12px, .95vw, 16px);
    font-weight: 600;
    letter-spacing: .19em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* The short pink line under the small heading. */
.prc-hero-eyebrow::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: clamp(12px, .9vw, 16px);
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

.prc-hero-title {
    margin: 0 0 clamp(14px, 1.2vw, 22px);
    color: #fff;
    font-size: clamp(42px, 3.9vw, 70px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.04;
}

.prc-hero-title-accent {
    color: #7cc4f8;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .prc-hero-title-accent {
        background: linear-gradient(180deg, #9ad5ff 0%, #6cbcf7 60%, #58b0f2 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.prc-hero-subtitle {
    margin: 0 0 clamp(12px, 1vw, 18px);
    color: #fff;
    font-size: clamp(19px, 1.4vw, 26px);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.prc-hero-description {
    width: min(100%, 700px);
    margin: 0 0 clamp(26px, 2.4vw, 40px);
    color: rgba(255, 255, 255, .92);
    font-size: clamp(16px, 1.2vw, 21px);
    line-height: 1.55;
}

.prc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* The white button of the design: navy text, pink arrow (the primary button is the home one). */
.amh-button.prc-button-light {
    border-color: #fff;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
    color: var(--prc-ink);
}

.amh-button.prc-button-light:hover,
.amh-button.prc-button-light:focus-visible {
    background: #f1f6fd;
    color: var(--prc-ink);
}

.amh-button.prc-button-light span {
    color: var(--amh-pink);
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 400;
    line-height: .7;
}

/* ---------- The four steps: a light card over the bottom of the stage. */

.prc-hero-steps-wrap {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1720px);
    margin: calc(-1 * var(--prc-overlap)) auto 0;
}

.prc-hero-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: clamp(14px, 1.1vw, 20px) clamp(10px, 1.4vw, 28px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: #f7fafe;
    box-shadow: 0 18px 40px rgba(1, 33, 106, .12);
    list-style: none;
}

.prc-hero-step {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    margin: 0;
    padding: 0 clamp(30px, 2.4vw, 46px) 0 clamp(12px, 1.6vw, 30px);
}

/* Dividers between the steps. */
.prc-hero-step + .prc-hero-step::before {
    position: absolute;
    top: 14%;
    bottom: 14%;
    left: 0;
    width: 1px;
    background: var(--prc-line);
    content: '';
}

.prc-hero-step-body {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: clamp(12px, 1.2vw, 22px);
    color: inherit;
    text-decoration: none;
}

.prc-hero-step-icon {
    display: grid;
    width: clamp(52px, 3.4vw, 66px);
    height: clamp(52px, 3.4vw, 66px);
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #e9f1fa;
    color: var(--prc-ink);
}

.prc-hero-step-icon svg {
    width: 58%;
    height: 58%;
}

.prc-hero-step-icon .prc-hero-icon-accent {
    fill: var(--amh-pink);
}

.prc-hero-step-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.prc-hero-step-title {
    color: var(--prc-ink);
    font-size: clamp(14px, .95vw, 18px);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.prc-hero-step-text {
    color: var(--prc-muted);
    font-size: clamp(13px, .84vw, 16px);
    line-height: 1.35;
}

.prc-hero-step-next {
    position: absolute;
    top: 50%;
    right: clamp(6px, .9vw, 16px);
    width: clamp(18px, 1.2vw, 22px);
    height: clamp(18px, 1.2vw, 22px);
    color: #1f7fe0;
    translate: 0 -50%;
}

/* A step with a link set in the panel. */
.prc-hero-step-link {
    border-radius: 10px;
    transition: color .2s ease;
}

.prc-hero-step-link:hover .prc-hero-step-title,
.prc-hero-step-link:focus-visible .prc-hero-step-title {
    color: var(--amh-pink);
}

.prc-hero-step-link:focus-visible {
    outline: 2px solid #0381f8;
    outline-offset: 4px;
}

/* Wide screens: the title on one line, as in the design (it still ends before the face in the photo). */
@media (min-width: 1181px) {
    .prc-hero-title {
        white-space: nowrap;
    }
}

/* Narrower: the photo starts further right, so the texts keep off the face. */
@media (min-width: 1081px) and (max-width: 1180px) {
    .prc-hero-media {
        width: 52%;
    }

    /* The face moves right, under the note. */
    .prc-hero-handwritten {
        display: none;
    }
}

/* Narrow tablets: a narrower column for the texts, so the buttons get smaller to keep their labels on one line. */
@media (min-width: 781px) and (max-width: 900px) {
    .prc-hero-actions .amh-button {
        padding-inline: 20px;
        font-size: 15px;
    }
}

/* Small laptops: the steps keep four columns with smaller icons and less room for the arrows. */
@media (max-width: 1280px) {
    .prc-hero-step {
        padding: 0 28px 0 12px;
    }

    .prc-hero-step-next {
        right: 4px;
    }
}

/* Tablets: the photo shows more of its left side, the gradient stays under the texts; the steps in two rows. */
@media (max-width: 1080px) {
    .prc-hero-media {
        width: 56%;
    }

    .prc-hero-photo {
        object-position: 30% 30%;
    }

    .prc-hero-shade {
        background:
            linear-gradient(90deg, #052a63 0%, #0a3678 38%, rgba(14, 62, 128, .85) 50%, rgba(14, 62, 128, .35) 62%, rgba(14, 62, 128, 0) 74%),
            linear-gradient(180deg, rgba(0, 29, 63, .5) 0%, rgba(0, 29, 63, 0) 24%);
    }

    .prc-hero-copy {
        width: min(100%, 48%);
    }

    /* The tablet crop leaves no sky beside the face. */
    .prc-hero-handwritten {
        display: none;
    }

    .prc-hero-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 6px 10px;
    }

    .prc-hero-step {
        padding: 14px 12px;
    }

    .prc-hero-step:nth-child(odd)::before {
        display: none;
    }

    .prc-hero-step:nth-child(n + 3) {
        border-top: 1px solid var(--prc-line);
    }

    .prc-hero-step-next {
        display: none;
    }
}

/* Phones: the texts first on navy, the photo under them (its rebuilt bottom strip cropped), then the steps. */
@media (max-width: 780px) {
    .prc-hero-stage {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .prc-hero-inner {
        width: min(100% - 36px, 660px);
        min-height: 0;
        padding: 170px 0 34px;
    }

    .prc-hero-copy {
        width: 100%;
    }

    .prc-hero-shade {
        display: none;
    }

    .prc-hero-media {
        position: relative;
        z-index: 0;
        order: 2;
        width: 100%;
        aspect-ratio: 1003 / 600;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .prc-hero-media::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, var(--amh-navy) 0%, rgba(0, 42, 84, 0) 24%);
        content: '';
    }

    .prc-hero-photo {
        object-position: 50% 0;
    }

    .prc-hero-handwritten {
        z-index: 1;
        display: block;
        top: 14%;
        right: 4%;
        font-size: 19px;
    }

    .prc-hero-actions {
        flex-direction: column;
        gap: 14px;
    }

    .prc-hero-actions .amh-button {
        width: 100%;
    }

    .prc-hero {
        --prc-overlap: 34px;
    }

    .prc-hero-steps-wrap {
        width: min(100% - 28px, 660px);
    }
}

/* Phones: the note smaller and nearer the edge, off the face; on the smallest it does not fit beside the face. */
@media (max-width: 420px) {
    .prc-hero-handwritten {
        right: 3%;
        font-size: 16px;
    }
}

@media (max-width: 340px) {
    .prc-hero-handwritten {
        display: none;
    }
}

/* Small phones: one step per row. */
@media (max-width: 600px) {
    .prc-hero-steps {
        grid-template-columns: minmax(0, 1fr);
        padding: 4px 14px;
    }

    .prc-hero-step {
        padding: 12px 2px;
    }

    .prc-hero-step + .prc-hero-step::before {
        display: none;
    }

    .prc-hero-step + .prc-hero-step {
        border-top: 1px solid var(--prc-line);
    }

    .prc-hero-step-icon {
        width: 50px;
        height: 50px;
    }
}
