/* --- 1. RESET E VARIÁVEIS --- */
:root {
    --verde: #2ecc71;
    --verde-dark: #27ae60;
    --azul-dark: #1c2833;
    --fundo-black: #121212;
    --fundo-grey: #f4f7f9;
    --white: #ffffff;
    --text-muted: #636e72;
    --shadow: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--azul-dark); overflow-x: hidden; scroll-behavior: smooth; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 100px 0; }
.bg-dark { background: var(--azul-dark); color: var(--white); }
.bg-light { background: var(--fundo-grey); }

/* --- 2. HEADER --- */
header { 
    position: sticky; 
    top: 0; 
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px); 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
    padding: 10px 0; 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    gap: 8px; 
}

.logo { 
    height: 40px; 
    flex-shrink: 0; 
}

nav { 
    display: flex; 
    gap: 10px; 
    flex-grow: 1; 
    justify-content: center;
    flex-wrap: wrap; /* Impede o menu de encavalar */
}

nav a { 
    text-decoration: none; 
    color: var(--azul-dark); 
    font-weight: 600; 
    font-size: 11.5px;
    white-space: nowrap; 
    transition: 0.2s; 
}

nav a:hover { color: var(--verde); }

header .btn-verde {
    padding: 10px 15px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- 3. HERO & STATS --- */
.hero { background: var(--fundo-grey); padding: 80px 0 120px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; margin: 15px 0; }
.eyebrow { color: var(--verde); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: 14px; }
.hero-img { width: 100%; border-radius: 25px; box-shadow: var(--shadow); }

.hero-img-container { position: relative; }
.stats-overlay { position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%); display: flex; gap: 20px; width: 90%; justify-content: center; }
.stat-card { background: var(--fundo-black); color: white; padding: 25px; border-radius: 15px; border-bottom: 5px solid var(--verde); text-align: center; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.stat-card.featured { background: var(--verde); border-bottom: 5px solid var(--fundo-black); }
.stat-card h3 { font-size: 2.2rem; color: var(--white); }

/* --- 4. FORMULÁRIOS & CARDS --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card-portal { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: var(--shadow); position: relative; border: 1px solid #eee; }
.badge { position: absolute; top: 20px; right: 20px; padding: 5px 15px; border-radius: 20px; color: white; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.blue { background: #3498db; } .green { background: var(--verde); }

.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, select, textarea { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: 'Inter', sans-serif;}
textarea { height: 100px; resize: none; }

/* --- 5. LAYOUT EM Z --- */
.grid-z { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.reverse { direction: rtl; } .reverse > div { direction: ltr; }
.banner-img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.card-form-mini { background: var(--white); padding: 25px; border-radius: 15px; color: var(--azul-dark); margin-top: 20px; box-shadow: var(--shadow); }

/* --- 6. BOTÕES --- */
.btn { padding: 15px 30px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; display: inline-block; font-size: 14px; text-align: center; }
.btn-verde { background: var(--verde); color: white; }
.btn-verde:hover { background: var(--verde-dark); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3); }
.btn-outline { border: 2px solid var(--azul-dark); color: var(--azul-dark); background: transparent; }
.btn-outline:hover { background: var(--azul-dark); color: white; }

/* --- 7. CHATBOT --- */
#mascote-container { position: fixed; bottom: 30px; right: 30px; z-index: 2000; }
.mascote-img { width: 85px; cursor: pointer; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); transition: 0.3s; }
.mascote-img:hover { transform: scale(1.1) rotate(5deg); }
.chat-window { width: 320px; background: var(--white); border-radius: 20px; position: absolute; bottom: 100px; right: 0; display: none; box-shadow: 0 15px 50px rgba(0,0,0,0.3); overflow: hidden; animation: slideUp 0.4s ease; border: 1px solid #eee; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.chat-header { background: var(--verde); color: white; padding: 20px; font-weight: 800; text-align: center; }
.chat-body { padding: 15px; max-height: 400px; overflow-y: auto;}
.chat-msg { background: #f0f2f5; padding: 12px; border-radius: 10px; margin-bottom: 15px; font-size: 14px; }
.chat-btn { display: block; width: 100%; padding: 12px; margin-bottom: 8px; border: 1.5px solid var(--verde); color: var(--verde); border-radius: 10px; cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; background: none; transition: 0.2s; }
.chat-btn:hover { background: var(--verde); color: white; }

/* --- 8. FOOTER PREMIUM --- */
.site-footer {
    padding: 80px 0 40px;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    width: 240px;
    height: auto;
    background: var(--white);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 35px;
    display: block;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--verde);
}
.copyright {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    width: 100%;
}

/* --- 9. RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 992px) {
    .hero-grid, .portal-grid, .grid-z { grid-template-columns: 1fr; text-align: center; }
    .reverse { direction: ltr; }
    .stats-overlay { position: static; transform: none; flex-direction: column; margin-top: 40px; width: 100%; }
    
    header .btn-verde, nav { display: none; }
    .header-flex { justify-content: center; } 
    
    .footer-links { flex-direction: column; gap: 15px; }
}
