@charset "utf-8";
/* CSS Document */

.hero-container .hero-wrapper {
    padding: 0;
    margin-bottom: 26px;
}

.hero {
    position: relative;
    padding: 40px 0px;
    min-height: 450px;
    max-width: 900px;
}

.hero > div {
    position: relative;
    top: 350px;
}

.hero h1 {
    margin: 0 0 0.5em;
    padding: 20px;
    color: var(--heading-color);
    font-weight: 300;
    font-size: var(--heading-font-size-ml);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero picture {
    position: absolute;
    z-index: -1;
    inset: 0;
    box-sizing: border-box;
}

.hero img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Desktop: Split layout - image left, text right */
@media (width >= 800px) {
    .hero {
        min-height: 410px;
        padding: 80px 32px 80px calc(50% + 32px);
    }

    .hero > div {
        top: 150px;
    }

    /* Image constrained to left half */
    .hero > p:first-child,
    .hero picture {
        width: 50%;
        right: auto;
    }

    /* Text content on right side with darker background */
    .hero h1 {
        margin: 0 0 0.5em;
        padding: 30px;
        font-size: var(--heading-font-size-l);
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 1) 100%
        );
    }

    .hero > p:not(:first-child) {
        padding: 30px;
        background: rgba(0, 0, 0, 0.95);
    }
}