/* =========================================================
   HERO SECTION — área de alto impacto visual
   Imagem otimizada (WebP + fallback JPG) e overlay p/ contraste
   ========================================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    isolation: isolate;
    background-color: #141414;
    background-image: image-set(
            url(../assets/images/content/hero-bg.webp) type("image/webp"),
            url(../assets/images/content/hero-bg-opt.jpg) type("image/jpeg"));
    background-image: -webkit-image-set(
            url(../assets/images/content/hero-bg.webp) type("image/webp"),
            url(../assets/images/content/hero-bg-opt.jpg) type("image/jpeg"));
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* Fallback para navegadores sem suporte a image-set */
@supports not (background-image: image-set(url(x) type("image/webp"))) {
    .hero {
        background-image: url(../assets/images/content/hero-bg-opt.jpg);
    }
}

/* Overlay para garantir contraste do texto (acessibilidade) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,
            rgba(15, 15, 15, 0.92) 0%,
            rgba(15, 15, 15, 0.72) 42%,
            rgba(15, 15, 15, 0.30) 100%);
}

.hero-inner {
    padding-top: calc(var(--header-h) + 8rem);
    padding-bottom: 6rem;
}

.hero-content {
    max-width: 760px;
}

.hero-eyebrow {
    font-family: var(--font-secondary);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: var(--fs-title);
    font-weight: var(--fw-bold);
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-title .hero-title-highlight {
    color: var(--color-primary);
}

.hero-description {
    max-width: 620px;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--color-white-70);
    margin-bottom: 2.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

/* Indicador discreto de rolagem */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white-55);
}

.hero-scroll .hero-scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(var(--color-primary), transparent);
    animation: heroScroll 2s var(--ease-out) infinite;
    transform-origin: top;
}

@keyframes heroScroll {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    40% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(1) translateY(46px);
        opacity: 0;
    }
}

/* ---- Responsivo ---- */
@media (max-width: 640px) {
    .hero {
        background-position: center;
    }

    .hero::before {
        background: linear-gradient(180deg,
                rgba(15, 15, 15, 0.78) 0%,
                rgba(15, 15, 15, 0.86) 100%);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 400px) {

    /* Evita quebras forçadas apertadas em telas muito pequenas */
    .hero-title br {
        display: none;
    }
}
