/* ==========================================================================
   Hero — Seção principal com background image
   ========================================================================== */

.hero {
    position: relative;
    height: 663px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-engenharia-industrial.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border-bottom: 1px solid var(--color-bg-light);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        120px 100%,
        0 calc(100% - 97px)
    );
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero__text {
    max-width: 592px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__heading-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 18px;
    line-height: 170%;
    letter-spacing: -0.01em;
    color: var(--color-text-light);
}

.hero__line {
    display: inline-block;
    width: 71px;
    height: 0;
    border-top: 1px solid var(--color-primary);
    flex-shrink: 0;
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    color: var(--color-white);
}

.hero__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: var(--color-text-hero);
    max-width: 509px;
}

.hero__scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--scroll-btn-bg);
    border: var(--scroll-btn-border);
    backdrop-filter: var(--scroll-btn-blur);
    -webkit-backdrop-filter: var(--scroll-btn-blur);
    border-radius: 100px;
    color: var(--color-white);
    flex-shrink: 0;
    transition: background var(--transition-fast);
    z-index: 2;
}

.hero__scroll:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hero__scroll-arrow {
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-arrow--bottom {
    animation-delay: 0.3s;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.15;
    }
}

/* ===== Responsivo ===== */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 90vh;
    }

    .hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding-bottom: 48px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 40px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .hero__description {
        font-size: 16px;
    }

    .hero__line {
        width: 48px;
    }
}

@media (max-width: 480px) {
    .hero {
        clip-path: polygon(
            0 0,
            100% 0,
            100% 100%,
            60px 100%,
            0 calc(100% - 50px)
        );
    }

    .hero__title {
        font-size: 32px;
        line-height: 38px;
    }
}
