/* =======================================================
   VARIÁVEIS GLOBAIS E PARAMETRIZAÇÃO BASE
   ======================================================= */
:root {
    --primary-green: #1B7D3D;
    --primary-yellow: #FFD700;
    --primary-blue: #003DA5;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #13582b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-yellow);
    color: var(--dark-text);
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: #e5b800;
    transform: translateY(-2px);
}

/* NAVBAR */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 75vh;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 680px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* CONFIGURAÇÃO DE SEÇÕES GERAIS */
.section {
    padding: 80px 0;
}

.light-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 45px;
    font-size: 1.05rem;
}

/* GRIDS E CARDS */
.benefits-grid, .diferenciais-grid, .historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card, .diferencial-item, .historia-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover, .diferencial-item:hover {
    transform: translateY(-5px);
}

.historia-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.badge {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 12px 0;
}

/* SESSÃO DE DADOS COMPLEMENTARES - CONTADORES */
.stats-section {
    margin-top: 60px;
    padding: 45px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stats-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-yellow);
    display: block;
}

/* INFORMAÇÕES DE RODAPÉ */
.footer {
    background: #121212;
    color: var(--white);
    padding: 60px 0 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #262626;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #737373;
}

/* =======================================================
   ESTRUTURA COMPLETA DA JANELA FLUTUANTE (MODAL REAL)
   ======================================================= */
.modal {
    display: none; /* Controlado via JS com 'flex' */
    position: fixed;
    z-index: 9999; /* Sobressairá sobre qualquer camada do site */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Camada escura de sobreposição */
    backdrop-filter: blur(4px); /* Suave desfoque de fundo */
    
    /* Centralização matemática absoluta do elemento flutuante */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: popupSuave 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ícone X de Saída */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #aaaaaa;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #262626;
}

/* Conteúdos e Inputs Internos */
.form-tela h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-tela p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 22px;
}

.inputs-container input {
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inputs-container input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 125, 61, 0.12);
}

/* Caixas Estilizadas de Resultado da Simulação */
.resultado-box {
    background: var(--light-bg);
    padding: 16px;
    border-radius: 8px;
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin: 8px 0 22px 0;
    border-left: 5px solid var(--primary-green);
}

.investimento-destaque {
    color: var(--primary-green);
}

.parcela-destaque {
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
}

.obs-text {
    font-size: 0.8rem !important;
    color: #7c7c7c !important;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* ESTILIZAÇÃO E ANIMAÇÃO DA SETA FLUTUANTE INFERIOR */
.seta-inferior {
    display: block;
    text-align: center;
    font-size: 46px; 
    color: var(--primary-green);
    margin-top: 15px; 
    margin-bottom: -15px;
    line-height: 1;
    animation: bounceSeta 2s infinite;
}

/* Efeito dinâmico de pulsação vertical para a seta */
@keyframes bounceSeta {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* Transição de Surgimento da Janela */
@keyframes popupSuave {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =======================================================
   SUPORTE DE RESPONSIVIDADE EM DISPOSITIVOS MÓVEIS
   ======================================================= */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .modal-content {
        padding: 30px 20px;
    }
}