:root {
    --primary: #003B30; 
    --orange: #F37021;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --green-online: #25D366; 
}

/* RESET E BASE */
* { box-sizing: border-box; } /* Garante que padding não estoure a largura */

body { font-family: 'Open Sans', sans-serif; margin: 0; padding: 0; color: var(--text-dark); background: var(--bg-light); overflow-x: hidden; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; margin: 0; }
img { max-width: 100%; height: auto; } /* Garante que imagens não vazem da tela */

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* REGRAS DE CENTRALIZAÇÃO */
.centered-section { text-align: center; }
.centered-section p { margin-left: auto; margin-right: auto; max-width: 800px; }

/* NAVBAR */
.navbar { background-color: var(--primary); padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 40px; filter: brightness(0) invert(1); }
.btn-nav { background: transparent; border: 1px solid rgba(255,255,255,0.5); color: white; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn-nav:hover { background: white; color: var(--primary); }

/* HERO */
.hero { padding: 80px 0; background: #f4f7f6; text-align: left; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.badge { color: var(--primary); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.hero h1 { font-size: 3rem; line-height: 1.2; color: var(--primary); margin-bottom: 10px; }
.hero p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 30px; line-height: 1.6; }
.btn-cta { background: var(--orange); color: white; border: none; padding: 15px 30px; font-size: 1rem; font-weight: 700; border-radius: 6px; cursor: pointer; transition: 0.3s; box-shadow: 0 4px 15px rgba(243, 112, 33, 0.4); }
.hero-img img { width: 100%; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Cor laranja igual ao botão CTA */
.text-orange { color: var(--orange) !important; }

/* STATS */
.stats-white { background: white; padding: 60px 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; justify-content: center; }
.stat-item h1 { font-size: 3rem; color: var(--primary); }

/* DARK SECTION */
.dark-features { background-color: #072b31; color: white; padding: 80px 0; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; justify-content: center; max-width: 1000px; margin: 40px auto 0; }
.dark-card { display: flex; align-items: center; gap: 15px; text-align: left; }
.icon-circle { background: var(--orange); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

/* BENEFITS */
.benefits { padding: 80px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; align-items: center; }
.card:hover { transform: translateY(-5px); border-bottom: 4px solid var(--orange); }
.icon-orange { font-size: 2rem; color: var(--orange); margin-bottom: 20px; background: rgba(243, 112, 33, 0.1); padding: 15px; border-radius: 8px; }

/* FAQ */
.faq-section { background: white; padding: 80px 0; }
.faq-container { max-width: 800px; margin: 40px auto 0; text-align: left; }
details { background: #f4f7f6; margin-bottom: 10px; border-radius: 4px; overflow: hidden; }
summary { padding: 15px 20px; cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details p { padding: 15px 20px; margin: 0; background: white; color: var(--text-gray); border-top: 1px solid #eee; }

/* FOOTER */
footer { background: #111; color: #888; padding: 50px 0 20px 0; font-size: 0.8rem; text-align: center; }
footer .container { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 150px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: 0.7; }
.legal-text { margin-bottom: 20px; max-width: 900px; }
.copy { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; margin-top: 20px; font-size: 0.75rem; opacity: 0.6; }

/* --- CHAT WIDGET --- */
.chat-widget {
    position: fixed; bottom: 90px; right: 20px; width: 360px; height: 550px; max-height: 80vh;
    background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none; flex-direction: column; z-index: 1000; overflow: hidden;
}

.chat-header { background: var(--primary); padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; color: white; }
.agent-profile { display: flex; align-items: center; gap: 10px; }
.img-wrapper { position: relative; }
.img-wrapper img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-online); padding: 2px; }
.online-dot { width: 12px; height: 12px; background: var(--green-online); border-radius: 50%; border: 2px solid var(--primary); position: absolute; bottom: 0; right: 0; }
.agent-details strong { display: block; font-size: 0.95rem; color: white; }
.agent-details span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: white; opacity: 0.8; }
.close-btn:hover { opacity: 1; }

.chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #fff; display: flex; flex-direction: column; gap: 10px; }

/* Animações e Estilos de Mensagem */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.msg-row { display: flex; gap: 10px; align-items: flex-end; animation: fadeInUp 0.4s ease forwards; }
.msg-row.user { justify-content: flex-end; }
.bubble { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; max-width: 80%; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.msg-row.bot .bubble { background: #F0F2F5; color: var(--text-dark); border-bottom-left-radius: 2px; }
.msg-row.user .bubble { background: #008069; color: white; border-bottom-right-radius: 2px; }

.opts-container { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 40px; animation: fadeInUp 0.5s ease forwards; }
.btn-opt { background: #008069; color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.btn-opt:hover { background: #006654; transform: translateY(-1px); }

.typing-dots { display: flex; gap: 4px; padding: 6px 10px; align-items: center; justify-content: center; height: 20px; }
.dot { width: 6px; height: 6px; background: #9ca3af; border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; cursor: pointer; z-index: 999; }
.whatsapp-btn img { width: 60px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* Tablets e Celulares Maiores (até 1024px) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-grid { gap: 30px; }
    .cards-grid, .stats-row { grid-template-columns: repeat(2, 1fr); gap: 15px; } /* 2 colunas */
    .dark-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Celulares (até 768px) */
@media (max-width: 768px) {
    /* Hero */
    .hero { padding: 50px 0; text-align: center; } /* Centraliza no mobile */
    .hero-grid { grid-template-columns: 1fr; /* Empilha texto e imagem */ gap: 40px; }
    .hero-img { order: -1; /* Joga imagem para cima do texto no mobile */ }
    .hero h1 { font-size: 2rem; margin-top: 10px; }
    
    /* Stats */
    .stats-row { grid-template-columns: 1fr; /* 1 coluna */ }
    .stat-item h1 { font-size: 2.5rem; }
    
    /* Dark Section (Simule em poucos minutos) */
    .dark-grid { grid-template-columns: 1fr; max-width: 100%; }
    .dark-features h2 { font-size: 1.5rem; }
    
    /* Benefits (Cards) */
    .cards-grid { grid-template-columns: 1fr; }
    
    /* Chat Responsivo */
    .chat-widget {
        width: 90%; /* Ocupa 90% da tela */
        right: 5%; /* Centralizado */
        bottom: 85px;
        height: 70vh; /* Altura proporcional */
    }
    
    /* Botão Zap */
    .whatsapp-btn img { width: 50px; }
    .whatsapp-btn { bottom: 15px; right: 15px; }
}

/* Telas muito pequenas (iPhone SE etc) */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.8rem; }
    .btn-cta { width: 100%; padding: 15px 10px; } /* Botão full width */
    .chat-header h3 { font-size: 0.9rem; }
}