/* Homepage hero overlay & CTA blocks */

.hero {
    position: relative;
    max-height: 700px;
    overflow: hidden;
}

.hero .hero-video video {
    width: 100%;
    max-height: 700px;
    height: 700px;
    object-fit: cover;
    display: block;
}

.hero .hero-video--embed {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 700px;
    max-height: 700px;
    overflow: hidden;
}

.hero .hero-video--embed iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%) scale(1.35);
    border: 0;
    pointer-events: none;
}

/* Prefer container-relative sizing when cqw/cqh are supported. */
@supports (width: 1cqw) {
    .hero .hero-video--embed {
        container-type: size;
    }

    .hero .hero-video--embed iframe {
        width: max(100cqw, calc(100cqh * 16 / 9));
        height: max(100cqh, calc(100cqw * 9 / 16));
        min-width: 0;
        min-height: 0;
        transform: translate(-50%, -50%);
    }
}

.hero .hero-video-shield {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 2;
    padding: 40px 15px;
}

.home-hero-content h1 {
    font-weight: 600;
    margin-bottom: 20px;
}

.home-hero-text {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.home-hero-text p {
    color: var(--white);
    margin-bottom: 15px;
}

.home-hero-text p:last-child {
    margin-bottom: 0;
}

.home-hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: var(--mblue);
    color: var(--white);
    border-radius: 40px;
    font-size: 21px;
    font-weight: 500;
    transition: 0.3s all ease;
}

.home-hero-btn:hover {
    background-color: var(--extrabluehover);
    color: var(--white);
}

.home-cta-section {
    padding: 25px 0 50px;
}

.home-cta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.home-cta-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 280px;
    background-color: var(--darkpink);
    color: var(--white);
    border-radius: 50px;
    padding: 40px;
    transition: 0.3s all ease;
    text-decoration: none;
}

a.home-cta-block:hover {
    background-color: var(--darkpinkhover);
    color: var(--white);
}

.home-cta-block h3 {
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.home-cta-block p {
    flex: 1;
    color: var(--white);
    margin-bottom: 25px;
}

.home-cta-link {
    align-self: flex-end;
    color: var(--white);
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    .home-hero-overlay {
        padding: 30px 15px;
    }

    .home-hero-content h1 {
        font-size: 32px;
    }

    .home-cta-grid {
        gap: 15px;
    }

    .home-cta-block {
        flex: 1 1 100%;
        border-radius: 15px;
        padding: 30px;
    }
}