/* ============================================================
   CNE Homepage — estilos extraídos do mockup
   IMPORTANTE: use !important para vencer o CSS do tema WP
   ============================================================ */

#cne-lp { color: #1e293b !important; }
#cne-lp * { box-sizing: border-box; }
#cne-lp html { scroll-behavior: smooth; }
#cne-lp body, body.cne-homepage-body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#cne-lp .font-display { font-family: 'Montserrat', sans-serif !important; }

/* === FORÇA cores que o tema tende a sobrescrever === */
#cne-lp .text-white,
#cne-lp .text-white * { color: #ffffff !important; }
#cne-lp .text-white\/95 { color: rgba(255,255,255,0.95) !important; }
#cne-lp .text-white\/90 { color: rgba(255,255,255,0.90) !important; }
#cne-lp .text-white\/85 { color: rgba(255,255,255,0.85) !important; }
#cne-lp .text-white\/80 { color: rgba(255,255,255,0.80) !important; }
#cne-lp .text-white\/70 { color: rgba(255,255,255,0.70) !important; }
#cne-lp .text-white\/60 { color: rgba(255,255,255,0.60) !important; }
#cne-lp .text-white\/30 { color: rgba(255,255,255,0.30) !important; }
#cne-lp .text-white\/15 { color: rgba(255,255,255,0.15) !important; }

#cne-lp .text-brand-blue   { color: #1C3F6E !important; }
#cne-lp .text-brand-blue-2 { color: #2F5E9A !important; }
#cne-lp .text-brand-red    { color: #E10600 !important; }
#cne-lp .text-slate-300    { color: #cbd5e1 !important; }
#cne-lp .text-slate-400    { color: #94a3b8 !important; }
#cne-lp .text-slate-500    { color: #64748b !important; }
#cne-lp .text-slate-600    { color: #475569 !important; }
#cne-lp .text-slate-700    { color: #334155 !important; }
#cne-lp .text-slate-900    { color: #0f172a !important; }
#cne-lp .text-amber-300    { color: #fcd34d !important; }
#cne-lp .text-amber-400    { color: #fbbf24 !important; }
#cne-lp .text-amber-500    { color: #f59e0b !important; }
#cne-lp .text-amber-600    { color: #d97706 !important; }
#cne-lp .text-amber-700    { color: #b45309 !important; }
#cne-lp .text-amber-800    { color: #92400e !important; }
#cne-lp .text-amber-900    { color: #78350f !important; }
#cne-lp .text-emerald-300  { color: #6ee7b7 !important; }
#cne-lp .text-emerald-500  { color: #10b981 !important; }
#cne-lp .text-emerald-600  { color: #059669 !important; }
#cne-lp .text-emerald-700  { color: #047857 !important; }
#cne-lp .text-purple-700   { color: #7e22ce !important; }
#cne-lp .text-yellow-500   { color: #eab308 !important; }
#cne-lp .text-rose-300     { color: #fda4af !important; }

/* === Cores de fundo críticas === */
#cne-lp .bg-white            { background-color: #ffffff !important; }
#cne-lp .bg-slate-50         { background-color: #f8fafc !important; }
#cne-lp .bg-slate-100        { background-color: #f1f5f9 !important; }
#cne-lp .bg-slate-900        { background-color: #0f172a !important; }
#cne-lp .bg-brand-blue       { background-color: #1C3F6E !important; }
#cne-lp .bg-brand-blue-2     { background-color: #2F5E9A !important; }
#cne-lp .bg-brand-blue-light { background-color: #E6EEF8 !important; }
#cne-lp .bg-brand-red        { background-color: #E10600 !important; }

/* === Reset de elementos que o tema costuma estilizar === */
#cne-lp h1, #cne-lp h2, #cne-lp h3, #cne-lp h4, #cne-lp h5, #cne-lp h6,
#cne-lp p, #cne-lp span, #cne-lp div, #cne-lp a, #cne-lp li {
    color: inherit;
}
#cne-lp h1, #cne-lp h2, #cne-lp h3, #cne-lp h4, #cne-lp h5, #cne-lp h6 {
    margin: 0;
    line-height: inherit;
}
#cne-lp p { margin: 0; }
#cne-lp ul, #cne-lp ol { list-style: none; padding: 0; margin: 0; }
#cne-lp a { text-decoration: none; }
#cne-lp img { max-width: 100%; height: auto; display: block; }
#cne-lp button { font-family: inherit; }

/* === Garante que seções com fundo escuro tenham texto branco === */
#cne-lp .hero-bg,
#cne-lp .hero-bg h1,
#cne-lp .hero-bg h2,
#cne-lp .hero-bg p,
#cne-lp .hero-bg span,
#cne-lp .hero-bg a { color: #ffffff !important; }
#cne-lp .hero-bg .text-brand-red { color: #E10600 !important; }

/* Alinhamento centralizado do hero — força em TODOS os elementos textuais */
html body #cne-lp .hero-bg,
html body #cne-lp .hero-bg *,
html body #cne-lp .hero-bg .text-center,
html body #cne-lp .hero-bg .text-center p,
html body #cne-lp .hero-bg .text-center h1,
html body #cne-lp .hero-bg .text-center span,
html body #cne-lp section.hero-bg p,
html body #cne-lp section.hero-bg h1 { text-align: center !important; }

/* Garante que o p do hero seja block e centralizado horizontalmente no container */
html body #cne-lp .hero-bg p {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 42rem !important;
}

#cne-lp .ai-section,
#cne-lp .ai-section h1, #cne-lp .ai-section h2, #cne-lp .ai-section h3, #cne-lp .ai-section h4,
#cne-lp .ai-section p, #cne-lp .ai-section span:not(.ai-tag):not([class*="text-emerald"]) { color: #ffffff !important; }

#cne-lp footer.bg-slate-900,
#cne-lp footer.bg-slate-900 p,
#cne-lp footer.bg-slate-900 a:not(.bg-whatsapp),
#cne-lp footer.bg-slate-900 h4 { color: #cbd5e1 !important; }
#cne-lp footer.bg-slate-900 h4 { color: #ffffff !important; }
#cne-lp footer.bg-slate-900 a:hover { color: #ffffff !important; }

#cne-lp .text-shadow-strong { text-shadow: 0 4px 20px rgba(0,0,0,0.7); }
#cne-lp .text-shadow-soft   { text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

/* Gradiente vermelho aplicado ao título do "Estudo eficiente" */
#cne-lp .ai-gradient {
  background: linear-gradient(90deg, #E10600, #f43f5e, #E10600);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent !important;
  display: inline !important;
  line-height: inherit !important;
}

/* === ANTI-SOBREPOSIÇÃO de títulos grandes (font-black + texto enorme) === */
#cne-lp h1, #cne-lp h2, #cne-lp h3, #cne-lp h4 {
  line-height: 1.2 !important;
  padding-bottom: 0.05em !important;
}
#cne-lp .hero-bg h1 { line-height: 1.15 !important; }
/* Títulos com gradient text precisam de mais respiro pra não cortar descendentes */
#cne-lp h2:has(.ai-gradient),
#cne-lp h2 .ai-gradient { line-height: 1.25 !important; }

/* Header sticky */
#cneSiteHeader.site-header {
  position: sticky !important; top: 0 !important; z-index: 40 !important;
  background: rgba(255,255,255,0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #E2E8F0 !important;
  transition: box-shadow .2s;
  width: 100% !important;
}
#cneSiteHeader.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* === FALLBACK garantido caso Tailwind não carregue === */
/* APENAS o wrapper principal — NÃO o menu mobile (também filho direto) */
#cneSiteHeader .cne-header-main {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  height: 88px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

/* Logo — tamanho ajustado pra ficar visível mas equilibrado */
#cne-lp .cne-header-logo,
#cneSiteHeader .cne-header-main img {
  height: 56px !important;
  width: auto !important;
  max-width: 260px !important;
  max-height: 64px !important;
  display: block !important;
  object-fit: contain !important;
}
@media (min-width: 768px) {
  #cne-lp .cne-header-logo,
  #cneSiteHeader .cne-header-main img { height: 64px !important; max-height: 72px !important; }
}

#cne-lp .cne-footer-logo,
#cne-lp footer img {
  height: 48px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 60px !important;
  display: block !important;
}

/* === Menu desktop: aparece SÓ em lg+ === */
#cneSiteHeader .cne-header-main > nav { display: none !important; }
@media (min-width: 1024px) {
  #cneSiteHeader .cne-header-main > nav {
    display: flex !important;
    align-items: center !important;
    gap: 28px !important;
    flex: 1 1 0% !important;
  }
}
#cne-lp .nav-link {
  white-space: nowrap !important;
  display: inline-block !important;
}

/* === Hamburger CSS puro (sem dependência de SVG) === */
.cne-hamburger {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer !important;
  padding: 0 !important;
}
.cne-hamburger span {
  display: block !important;
  width: 24px !important;
  height: 3px !important;
  background: #1C3F6E !important;
  border-radius: 2px !important;
  transition: transform .2s ease, opacity .2s ease !important;
}
.cne-hamburger:hover span { background: #E10600 !important; }

/* === Menu mobile: escondido por padrão, aparece SÓ em telas < lg quando aberto === */
#cneMobileMenu {
  display: none !important;
}
@media (max-width: 1023px) {
  #cneMobileMenu.is-open {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
  }
}

/* === Botão hamburguer: aparece SÓ em telas < lg === */
#cneMobileMenuBtn { display: none !important; }
@media (max-width: 1023px) {
  #cneMobileMenuBtn { display: inline-flex !important; }
}

#cne-lp .nav-link {
  position: relative; color: #1C3F6E; font-weight: 600;
  padding: 8px 4px; transition: color .2s;
}
#cne-lp .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: #E10600;
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s ease;
}
#cne-lp .nav-link:hover { color: #E10600; }
#cne-lp .nav-link:hover::after { transform: scaleX(1); }

#cne-lp .icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; color: #1C3F6E; background: transparent;
  transition: background .15s, color .15s; position: relative;
}
#cne-lp .icon-btn:hover { background: #E6EEF8; color: #E10600; }
#cne-lp .cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #E10600; color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
}

/* Botões */
#cne-lp .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #E10600; color: #ffffff !important;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 22px rgba(225,6,0,0.25);
  text-decoration: none;
}
#cne-lp .btn-primary:hover { background: #B70500; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(225,6,0,0.35); }

#cne-lp .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(6px);
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 12px 24px; border-radius: 12px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  text-decoration: none;
}
#cne-lp .btn-secondary:hover { background: rgba(255,255,255,0.22); border-color: #fff; transform: translateY(-1px); }

#cne-lp .btn-blue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #1C3F6E; color: #ffffff !important;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 12px 22px; border-radius: 12px; cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
#cne-lp .btn-blue:hover { background: #2F5E9A; transform: translateY(-1px); }

/* Videos */
#cne-lp .video-thumb-aspect { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
#cne-lp .video-thumb-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cards */
#cne-lp .card-hover { transition: transform .25s ease, box-shadow .25s ease; }
#cne-lp .card-hover:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }

/* ===== Selo "Site Seguro" no rodapé ===== */
#cne-lp .cne-trust-badges { display: flex !important; align-items: center !important; gap: 12px !important; }
#cne-lp .cne-safe-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 12px !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: background .2s, border-color .2s, transform .15s !important;
}
#cne-lp .cne-safe-badge:hover {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.55) !important;
  transform: translateY(-1px) !important;
}
#cne-lp .cne-safe-shield {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  filter: drop-shadow(0 1px 2px rgba(34, 197, 94, 0.4));
}
#cne-lp .cne-safe-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.1 !important;
}
#cne-lp .cne-safe-label {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  color: #4ade80 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
#cne-lp .cne-safe-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 9px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 1px !important;
}

/* WhatsApp flutuante */
#cne-lp .whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 25px rgba(37,211,102,0.4);
  transition: transform .2s, box-shadow .2s;
  animation: waPulse 2.5s infinite;
}
#cne-lp .whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,0.55); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 25px rgba(37,211,102,0.4), 0 0 0 18px rgba(37,211,102,0); }
}

/* Eyebrow */
#cne-lp .section-eyebrow {
  display: inline-block; color: #E10600;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em;
  font-size: 12px; padding-bottom: 4px;
  border-bottom: 3px solid #E10600; margin-bottom: 16px;
}

/* Forms */
#cne-lp .form-input, #cne-lp .form-select, #cne-lp .form-textarea {
  width: 100%; background: #ffffff;
  border: 2px solid #E2E8F0; border-radius: 12px;
  padding: 14px 16px; font-size: 15px; color: #0F172A;
  transition: border-color .15s, box-shadow .15s;
  font-family: 'Inter', sans-serif;
}
#cne-lp .form-input:focus, #cne-lp .form-select:focus, #cne-lp .form-textarea:focus {
  outline: 0; border-color: #1C3F6E; box-shadow: 0 0 0 4px rgba(28,63,110,0.12);
}
#cne-lp .form-label {
  display: block; font-weight: 700; font-size: 13px; color: #1C3F6E;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em;
  font-family: 'Montserrat', sans-serif;
}

/* Status tags */
#cne-lp .status-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
}
#cne-lp .status-open    { background: #DCFCE7; color: #166534; }
#cne-lp .status-soon    { background: #FEF3C7; color: #92400E; }
#cne-lp .status-running { background: #DBEAFE; color: #1E3A8A; }
#cne-lp .status-hot     { background: #FEE2E2; color: #991B1B; }

#cne-lp .ribbon-blue { background: linear-gradient(90deg, #1C3F6E 0%, #2F5E9A 100%); }

#cne-lp .map-wrap {
  position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
#cne-lp .map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* IA section */
#cne-lp .ai-section {
  background:
    radial-gradient(ellipse at top left, rgba(225,6,0,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at bottom right, rgba(47,94,154,0.35) 0%, transparent 55%),
    linear-gradient(180deg, #0B1424 0%, #1C3F6E 100%) !important;
  background-color: #0B1424 !important;
  position: relative !important;
  overflow: hidden !important;
  color: #ffffff !important;
}
#cne-lp .ai-section::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
#cne-lp .ai-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); color: #fff;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .15em; font-size: 11px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 18px;
}
#cne-lp .ai-badge .ai-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7); animation: aiPulse 2s infinite;
}
@keyframes aiPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
#cne-lp .ai-feature {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
  backdrop-filter: blur(10px);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  position: relative !important;
  overflow: hidden !important;
}
#cne-lp .ai-feature:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08) !important; border-color: rgba(255,255,255,0.25) !important; }
#cne-lp .ai-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #E10600 0%, #B70500 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(225,6,0,0.35) !important;
  margin-bottom: 18px !important;
}
#cne-lp .ai-icon svg { width: 28px !important; height: 28px !important; color: #fff !important; }
#cne-lp .ai-feature h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  color: #fff; font-size: 18px; line-height: 1.2; margin-bottom: 10px;
}
#cne-lp .ai-feature p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.6; }
#cne-lp .ai-feature .ai-tag {
  display: inline-block; margin-top: 14px;
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: #22C55E; background: rgba(34,197,94,0.12);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(34,197,94,0.3);
}

/* Mobile menu */
#cneMobileMenu.mobile-menu { display: none; }
#cneMobileMenu.mobile-menu.is-open { display: block; }
