.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-color: #000;
    min-height: clamp(360px, 60vh, 488px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../images/hero-sustainability.png")  no-repeat; 
    background-size: cover;
    transform-origin: top left; 
    transform: scale(1.4);
    opacity: 1;
    animation: heroZoomOut 40s ease-out forwards;
    z-index: 1;
}

@keyframes heroZoomOut {
    0% { transform: scale(1.4); }
    5% { transform: scale(0.995); }
    100% { transform: scale(1); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(300px);
    animation: heroTextIntro 1.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    animation-delay: 1s;
    padding-top: 50px;
    gap: 40px;
}

@keyframes heroTextIntro {
    0% {
        opacity: 0;
        transform: translateY(300px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    text-align: center;
    font-family: var(--font1);
    font-weight: var(--semi-bold);
    letter-spacing: 2%;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.hero p {
    font-family: var(--font2);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero .cta {
    border: 2px solid var(--white);
    border-radius: 40px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--font1);
    font-size: 2.08rem;     
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.8rem;   
    padding: 13px 40px;
    max-width: 460px;
}

@media (max-width: 860px) {
    .hero h1 {
        font-size: 3.68rem;  
    }
    .hero p {
        font-size: 1.6rem;  
    }
    .hero .cta {
        font-size: 1.6rem;   
        max-width: 370px;
    }
}

@media (max-width: 580px) {
    .hero .cta {
        font-size: 1.6rem;   
        max-width: 370px;
    }
    .hero-content {
        padding: 50px 0px 50px 20px;
        margin: 35px 40px;
    }
    .hero::before {
        background-position-x: 50%;
    }
}
