{% require_css %}
<style>
{% scope_css %}

@import url('https://fonts.googleapis.com/css2?family=League+Gothic&display=swap');

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
}

/* Dynamisk bildposition */
.hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.exsitec.se/hubfs/AO%20-%20ERP/Niklas%20Hero%20webp.webp');
    background-size: cover;
    background-position: clamp(70%, 82vw, 95%) center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1440px;
}

/* Dynamisk padding */
.hero__content__wrapper {
    text-align: left;
    padding-left: clamp(24px, 6vw, 120px);
    padding-right: 40px;
}

.hero__headline {
    font-family: 'League Gothic', sans-serif;
    text-transform: uppercase;
    line-height: 0.9;
}

.hero__headline span {
    display: inline-block;
    padding: 12px 24px;
}

.hero__headline--top {
    background: #7b4ce8;
    color: #fff;
    font-size: clamp(56px, 8vw, 120px);
}

.hero__headline--bottom {
    background: #d8cfff;
    color: #3c0086;
    font-size: clamp(64px, 9vw, 140px);
    margin-top: 12px;
}

.hero__cta {
    margin-top: clamp(20px, 3vw, 40px);
}

.hero__mobile-break {
    display: none;
}

/* Mobil */
@media (max-width: 767px) {

    .hero:before {
        background-image: url('https://www.exsitec.se/hubfs/AO%20-%20ERP/AI%20Niklas%20webp.webp');
        background-position: center top;
    }

    .hero__content {
        position: absolute;
        top: auto;
        bottom: 60px;
        left: 0;
        transform: none;
    }

    .hero__content__wrapper {
        text-align: center;
        padding: 0 20px;
    }

    .hero__headline--top {
        font-size: 44px;
        padding: 8px 12px;
    }

    .hero__headline--bottom {
        font-size: 52px;
        padding: 8px 12px;
    }

    .hero__cta {
        margin-top: 20px;
    }

    .hero__mobile-break {
        display: block;
    }
}

{% end_scope_css %}
</style>
{% end_require_css %}