/**
 * Estilos do Hero com Vídeo
 * Componente hero fullscreen com vídeo em background e animações de scroll
 * 
 * @package prevente
 */

/* Container principal do hero */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

/* Container do vídeo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Elemento de vídeo */
.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Vídeo do YouTube (iframe) */
.hero-video-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    min-width: 100vw;
    min-height: 100vh;
    border: none;
}

/* Overlay escuro sobre o vídeo (inicialmente transparente) */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.1s ease-out;
}

/* Container do conteúdo (texto) */
.hero-video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

/* Texto principal */
.hero-video-text {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    /* Fonte institucional/turismo - ajuste conforme necessário */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.1;
}

/* Spacer para controlar o scroll pin */
.hero-video-spacer {
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 0;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .hero-video-text {
        font-size: clamp(2rem, 15vw, 6rem);
        letter-spacing: 0.05em;
        padding: 0 1rem;
    }
    
    .hero-video-section {
        height: 100vh;
        height: 100dvh; /* Usa dynamic viewport height no mobile */
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 480px) {
    .hero-video-text {
        font-size: clamp(1.5rem, 18vw, 4rem);
    }
}

/* Melhorias de performance */
.hero-video-element {
    will-change: transform;
}

.hero-video-text {
    will-change: opacity, transform;
}

.hero-video-overlay {
    will-change: background-color;
}
