/* Variáveis CSS para facilitar a manutenção das cores */
:root {
    --primary-color: #00BFFF; /* Deep Sky Blue - para o CTA principal */
    --secondary-color: #28a745; /* Verde padrão para WhatsApp ou sucesso */
    --dark-bg: #1a1a1a; /* Fundo escuro principal */
    --light-bg: #2b2b2b; /* Fundo mais claro para seções/cards */
    --text-color: #ffffff; /* Cor principal do texto */
    --text-secondary-color: #cccccc; /* Cor do texto secundário */
    --accent-color: #FFD700; /* Dourado/Amarelo vibrante para destaque/detalhes */
    --border-color: #444444; /* Cor da borda para elementos */
    --error-red: #dc3545; /* Vermelho para mensagens de erro */
    --success-green-light: #e6ffe6; /* Verde claro para fundo de sucesso */
    --success-green-dark: #155724; /* Verde escuro para texto de sucesso */
    --transition-speed: 0.4s ease-in-out; /* Velocidade de transição padrão */
}

/* Base Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar em links âncora */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    margin-bottom: 0.8em;
}

h1 { font-size: 3.8em; line-height: 1.2; font-weight: 800; }
h2 { font-size: 2.8em; line-height: 1.3; text-align: center; margin-bottom: 50px; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; color: var(--text-secondary-color); }

/* Botões */
.btn {
    display: inline-flex; /* Usar flex para alinhar ícone e texto */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px; /* Botões mais arredondados */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition-speed);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn i {
    font-size: 1.2em; /* Tamanho do ícone no botão */
}

.btn.primary-btn {
    background: linear-gradient(90deg, #00BFFF, #007BFF); /* Degradê azul */
    color: var(--text-color);
}

.btn.primary-btn:hover {
    background: linear-gradient(90deg, #007BFF, #00BFFF); /* Degradê invertido */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn.whatsapp-btn {
    background-color: var(--secondary-color); /* Verde sólido */
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn.whatsapp-btn:hover {
    background-color: #218838; /* Um pouco mais escuro ao passar o mouse */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/hero-bg-abstract.jpg') no-repeat center center/cover; /* Imagem de fundo abstrata */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.5); /* Sombra interna na parte inferior */
}

.hero-section .logo {
    max-width: 280px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    color: var(--text-color);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.hero-section .subtitle {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-secondary-color);
    line-height: 1.4;
}

.hero-section .problem-solution {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
}

.hero-section .problem-solution p {
    background-color: rgba(43, 43, 43, 0.7); /* Fundo sutil para cada "E se..." */
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-color); /* Linha de destaque */
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-color);
    text-align: left;
    flex-basis: calc(50% - 20px); /* 2 por linha em desktop */
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform var(--transition-speed);
}
.hero-section .problem-solution p:hover {
    transform: translateY(-5px);
}

.hero-section .problem-solution p i {
    color: var(--accent-color);
    margin-right: 10px;
}

.hero-section .cta-headline {
    font-size: 3em;
    margin-top: 60px;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(255, 215, 0, 0.5);
}

.hero-section .company-slogan {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--text-secondary-color);
}

/* Seção: Nossa Proposta Única (Diferenciais) */
.unique-proposition-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.unique-proposition-section h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.benefit-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.benefit-card i {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.benefit-card h3 {
    font-size: 1.6em;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.benefit-card p {
    font-size: 1em;
    color: var(--text-secondary-color);
    text-align: center;
}


/* Seção: Prova Social (Vídeos de Depoimento) */
.video-testimonials-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.video-testimonials-section h2 {
    font-size: 2.8em;
    margin-bottom: 60px;
}

.video-slider-container {
    position: relative;
    max-width: 405px; /* Altura 720px / 1280px = 0.5625. Se altura 720px (para caber na tela desktop/laptop) a largura será 720 * 0.5625 = 405px */
    height: 720px; /* Altura padrão para desktop, ajuste conforme necessário */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--primary-color);
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-speed) ease-in-out;
    display: flex; /* Para centralizar o vídeo */
    justify-content: center;
    align-items: center;
    background-color: black; /* Fundo preto para preencher espaços do vídeo */
}

.video-slide.active {
    opacity: 1;
    z-index: 1; /* Garante que o vídeo ativo esteja por cima */
}

.testimonial-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que o vídeo preencha o container sem distorcer */
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    padding: 8px 15px;
    display: flex;
    gap: 10px;
    z-index: 2; /* Acima do vídeo */
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    transition: color var(--transition-speed);
}
.video-controls button:hover {
    color: var(--accent-color);
}


.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    height: 14px;
    width: 14px;
    margin: 0 6px;
    background-color: var(--border-color);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.years-experience {
    font-size: 1.6em;
    color: var(--text-color);
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.years-experience i {
    font-size: 2.2em;
    color: var(--accent-color);
}

.years-experience .counter {
    font-weight: 800;
    color: var(--primary-color);
}


/* Seção: Chamada Final para Ação & Formulário de Contato */
.cta-form-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    text-align: center;
}

.cta-form-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

.cta-form-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-secondary-color);
}

.contact-form {
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #333333;
    color: var(--text-color);
    font-size: 1em;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    margin-top: 20px;
    width: 100%; /* Botão ocupa toda a largura */
}

.contact-form .error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-messages {
    margin-top: 25px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    opacity: 1; /* Padrão, JavaScript alterará */
    transition: opacity 0.5s ease-out;
}

.form-messages.success {
    background-color: var(--success-green-light);
    color: var(--success-green-dark);
    border: 1px solid var(--success-green);
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid var(--error-red);
}

.or-contact {
    font-size: 1.2em;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 600;
}


/* Rodapé */
.footer {
    background-color: #111;
    color: var(--text-secondary-color);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
}

.footer-info {
    flex: 2; /* Ocupa mais espaço */
    min-width: 280px;
    text-align: left;
}

.footer-info h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-info p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: var(--primary-color);
    font-size: 1.2em;
}

.footer-info a {
    color: var(--text-secondary-color);
}
.footer-info a:hover {
    color: var(--primary-color);
}


.footer .copyright {
    width: 100%;
    margin-top: 30px;
    font-size: 0.8em;
    color: #888;
    text-align: center;
}

/* =========================== */
/* RESPONSIVIDADE              */
/* =========================== */

/* Tablet (992px e abaixo) */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3.5em;
    }
    .hero-section .subtitle {
        font-size: 1.3em;
    }
    .hero-section .problem-solution p {
        font-size: 1em;
        flex-basis: 100%; /* Uma coluna em tablet */
    }
    .hero-section .cta-headline {
        font-size: 2.5em;
    }
    h2 {
        font-size: 2.4em;
    }
    .video-slider-container { /* Ajuste para centralizar vídeo em telas menores */
        max-width: 337.5px; /* Proporção 9:16 (720x1280) */
        height: 600px; /* Reduz a altura para não ocupar tanto espaço vertical */
    }
}

/* Mobile (768px e abaixo) */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-section h1 {
        font-size: 2.8em;
    }
    .hero-section .subtitle {
        font-size: 1.1em;
    }
    .hero-section .cta-headline {
        font-size: 2em;
    }
    .hero-section .company-slogan {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .benefits-grid {
        grid-template-columns: 1fr; /* Uma coluna em mobile */
        gap: 20px;
    }
    .benefit-card, .testimonial-slide {
        padding: 25px;
    }
    .testimonial-slide .quote {
        font-size: 1.05em;
    }
    .years-experience {
        font-size: 1.3em;
        flex-direction: column;
        gap: 10px;
    }
    .years-experience i {
        font-size: 1.8em;
    }
    .contact-form {
        padding: 30px;
    }
    .contact-form label, .or-contact {
        font-size: 1em;
    }
    .footer .container {
        flex-direction: column;
        align-items: center;
    }
    .footer-info {
        text-align: center;
        width: 100%;
        min-width: unset;
    }
    .footer-info p {
        justify-content: center;
    }
    .video-slider-container {
        height: 500px; /* Ainda menor em mobile */
    }
}

/* Animações de Revelação ao Scroll */
.reveal-fade, .reveal-slide-up, .reveal-scale {
    opacity: 0;
    transition: all var(--transition-speed) ease-out;
}

.reveal-fade.active {
    opacity: 1;
}

.reveal-slide-up {
    transform: translateY(20px);
}

.reveal-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}