/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            to right,
            var(--bg) 0%,
            var(--bg) 22%,
            rgba(247, 248, 251, .99) 30%,
            rgba(247, 248, 251, .96) 38%,
            rgba(247, 248, 251, .88) 46%,
            rgba(247, 248, 251, .72) 54%,
            rgba(247, 248, 251, .48) 62%,
            rgba(247, 248, 251, .24) 70%,
            rgba(247, 248, 251, .08) 78%,
            rgba(247, 248, 251, 0) 88%
        ),
        url("../img/morning.webp");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 540px;
    margin: 120px;
    padding: 120px 0 100px;
}

.section-label,
.project-type {
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    color: var(--navy);
    font-size: clamp(2.7rem, 15vw, 4rem);
    line-height: .92;
    letter-spacing: -.06em;
    margin-bottom: 28px;
}

.hero-eyebrow,
.hero-message {
    max-width: 480px;
    margin-bottom: 34px;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.3;
}

.hero-eyebrow {
    color: var(--red);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 768px) {
    .hero {
        max-height: 100vh;
        padding: 12px 0 0;
    }

    .hero::before {
        background:
            linear-gradient(
                to bottom,
                var(--bg) 0%,
                rgba(247, 248, 251, .98) 24%,
                rgba(247, 248, 251, .88) 40%,
                rgba(247, 248, 251, .50) 56%,
                rgba(247, 248, 251, .12) 72%,
                rgba(247, 248, 251, 0) 100%
            ),
            url("../img/morning.webp");
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }

    .hero-content {
        margin: 120px 0 0 20px;
        padding: 0 24px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 12vw, 4rem);
        line-height: .92;
        margin-bottom: 24px;
    }

    .hero-eyebrow,
    .hero-message {
        font-size: 1.1rem;
        font-weight: 400;
    }

    .hero-message {
        max-width: 320px;
        margin-top: 10px;
        margin-bottom: 18px;
        color: var(--navy);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-top: 10px;
        margin-bottom: 52vh;
    }

    .hero-actions .button {
        max-width: 120px;
        padding: 14px 32px;
        text-align: center;
    }

@media (max-width: 520px) {
    .hero h1 {
        font-size: clamp(2.7rem, 15vw, 4rem);
    }

    .hero-message {
        font-size: 1.25rem;
    }

    .button {
        width: 100%;
    }
}
