/* FOLHA DE ESTILOS DE BI */

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html { 
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif; 
    background: #fff;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 1. LADO DA IMAGEM (DESKTOP) */
.hero-section {
    flex: 0 0 50%;
    position: relative;
    background: #000; /* Fundo preto para o efeito P&B */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* A imagem como elemento real para controlar melhor a altura no mobile */
.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* No desktop ela cobre a metade */
    filter: grayscale(100%);
    transition: filter 0.8s ease;
    position: absolute;
    top: 0; left: 0;
}

.hero-section:hover img { filter: grayscale(0%); }

.headline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5vw; /* Escala com a tela */
    font-weight: 800;
    text-align: center;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    width: 85%;       /* Garante que não bata nas bordas */
    line-height: 1.2; /* Espaço vital entre as duas linhas */
    z-index: 2;
}
/* Estilo do Logo */
.logo-empresa {
    position: absolute;
    top: 30px;    /* Distância do topo */
    left: 40px;   /* Distância da esquerda */
    width: 10%; /* Ajuste o tamanho do seu logo aqui */
    height: auto;
    z-index: 10;  /* Garante que fique acima de tudo */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); /* Sombra suave no logo */
}

/* 2. LADO DO VÍDEO (DESKTOP) */
.content-section {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #9dc2db 0%, #ffffff 100%);
    display: flex;
    flex-direction: column; /* Coloca frase e vídeo em linha vertical */
    align-items: center;    /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente no conjunto */
    padding: 40px;
}

/* Estilo da Frase no lado do Vídeo */
.frase-video {
    color: #0f2853; /* Um cinza escuro/verde para contrastar com o fundo claro */
    font-size: 1.5vw; /* Escala conforme a largura da tela */
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px; /* Espaço entre a frase e o vídeo */
    width: 80%;
    line-height: 1.3;
}
.video-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

iframe { width: 100%; height: 100%; border: none; }

/* 3. RESPONSIVIDADE (MOBILE SEM CORTES) */
@media (max-width: 1024px) {
    .wrapper { 
        flex-direction: column; 
        min-height: auto;
    }

    .hero-section {
        flex: none;
        width: 100%;
        height: auto; /* Altura automática baseada na imagem */
        display: block; /* Remove o flex centralizador no mobile */
        line-height: 0;
    }

    .hero-section img {
        position: relative; /* Volta ao fluxo normal do texto */
        height: auto; /* Mantém a proporção real 2048x1057 */
        object-fit: contain; /* Garante que a imagem apareça inteira */
    }

    .headline {
        /* No mobile, usamos 'rem' ou 'px' para ter controle total */
        font-size: 1.0rem; 
        line-height: 1.4; /* Aumentamos um pouco o respiro entre as frases */
        width: 90%;
        position: absolute; /* Mantém sobre a imagem */
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-section {
        position: relative; /* Garante que o texto se baseie na imagem */
        line-height: 0;     /* Remove espaços fantasmas da tag img */
    }

    .content-section {
        flex: none;
        width: 100%;
        padding: 60px 20px;
        min-height: 400px;
    }

    .logo-empresa {
        width: 100px; /* Logo um pouco menor no celular */
        top: 20px;
        left: 20px;
    }
    
    /* Garante que o container da imagem saiba que tem elementos absolutos dentro */
    .hero-section {
        position: relative;
    }
    .content-section {
        flex: none;
        width: 100%;
        padding: 50px 20px;
        min-height: auto; /* Deixa o conteúdo ditar a altura no celular */
    }

    .frase-video {
        font-size: 1.0rem; /* Tamanho fixo legível no celular */
        margin-bottom: 20px;
        width: 90%;
    }
    .video-container {
        max-width: 100%; /* Ocupa a largura total disponível no celular */
    }

}
