/* ==========================================================
   hero.css — Hero section
   Full-width background image with overlay, text and CTA.
   ========================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50vh;
    overflow: hidden;
}

/* --------------------------------------------------------
   Background image
   -------------------------------------------------------- */
.hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--color-primary);
}

.hero__image picture {
    display: contents;
}

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

/* --------------------------------------------------------
   Dark overlay for text readability
   -------------------------------------------------------- */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to bottom,
            var(--color-overlay-dark),
            var(--color-overlay)
    );
}

/* --------------------------------------------------------
   Content (text + CTA)
   -------------------------------------------------------- */
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    padding-block: var(--space-3xl);
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    color: var(--color-white-soft);
    font-size: var(--font-size-body);
    margin-bottom: var(--space-xl);
    max-width: 36rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* --------------------------------------------------------
   Desktop: More height
   -------------------------------------------------------- */
@media (min-width: 48rem) {
    .hero {
        min-height: 70vh;
    }
}