/* =========================================
   VARIÁVEIS DE CORES E FONTES
   ========================================= */
:root {
    --primary-color: #0f6f2e; /* Verde institucional */
    --primary-hover: #0c5a25;
    --secondary-color: #1a1a1a; /* Escuro profundo */
    --bg-light: #f4f7f6;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-color: #dddddd;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --transition: all 0.3s ease-in-out;
}

/* =========================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Previne que paddings quebrem o layout */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden; /* Garantia extra contra vazamentos laterais */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px;
}

.btn-success:hover {
    background-color: var(--primary-hover);
}

.btn-full {
    width: 100%;
}

/* =========================================
   CABEÇALHO E MENU NAVEGAÇÃO
   ========================================= */
.header {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    /* Increase the header height to give the logo more vertical space */
    height: 120px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    /* Increase the logo height so it scales better within the taller header */
    height: 80px; /* Ajuste conforme a proporção da logo do cliente */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

/* Menu Hamburguer */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    /* Adjust hero margin to compensate for the taller header */
    margin-top: 120px; /* Compensa o header fixo */
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 .highlight {
    color: #4ade80; /* Verde mais claro para destaque no fundo escuro */
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

/* =========================================
   INFORMAÇÕES (DÚVIDAS)
   ========================================= */
.informacoes {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(15, 111, 46, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =========================================
   DOCUMENTAÇÃO E FORMULÁRIO
   ========================================= */
.registro-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.registro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.documentacao-box, .formulario-box {
    flex: 1 1 450px;
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

/* Documentação */
.doc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.doc-header i {
    font-size: 2rem;
}

.doc-group {
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.doc-group ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.doc-group ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* Formulário */
.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.cadastro-form fieldset {
    border: none;
    margin-bottom: 25px;
}

.cadastro-form legend {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.aviso-form {
    display: block;
    margin-top: 8px;
    color: #e74c3c;
    font-size: 0.85rem;
}

.input-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 111, 46, 0.1);
}

/* =========================================
   DEPOIMENTOS
   ========================================= */
.depoimentos {
    padding: 80px 0;
    background-color: var(--white);
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.depoimento-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.depoimento-card .stars {
    color: #f1c40f;
    margin-bottom: 15px;
}

.depoimento-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.depoimento-card strong {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* =========================================
   TRUST BADGES (Garantia)
   ========================================= */
.trust-badges {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
}

.badges-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-item i {
    font-size: 2.5rem;
    color: #4ade80;
}

.badge-text strong {
    display: block;
    font-size: 1.1rem;
}

.badge-text span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* =========================================
   RODAPÉ
   ========================================= */
.footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1 1 400px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    /* Remove color inversion so the logo appears in its original colors in the footer */
    filter: none;
}

.footer-info p {
    color: #aaa;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-contact {
    flex: 1 1 300px;
}

.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact p {
    color: #aaa;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* =========================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* Ativa o Hambúrguer e Esconde o Menu Padrão */
    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
        /* Adjust the top offset and height to match the taller header */
        top: 120px; /* Logo abaixo do header */
        left: -100%;
        width: 100%;
        height: calc(100vh - 120px);
        background-color: var(--white);
        flex-direction: column;
        transition: 0.4s ease-in-out;
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }

    .navbar.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding: 40px 20px;
        gap: 25px;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-link.btn-nav {
        display: block;
        width: 100%;
    }

    /* Animação do ícone hambúrguer (X) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Ajustes Gerais Mobile */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        padding: 60px 0;
    }

    .input-row {
        flex-direction: column;
        gap: 15px;
    }

    .documentacao-box, .formulario-box {
        padding: 25px;
    }

    .badges-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

    /* Center the logo horizontally in the header on mobile.
       We position the logo absolutely in the middle of the nav-container and
       position the hamburger icon on the right. */
    .nav-container {
        position: relative;
        justify-content: center;
    }
    .nav-container .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        /* Center the logo both horizontally and vertically within the header */
        transform: translate(-50%, -50%);
    }
    .nav-container .hamburger {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}