/* ==========================================================================
   HERO SECTION STYLES
   ==========================================================================
   Estilos para a seção hero da página inicial
*/

/* ANIMAÇÃO PARA O VÍDEO (Removida - vídeo deve aparecer imediatamente) */

/* --- ESTRUTURA GERAL --- */
.hero-universal-wrapper {
    position: relative !important;
    min-height: 100vh !important; /* Altura total da viewport */
    height: 100vh !important; /* Altura exata */
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: var(--header-height, 85px) !important; /* Inicia após o header */
    scroll-snap-align: center !important; /* Scroll snap */
    scroll-snap-stop: always !important;
    display: block !important;
}

/* -------------------------------------------
   ESTILOS OPTION 1 (CINEMATIC) + V2 THEMES (5-8)
   ------------------------------------------- */
.hero-universal-wrapper.option1, 
.hero-universal-wrapper.default,
.hero-universal-wrapper.option5,
.hero-universal-wrapper.option6,
.hero-universal-wrapper.option7,
.hero-universal-wrapper.option8 {
    background-color: #000;
    color: #fff;
}

.hero-video-container {
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    z-index: 0 !important;
    background-color: #000; /* Fallback de segurança */
    /* GARANTIR VISIBILIDADE DO CONTAINER */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    overflow: hidden !important;
}
.hero-video,
#heroVideo {
    width: 100% !important; 
    height: 100% !important; 
    min-height: 100% !important;
    object-fit: cover !important;
    /* GARANTIR VISIBILIDADE ABSOLUTA - PRIORIDADE MÁXIMA */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    /* Remover qualquer animação que possa esconder */
    animation: none !important;
    /* Otimizações de performance e fluidez máxima */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    /* Garantir loop infinito e sem controles - APLICADO EM TODAS AS PÁGINAS */
    pointer-events: none;
    /* Cache e pré-carregamento agressivo */
    preload: auto;
    /* Otimizações de renderização para fluidez */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Forçar aceleração GPU */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    /* Prevenir flickering */
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

/* Garantir que vídeo hero nunca mostre controles (regra global para todas as páginas) */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#heroVideo::-webkit-media-controls,
#heroVideo::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
}
.hero-overlay-cinema {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Escurece vídeo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

/* Container do texto - Centralizado sobre o vídeo */
.hero-universal-wrapper .container.position-relative {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none; /* Permite clicar através do container para os botões */
}

.hero-universal-wrapper .container.position-relative * {
    pointer-events: auto; /* Reativa interação nos elementos filhos */
}

.hero-pre-tag {
    display: block; text-transform: uppercase; letter-spacing: 4px;
    font-size: 0.9rem; margin-bottom: 20px; opacity: 0.9; font-family: 'Open Sans', sans-serif;
}
.hero-title-cinema {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700; line-height: 1.1; margin-bottom: 25px;
}
.hero-subtitle-cinema {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem; font-weight: 300; opacity: 0.9;
    max-width: 800px; margin: 0 auto;
}

.btn-hero-cinema {
    background: #fff; color: #000; padding: 15px 35px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 0.85rem;
    border: 2px solid #fff; transition: 0.3s; text-decoration: none;
}
.btn-hero-cinema:hover { background: transparent; color: #fff; }

.btn-hero-cinema-outline {
    background: transparent; color: #fff; padding: 15px 35px;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 0.85rem;
    border: 2px solid rgba(255,255,255,0.5); transition: 0.3s; text-decoration: none;
}
.btn-hero-cinema-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Scroll Mouse - Indicador de scroll abaixo dos botões */
.scroll-indicator {
    position: relative; /* Relativo ao container do texto */
    display: inline-block;
    width: 30px; 
    height: 50px; 
    border: 2px solid rgba(255, 255, 255, 0.8); /* Mesma cor do texto (branco) com opacidade */
    border-radius: 20px; 
    z-index: 5;
    margin: 0 auto;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(5px);
}

.mouse-wheel {
    display: block; 
    width: 4px; 
    height: 8px; 
    background: #fff; /* Mesma cor do texto */
    margin: 8px auto; 
    border-radius: 4px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* -------------------------------------------
   ESTILOS OPTION 3 (BOUTIQUE)
   ------------------------------------------- */
.hero-universal-wrapper.option3 {
    background-color: #F9F7F2; /* Creme */
    color: #2C2C2C;
}
/* Dark Mode Override para Boutique */
body.dark-mode .hero-universal-wrapper.option3,
[data-theme="dark"] .hero-universal-wrapper.option3 {
    background-color: #1a1a1a; color: #F9F7F2;
}

.boutique-texture {
    position: absolute; inset: 0; opacity: 0.05;
        /* background-image: url('/static/images/banners/texture_bg.png'); */ /* Arquivo não existe, removido */
    pointer-events: none;
}
.boutique-circle {
    position: absolute; right: -10%; top: 20%;
    width: 60vh; height: 60vh;
    border: 1px solid #D4AF37; border-radius: 50%;
    opacity: 0.2; pointer-events: none;
}

.hero-title-boutique {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    color: inherit; line-height: 1.15; margin-bottom: 25px;
}
.hero-subtitle-boutique {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem; color: inherit; opacity: 0.7;
    line-height: 1.8; max-width: 550px;
}
.hero-decor-line {
    width: 70px; height: 3px; background-color: #D4AF37;
}

.btn-hero-boutique {
    display: inline-flex; align-items: center;
    background: transparent; color: inherit;
    border: 1px solid currentColor;
    padding: 14px 30px; text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; font-weight: 600; text-decoration: none;
    transition: 0.4s;
}
.btn-hero-boutique:hover {
    background: #D4AF37; border-color: #D4AF37; color: #fff;
}

.hero-person-img {
    max-height: 85vh; width: auto;
    filter: drop-shadow(10px 10px 30px rgba(0,0,0,0.1));
    position: relative; z-index: 2;
    /* Alinhamento base */
    mask-image: linear-gradient(to top, transparent 0%, black 10%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 10%);
}

/* -------------------------------------------
   ESTILOS OPTION 4 (TECH)
   ------------------------------------------- */
.hero-universal-wrapper.option4 {
    background-color: #0f172a; /* Slate 900 */
    color: #fff;
}

.hero-grid-bg {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}
.hero-glow-spot {
    position: absolute; top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(185,32,39,0.15), transparent 70%);
    pointer-events: none;
}

.tech-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    font-size: 0.8rem; font-family: 'Montserrat', sans-serif; text-transform: uppercase;
}
.pulse-dot {
    width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.hero-title-tech {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.text-gradient-tech {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-subtitle-tech {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem; color: #94a3b8; max-width: 600px; line-height: 1.6;
}

.btn-hero-tech {
    background: var(--prm-accent-red, #b92027); color: #fff;
    padding: 16px 40px; border-radius: 50px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(185,32,39,0.4); text-decoration: none;
    transition: 0.3s;
}
.btn-hero-tech:hover {
    background: #fff; color: #000; box-shadow: 0 0 30px rgba(255,255,255,0.5);
}

.btn-hero-tech-ghost {
    background: transparent; color: #fff;
    padding: 16px 40px; border-radius: 50px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.2); text-decoration: none;
    transition: 0.3s;
}
.btn-hero-tech-ghost:hover {
    border-color: #fff; background: rgba(255,255,255,0.05);
}

/* RESPONSIVIDADE */
@media (max-width: 991px) {
    .hero-universal-wrapper { 
        min-height: calc(100vh - var(--header-height, 65px)) !important;
        height: calc(100vh - var(--header-height, 65px)) !important;
        margin-top: var(--header-height, 65px) !important;
        padding-bottom: 0 !important;
    }
    .hero-title-cinema, .hero-title-boutique, .hero-title-tech { font-size: 2.5rem; }
    
    /* Ajuste Boutique Mobile */
    .hero-universal-wrapper.option3 { text-align: center; }
    .hero-person-img { max-height: 50vh; margin-top: 30px; }
    .hero-decor-line { margin: 0 auto 20px; }
}

