.hero-block {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 350px;
}

.hero--full {
    height: 100vh;
}

.hero--partial {
    height: 70vh;
}

/* Dark overlay between video and content */
.hero-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Image background */
.hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video background container */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-block .container {
    margin: 0;
}

/* Cover technique — keeps 16:9 iframe filling any container aspect ratio */
.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 76.25vw;     /* 9/16 of viewport width */
    min-height: 100%;
    min-width: 177.78vh; /* 16/9 of viewport height */
    transform: translate(-50%, -50%);
    border: 0;
}

/* Content sits above the overlay */
.hero-title,
.buttons-wrapper {
    position: relative;
    z-index: 2;
}

.hero-title strong {
    color: var(--color-yellow);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .hero--partial h1 {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .hero--partial h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 568px) {
    .hero-block {
        text-align: center;
    }
    .hero-title {
        max-width: 100%;
    }
    .buttons-wrapper {
        display: flex;
        justify-content: center;
    }

    .hero--full {
        height: 80vh;
    }
    .hero--partial h1 {
        font-size: 2rem;
    }
    .hero-video iframe {
    top: 50%;
}
}
