/*
|--------------------------------------------------------------------------
| Full-bleed: remove Elementor's default gap around the widget
|--------------------------------------------------------------------------
*/

.elementor-widget-slt_hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.elementor-widget-slt_hero > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

/*
|--------------------------------------------------------------------------
| SLT Hero
|--------------------------------------------------------------------------
*/

.cew-slt-hero {
    position: relative;
    height: 600px;
    min-height: 480px;
    overflow: hidden;

    display: flex;
    align-items: center;
}

/*
|--------------------------------------------------------------------------
| Background
|--------------------------------------------------------------------------
*/

.cew-slt-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #2d6a4f;
}

.cew-slt-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* left-anchored brand scrim keeps the copy legible, fading to clear on the right */
.cew-slt-hero-overlay {
    --cew-scrim-from: rgba(45, 106, 79, 0.90);
    --cew-scrim-mid: rgba(45, 106, 79, 0.40);
    --cew-scrim-to: rgba(45, 106, 79, 0);

    position: absolute;
    inset: 0;

    background-image: linear-gradient(
        90deg,
        var(--cew-scrim-from) 0%,
        var(--cew-scrim-mid) 50%,
        var(--cew-scrim-to) 100%
    );
}

/*
|--------------------------------------------------------------------------
| Container
|--------------------------------------------------------------------------
*/

.cew-slt-hero-container {
    position: relative;
    z-index: 10;

    width: 100%;
    max-width: 1200px;
    margin: auto;

    padding-left: 48px;
    padding-right: 48px;
}

.cew-slt-hero-content {
    color: #ffffff;
}

.cew-slt-hero-content--left {
    max-width: 640px;
    text-align: left;
}

.cew-slt-hero-content--center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Badge
|--------------------------------------------------------------------------
*/

.cew-slt-hero-badge {
    display: inline-block;

    padding: 4px 16px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    background-color: #F4A261;
    color: #ffffff;

    margin-bottom: 24px;
}

/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.cew-slt-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;

    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);

    margin: 0 0 16px 0;
}

/*
|--------------------------------------------------------------------------
| Description
|--------------------------------------------------------------------------
*/

.cew-slt-hero-description {
    max-width: 640px;

    font-size: 18px;
    line-height: 30px;

    color: rgba(255, 255, 255, 0.90);
    margin: 0;
}

.cew-slt-hero-content--center .cew-slt-hero-description {
    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.cew-slt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.cew-slt-hero-content--center .cew-slt-hero-actions {
    justify-content: center;
}

.cew-slt-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 32px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;

    text-decoration: none;
    transition: all 0.3s ease;
}

.cew-slt-hero-btn--solid {
    background-color: #ffffff;
    color: #2D6A4F;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}

.cew-slt-hero-btn--solid:hover {
    background-color: #F4F1DE;
}

.cew-slt-hero-btn--outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cew-slt-hero-btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.10);
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .cew-slt-hero-title {
        font-size: 40px;
    }

}

@media (max-width: 768px) {

    .cew-slt-hero {
        min-height: 440px;
    }

    .cew-slt-hero-container {
        padding-left: 25px;
        padding-right: 25px;
    }

    /* the left scrim needs more cover once the panel narrows */
    .cew-slt-hero-overlay {
        --cew-scrim-mid: rgba(45, 106, 79, 0.70);
        --cew-scrim-to: rgba(45, 106, 79, 0.30);
    }

    .cew-slt-hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-slt-hero-description {
        font-size: 16px;
        line-height: 26px;
    }

    .cew-slt-hero-actions {
        flex-direction: column;
    }

    .cew-slt-hero-btn {
        width: 100%;
    }

}
