/* Programs & Pricing page, call to action (template-parts/pricing/cta.php, docs/sections/programs/
   programs-take-next-step.png). Fonts, colours and buttons: home-hero.css (body .amerlink-genesis-home). */

.prc-cta {
    position: relative;
    min-height: min(680px, max(500px, 33vw));
    overflow: hidden;
    background: #012a5c;
    color: #fff;
    isolation: isolate;
}

/* The student over the campus on the right, under a navy gradient that carries the texts on the left. */
.prc-cta-media {
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(56%, 1240px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}

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

.prc-cta-shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, #00214c 0%, #032d63 34%, rgba(4, 47, 101, .82) 44%, rgba(4, 47, 101, .25) 54%, rgba(4, 47, 101, 0) 62%),
        linear-gradient(0deg, rgba(0, 27, 61, .35) 0%, rgba(0, 27, 61, 0) 22%);
}

/* "More / Than a Dream / A Plan" in the sky right of the student, as in the design. */
.prc-cta-handwritten {
    position: absolute;
    top: 15%;
    right: 4%;
    margin: 0;
    color: #0c1d45;
    font-family: 'Segoe Print', 'Bradley Hand', cursive;
    font-size: clamp(22px, 2vw, 40px);
    font-style: italic;
    line-height: 1.22;
    text-align: center;
    transform: rotate(-12deg);
}

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

.prc-cta-inner {
    display: flex;
    width: min(100% - 64px, 1510px);
    min-height: inherit;
    flex-direction: column;
    justify-content: center;
    margin-inline: auto;
    padding: clamp(56px, 5vw, 96px) 0;
}

.prc-cta-copy {
    width: min(100%, 52%, 880px);
}

.prc-cta-eyebrow {
    margin: 0 0 clamp(22px, 1.8vw, 32px);
    color: #fff;
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 700;
    letter-spacing: .19em;
    line-height: 1.4;
    text-transform: uppercase;
}

.prc-cta-eyebrow::after {
    display: block;
    width: 64px;
    height: 4px;
    margin-top: clamp(12px, .9vw, 16px);
    border-radius: 2px;
    background: var(--amh-pink);
    content: '';
}

.prc-cta-title {
    margin: 0 0 clamp(16px, 1.3vw, 24px);
    color: #fff;
    font-size: clamp(34px, 3.3vw, 62px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.prc-cta-title > span {
    display: block;
}

.prc-cta-title-accent {
    color: #5eb3f5;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .prc-cta-title-accent {
        background: linear-gradient(180deg, #8fd0ff 0%, #5eb3f5 60%, #3f9ef0 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

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

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

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

.amh-button.prc-cta-button-light:hover,
.amh-button.prc-cta-button-light:focus-visible {
    background: #fff4f9;
    color: #d90063;
}

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

/* Wide screens: the heading lines as in the design. */
@media (min-width: 1181px) {
    .prc-cta-title > span {
        white-space: nowrap;
    }
}

/* Small laptops: the photo from its left edge, so the student keeps off the texts. */
@media (min-width: 1081px) and (max-width: 1180px) {
    .prc-cta-photo {
        object-position: 8% 40%;
    }
}

/* Tablets: a wider photo from its left edge, the texts keep the left half; the note out (no sky beside him). */
@media (max-width: 1080px) {
    .prc-cta-media {
        width: 58%;
    }

    .prc-cta-photo {
        object-position: 8% 40%;
    }

    .prc-cta-shade {
        background:
            linear-gradient(90deg, #00214c 0%, #032d63 40%, rgba(4, 47, 101, .82) 50%, rgba(4, 47, 101, .3) 62%, rgba(4, 47, 101, 0) 72%),
            linear-gradient(0deg, rgba(0, 27, 61, .35) 0%, rgba(0, 27, 61, 0) 22%);
    }

    .prc-cta-copy {
        width: min(100%, 50%);
    }

    .prc-cta-handwritten {
        display: none;
    }
}

/* Narrow tablets and phones: the texts first on navy, the photo under them. */
@media (max-width: 900px) {
    .prc-cta {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .prc-cta-inner {
        width: min(100% - 36px, 660px);
        min-height: 0;
        padding: 56px 0 30px;
    }

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

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

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

    .prc-cta-media::after {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, #012a5c 0%, rgba(1, 42, 92, 0) 24%);
        content: '';
    }

    .prc-cta-handwritten {
        z-index: 1;
        display: block;
        top: 20%;
        right: 4%;
        font-size: clamp(16px, 3.6vw, 24px);
    }

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

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

@media (min-width: 601px) and (max-width: 900px) {
    .prc-cta-actions {
        flex-direction: row;
    }

    .prc-cta-actions .amh-button {
        width: auto;
    }
}

/* The smallest phones: no room for the note beside the head. */
@media (max-width: 360px) {
    .prc-cta-handwritten {
        display: none;
    }
}
