/* =========================================================
   EVERLASTING VESSELS
   Be Part of the Change CTA
   ========================================================= */

.change-cta {
    --change-background: #ffffff;
    --change-heading: #5f2291;
    --change-text: #4a4050;
    --change-accent: #c6f135;
    --change-icon: #5f2291;
    --change-icon-background: #f1e7f8;
    --change-card-border: #e8e0ed;
    --change-link: #5f2291;

    position: relative;
    z-index: 4;
    padding-bottom: clamp(4rem, 7vw, 6rem);
    background: var(--change-background);
}

/* =========================================================
   Container / overlap
   ========================================================= */

.change-cta__container {
    position: relative;
    z-index: 5;

    /*
       Creates the overlapping card effect without
       removing the section from normal document flow.
    */
    margin-top: -5rem;
}

.change-cta__card {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 20rem;
    grid-template-columns:
        minmax(18rem, 0.9fr)
        minmax(0, 1.4fr);
    border: 1px solid var(--change-card-border);
    border-radius: 1.5rem;
    background: var(--change-background);
    box-shadow:
        0 1.5rem 3.5rem
        rgb(38 17 49 / 12%);
}

/* =========================================================
   Image
   ========================================================= */

.change-cta__media {
    position: relative;
    min-height: 20rem;
    overflow: hidden;
}

.change-cta__image-wrap {
    position: absolute;
    inset: 0;
}

/*
   Paintbrush-style blend into the content side.
*/
.change-cta__image-wrap::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 64%,
            rgb(255 255 255 / 25%) 76%,
            rgb(255 255 255 / 84%) 91%,
            #ffffff 100%
        );
    content: "";
    pointer-events: none;
}

.change-cta__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*
   Irregular paint edge.
*/
.change-cta__media::after {
    position: absolute;
    top: -4%;
    right: -1.5rem;
    z-index: 2;
    width: 4rem;
    height: 108%;
    background:
        repeating-linear-gradient(
            174deg,
            transparent 0 0.6rem,
            rgb(255 255 255 / 96%) 0.7rem 1.2rem,
            transparent 1.3rem 1.8rem
        );
    content: "";
    opacity: 0.75;
    pointer-events: none;
    transform: skewX(-4deg);
}

/* =========================================================
   Content
   ========================================================= */

.change-cta__content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding:
        clamp(2rem, 5vw, 3.5rem)
        clamp(1.5rem, 5vw, 4rem);
}

.change-cta__heading {
    max-width: 14ch;
    margin-bottom: 0.65rem;
    color: var(--change-heading);
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.change-cta__accent-line {
    width: 3.5rem;
    height: 0.22rem;
    margin-bottom: 1.1rem;
    border-radius: 999px;
    background: var(--change-accent);
}

.change-cta__text {
    max-width: 38rem;
    margin-bottom: 2rem;
    color: var(--change-text);
    font-size: 1rem;
    line-height: 1.65;
}

/* =========================================================
   CTA items
   ========================================================= */

.change-cta__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.change-cta-item {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-direction: column;
    padding: 0.85rem 0.65rem;
    border-radius: 0.85rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.change-cta-item__icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    background: var(--change-icon-background);
    color: var(--change-icon);
    font-size: 1.65rem;
}

.change-cta-item__body {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.change-cta-item__title {
    margin-bottom: 0.2rem;
    color: var(--change-link);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.change-cta-item__text {
    color: var(--change-text);
    font-size: 0.77rem;
    line-height: 1.35;
}

.change-cta-item__arrow {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--change-accent);
    color: #2a1731;
    font-size: 0.7rem;
    transition: transform 180ms ease;
}

/* =========================================================
   Hover
   ========================================================= */

@media (hover: hover) {
    .change-cta-item:hover {
        background: #faf7fc;
        box-shadow:
            0 0.75rem 1.75rem
            rgb(47 20 64 / 8%);
        transform: translateY(-0.25rem);
    }

    .change-cta-item:hover .change-cta-item__arrow {
        transform: translateX(0.2rem);
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 63.9375rem) {
    .change-cta__container {
        margin-top: -3.5rem;
    }

    .change-cta__card {
        grid-template-columns: 1fr;
    }

    /*
       Image displays first.
    */
    .change-cta__media {
        min-height: 24rem;
    }

    .change-cta__image-wrap::after {
        background:
            linear-gradient(
                180deg,
                transparent 0%,
                transparent 65%,
                rgb(255 255 255 / 42%) 82%,
                #ffffff 100%
            );
    }

    .change-cta__media::after {
        top: auto;
        right: 0;
        bottom: -1rem;
        width: 100%;
        height: 3.5rem;
        background:
            repeating-linear-gradient(
                3deg,
                transparent 0 0.6rem,
                rgb(255 255 255 / 96%) 0.7rem 1.2rem,
                transparent 1.3rem 1.8rem
            );
        transform: none;
    }

    .change-cta__content {
        padding-top: 1.5rem;
    }

    .change-cta__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 35rem) {
    .change-cta {
        padding-bottom: 3.5rem;
    }

    .change-cta__container {
        width: 100%;
        padding-inline: 1rem;
        margin-top: -2.25rem;
    }

    .change-cta__card {
        border-radius: 1.15rem;
    }

    .change-cta__media {
        min-height: 19rem;
    }

    .change-cta__content {
        padding: 1.5rem 1.15rem 1.75rem;
    }

    .change-cta__heading {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .change-cta__text {
        margin-bottom: 1.4rem;
        font-size: 0.96rem;
    }

    /*
       Each CTA stacks vertically.
    */
    .change-cta__actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .change-cta-item {
        display: grid;
        align-items: center;
        grid-template-columns: 3.5rem minmax(0, 1fr) 2rem;
        padding: 0.8rem;
        border: 1px solid var(--change-card-border);
        text-align: left;
    }

    .change-cta-item__icon {
        width: 3.25rem;
        height: 3.25rem;
        margin: 0;
        font-size: 1.4rem;
    }

    .change-cta-item__body {
        align-items: flex-start;
        padding-inline: 0.8rem;
    }

    .change-cta-item__text {
        font-size: 0.78rem;
    }

    .change-cta-item__arrow {
        width: 1.8rem;
        height: 1.8rem;
        margin: 0;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .change-cta-item,
    .change-cta-item__arrow {
        transition: none;
    }
}