/* css/HeroStyle.css */

/* Container Pai - A barreira principal contra o "texto fantasma" */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: var(--primary-bg);
    overflow: hidden; /* Corta qualquer conteúdo que tente vazar */
    position: relative;
    width: 100%;
}

/* Container do Injetor JS */
#hero-container {
    width: 100%;
    position: relative;
    overflow: hidden; /* Segunda barreira de segurança */
    min-height: 500px;
}

.hero-swiper {
    padding: 20px 0 80px 0;
    overflow: visible !important; /* Permite ver as bordas dos slides vizinhos */
}

/* RESOLUÇÃO DO ERRO: 
   Forçamos todos os slides a ficarem invisíveis por padrão. 
   Somente o ativo e seus vizinhos imediatos aparecem.
*/
.swiper-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    pointer-events: none;
}

.swiper-slide-active,
.swiper-slide-next,
.swiper-slide-prev {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Estrutura do Card Principal */
.hero-card {
    position: relative;
    background-color: #050505; /* Preto absoluto para o fundo geral do slide */
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

/* Lado da Imagem */
.hero-image-wrapper {
    width: 60%; /* Mantido em 50% para divisão perfeita */
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s ease;
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

/* Efeito de Zoom no Slide Ativo */
.swiper-slide-active .hero-img {
    transform: scale(1.10);
}

/* Lado do Conteúdo (Apenas Texto) */
.hero-content {
    width: 40%; 
    padding: 60px;
    margin-left: 0; 
    z-index: 10;
    /* TESTE: Removido fundo, blur, bordas e border-radius para isolar apenas o texto */
    background: transparent; 
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
}

/* Tipografia e Animações de Entrada */
.hero-subtitle {
    display: block;
    font-size: clamp(0.75rem, 1vw + 0.2rem, 0.85rem); /* Ajuste fluido */
    letter-spacing: 4px;
    color: #FF0080; 
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem); 
    color: #fff;
    line-height: 1.1;
    margin-bottom: 35px;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease 0.4s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.6s;
}

/* Ativação das Animações */
.swiper-slide-active .hero-subtitle,
.swiper-slide-active .hero-title,
.swiper-slide-active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Botão Principal */
.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 128, 0.5);
}

/* Paginação Estilizada */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.2) !important;
    width: 12px;
    height: 12px;
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--accent-gradient) !important;
    width: 35px;
    border-radius: 12px;
}

/* Responsividade Intermediária (Nest Hub Max [1280px] e Laptops de 1366px) */
@media (max-width: 1366px) {
    .hero-image-wrapper {
        width: 45%; 
    }
    
    .hero-content {
        padding: 40px; 
        width: 55%; 
        margin-left: 0;
        background: transparent; /* Mantido transparente no teste */
        border: none;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 3.2vw, 2.3rem); 
        margin-bottom: 25px;
    }
    
    .btn-primary {
        padding: 15px 35px;
    }
}

/* Responsividade (Mobile e Tablet em Retrato) */
@media (max-width: 992px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-card {
        flex-direction: column;
        height: auto;
        border-radius: 24px;
    }
    
    .hero-image-wrapper {
        width: 100%;
        height: 300px;
    }
    
    .hero-content {
        width: 100%; 
        margin: 0; 
        padding: 40px 20px;
        text-align: center;
        background: transparent; /* Removido o fundo do box no mobile também */
        border: none;
        border-radius: 0;
    }
    
    .hero-subtitle {
        font-size: clamp(0.7rem, 3.5vw, 0.85rem);
        letter-spacing: 2px;
    }

    .hero-title { 
        font-size: clamp(1.5rem, 8vw, 2.2rem); 
    }
    
    .hero-img {
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    }
}