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

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

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

/*
|--------------------------------------------------------------------------
| GFL Hero
|--------------------------------------------------------------------------
*/

.cew-gfl-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* the scrim darkens the top for legibility, then dissolves into the page below */
.cew-gfl-hero-overlay {
    --cew-scrim-top: rgba(0, 0, 0, 0.40);
    --cew-scrim-mid: rgba(0, 0, 0, 0.20);
    --cew-scrim-bottom: #f9f9f8;

    position: absolute;
    inset: 0;

    background-image: linear-gradient(
        180deg,
        var(--cew-scrim-top) 0%,
        var(--cew-scrim-mid) 50%,
        var(--cew-scrim-bottom) 100%
    );
}

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

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

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

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

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

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

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

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

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

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

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

    background-color: #b1f0ce;
    color: #0e5138;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

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

.cew-gfl-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 24px 0;
}

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

.cew-gfl-hero-description {
    max-width: 672px;

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

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

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

/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

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

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

.cew-gfl-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

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

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

    text-decoration: none;
    background-color: #2D6A4F;
    color: #ffffff;

    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.20);
    transition: all 0.3s ease;
}

.cew-gfl-hero-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.cew-gfl-hero-btn .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

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

@media (max-width: 1024px) {

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

}

@media (max-width: 768px) {

    .cew-gfl-hero {
        min-height: 480px;
    }

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

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

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

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

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

}
