/* ==========================================================================
   1. DESIGN SYSTEM E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
:root {
    --primary: #7ac142;
    --primary-dark: #5ca52d;
    --primary-light: rgba(122, 193, 66, 0.1);
    --dark: #0a0f0d;
    --white: #ffffff;
    --light: #f4f7f5;
    --text-main: #2d3732;
    --text-muted: #627269;
    --border-color: rgba(0, 0, 0, 0.06);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 16px 32px rgba(10,15,13,0.06);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md {
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   2. TIPOGRAFIA E ELEMENTOS AUXILIARES
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: 3rem; margin-bottom: 20px; }
h2 { font-size: 2.2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }

p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--text-muted); }

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.margin-top-md { margin-top: 32px; }
.margin-bottom-lg { margin-bottom: 48px; }
.text-center { text-align: center; }

/* ==========================================================================
   3. LAYOUT E SEÇÕES (GRID FLUIDO)
   ========================================================================== */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light); }

.grid { 
    display: grid; 
    gap: 40px; 
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-1 { grid-template-columns: 1fr; }
.gap-sm { gap: 20px; }
.content-align-center { align-items: center; }

/* Imagens Responsivas Seguras */
.image-premium-wrapper {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--light);
}

.responsive-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   4. COMPONENTES: BOTÕES, CARDS E MENU
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.block-btn { display: flex; width: 100%; }

/* Bento Cards / Caixa Calculadora */
.calculator-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.feature-mini-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   5. CABEÇALHO (HEADER) E RESPONSIVIDADE DO MENU
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.img-logo {
    max-width: 140px;
    height: auto;
    display: block;
}

.header-slogan {
    font-size: 1rem;
    color: var(--primary-dark);
    border-left: 2px solid rgba(0, 0, 0, 0.1);
    padding-left: 16px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-menu a:hover { color: var(--primary); }

/* Hamburguer Invisível no Desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--dark);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    padding-top: 150px;
    padding-bottom: 60px;
}

/* ==========================================================================
   7. RODAPÉ (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 48px;
}

.footer-brand h4, .footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p { color: #81968d; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #81968d; text-decoration: none; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary); }
.footer-contact p { color: #81968d; font-size: 0.95rem; }

.legal-links { margin-top: 16px; }
.legal-links a { color: #81968d; text-decoration: none; font-size: 0.85rem; }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #55665e;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.animate-pulse { animation: pulse 3s infinite ease-in-out; }

/* ==========================================================================
   8. TRAVAS DE CONVERSÃO ABSOLUTAS PARA MOBILE
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 32px; }
    .header-slogan { display: none; } /* Esconde o slogan em telas médias/pequenas para dar espaço */
}

@media (max-width: 768px) {
    .section-padding { padding: 48px 0; }
    .container { padding: 0 20px; }
    
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    
    /* Forçar reordenação no mobile: Texto sempre vem antes da imagem */
    .side-image-content {
        order: 2 !important;
    }
    .text-content {
        order: 1 !important;
    }
    .order-mobile-1 { order: 1 !important; }
    .order-mobile-2 { order: 2 !important; }

    /* Ativação do Menu Mobile em Gaveta Lateral */
    .mobile-menu-toggle { display: flex; }
    
    /* Efeito de X no Botão Hamburguer ao Abrir */
    .mobile-menu-toggle.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle.active .line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 20px;
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        width: 100%;
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu .btn-header {
        margin-top: 24px;
        border-bottom: none;
    }

    /* Ajuste do Footer para mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .calculator-box {
        padding: 24px 16px;
    }
}
/* Container de proteção para tabelas responsivas */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Rolagem macia no iOS */
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Garante que a tabela mantenha legibilidade sem esmagar as colunas */
}