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

.hero {
    position: relative;
    /* Sempre 80% da altura da tela (80vh), mas nunca acima de 800px (teto).
       Piso de 320px para janelas muito baixas.
       O mobile usa o min-height próprio na media query <=768px abaixo. */
    height: clamp(320px, 80vh, 800px);
    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%,
        var(--hero-clip-h) 100%,
        0 calc(100% - var(--hero-clip-v))
    );
}

@media(max-width: 768px){
    .hero {
        background-position: right;
    }
}

.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: clamp(440px, 30.8vw, 592px);
    display: flex;
    flex-direction: column;
    gap: var(--gap-content);
}

.hero__heading-group {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.42vw, 8px);
}

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: clamp(10px, 0.63vw, 12px);
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-label);
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--color-text-light);
}

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

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

.hero__description {
    font-family: var(--font-text);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--color-text-hero);
    max-width: clamp(400px, 26.5vw, 509px);
}

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

@media (max-width: 768px) {
    .hero {
        height: auto;
        /* Hero menor no mobile p/ as logos de clientes aparecerem
           junto na tela (antes era 90vh e empurrava tudo). */
        min-height: clamp(380px, 64vh, 540px);
    }

    .hero__content {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(20px, 4vw, 32px);
        padding-bottom: clamp(28px, 5vw, 48px);
    }
}
