/* =========================================
   SANTIS VIDEO HERO SYSTEM v1.0
   Features: Fullscreen video, Responsive, Mobile fallback
   ========================================= */

/* --- 1. VIDEO HERO CONTAINER --- */
.nv-hero-video {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

/* --- 2. VIDEO WRAPPER --- */
.nv-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nv-bg-video,
.nv-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.1);

    /* PHASE 6: CINEMATIC ZOOM */
    animation: cinematicZoom 20s ease-out forwards;
    transform-origin: center center;
}

@keyframes cinematicZoom {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* YouTube Embed Style */
.nv-yt-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.78vh;
    /* 16:9 aspect ratio */
    pointer-events: none;
    filter: brightness(0.6) saturate(1.1);
}

/* --- 3. OVERLAY LAYERS --- */
.nv-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(10, 12, 16, 0.3) 0%,
            rgba(10, 12, 16, 0.5) 50%,
            rgba(10, 12, 16, 0.8) 100%);
}

/* Grain texture overlay */
.nv-video-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
}

/* --- 4. CONTENT LAYER --- */
.nv-hero-video .nv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
}

.nv-hero-video .nv-kicker {
    color: var(--gold, #D4AF37);
    font-size: 13px;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    display: block;
}

.nv-hero-video .nv-hero-title {
    font-family: var(--font-editorial, 'Cormorant Garamond', serif);
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nv-hero-video .nv-hero-subtitle {
    font-size: 18px;
    color: var(--text-muted, #8b9bb4);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 5. SCROLL INDICATOR --- */
.nv-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.nv-scroll-indicator::after {
    content: "";
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* --- 6. MOBILE FALLBACK --- */
@media (max-width: 768px) {
    .nv-hero-video {
        height: 50vh;
        min-height: 350px;
    }

    /* Hide video on mobile, show poster */
    .nv-bg-video {
        display: none;
    }

    .nv-video-wrapper {
        background-size: cover;
        background-position: center;
    }

    /* Fallback: use poster as background */
    .nv-video-wrapper[data-poster] {
        background-image: var(--poster-image);
    }

    .nv-scroll-indicator {
        display: none;
    }
}

/* --- 7. PLAY/PAUSE BUTTON --- */
.nv-video-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nv-video-control:hover {
    border-color: var(--gold, #D4AF37);
    background: rgba(0, 0, 0, 0.6);
}

.nv-video-control svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- 8. REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
    .nv-bg-video {
        display: none;
    }

    .nv-video-wrapper {
        background-size: cover;
        background-position: center;
    }

    .nv-scroll-indicator {
        animation: none;
    }
}