/**
 * Hero Banner
 * Mobile-first · Leafy Market light hero
 */

.hero-section.hero-homepage---block {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    background-color: var(--color-bg);
    overflow: hidden;
    padding: 40px 17px;
}

.hero-image__wrapper {
    position: relative;
    margin: var(--container-gutter) var(--container-gutter) 0;
    height: 330px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-surface);
}

.hero-image__wrapper .hero-image__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content__wrapper {
    display: flex;
    flex-direction: column;
    padding: 40px 0 0;
    position: relative;
}

.hero-content__wrapper .hero-image__icon {
    position: absolute;
    top: -75px;
    z-index: 2;
    width: 117px;
    height: 117px;
}

.hero-content__wrapper h1 {
    font-size: 28px;
    font-family: var(--entities-font);
    font-weight: var(--entities-font-weight);
    line-height: var(--line-height-heading);
    color: var(--color-title);
    margin: 0 0 16px;
}

.hero-content__wrapper h2 {
    font-size: var(--h2-font-size);
    font-family: var(--entities-font);
    font-weight: var(--entities-font-weight);
    line-height: var(--line-height-heading);
    color: var(--color-title);
    margin: 0;
}

.hero-content__wrapper p {
    font-size: var(--body-font-size);
    line-height: var(--line-height-body);
    color: var(--color-text-muted);
    margin: 0;
}

.metric-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    justify-content: flex-start;
}

.metric-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-pill);
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    width: auto;
    min-width: 0;
}

.metric-item:nth-child(3):last-child {
    width: auto;
}

.metric-title {
    font-weight: var(--font-weight-bold);
    font-size: var(--small-font-size);
    color: var(--color-primary);
    line-height: var(--line-height-heading);
    margin: 0;
}

.metric-description {
    font-size: var(--tiny-font-size);
    color: var(--color-text-muted);
    line-height: var(--line-height-tight);
    margin: 0;
}

@media (min-width: 768px) {
    .hero-image__wrapper {
        width: 50%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .hero-content__wrapper h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .metric-wrapper {
        gap: 12px;
        margin-top: 40px;
    }
}

@media (min-width: 1200px) {
    .hero-section.hero-homepage---block {
        flex-direction: row;
        align-items: stretch;
        min-height: 560px;
        padding: 0;
        background: linear-gradient(135deg, var(--green-97) 0%, var(--white) 45%, var(--white-95) 100%);
    }

    .hero-content__wrapper .hero-image__icon {
        top: 20%;
        right: -83px;
        width: 175px;
        height: 175px;
    }

    .hero-content__wrapper h1 {
        font-size: 52px;
        margin-bottom: 24px;
    }

    .hero-content__wrapper {
        flex: 0 0 50%;
        padding: 64px 48px 64px var(--container-gutter);
        justify-content: center;
        position: relative;
        z-index: 2;
    }

    .hero-image__wrapper .hero-image__media {
        object-position: right center;
    }

    .metric-wrapper {
        display: flex;
        flex-direction: row;
        gap: 12px;
        margin-top: 48px;
        justify-content: flex-start;
    }

    .metric-item {
        flex: 0 0 auto;
        padding: 12px 20px;
        text-align: left;
        width: auto;
    }
}
