/*
|--------------------------------------------------------------------------
| GFL Bento Grid
|--------------------------------------------------------------------------
*/

.cew-gfl-bento {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f3f4f3;
}

.cew-gfl-bento-container {
    max-width: 1200px;
    margin: auto;
    padding-left: 48px;
    padding-right: 48px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-header {
    text-align: center;
    margin-bottom: 64px;
}

.cew-gfl-bento-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    color: #0f5238;
    margin: 0 0 16px 0;
}

.cew-gfl-bento-subheading {
    max-width: 672px;
    margin: 0 auto;

    font-size: 16px;
    line-height: 26px;
    color: #404943;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 24px;
}

/*
|--------------------------------------------------------------------------
| Tile — shared
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-tile {
    --cew-tile-bg: #ffffff;
    --cew-tile-fg: #0f5238;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    border-radius: 16px;
    border: 1px solid transparent;
}

.cew-gfl-bento-tile--bordered {
    border-color: rgba(191, 201, 193, 0.30);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cew-gfl-bento-tile-body {
    position: relative;
    z-index: 10;
}

.cew-gfl-bento-tile-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin: 0;
}

.cew-gfl-bento-tile-text {
    font-size: 14px;
    line-height: 22px;
    margin: 8px 0 0 0;
}

/*
|--------------------------------------------------------------------------
| Tile — image
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-tile--image {
    justify-content: flex-end;
    padding: 32px;
    background-color: #2d6a4f;
}

.cew-gfl-bento-tile-bg {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    transition: transform 0.7s ease;
}

.cew-gfl-bento-tile--image:hover .cew-gfl-bento-tile-bg {
    transform: scale(1.1);
}

.cew-gfl-bento-tile-scrim {
    position: absolute;
    inset: 0;

    background-image: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.80) 0%,
        rgba(0, 0, 0, 0.20) 50%,
        transparent 100%
    );
}

.cew-gfl-bento-tile--image .cew-gfl-bento-tile-title {
    font-size: 32px;
    line-height: 40px;
    color: #ffffff;
}

.cew-gfl-bento-tile--image .cew-gfl-bento-tile-text {
    max-width: 448px;
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.80);
}

/*
|--------------------------------------------------------------------------
| Tile — icon
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-tile--icon {
    justify-content: space-between;
    padding: 24px;

    background-color: var(--cew-tile-bg);
    color: var(--cew-tile-fg);
}

.cew-gfl-bento-tile-icon {
    font-size: 40px;
    line-height: 1;
    color: var(--cew-tile-fg);
}

.cew-gfl-bento-tile-icon--filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.cew-gfl-bento-tile--icon .cew-gfl-bento-tile-title {
    color: var(--cew-tile-fg);
}

.cew-gfl-bento-tile--icon .cew-gfl-bento-tile-text {
    color: var(--cew-tile-fg);
    opacity: 0.80;
}

/*
|--------------------------------------------------------------------------
| Tile — chips
|--------------------------------------------------------------------------
*/

.cew-gfl-bento-tile--chips {
    flex-direction: row;
    align-items: center;
    gap: 32px;

    padding: 32px;

    background-color: var(--cew-tile-bg);
    color: var(--cew-tile-fg);

    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cew-gfl-bento-tile--chips .cew-gfl-bento-tile-body {
    flex: 1;
}

.cew-gfl-bento-tile--chips .cew-gfl-bento-tile-title {
    color: var(--cew-tile-fg);
}

.cew-gfl-bento-tile--chips .cew-gfl-bento-tile-text {
    font-size: 16px;
    line-height: 26px;
    color: var(--cew-tile-fg);
    opacity: 0.80;
}

.cew-gfl-bento-chips {
    position: relative;
    z-index: 10;

    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cew-gfl-bento-chip {
    padding: 8px 16px;
    border-radius: 999px;

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

    background-color: rgba(255, 255, 255, 0.50);
    border: 1px solid currentColor;
    color: var(--cew-tile-fg);
}

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

@media (max-width: 1024px) {

    .cew-gfl-bento-tile--chips {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cew-gfl-bento-tile--image .cew-gfl-bento-tile-title {
        font-size: 26px;
        line-height: 34px;
    }

}

@media (max-width: 900px) {

    /* spans are set inline per tile, so the stack has to override them */
    .cew-gfl-bento-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto !important;
    }

    .cew-gfl-bento-tile {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: 260px;
    }

}

@media (max-width: 768px) {

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

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

    .cew-gfl-bento-header {
        margin-bottom: 40px;
    }

    .cew-gfl-bento-heading {
        font-size: 28px;
        line-height: 36px;
    }

    .cew-gfl-bento-tile--image,
    .cew-gfl-bento-tile--chips {
        padding: 24px;
    }

    .cew-gfl-bento-tile--image .cew-gfl-bento-tile-title {
        font-size: 24px;
        line-height: 32px;
    }

    .cew-gfl-bento-chip {
        font-size: 12px;
        padding: 6px 12px;
    }

}
