:root {
    --br-white: #ffffff;
    --br-bg-light: #f4f7f6;
    --br-blue-dark: #0f172a; 
    --br-blue-primary: #1e3a8a; 
    --br-green-primary: #10b981; 
    --br-green-dark: #059669;
    --br-green-light: #d1fae5;
    --br-yellow-accent: #f59e0b;
    --br-yellow-light: #fef3c7;
    
    --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 20px 40px -10px rgba(15, 23, 42, 0.15);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    --radius-xl: 32px;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
body { background-color: var(--br-bg-light); color: var(--br-blue-dark); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ================= HEADER ================= */
header { position: fixed; top: 0; width: 100%; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); z-index: 1000; transition: var(--transition); padding: 15px 0; }
header.scrolled { padding: 10px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; transition: var(--transition); }

nav ul { list-style: none; display: flex; align-items: center; gap: 32px; }
nav a { font-weight: 500; font-size: 0.95rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
nav a:not(.btn-nav):hover { color: var(--br-green-primary); }

.btn-nav { background-color: var(--br-green-primary); color: var(--br-white) !important; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-nav:hover { background-color: var(--br-green-dark); transform: translateY(-2px); }

.menu-mobile-btn, .close-menu-btn { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--br-blue-dark);}
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); z-index: 998; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s; }

/* ================= HERO ================= */
.hero-wrapper { padding-top: 100px; margin: 0 auto; width: 96%; max-width: 1800px; }
.hero-inner { position: relative; border-radius: var(--radius-xl); overflow: hidden; background-size: cover; background-position: center; background-color: var(--br-blue-primary); min-height: 70vh; display: flex; align-items: center; padding: 80px; box-shadow: var(--shadow-heavy); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(100deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.8) 50%, rgba(5,150,105,0.6) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; color: var(--br-white); }

.badge-hero { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background-color: rgba(245, 158, 11, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(245, 158, 11, 0.5); border-radius: 50px; font-size: 0.9rem; font-weight: 600; margin-bottom: 24px; color: var(--br-yellow-light); }
.badge-hero i { color: var(--br-yellow-accent); font-size: 1.2rem;}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.text-highlight { color: var(--br-yellow-accent); }
.hero p { font-size: 1.25rem; color: #e2e8f0; margin-bottom: 40px; font-weight: 300; max-width: 650px;}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background-color: var(--br-yellow-accent); color: var(--br-blue-dark); padding: 16px 32px; border-radius: var(--radius-md); font-weight: 700; font-size: 1.1rem; transition: var(--transition); border: none; cursor: pointer; }
.btn-primary:hover { background-color: #d97706; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4); color: var(--br-white); }
.btn-secondary-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: transparent; color: var(--br-white); padding: 16px 32px; border-radius: var(--radius-md); font-weight: 600; font-size: 1.1rem; border: 2px solid rgba(255,255,255,0.3); transition: var(--transition); }
.btn-secondary-light:hover { background-color: var(--br-white); color: var(--br-blue-dark); }

/* ================= PARCEIROS ================= */
.partners-section { padding: 40px 0; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 60px; }
.partners-title { font-size: 0.9rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-weight: 600; }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.partner-logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 700; color: var(--br-blue-dark); filter: grayscale(100%); transition: var(--transition); }
.partner-logo:hover { filter: grayscale(0%); color: var(--br-yellow-accent); opacity: 1; }
.partner-logo i { font-size: 1.8rem; }

/* ================= KPIs ================= */
.stats-section { margin-bottom: 100px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--br-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 40px; gap: 20px; text-align: center; border: 1px solid rgba(0,0,0,0.03); }
.stat-item { transition: var(--transition); }
.stat-item:hover { transform: translateY(-5px); }
.stat-item i { font-size: 3.5rem; color: var(--br-yellow-accent); margin-bottom: 15px; display: inline-block;}
.stat-item h3 { font-size: 2.5rem; color: var(--br-blue-dark); font-weight: 800; line-height: 1; margin-bottom: 8px;}
.stat-item p { color: #64748b; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}

/* ================= SEÇÕES BASE ================= */
.section-header { text-align: center; margin-bottom: 60px; }
.subtitle-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--br-yellow-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; color: var(--br-blue-dark); font-weight: 700;}
.section-header p { color: #64748b; font-size: 1.1rem; }

/* ================= DESTAQUES ================= */
.highlights { padding: 0 24px 100px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card { background: var(--br-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.05); position: relative; transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--br-yellow-accent); }

.card-status { position: absolute; top: 24px; right: 24px; padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.status-green { background-color: var(--br-green-light); color: var(--br-green-dark); }
.status-blue { background-color: #dbeafe; color: var(--br-blue-primary); }
.status-yellow { background-color: var(--br-yellow-light); color: #b45309; }
.pulse-dot { width: 8px; height: 8px; background-color: var(--br-green-primary); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.card-img-wrapper { height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.card-img-wrapper img { max-height: 160px; object-fit: contain; transition: var(--transition); }
.card:hover .card-img-wrapper img { transform: scale(1.08); }
.card-body h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700;}
.card-body p { color: #64748b; font-size: 0.95rem; margin-bottom: 24px; flex-grow: 1; }
.card-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background-color: var(--br-bg-light); color: var(--br-blue-dark); font-weight: 600; border-radius: var(--radius-md); transition: var(--transition); }
.card:hover .card-btn { background-color: var(--br-yellow-accent); color: var(--br-blue-dark); }

/* ================= COMO FUNCIONA ================= */
.how-it-works { padding: 40px 24px 100px; }
.steps-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; text-align: center; margin-top: 40px;}
.step-card { flex: 1; position: relative; background: var(--br-white); padding: 40px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03); transition: var(--transition); }
.step-card:hover { transform: translateY(-5px); border-color: var(--br-green-primary); }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 35px; height: 35px; background: var(--br-yellow-accent); color: var(--br-blue-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
.step-card i { font-size: 3rem; color: var(--br-green-primary); margin-bottom: 16px; }
.step-card h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--br-blue-dark); }
.step-card p { font-size: 0.9rem; color: #64748b; }
.step-line { display: flex; align-items: center; justify-content: center; height: 160px; font-size: 2rem; color: #cbd5e1; }

/* ================= DEPOIMENTOS ================= */
.testimonials-section { background-color: var(--br-blue-dark); padding: 100px 24px; margin-bottom: 100px; color: var(--br-white); }
.testimonials-section .section-header h2 { color: var(--br-white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { background: rgba(255,255,255,0.05); padding: 40px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); }
.stars { color: var(--br-yellow-accent); margin-bottom: 20px; font-size: 1.2rem; display: flex; gap: 4px; }
.testimonial-card p { font-size: 1.05rem; font-style: italic; color: #e2e8f0; margin-bottom: 30px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.avatar { width: 50px; height: 50px; background: var(--br-green-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--br-white); }
.testimonial-author h5 { font-size: 1.1rem; font-weight: 600; }
.testimonial-author span { font-size: 0.85rem; color: #94a3b8; }

/* ================= FAQ ================= */
.faq-section { padding: 0 24px 100px; max-width: 800px; margin: 0 auto; }
.faq-container { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--br-white); border-radius: var(--radius-md); border: 1px solid rgba(0,0,0,0.08); overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.faq-question { width: 100%; text-align: left; padding: 24px; background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--br-blue-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--br-green-primary); }
.faq-question i { font-size: 1.2rem; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; background: var(--br-bg-light); }
.faq-answer p { padding: 0 24px 24px; color: #475569; font-size: 0.95rem; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 200px; /* Suficiente para o texto expandir */ }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--br-yellow-accent); }

/* ================= FOOTER ================= */
footer { background-color: var(--br-blue-dark); color: var(--br-white); padding: 80px 0 20px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
/* ESTILO PARA LIMITAR O TAMANHO DA LOGO NO FOOTER */
.footer-logo { max-width: 180px; max-height: 35px; object-fit: contain; margin-bottom: 16px; filter: grayscale(100%) brightness(200%); /* Deixa branca se for imagem complexa, ou remova o filter */ opacity: 0.9; }
.footer-contact p { display: flex; align-items: center; gap: 8px; color: #94a3b8; margin-bottom: 12px; }
.footer-contact i { color: var(--br-yellow-accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #64748b; font-size: 0.9rem; }

/* ================= TOAST E COOKIES ================= */
.cookie-banner { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 150%); opacity: 0; width: 90%; max-width: 800px; background: var(--br-white); box-shadow: var(--shadow-heavy); border-radius: var(--radius-lg); padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; z-index: 10000; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; border: 1px solid rgba(0,0,0,0.05); }
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; }
.cookie-content { display: flex; align-items: center; gap: 16px; }
.cookie-icon { width: 45px; height: 45px; background: var(--br-yellow-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;}
.cookie-icon i { font-size: 1.5rem; color: var(--br-yellow-accent); }
.cookie-content p { font-size: 0.9rem; color: #475569; }
.btn-cookie { background-color: var(--br-blue-dark); color: var(--br-yellow-accent); border: none; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 700; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.btn-cookie:hover { background-color: var(--br-yellow-accent); color: var(--br-blue-dark); }

.toast-message { position: fixed; bottom: 30px; right: 30px; width: 320px; transform: translateY(150%); opacity: 0; background: var(--br-white); box-shadow: var(--shadow-heavy); border-radius: var(--radius-lg); z-index: 9999; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
.toast-message.show { transform: translateY(0); opacity: 1; }
.toast-header { background: var(--br-blue-dark); color: var(--br-white); padding: 15px 20px; display: flex; align-items: center; gap: 12px; position: relative; }
.toast-icon-wrapper { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center;}
.toast-icon-wrapper i { color: var(--br-yellow-accent); font-size: 1.2rem; }
.toast-header strong { display: block; font-size: 0.95rem; color: var(--br-yellow-accent); }
.toast-header span { font-size: 0.75rem; opacity: 0.8; }
.close-toast { position: absolute; right: 15px; top: 15px; background: none; border: none; color: var(--br-white); cursor: pointer; font-size: 1.2rem; transition: var(--transition);}
.close-toast:hover { color: var(--br-yellow-accent); transform: scale(1.1); }
.toast-body { padding: 20px; }
.toast-body p { font-size: 0.9rem; color: #475569; margin-bottom: 16px; line-height: 1.5; }
.btn-whatsapp-toast { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background-color: #25D366; color: var(--br-white); padding: 12px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.btn-whatsapp-toast:hover { background-color: #1ebc59; }

/* ================= ANIMAÇÕES SCROLL ================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVO ================= */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cookie-banner { flex-direction: column; text-align: center; }
    .steps-grid { flex-wrap: wrap; }
    .step-line { display: none; }
    .step-card { min-width: 45%; }
}
@media (max-width: 768px) {
    .hero-wrapper { width: 100%; padding-top: 80px; margin-bottom: 40px;}
    .hero-inner { padding: 40px 20px; min-height: auto; border-radius: 0; box-shadow: none;}
    .hero h1 { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    
    .menu-mobile-btn { display: block; }
    nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background-color: var(--br-white); flex-direction: column; padding: 80px 24px 24px; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.4s; z-index: 999; }
    nav.open { right: 0; }
    .close-menu-btn { display: block; position: absolute; top: 20px; right: 24px; }
    nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
    nav ul li { width: 100%; margin-bottom: 16px; }
    .btn-nav { display: block; text-align: center; width: 100%; }
    
    .step-card { min-width: 100%; }
    .faq-item.active .faq-answer { max-height: 300px; }
    .toast-message { right: 50%; transform: translate(50%, 150%); bottom: 20px; width: 90%; max-width: 340px; }
    .toast-message.show { transform: translate(50%, 0); }
}