/* Variáveis CSS para facilitar a manutenção das cores */
:root {
    --primary-color: #007BFF; /* Azul principal para botões/destaques */
    --secondary-color: #28a745; /* Verde 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: #00FFFF; /* Um azul/ciano vibrante para ícones/detalhes */
    --border-color: #444444; /* Cor da borda para elementos */
    --error-red: #dc3545; /* Vermelho para mensagens de erro */
    --success-green: #28a745; /* Verde para mensagens de sucesso */
    --transition-speed: 0.3s 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.2em; line-height: 1.2; font-weight: 800; }
h2 { font-size: 2.5em; line-height: 1.3; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8em; }
p { margin-bottom: 1em; color: var(--text-secondary-color); }

/* Botões */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
}

.btn.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn.primary-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 255, 0.4);
}

.btn.whatsapp-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.whatsapp-btn:hover {
    background-color: #218838; /* Um pouco mais escuro ao passar o mouse */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

/* Seções Gerais */
section {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

section:nth-of-type(even) { /* Para alternar cores de fundo seções */
    background-color: var(--light-bg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/hero-background.jpg') no-repeat center center/cover; /* Imagem de fundo opcional */
    min-height: 100vh; /* Ocupa a altura total da viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0; /* Padding para garantir espaço */
    position: relative;
    overflow: hidden;
}

.hero-section .logo {
    max-width: 250px;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 30px;
    color: var(--text-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section .questions p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 10px auto;
    color: var(--text-secondary-color);
    line-height: 1.5;
}

.hero-section .cta-phrase {
    font-size: 2.5em;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 0 1px 3px rgba(0, 255, 255, 0.5);
}

.hero-section .company-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-secondary-color);
}

/* Prova Social / Depoimentos */
.social-proof-section h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: left;
    border: 1px solid var(--border-color);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.05em;
    margin-bottom: 15px;
    color: var(--text-secondary-color);
}

.testimonial-card span {
    display: block;
    font-weight: 600;
    color: var(--accent-color);
    text-align: right;
}

.years-experience {
    font-size: 1.5em;
    color: var(--text-color);
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.years-experience i {
    font-size: 2em;
    color: var(--primary-color);
}

.years-experience .counter {
    font-weight: 800;
    color: var(--accent-color);
}

/* Formulário de Contato / CTA Final */
.cta-form-section {
    background-color: var(--dark-bg);
    padding-bottom: 80px;
}

.cta-form-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.cta-form-section p.or-contact {
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.contact-form {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px 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: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    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: 100px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 10px;
}

.contact-form .error-message {
    color: var(--error-red);
    font-size: 0.9em;
    margin-top: 5px;
    display: block;
}

.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Rodapé */
.footer {
    background-color: #111; /* Fundo mais escuro para o rodapé */
    color: var(--text-secondary-color);
    padding: 60px 0 30px;
    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, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-info h3, .footer-links h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-info p, .footer-links ul {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: var(--text-secondary-color);
    display: block;
    padding: 5px 0;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    justify-content: flex-start; /* Alinha ícones à esquerda */
}

.footer-social a {
    color: var(--text-color);
    font-size: 1.8em;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.footer-social a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer .copyright {
    width: 100%;
    margin-top: 30px;
    font-size: 0.85em;
    color: #888;
    text-align: center;
}

/* =========================== */
/* RESPONSIVIDADE              */
/* =========================== */

/* Tablet (768px e abaixo) */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.8em;
    }

    .hero-section .questions p {
        font-size: 1.1em;
    }

    .hero-section .cta-phrase {
        font-size: 2em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    h2 {
        font-size: 2em;
    }

    .testimonials-grid {
        grid-template-columns: 1fr; /* Uma coluna em tablets */
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-info, .footer-links, .footer-social {
        text-align: center;
        min-width: unset;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Mobile (480px e abaixo) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section .questions p {
        font-size: 1em;
    }

    .hero-section .cta-phrase {
        font-size: 1.6em;
    }

    .hero-section .logo {
        max-width: 200px;
    }

    .contact-form {
        padding: 25px;
    }
}