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

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

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

/*
|--------------------------------------------------------------------------
| Split Hero
|--------------------------------------------------------------------------
*/

.cew-sh {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    min-height: 70vh;

    padding-top: 80px;
    padding-bottom: 80px;

    background-color: #f9f9f8;
}

.cew-sh--mesh {
    background-image:
        radial-gradient(at 0% 0%, rgba(45, 106, 79, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 162, 97, 0.05) 0px, transparent 50%);
}

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

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

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

.cew-sh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

/*
|--------------------------------------------------------------------------
| Text column
|--------------------------------------------------------------------------
*/

.cew-sh-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.cew-sh-badge {
    display: inline-block;

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

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    background-color: rgba(177, 240, 206, 0.20);
    color: #2D6A4F;
}

.cew-sh-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1A2F23;
    margin: 0;
}

.cew-sh-description {
    font-size: 18px;
    line-height: 1.7;
    color: #404943;
    max-width: 576px;
    margin: 0;
}

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

.cew-sh-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    border: 2px solid transparent;

    transition: all 0.3s ease;
}

.cew-sh-btn--primary {
    background-color: #2D6A4F;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10);
}

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

.cew-sh-btn--secondary {
    background-color: transparent;
    border-color: #2D6A4F;
    color: #2D6A4F;
}

.cew-sh-btn--secondary:hover {
    background-color: rgba(45, 106, 79, 0.05);
}

/*
|--------------------------------------------------------------------------
| Media column
|--------------------------------------------------------------------------
*/

.cew-sh-media {
    position: relative;
}

.cew-sh-image {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background-color: #e2e2e2;

    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.cew-sh-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.7s ease;
}

.cew-sh-image:hover img {
    transform: scale(1.05);
}

/*
|--------------------------------------------------------------------------
| Floating card
|--------------------------------------------------------------------------
*/

.cew-sh-float {
    position: absolute;
    bottom: -24px;
    left: -24px;

    max-width: 320px;

    display: flex;
    align-items: center;
    gap: 16px;

    background-color: #ffffff;
    padding: 24px;
    border-radius: 12px;

    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.10);
}

.cew-sh-float-icon {
    flex-shrink: 0;

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

    padding: 12px;
    border-radius: 999px;
    background-color: #b1f0ce;
}

.cew-sh-float-icon .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: 24px;
    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;

    color: #0f5238;
}

.cew-sh-float-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #1a1c1c;
    margin: 0;
}

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

@media (max-width: 900px) {

    .cew-sh-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;

        /* keep text first when "Image on Left" is on */
        direction: ltr !important;
    }

    .cew-sh-title {
        font-size: 36px;
    }

}

@media (max-width: 768px) {

    .cew-sh {
        padding-top: 56px;
        padding-bottom: 56px;
    }

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

    .cew-sh-title {
        font-size: 30px;
    }

    .cew-sh-description {
        font-size: 16px;
    }

    /* the negative offset overflows on small screens */
    .cew-sh-float {
        position: static;
        max-width: none;
        margin-top: 16px;
    }

    .cew-sh-btn {
        flex: 1 1 auto;
    }

}
