/*
Theme Name: Missão Omega EVOLUTION
Theme URI: https://missaoluvasdeouro.com.br
Description: Ecossistema Operacional de Missões. Hotfix Logo, Mapa Leaflet, AI 24/7, Slider 5x, Customizer Turbo (Lápis).
Author: Engenheiro Principal (Helios Quantum)
Version: 8.1.0
*/
:root {
    --gold: #FFC107;
    --gold-grad: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    --dark-bg: #0f172a;
    --glass: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-main: #1F2937;
    --radius: 16px;
    --hero-height: clamp(600px, 80vh, 800px);
    
    /* HOTFIX: Variáveis Padrão da Logo (Sobrescritas no wp_head) */
    --logo-max-width: 220px;
    --logo-max-height: 70px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background-color: #f8fafc; overflow-x: hidden; }

/* HOTFIX LOGO (Força bruta de contenção) */
.custom-logo-link img, .custom-logo { 
    max-width: var(--logo-max-width) !important; 
    max-height: var(--logo-max-height) !important; 
    width: auto !important; 
    height: auto !important; 
    display: block; 
}

/* HEADER & NAVEGAÇÃO (Com Flex de Alinhamento) */
.site-header { background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.header-flex { display: flex; align-items: center; justify-content: space-between; position: relative; transition: 0.3s; }
.header-flex.mlo-align-center { flex-direction: column; justify-content: center; gap: 15px; }
.header-flex.mlo-align-right { flex-direction: row-reverse; }

.logo a { text-decoration: none; font-weight: 900; font-size: 24px; color: #000; letter-spacing: -0.5px; }
.logo span { color: var(--gold); }
.main-navigation ul { display: flex; gap: 25px; list-style: none; transition: all 0.3s ease; }
.main-navigation a { text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 14px; text-transform: uppercase; transition: 0.2s; }
.main-navigation a:hover { color: var(--gold); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--text-main); cursor: pointer; }

/* HERO PREMIUM 2.0 (Slider) */
.hero { position: relative; min-height: var(--hero-height); display: flex; align-items: center; background: #050505; overflow: hidden; contain: layout paint; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1; will-change: opacity; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.5) 50%, rgba(0,0,0,0.2) 100%); z-index: 3; pointer-events: none; mix-blend-mode: multiply; }
.hero-container { position: relative; z-index: 10; height: 100%; display: flex; align-items: center; width: 100%; }

/* Glass Card & Buttons */
.glass-card { max-width: 650px; padding: 50px; background: var(--glass); backdrop-filter: blur(24px); border: 1px solid var(--glass-border); border-radius: 24px; color: #fff; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7); }
.hero-badge { display: inline-block; background: rgba(255, 193, 7, 0.15); color: var(--gold); padding: 6px 14px; border-radius: 50px; font-size: 12px; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; border: 1px solid rgba(255, 193, 7, 0.3); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 20px; font-weight: 900; letter-spacing: -1.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.15rem; color: #e2e8f0; margin-bottom: 35px; line-height: 1.6; font-weight: 400; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-premium { padding: 18px 36px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
.btn-large { padding: 20px 45px; font-size: 1.1rem; }
.btn-gold { background: var(--gold-grad); color: #000 !important; box-shadow: 0 10px 25px rgba(255, 193, 7, 0.25); border: none; }
.btn-gold:hover { transform: translateY(-3px) scale(1.02); background: #fff; }
.btn-outline { border: 2px solid rgba(255,255,255,0.3); color: #fff !important; background: rgba(255,255,255,0.05); backdrop-filter: blur(5px); }
.btn-outline:hover { background: #fff; color: #000 !important; border-color: #fff; transform: translateY(-3px); }

/* Controles Slider & Chips */
.trust-chips { display: flex; gap: 20px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--glass-border); flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cbd5e1; font-weight: 600; }
.chip i { color: var(--gold); }
.slider-controls { position: absolute; bottom: 40px; right: 5%; z-index: 10; display: flex; align-items: center; gap: 15px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid transparent; cursor: pointer; transition: 0.3s; padding: 0; }
.slider-dot.active { background: var(--gold); border-color: rgba(255,255,255,0.5); transform: scale(1.2); }
.slider-progress { position: absolute; bottom: 0; left: 0; height: 5px; background: rgba(255,255,255,0.1); width: 100%; z-index: 10; }
.slider-progress-bar { height: 100%; background: var(--gold-grad); width: 0%; transition: width 0.1s linear; }
.slider-btn { background: rgba(15,23,42,0.6); border: 1px solid var(--glass-border); color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; backdrop-filter: blur(8px); transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* Grid, CPTs & UI Base */
.section-pad { padding: 80px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 2.2rem; font-weight: 900; color: var(--text-main); border-left: 6px solid var(--gold); padding-left: 20px; line-height: 1.1; margin: 0; }
.link-view-all { color: var(--text-main); font-weight: 800; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.link-view-all:hover { color: var(--gold); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.card-mission { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid #f1f5f9; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: 0.3s; display: flex; flex-direction: column; }
.card-mission:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: #e2e8f0; }
.card-img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }

/* MAPA DE URGÊNCIAS LEAFLET */
#mlo-map-container { width: 100%; height: 450px; background: #e2e8f0; border-radius: 24px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); z-index: 1; margin-bottom: 40px; border: 2px solid #fff; }
.badge-risco-alto { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-risco-medio { color: #f59e0b; background: rgba(245, 158, 11, 0.1); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.badge-risco-baixo { color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; }

/* Banner Urgência */
.glass-dark-card { background: var(--dark-bg); border-radius: 28px; padding: 60px; color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px; position: relative; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); }
.urgency-bg-glow { position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: var(--gold); opacity: 0.08; filter: blur(120px); border-radius: 50%; pointer-events: none; }
.urgency-content { max-width: 600px; position: relative; z-index: 2; }
.urgency-action { position: relative; z-index: 2; }

/* AI ROBOT WIDGET */
.mlo-ai-widget { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.mlo-ai-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--dark-bg); color: var(--gold); border: 2px solid var(--gold); box-shadow: 0 10px 25px rgba(0,0,0,0.3); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: 0.3s; position: relative; }
.mlo-ai-btn:hover { transform: scale(1.1); }
.mlo-ai-status-dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; background: #10b981; border-radius: 50%; border: 2px solid var(--dark-bg); box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
.mlo-ai-panel { position: absolute; bottom: 80px; right: 0; width: 350px; background: #fff; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); border: 1px solid #e2e8f0; display: none; flex-direction: column; overflow: hidden; }
.mlo-ai-panel.active { display: flex; }
.mlo-ai-header { background: var(--dark-bg); color: #fff; padding: 15px 20px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.mlo-ai-status-text { font-size: 11px; color: #10b981; margin-left: 8px; font-weight: normal; }
.mlo-ai-body { padding: 20px; height: 300px; overflow-y: auto; font-size: 14px; color: #4b5563; background: #f8fafc; }
.mlo-ai-input { display: flex; padding: 10px; border-top: 1px solid #e2e8f0; background: #fff; }
.mlo-ai-input input { flex-grow: 1; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px; outline: none; }
.mlo-ai-input button { background: var(--gold); border: none; padding: 10px 15px; border-radius: 8px; margin-left: 10px; font-weight: bold; cursor: pointer; }

/* FIX MOBILE FALLBACK */
@media (max-width: 768px) {
    .hero { min-height: 100vh; padding: 100px 0; aspect-ratio: auto; }
    .glass-card { padding: 30px; border-radius: 20px; margin: 0 20px; width: auto; }
    .slider-controls { right: 50%; transform: translateX(50%); bottom: 30px; }
    .mobile-toggle { display: block; }
    .main-navigation ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #f1f5f9; }
    .main-navigation.active ul { display: flex; }
    .glass-dark-card { padding: 40px 30px; text-align: center; justify-content: center; }
    .section-title { font-size: 1.8rem; }
    .mlo-ai-panel { width: calc(100vw - 40px); right: -10px; }
    .header-flex { flex-wrap: wrap; }
}