:root {
    --blue: #004481;      /* Azul da marca */
    --dark-blue: #002a52;
    --yellow: #FFD700;    /* Amarelo destaque */
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --text: #333;
}

body { font-family: 'Montserrat', sans-serif; margin: 0; background: var(--white); color: var(--text); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.navbar { background: var(--white); padding: 20px 0; }
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--blue); font-weight: 900; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.badge-gestao { background: var(--blue); color: var(--white); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; letter-spacing: 1px; }

/* HERO SECTION */
.hero { padding: 40px 0 80px 0; background: radial-gradient(circle at right bottom, #f0f4f8 0%, #ffffff 60%); }
.hero-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.hero-text { flex: 1; min-width: 300px; }
.hero-text h1 { color: var(--blue); font-size: 3.5rem; font-weight: 900; line-height: 1; margin: 0 0 10px 0; letter-spacing: -1px; }
.hero-text h2 { color: var(--text); font-size: 2rem; margin: 0 0 20px 0; font-weight: 700; }
.highlight { color: #2ecc71; /* Verde do "Zé Divino" */ }
.hero-subtitle { color: var(--blue); font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.hero-desc { color: #666; font-size: 1rem; line-height: 1.6; max-width: 450px; margin-bottom: 30px; }

/* BOTÃO CTA */
.btn-cta {
    background: var(--blue); color: var(--yellow); border: none;
    padding: 18px 35px; border-radius: 50px; font-weight: 900; font-size: 1rem;
    cursor: pointer; transition: 0.3s; box-shadow: 0 10px 25px rgba(0,68,129,0.25);
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,68,129,0.35); }

/* PHONE MOCKUP (O CELULAR) */
.hero-video { flex: 1; display: flex; justify-content: center; position: relative; }
.phone-mockup {
    width: 280px; height: 560px; background: black; border-radius: 40px;
    border: 10px solid #222; position: relative; overflow: hidden;
    box-shadow: 25px 25px 0 var(--yellow), 0 20px 50px rgba(0,0,0,0.2);
    z-index: 10;
}
.notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 25px; background: #222;
    border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 20;
}
.phone-mockup video { width: 100%; height: 100%; object-fit: cover; }

/* BOTÃO MUTE NO VÍDEO */
.mute-btn {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(0,0,0,0.6); color: white; border: none;
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer; 
    z-index: 30; transition: 0.2s; display: flex; align-items: center; justify-content: center;
}
.mute-btn:hover { background: rgba(0,0,0,0.8); }

/* GRID DE SERVIÇOS */
.services { padding: 60px 0; background: white; }
.section-title { text-align: center; color: var(--blue); margin-bottom: 40px; font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.service-card {
    background: white; padding: 25px 15px; border-radius: 15px; text-align: center;
    cursor: pointer; transition: 0.3s; border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.service-card:hover { transform: translateY(-5px); border-color: var(--yellow); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-icon { font-size: 2.2rem; margin-bottom: 15px; display: block; }
.service-title { font-weight: 700; font-size: 0.9rem; color: var(--text); }

/* CHATBOT UI */
.chat-trigger {
    position: fixed; bottom: 30px; right: 30px; cursor: pointer; z-index: 9999;
    transition: 0.3s;
}
.chat-trigger:hover { transform: scale(1.1); }
.avatar-circle img {
    width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.online-dot {
    width: 16px; height: 16px; background: #2ecc71; border-radius: 50%;
    position: absolute; bottom: 5px; right: 5px; border: 2px solid white;
}

.chat-window {
    position: fixed; bottom: 110px; right: 30px; width: 380px; height: 550px;
    background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: none; flex-direction: column; z-index: 9998; overflow: hidden;
    animation: slideUp 0.3s ease; border: 1px solid #eee;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.chat-header { background: var(--blue); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-profile { display: flex; align-items: center; gap: 12px; }
.chat-profile img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); }
.chat-profile h4 { margin: 0; font-size: 1rem; }
.chat-profile .status { font-size: 0.75rem; opacity: 0.8; }
.close-btn { background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; }

.chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #f4f6f9; display: flex; flex-direction: column; gap: 15px; }
.msg { padding: 12px 18px; border-radius: 15px; max-width: 85%; font-size: 0.95rem; line-height: 1.5; word-wrap: break-word; }
.bot { background: white; border-bottom-left-radius: 2px; color: #444; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.user { background: var(--blue); color: white; margin-left: auto; border-bottom-right-radius: 2px; }

.chat-footer { padding: 15px; background: white; border-top: 1px solid #eee; display: flex; gap: 10px; align-items: center; }
.chat-footer input { flex: 1; padding: 12px 15px; border: 1px solid #ddd; border-radius: 25px; outline: none; background: #f9f9f9; }
.chat-footer input:focus { border-color: var(--blue); background: white; }
.send-btn, .attach-btn { background: none; border: none; color: var(--blue); cursor: pointer; font-size: 1.2rem; padding: 5px; transition: 0.2s; }
.send-btn:hover { transform: scale(1.1); }

/* MOBILE RESPONSIVE */
@media(max-width: 768px) {
    .hero-flex { justify-content: center; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .chat-window { width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; }
    .btn-cta { width: 100%; justify-content: center; }
    .phone-mockup { width: 240px; height: 480px; }
}