/* public/CSS/style.css */

/* ------------------------------------ */
/*           RESET BÁSICO               */
/* ------------------------------------ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* ------------------------------------ */
/*           VÍDEO DE FUNDO             */
/* ------------------------------------ */
#video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

#video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mascara-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* ------------------------------------ */
/*        LAYOUT E CONTEÚDO PRINCIPAL   */
/* ------------------------------------ */

header, main, footer, .caixa-whats, .formulario {
    position: relative;
    z-index: 1;
}

/* Estilos para o cabeçalho */
.cabeçalho {
    background-color: #1a1a1a;
    color: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cabeçalho img {
    height: 45px;
    vertical-align: middle;
}

.cabeçalho nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cabeçalho nav a:hover,
.cabeçalho nav a.ativo {
    color: #00bcd4;
}

/* Estilos para a seção .caixa (primeira seção de conteúdo) */
.caixa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 50px auto;
    color: #ffffff;
}

.caixa h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.caixa p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
}

#left {
    flex: 1;
    min-width: 300px;
    text-align: center;
    max-width: 600px;
}

#left img {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
}

#dir {
    flex: 1;
    min-width: 250px;
    text-align: center;
    max-width: 500px;
}

#dir img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.caixa button {
    background-color: #00bcd4;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.caixa button:hover {
    background-color: #00bcd4;
}

/* Estilos para o botão flutuante do WhatsApp */
.caixa-whats {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 90;
}

.caixa-whats img {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.caixa-whats img:hover {
    transform: scale(1.1);
}

/* Estilos para o formulário de contato (modal) */
.formulario {
    position: fixed;
    top: 50%;
    left: -340px; /* Posição inicial: fora da tela à esquerda */
    transform: translate(0, -50%); /* Centraliza verticalmente, translateX será animado */
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 90%;
    max-width: 550px;
    transition: left 0.5s ease-out, transform 0.5s ease-out;
}

.formulario label {
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.formulario input,
.formulario textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.formulario textarea {
    min-height: 120px;
    resize: vertical;
}

.formulario button {
    background-color: #00bcd4;; /* Mudei para uma cor mais consistente com o botão da caixa */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.formulario button:hover {
    background-color: #00bcd4;
}

/* NOVO: Estilos para as mensagens de feedback do formulário */
#mensagemRetorno {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.sucesso {
    background-color: #d4edda; /* Verde claro */
    color: #155724; /* Verde escuro */
    border: 1px solid #c3e6cb;
}

.erro {
    background-color: #f8d7da; /* Vermelho claro */
    color: #721c24; /* Vermelho escuro */
    border: 1px solid #f5c6cb;
}

.mascara-formulario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 99;
    display: none;
}

/* Estilos para o rodapé */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 80px;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------ */
/*           RESPONSIVIDADE             */
/* ------------------------------------ */
@media (max-width: 768px) {
    .cabeçalho {
        flex-direction: column;
        padding: 15px 3%;
    }

    .cabeçalho nav {
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cabeçalho nav a {
        margin: 0;
    }

    .caixa {
        flex-direction: column;
        padding: 40px 3%;
        margin: 30px auto;
        gap: 30px;
    }

    #left, #dir {
        min-width: unset;
        max-width: 100%;
    }

    .caixa h1 {
        font-size: 2.2rem;
    }

    .caixa p {
        font-size: 1rem;
    }

    .caixa-whats {
        bottom: 20px;
        right: 20px;
    }

    .caixa-whats img {
        width: 50px;
    }

    .formulario {
        padding: 30px;
    }
}