/* How it works page, second section (template-parts/hiw/path.php, docs/sections/hiw/hiw-one-clear-path.png). Fonts
   and --amh-* colours: home-hero.css (body .amerlink-genesis-home). */

.hiw-path {
    padding: clamp(56px, 5vw, 96px) 0;
    background: linear-gradient(180deg, #f1f7fd 0%, #e7f1fc 100%);
    color: #33446a;
}

.hiw-path-inner {
    width: min(100% - 64px, 1510px);
    margin-inline: auto;
}

.hiw-path-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(24px, 2.4vw, 40px);
}

.hiw-path-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.hiw-path-eyebrow {
    margin: 0 0 clamp(8px, .7vw, 12px);
    color: var(--amh-pink);
    font-size: clamp(13px, 1vw, 17px);
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hiw-path-title {
    margin: 0;
    padding: 0;
    color: var(--amh-navy);
    font-family: inherit;
    font-size: clamp(30px, 2.6vw, 50px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.hiw-path-intro {
    flex: 0 1 400px;
    margin: 0;
    font-size: clamp(15px, 1.1vw, 19px);
    line-height: 1.5;
}

.hiw-path-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.4vw, 24px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hiw-path-step {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(1, 33, 106, .08);
}

/* Texts on the left, the photo on the right fading into the card under them. */
.hiw-path-main {
    position: relative;
    flex: 1 1 auto;
    min-height: clamp(200px, 15vw, 250px);
    padding: clamp(18px, 1.4vw, 24px) clamp(18px, 1.5vw, 26px) 14px;
}

.hiw-path-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
}

.hiw-path-copy {
    position: relative;
    max-width: 60%;
}

.hiw-path-marks {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.hiw-path-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--amh-pink);
    box-shadow: 0 6px 14px rgba(245, 0, 114, .25);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.hiw-path-icon {
    width: 38px;
    height: 38px;
    color: var(--amh-navy);
}

.hiw-path-step-title {
    margin: 0 0 8px;
    padding: 0;
    color: var(--amh-navy);
    font-family: inherit;
    font-size: clamp(17px, 1.25vw, 22px);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.2;
}

.hiw-path-step-text {
    margin: 0;
    font-size: clamp(14px, .98vw, 16px);
    line-height: 1.45;
}

.hiw-path-outcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 10px 10px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff0f5;
    color: #33446a;
    font-size: clamp(14px, .98vw, 16px);
    line-height: 1.4;
    text-decoration: none;
    transition: background-color .2s ease;
}

.hiw-path-outcome strong {
    color: var(--amh-pink);
    font-weight: 700;
}

.hiw-path-arrow {
    flex: 0 0 auto;
    color: var(--amh-pink);
    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    transition: translate .2s ease;
}

a.hiw-path-outcome:hover,
a.hiw-path-outcome:focus-visible {
    background: #ffe3ee;
    color: #33446a;
}

a.hiw-path-outcome:hover .hiw-path-arrow,
a.hiw-path-outcome:focus-visible .hiw-path-arrow {
    translate: 4px 0;
}

a.hiw-path-outcome:focus-visible {
    outline: 3px solid var(--amh-blue);
    outline-offset: 2px;
}

/* Tablets and small laptops: two columns, the heading above the text beside it. */
@media (max-width: 1180px) {
    .hiw-path-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hiw-path-intro {
        flex-basis: auto;
        max-width: 640px;
    }

    .hiw-path-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones: one column, the photo as a strip over the texts. */
@media (max-width: 600px) {
    .hiw-path-inner {
        width: min(100% - 36px, 660px);
    }

    .hiw-path-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .hiw-path-main {
        display: flex;
        min-height: 0;
        flex-direction: column;
        padding: 0;
    }

    .hiw-path-photo {
        position: relative;
        width: 100%;
        height: 170px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hiw-path-copy {
        max-width: none;
        padding: 18px 18px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hiw-path-outcome,
    .hiw-path-arrow {
        transition: none;
    }
}
