/* ============================================
   DESIGN MINIMALISTA - ALIANÇA JURÍDICA
   ============================================ */

:root {
    --primary: #ec4899;
    --primary-dark: #be185d;
    --primary-light: #fce7f3;
    --text: #1f2937;
    --white: #ffffff;
    --success: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

html { scroll-behavior: smooth; overflow-x: hidden; }
body { color: var(--text); line-height: 1.6; background: var(--white); overflow-x: hidden; }

/* --- HEADER & NAV --- */
.header { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255,255,255,0.98); border-bottom: 1px solid #eee; }
.nav { display: flex; justify-content: space-between; align-items: center; height: 70px; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.nav-brand h2 { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700; font-size: 1.5rem; 
}
.nav-menu { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-menu a { text-decoration: none; color: #666; font-weight: 500; transition: 0.3s; }
.nav-menu a:hover { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: #333; transition: 0.3s; }

/* --- BOTÕES --- */
.btn, .btn-primary, .btn-cta { 
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); 
    color: white !important; 
    padding: 10px 25px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4); }
.btn-secondary { background: white; color: var(--primary) !important; border: 2px solid var(--primary-light); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* --- TOP BANNER --- */
.top-banner { background: var(--primary-dark); color: white; text-align: center; padding: 10px; font-size: 0.9rem; margin-top: 70px; }
.banner-btn { background: white; color: var(--primary); border: none; padding: 4px 12px; border-radius: 4px; margin-left: 10px; cursor: pointer; font-weight: bold; }

/* --- HERO SECTION --- */
.hero { padding: 60px 20px; background: linear-gradient(to bottom, #fff0f7, #fff); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto; gap: 40px; align-items: center; }
.hero h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; color: var(--text); }
.hero-subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; border-top: 1px solid #eee; padding-top: 1rem; }
.stat strong { font-size: 1.5rem; color: var(--primary-dark); display: block; }

/* --- VIDEO SECTION --- */
.video-container {
    border-radius: 12px; 
    overflow: hidden; 
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- CARDS & GRIDS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { padding: 30px; border-radius: 15px; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #fce7f3; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.feature-icon { width: 50px; height: 50px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; margin-bottom: 20px; }

/* --- FOOTER --- */
.footer { background: #f9fafb; padding: 60px 0 20px; margin-top: 60px; border-top: 1px solid #eee; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--primary-dark); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: #666; text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid #eee; padding-top: 20px; color: #999; font-size: 0.9rem; }

/* --- CHAT WIDGET --- */
.chat-toggle-btn { 
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; 
    background: var(--success); color: white; border-radius: 50%; border: none; 
    font-size: 30px; cursor: pointer; 
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); 
    z-index: 9999; display: flex; align-items: center; justify-content: center; 
    transition: 0.3s; 
}
.chat-toggle-btn:hover { transform: scale(1.1); }

.chat-window { 
    position: fixed; bottom: 100px; right: 30px; width: 350px; height: 500px; 
    background: white; border-radius: 20px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
    z-index: 9999; display: none; flex-direction: column; overflow: hidden; 
    border: 1px solid #eee; 
}
.chat-window.active { display: flex; animation: slideUp 0.3s ease; }

.chat-header { background: var(--primary); color: white; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; background: #f9f9f9; display: flex; flex-direction: column; gap: 15px; }
.chat-input { padding: 15px; border-top: 1px solid #eee; display: flex; gap: 10px; background: white; }
.chat-input input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.chat-send-btn { background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Mensagens */
.message { max-width: 85%; padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; animation: fadeIn 0.3s; position: relative; }
.bot-message { background: white; align-self: flex-start; border-bottom-left-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.user-message { background: var(--primary-light); color: var(--primary-dark); align-self: flex-end; border-bottom-right-radius: 2px; }

/* Opções do Chat */
.chat-options { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chat-option-btn { background: white; border: 1px solid var(--primary); color: var(--primary); padding: 8px 12px; border-radius: 20px; cursor: pointer; text-align: left; transition: 0.2s; font-size: 0.85rem; }
.chat-option-btn:hover { background: var(--primary); color: white; }

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .nav-menu { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background: white; flex-direction: column; padding: 40px; transition: 0.3s; }
    .nav-menu.active { left: 0; }
    .nav-toggle { display: flex; }
    
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    
    .chat-window { width: 100%; height: 100%; bottom: 0; right: 0; border-radius: 0; }
    .top-banner { display: none; } /* Ocultar banner em mobile se necessário */
    .header { top: 0; }
}

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }