/* ==========================================================
   REUSABLE FUNNEL COMPONENT
   Layout is controlled by FunnelModel.Layout:
   - text
   - text-image
   ========================================================== */

.funnel-section {
    --funnel-heading: "Cormorant Garamond", Georgia, serif;
    --funnel-body: Arial, Helvetica, sans-serif;
    --funnel-text: #29262a;
    --funnel-body-text: #656167;
    --funnel-gold: #b18425;
    --funnel-cream: #f7f2ed;
    --funnel-purple: #6b3fa0;
    --funnel-purple-dark: #59358a;
    --funnel-border: #ebe5e9;

    width: 100%;
    box-sizing: border-box;
    padding: 88px 22px;
    background: var(--funnel-cream);
    color: var(--funnel-text);
}

.funnel-section__container {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.funnel-section__content--text {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: center;
}

.funnel-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 56px;
    align-items: center;
}

.funnel-section__grid--image-left {
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1fr);
}

.funnel-section__content {
    min-width: 0;
}

.funnel-section__image-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(35, 25, 35, .09);
}

.funnel-section__image {
    display: block;
    width: 100%;
    height: auto;
}

.funnel-section__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--funnel-gold);
    font-family: var(--funnel-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1.5;
    text-transform: uppercase;
}

.funnel-section__heading {
    margin: 0;
    font-family: var(--funnel-heading);
    color: var(--funnel-text);
    font-size: clamp(40px, 5vw, 58px);
    font-weight: 500;
    line-height: 1.06;
}

.funnel-section__description {
    max-width: 680px;
    margin: 20px auto 0;
    color: var(--funnel-body-text);
    font-family: var(--funnel-body);
    font-size: 15px;
    line-height: 1.8;
}

.funnel-section--image .funnel-section__description {
    margin-left: 0;
    margin-right: 0;
}

.funnel-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 215px;
    min-height: 50px;
    margin-top: 24px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--funnel-purple);
    color: #ffffff;
    font-family: var(--funnel-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.funnel-section__button:hover,
.funnel-section__button:focus-visible {
    background: var(--funnel-purple-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 11px 24px rgba(107, 63, 160, .2);
}

@media (max-width: 900px) {
    .funnel-section {
        padding: 72px 20px;
    }

    .funnel-section__grid,
    .funnel-section__grid--image-left {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .funnel-section__image-wrap {
        max-width: 760px;
        margin: 0 auto;
    }

    .funnel-section--image .funnel-section__content {
        text-align: center;
        order: 2;
    }

    .funnel-section--image .funnel-section__description {
        margin-left: auto;
        margin-right: auto;
    }

    .funnel-section__grid--image-left .funnel-section__image-wrap {
        order: 1;
    }
}

@media (max-width: 768px) {
    .funnel-section {
        padding: 60px 14px;
    }

    .funnel-section__heading {
        font-size: 40px;
    }

    .funnel-section__description {
        font-size: 14px;
    }

    .funnel-section__button {
        width: 100%;
        min-width: 0;
    }

    .funnel-section__image-wrap {
        border-radius: 18px;
    }
}
