/**
 * GM20 METODOLOGIA - FULL DARK MODE (FINAL - ZERO CLS)
 * Correções de Layout Shift (Estabilidade Visual) aplicadas.
 */

:root {
    /* --- CORES DA MARCA --- */
    --primary-color: #FE6A00;   /* Laranja Vivo */
    --secondary-color: #00A39E; /* Verde Água */
    
    /* --- FUNDOS E TEXTOS --- */
    --bg-color: #000000;        /* Preto Puro */
    --card-bg: #000000;         
    --text-main: #FFFFFF;       /* Branco Puro */
    --text-muted: #CCCCCC;      /* Cinza Claro */
    --border-color: #333333;    /* Cinza escuro */
    
    /* --- GERAIS --- */
    --font-main: 'Montserrat', sans-serif;
    
    /* Performance: Anima apenas propriedades leves */
    --transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    
    --shadow-sm: 0 4px 6px rgba(255, 255, 255, 0.05);
}

/* ================= RESET E ESTABILIDADE (CLS FIX) ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    /* CORREÇÃO CLS CRÍTICA: Reserva espaço para a barra de rolagem */
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8; 
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%; /* Evita redimensionamento automático */
    overflow-x: hidden;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; margin-bottom: 1rem; color: var(--text-main); }

/* Tamanhos Fixos (H1 Fix) */
article h1, aside h1, nav h1, section h1, h1 { 
    font-size: 2.5rem; 
    margin-block-start: 0.67em; margin-block-end: 0.67em; 
}
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

a { text-decoration: none; transition: var(--transition); color: var(--text-main); }
a:hover { color: var(--primary-color); }

/* Imagens Globais - Estabilidade */
img { 
    max-width: 100%; 
    height: auto; 
    display: block; /* Remove espaços fantasmas abaixo da imagem */
}

section { padding: 80px 0; }
.text-primary { color: var(--primary-color) !important; }
.highlight { color: var(--primary-color); }

/* ================= NAVBAR (SMART SCROLL) ================= */
#mainNav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    
    /* PREPARAÇÃO PARA ANIMAÇÃO */
    position: fixed; /* Garante que é fixa */
    top: 0; 
    left: 0;
    width: 100%;
    z-index: 1030; /* Acima de tudo */
    
    /* Animação suave de deslize e cor */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, padding 0.3s ease;
}

/* Quando rola para baixo (Esconde) */
.navbar-hidden {
    transform: translateY(-100%); /* Move para cima o tamanho exato dela */
}

/* Quando está no topo ou rola para cima (Mostra com fundo alterado) */
#mainNav.scrolled {
    background: var(--dark-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar-brand { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--text-main) !important;
    display: flex; 
    align-items: center; 
}

/* CORREÇÃO CLS: Trava o tamanho do logo no CSS */
.navbar-brand img {
    width: 50px;
    height: 50px;
    aspect-ratio: 1/1;
}

.brand-text { font-size: 0.9rem; font-weight: 500; margin-left: 0.5rem; color: var(--text-main); }

#mainNav .nav-link {
    color: var(--text-main) !important;
    font-weight: 500; margin: 0 0.5rem; padding: 0.5rem 1rem !important;
    border-radius: 8px; transition: var(--transition);
}
#mainNav .nav-link:hover, #mainNav .nav-link.active {
    color: var(--primary-color) !important; background: rgba(254, 106, 0, 0.1);
}
.btn-cta {
    background: var(--primary-color); border: 1px solid var(--primary-color);
    color: #000 !important; font-weight: 800; padding: 0.6rem 1.5rem;
    border-radius: 50px; transition: var(--transition);
}
.btn-cta:hover { background: transparent; color: var(--primary-color) !important; transform: translateY(-2px); }

/* ================= HERO SECTION ================= */
.hero-section {
    min-height: 100vh; 
    display: flex; 
    align-items: center;
    background: var(--bg-color); 
    padding-top: 150px; 
    position: relative;
    /* CORREÇÃO CLS: Impede que o ::before cause reflow */
    contain: paint layout; 
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 50% 50%, #222 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.3;
}
.hero-content { position: relative; z-index: 2; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 400; }
.hero-buttons .btn { margin: 0.5rem; padding: 1rem 2.5rem; font-size: 1.1rem; font-weight: 700; border-radius: 50px; }

.btn-primary-hero { background: var(--primary-color); border: 2px solid var(--primary-color); color: #000 !important; transition: var(--transition); }
.btn-primary-hero:hover { background: transparent; color: var(--primary-color) !important; box-shadow: 0 0 20px rgba(254, 106, 0, 0.4); }
.btn-secondary-hero { background: transparent; border: 2px solid var(--secondary-color); color: var(--secondary-color); transition: var(--transition); }
.btn-secondary-hero:hover { background: var(--secondary-color); color: #000 !important; }

/* CORREÇÃO CLS: Trava as dimensões da imagem Hero */
.hero-image img {
    width: 100%;           /* Ocupa a largura da coluna */
    height: auto;          /* A altura ajusta-se automaticamente (CRUCIAL) */
    max-width: 543px;      /* Não deixa ficar maior que o tamanho real */
    
    /* Define a proporção exata da sua imagem real (543x965) */
    aspect-ratio: 543 / 965; 
    
    object-fit: contain;   /* Garante que a imagem nunca distorça */
    display: block;
    margin: 0 auto;        /* Centraliza */
}
/* ================= SEÇÕES ================= */
.section-light, .section-dark { background-color: var(--bg-color) !important; color: var(--text-main); }
.section-title { font-size: 2.5rem; font-weight: 800; text-align: center; margin-bottom: 1rem; color: var(--text-main); }
.section-subtitle { font-size: 1.2rem; text-align: center; color: var(--text-muted); margin-bottom: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ================= CARDS ================= */
.feature-card, .plan-card, .testimonial-card, .step-card {
    background: var(--bg-color); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 2rem; transition: var(--transition);
    height: 100%; color: var(--text-main);
}
.feature-card:hover, .plan-card:hover, .testimonial-card:hover {
    border-color: var(--primary-color); transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(254, 106, 0, 0.1);
}
.feature-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #000);
    border: 1px solid var(--primary-color); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem auto; font-size: 2rem; color: #FFF;
}
.feature-text, .step-text { color: var(--text-muted); line-height: 1.8; }

/* ================= STEPS (GLOW) ================= */
.step-number {
    width: 80px; height: 80px;
    background: transparent; border: 3px solid var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem; font-size: 2.5rem; font-weight: 800;
    color: var(--primary-color); box-shadow: 0 0 20px rgba(254, 106, 0, 0.2);
    text-shadow: 0 0 5px rgba(254, 106, 0, 0.5); transition: var(--transition);
}
.step-card:hover .step-number {
    background: var(--primary-color); color: #000;
    transform: scale(1.1) rotate(5deg); box-shadow: 0 0 40px rgba(254, 106, 0, 0.6);
}

/* ================= LISTAS ================= */
.problem-list { list-style: none; padding: 0; }
.problem-list li {
    padding: 1rem 0; padding-left: 3rem; position: relative;
    font-size: 1.1rem; color: var(--text-main); border-bottom: 1px solid var(--border-color);
}
.problem-list li:last-child { border-bottom: none; }
.problem-list li::before {
    content: '✗'; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; background: rgba(254, 106, 0, 0.1);
    border: 1px solid var(--primary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-weight: 800;
}

/* ================= PLANOS ================= */
.plan-card.featured {
    border: 2px solid var(--primary-color);
    background: rgba(254, 106, 0, 0.03); transform: scale(1.02);
}
.plan-badge {
    position: absolute; top: -15px; right: 20px;
    background: var(--primary-color); color: #000 !important;
    padding: 0.4rem 1.2rem; border-radius: 50px; font-weight: 800; font-size: 0.9rem;
}
.plan-name { font-size: 1.8rem; margin-bottom: 0.5rem; color: #fe6a00; }
.plan-duration { color: var(--text-muted); margin-bottom: 1.5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--primary-color) !important; margin-bottom: 0.5rem; }
.plan-price-installment { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.plan-features { list-style: none; padding: 0; margin: 2rem 0; text-align: left; display: inline-block; width: 100%; }
.plan-features li { padding: 0.75rem 0 0.75rem 2.5rem; position: relative; color: var(--text-muted); text-align: left; }
.plan-features li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--secondary-color); font-weight: 800; font-size: 1.2rem;
}
.btn-plan {
    width: 100%; padding: 1rem; font-weight: 800; border-radius: 50px;
    background: var(--primary-color); color: #000 !important; border: none; transition: var(--transition);
}
.btn-plan:hover { background: #FFF; color: var(--primary-color) !important; }

/* ================= DEPOIMENTOS ================= */
.testimonial-avatar {
    width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 1rem;
    border: 3px solid var(--primary-color); object-fit: cover;
}
.testimonial-name { font-size: 1.2rem; margin-bottom: 0.3rem; color: var(--text-main); }
.testimonial-info { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.testimonial-text { color: var(--text-muted); font-style: italic; margin-bottom: 1rem; }
.testimonial-rating { color: var(--primary-color); }

/* ================= FAQ DINÂMICO ================= */
.accordion-item {
    background-color: transparent; border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; transition: border-color 0.3s ease;
}
.accordion-button {
    background-color: #111; color: var(--text-main); font-weight: 600; 
    transition: background-color 0.3s ease, color 0.3s ease;
}
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-item.active-faq { border-color: var(--primary-color); }
.accordion-item.active-faq .accordion-button {
    background-color: var(--primary-color) !important; color: #000000 !important; font-weight: 800;
}
.accordion-item.active-faq .accordion-button::after { filter: brightness(0); }
.accordion-body { color: var(--text-muted); }

/* ================= CTA & FOOTER ================= */
.cta-section {
    background: linear-gradient(135deg, #111, #000);
    border-top: 1px solid var(--border-color); padding: 80px 0; text-align: center;
}
.btn-cta-large {
    background: transparent; border: 2px solid var(--primary-color);
    color: var(--primary-color); padding: 1.2rem 3rem; font-size: 1.2rem;
    font-weight: 700; border-radius: 50px; transition: var(--transition);
}
.btn-cta-large:hover { background: var(--primary-color); color: #000; }

.footer { background: #000; border-top: 1px solid var(--border-color); }
.footer-text, .footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary-color); }
.social-link {
    width: 40px; height: 40px; background: rgba(255,255,255,0.05);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #FFF; font-size: 1.2rem; transition: var(--transition);
}
.social-link:hover { background: var(--primary-color); color: #000 !important; }

/* ================= FORMULÁRIO ================= */
.contact-form { background: var(--bg-color); border: 1px solid var(--border-color); padding: 3rem; border-radius: 16px; }
.form-label { color: var(--text-main); }
.form-control, .form-select { background: #111; border: 1px solid var(--border-color); color: #FFF; }
.form-control:focus { background: #000; border-color: var(--primary-color); color: #FFF; box-shadow: none; }

/* ================= UTILS & MOBILE ================= */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: var(--secondary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #FFF; font-size: 2rem; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--light-color); background: var(--primary-color); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 163, 158, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(0, 163, 158, 0); }
}

.back-to-top {
    position: fixed; bottom: 100px; right: 30px; width: 50px; height: 50px;
    background: var(--primary-color); color: #000; border: none; border-radius: 50%;
    display: none; align-items: center; justify-content: center; z-index: 999;
}
.back-to-top.show { display: flex; }

#metodo, #como-funciona, #depoimentos, #planos { text-align: center; }
#metodo .row, #como-funciona .row, #depoimentos .row, #planos .row { justify-content: center; }
.step-card, .testimonial-card, .plan-card { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    article h1, aside h1, nav h1, section h1 { font-size: 2rem; }
}
@media (max-width: 767px) {
    section { padding: 60px 0; }
    .hero-title { font-size: 2rem; }
    .hero-buttons .btn { display: block; width: 100%; margin: 0.5rem 0; }
    .testimonial-avatar { width: 180px; height: 180px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .back-to-top { bottom: 85px; right: 20px; }
}

/* ================= ANIMAÇÕES (REVEAL) ================= */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .reveal { transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
}