/**
 * Block: Hero Banner
 * Full-width hero with background image and dark overlay.
 */

.hero-banner {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
}

/* Hide overlay when no background image (solid color backgrounds) */
.hero-banner:not([style*="background-image"]) .hero-banner__overlay {
    display: none;
}

.hero-banner__inner {
    position: relative;
    z-index: 2;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    max-width: var(--container-width);
}

.hero-banner__title {
    font-size: var(--font-size-xxxl);
    font-weight: var(--font-weight-regular);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero-banner__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-light);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    opacity: 0.9;
}

.hero-banner__actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* White background variant — dark text */
.hero-banner.bg-white {
    color: var(--color-dark);
}

.hero-banner.bg-white .hero-banner__title {
    color: var(--color-dark);
}

.hero-banner.bg-white .hero-banner__subtitle {
    color: #444;
    opacity: 1;
}

.hero-banner.bg-white .btn--outline-white {
    color: var(--color-dark);
    border-color: var(--color-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 55vh;
    }

    .hero-banner__content {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-banner__actions {
        flex-direction: column;
        align-items: center;
    }
}
