/* =============================================================================
   GP Video Hero
   ============================================================================= */

.gp-video-hero {
    position: relative;
    overflow: hidden;
    min-height: var(--gp-video-hero-min-height, 100vh);
}

.gp-video-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Poster / fallback image shown until video plays (or when video is absent) */
.gp-video-hero__poster {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gp-video-hero__video {
    z-index: 1;
}

/* Gradient overlay — sits above video, below future content */
.gp-video-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        var(--gp-overlay-0) 0%,
        var(--gp-overlay-1) 25%,
        var(--gp-overlay-2) 50%,
        var(--gp-overlay-3) 90%,
        var(--gp-overlay-4) 100%
    );
}

/* Content layer — above overlay */
.gp-video-hero__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Two-column inner layout */
.gp-video-hero__content-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex: 1;
    gap: 40px;
}

/* Logo — positioned within content-inner */
.gp-video-hero__logo {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.gp-video-hero__logo img {
    display: block;
    height: auto;
    pointer-events: auto;
}

.gp-video-hero__col {
    flex: 1 1 50%;
    min-width: 0;
}

.gp-video-hero__title,
.gp-video-hero__subtitle {
    margin: 0;
}

.gp-video-hero__msg-title {
    margin: 0;
}

.gp-video-hero__msg-body {
    margin: 0;
}

.gp-video-hero__button {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

/* -----------------------------------------------------------------------------
   Page-load entrance animation
   - Hidden by default in CSS (no flash).
   - JS adds `--visible` on load to trigger transitions.
   - Elementor editor override ensures content is always visible while editing.
   ----------------------------------------------------------------------------- */

.gp-video-hero__video,
.gp-video-hero__poster {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Logo fades in after video */
.gp-video-hero__logo {
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.6s;
}

/* Col 1 children stagger after video */
.gp-video-hero__col--content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gp-video-hero__col--content > *:nth-child(1) { transition-delay: 0.8s; }
.gp-video-hero__col--content > *:nth-child(2) { transition-delay: 1.0s; }
.gp-video-hero__col--content > *:nth-child(3) { transition-delay: 1.2s; }

/* Col 2 (message) fades in after col 1 */
.gp-video-hero__col--message {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: 1.4s;
}

/* Reveal state — added by JS */
.gp-video-hero--visible .gp-video-hero__video,
.gp-video-hero--visible .gp-video-hero__poster {
    opacity: 1;
}

.gp-video-hero--visible .gp-video-hero__logo {
    opacity: 1;
}

.gp-video-hero--visible .gp-video-hero__col--content > * {
    opacity: 1;
    transform: translateY(0);
}

.gp-video-hero--visible .gp-video-hero__col--message {
    opacity: 1;
    transform: translateY(0);
}

/* Elementor editor — always show content */
.elementor-editor-active .gp-video-hero__video,
.elementor-editor-active .gp-video-hero__poster,
.elementor-editor-active .gp-video-hero__logo,
.elementor-editor-active .gp-video-hero__col--content > *,
.elementor-editor-active .gp-video-hero__col--message {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Reduced motion — skip animation */
@media (prefers-reduced-motion: reduce) {
    .gp-video-hero__video,
    .gp-video-hero__poster,
    .gp-video-hero__logo,
    .gp-video-hero__col--content > *,
    .gp-video-hero__col--message {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive — stack columns on mobile */
@media (max-width: 767px) {
    .gp-video-hero__content-inner {
        flex-direction: column;
        gap: 24px;
    }
}
