/*
 * Hero principal da Altéria
 */

.hero {
    --parallax-offset: 0px;

    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 100svh;
    overflow: hidden;
    background-color: var(--color-cream);
}

.hero::before {
    position: absolute;
    top: -15%;
    right: 0;
    bottom: -15%;
    left: 0;
    z-index: 0;
    background-image: url("../images/hero-banner.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translate3d(0, var(--parallax-offset), 0);
    will-change: transform;
    content: "";
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(
        calc(100% - 72px),
        var(--container-width)
    );
    margin-inline: auto;
    padding-top: clamp(180px, 42vh, 390px);
    text-align: left;
}

.hero__title {
    max-width: 780px;
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 4.2vw, 5.4rem);
    font-weight: 400;
    line-height: 0.98;
}

.hero__title span {
    color: var(--color-gold);
}

.hero__line {
    --line-width: 38px;

    width: var(--line-width);
    height: 1px;
    margin: 30px 0 22px;
    background-color: var(--color-gold);
}

.hero__description {
    margin-bottom: 30px;
    color: var(--color-navy);
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 20px);
    font-weight: 400;
    line-height: 1.5;
}

.hero__description strong {
    font-weight: 400;
}

.hero__button {
    min-width: 154px;
}

@media (min-width: 1600px) {
    .hero__content {
        width: min(
            calc(100% - 96px),
            1820px
        );
        padding-top: 43vh;
    }

    .hero__title {
        max-width: 900px;
        font-size: 5.2rem;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 760px;
    }

    .hero::before {
        background-position: 62% center;
    }

    .hero__content {
        width: calc(100% - 48px);
        padding-top: 180px;
    }

    .hero__title {
        max-width: 560px;
        font-size: clamp(3rem, 7vw, 4.5rem);
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 720px;
    }

    .hero::before {
        background-position: 65% center;
    }

    .hero__content {
        width: calc(100% - 40px);
        padding-top: 150px;
    }

    .hero__title {
        max-width: 390px;
        font-size: clamp(2.8rem, 12vw, 4rem);
    }

    .hero__description {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before {
        transform: none;
    }
}