/**
 * Matheson Hero Video Styles
 */

/* Break out of Divi container for full-bleed */
.et_pb_row:has(#hero-video) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.et_pb_section:has(#hero-video) {
    padding: 0 !important;
}

#hero-video,
#hero-video * {
    box-sizing: border-box;
}

#hero-video {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Background video */
#hero-video .hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* Dark overlay */
#hero-video .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(37, 40, 95, 0.55) 0%,
            rgba(37, 40, 95, 0.40) 40%,
            rgba(37, 40, 95, 0.65) 100%
        );
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* Soft blob shadow behind text content */
#hero-video .hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 170%;
    height: 190%;
    background: radial-gradient(
        ellipse at 40% 50%,
        rgba(37, 40, 95, 0.85) 0%,
        rgba(37, 40, 95, 0.55) 30%,
        rgba(37, 40, 95, 0.2) 60%,
        transparent 80%
    );
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    z-index: -1;
    filter: blur(30px);
    pointer-events: none;
}

/* Content */
#hero-video .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 80%;
    margin: 0 auto;
    padding: 0;
    /* Offset left-aligned within the 80% container */
    margin-right: auto;
    margin-left: max(10%, calc((100% - 1208px) / 2));
}

#hero-video .hero-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #B0C637;
    margin: 0 0 14px;
    padding: 0;
}

#hero-video .hero-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 82px;
    font-weight: 700;
    line-height: 1.0;
    text-transform: none;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0 0 24px;
    padding: 0;
}

#hero-video .hero-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 540px;
    margin: 0;
    padding: 0;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
    #hero-video {
        min-height: 75vh;
    }

    #hero-video .hero-content {
        margin-left: 10%;
    }

    #hero-video .hero-heading {
        font-size: 60px;
    }

    #hero-video .hero-subtext {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    #hero-video {
        min-height: 65vh;
    }

    #hero-video .hero-content {
        margin-left: 24px;
        margin-right: 24px;
        width: auto;
    }

    #hero-video .hero-heading {
        font-size: 44px;
    }

    #hero-video .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 3px;
    }

    #hero-video .hero-subtext {
        font-size: 15px;
    }
}
