/* Video Hero Block */

.standard-page-without-masthead main:has(.vh:first-child) {
    padding-block-start: 0;
}

.vh {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Media layer */
.vh__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vh__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback images (Ken Burns) */
.vh__fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vh__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 5s ease-in-out;
}

.vh__slide--active {
    opacity: 1;
    transform: scale(1.05);
}

.vh__slide--gradient {
    background: linear-gradient(135deg, #1B2838 0%, #264583 50%, #0074BC 100%);
}

/* When video is playing, hide fallback */
.vh--has-video .vh__fallback {
    display: none;
}

.vh--no-video video {
    display: none;
}

/* Overlay styles */
.vh__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.vh__overlay--radial {
    background: radial-gradient(
        ellipse at center,
        rgba(27, 40, 56, 0.75) 0%,
        rgba(27, 40, 56, 0.6) 50%,
        rgba(27, 40, 56, 0.5) 100%
    );
}

.vh__overlay--linear {
    background: linear-gradient(
        135deg,
        rgba(27, 40, 56, 0.75) 0%,
        rgba(0, 116, 188, 0.35) 100%
    );
}

.vh__overlay--solid {
    background: rgba(27, 40, 56, 0.7);
}

/* Content */
.vh__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 48px 16px;
    margin: 0 auto;
    text-align: center;
}

.vh__descriptor {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.vh__headline {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: 24px;
}

.vh__highlight {
    color: #00ADE6;
}

.vh__body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Badges */
.vh__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.vh__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

.vh__badge-icon {
    font-size: 14px;
}

/* CTAs */
.vh__cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.vh__btn {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vh__btn--primary {
    padding: 16px 36px;
    font-size: 1rem;
    color: #FFFFFF;
    background: #0074BC;
}

.vh__btn--primary:hover {
    background: #264583;
    color: #FFFFFF;
    text-decoration: none;
}

.vh__btn--outline {
    padding: 14px 28px;
    font-size: 0.9375rem;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
}

.vh__btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
    text-decoration: none;
}

.vh__btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 116, 188, 0.4);
}

/* Scroll indicator */
.vh__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vh__scroll-dot {
    animation: vhScrollBounce 2s ease-in-out infinite;
}

@keyframes vhScrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* Mobile image (hidden on desktop, shown on mobile) */
.vh__mobile-image {
    display: none;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* === RESPONSIVE === */

@media (max-width: 639px) {
    .vh {
        height: auto;
        min-height: 480px;
        max-height: none;
    }

    .vh:has(.vh__mobile-image) .vh__media {
        display: none;
    }

    .vh__mobile-image {
        display: block;
    }

    .vh__headline {
        font-size: 2rem;
    }

    .vh__body {
        font-size: 1rem;
    }

    .vh__cta {
        flex-direction: column;
        align-items: center;
    }

    .vh__scroll {
        display: none;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .vh__content {
        padding: 64px 32px;
    }

    .vh__headline {
        font-size: 3.25rem;
    }
}

@media (min-width: 1024px) {
    .vh__content {
        padding: 96px 32px;
        max-width: 800px;
    }

    .vh__headline {
        font-size: 3.75rem;
    }
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
    .vh__scroll-dot {
        animation: none;
    }

    .vh__slide {
        opacity: 0;
        transform: none;
        transition: opacity 1.5s ease-in-out;
    }

    .vh__slide--active {
        opacity: 1;
        transform: none;
    }

    .vh__media video {
        display: none;
    }

    .vh__media {
        background: #1B2838;
    }

    .vh--has-video .vh__fallback {
        display: block;
    }
}
