/* ============================================================
   B12 TI — Design system compartilhado
   Reutilizar este arquivo em qualquer nova página/ferramenta.
   ============================================================ */

:root {
  --navy:        #0F172A;
  --bg:          #FFFFFF;
  --bg-soft:     #F6F8FB;
  --card-bg:     #FFFFFF;
  --line:        #E4E9F1;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --blue-dark:   #1E40C7;
  --blue:        #3072F0;
  --blue-light:  #6FA0F8;
  --blue-grad:   linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, var(--blue-light) 100%);
  --green:       #00A858;
  --purple:      #6058A0;
  --indigo:      #384090;
  --red:         #E83030;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* textura sutil, mesma linguagem usada nos outros sites do grupo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.header-tag {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Assinatura multicolor (ecoa os ícones do app) ---------- */
.dot-signature {
  display: flex;
  gap: 6px;
  align-items: center;
}
.dot-signature span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
}
.dot-signature span:nth-child(1) { background: var(--indigo); }
.dot-signature span:nth-child(2) { background: var(--red); }
.dot-signature span:nth-child(3) { background: var(--purple); }
.dot-signature span:nth-child(4) { background: var(--green); }

/* ---------- Conteúdo central ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) clamp(20px, 5vw, 56px) 80px;
}

/* ---------- Rodapé ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 22px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a:hover { color: var(--blue); }

/* ---------- Botão padrão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--blue-grad);
  box-shadow: 0 4px 14px rgba(30,64,199,0.25);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 6px 18px rgba(30,64,199,0.32); }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--blue-light); background: rgba(48,114,240,0.08); filter: none; box-shadow: none; }

/* ---------- Grade de ferramentas ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.tool-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.tool-card.disabled {
  opacity: 0.55;
  cursor: default;
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg { width: 20px; height: 20px; }

.tool-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.tool-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.badge-soon {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- Utilidades ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 12px;
}

.title-lg {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--navy);
}

.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 0 8px;
}

/* ============================================================
   Extensão: menu de navegação, rodapé completo, banner,
   formulário de contato, WhatsApp flutuante, cookie banner
   ============================================================ */

.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item { position: relative; }

.nav-trigger, .nav-link-simple {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.nav-trigger:hover, .nav-link-simple:hover { background: var(--bg-soft); color: var(--blue); }
.nav-caret { font-size: 10px; }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.12);
  padding: 8px;
  min-width: 240px;
  flex-direction: column;
}
.nav-dropdown.show { display: flex; }
.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--blue); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.nav-mobile-toggle svg { width: 20px; height: 20px; }

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile-panel.show { display: flex; }
.nav-mobile-panel a { padding: 10px 4px; font-size: 14px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile-titulo { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin: 12px 0 2px; letter-spacing: 0.05em; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

/* ---------- Banner do topo ---------- */
.banner-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 20px clamp(20px, 5vw, 56px) 0;
  min-height: 220px;
  background: var(--navy);
}
.banner-slide {
  display: none;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  min-height: 220px;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.banner-slide.show { display: flex; }
.banner-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.55) 60%, rgba(15,23,42,0.25) 100%);
}
.banner-slide-conteudo { position: relative; z-index: 1; max-width: 560px; }
.banner-slide h2 { font-size: clamp(20px, 3vw, 28px); margin: 0 0 10px; }
.banner-slide p { font-size: 14.5px; opacity: 0.92; line-height: 1.6; margin: 0 0 18px; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.banner-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.banner-dot.active { background: #fff; }

/* ---------- Rodapé completo ---------- */
.site-footer-full {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 48px clamp(20px, 5vw, 56px) 24px;
  background: var(--bg-soft);
}
.footer-colunas {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.footer-col-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin: 0 0 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--blue); }

.footer-parceiros { max-width: 1100px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-parceiros-lista { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-parceiro-item { display: flex; align-items: center; opacity: 0.75; transition: opacity 160ms ease; }
.footer-parceiro-item:hover { opacity: 1; }
.footer-parceiro-item img { height: 32px; width: auto; }
.footer-parceiro-item span { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.footer-base { max-width: 1100px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }

@media (max-width: 760px) {
  .footer-colunas { grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-flutuante {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 90;
  transition: transform 160ms ease;
}
.whatsapp-flutuante:hover { transform: scale(1.08); }
.whatsapp-flutuante svg { width: 28px; height: 28px; }

/* ---------- Cookie banner (LGPD) ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 520px;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.35);
  z-index: 200;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 13px; line-height: 1.55; margin: 0 0 14px; opacity: 0.9; }
.cookie-banner .acoes { display: flex; gap: 10px; }
.cookie-banner .btn-sm-cookie {
  font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
}
.cookie-banner .aceitar { background: var(--blue); color: #fff; }
.cookie-banner .recusar { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }

/* ---------- Formulário de contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
@media (max-width: 780px) { .contato-grid { grid-template-columns: 1fr; } }

.contato-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.contato-info-icone {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(48,114,240,0.12);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contato-info-icone svg { width: 18px; height: 18px; color: var(--blue); }
.contato-info-texto strong { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 2px; }
.contato-info-texto span, .contato-info-texto a { font-size: 13.5px; color: var(--text-muted); }

.form-contato label { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin: 0 0 6px; }
.form-contato input[type="text"], .form-contato input[type="email"], .form-contato input[type="tel"], .form-contato textarea {
  width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: inherit; margin-bottom: 16px; outline: none; box-sizing: border-box;
}
.form-contato textarea { min-height: 110px; resize: vertical; }
.form-contato input:focus, .form-contato textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(48,114,240,0.12); }
.form-contato .lgpd-checkbox { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.form-contato .lgpd-checkbox input { width: auto; margin: 3px 0 0; }
.form-contato .lgpd-checkbox label { font-size: 12px; color: var(--text-muted); font-weight: 400; margin: 0; }

/* ---------- Página institucional padrão (texto longo) ---------- */
.pagina-conteudo { max-width: 760px; }
.pagina-conteudo h2 { font-size: 20px; color: var(--navy); margin: 28px 0 12px; }
.pagina-conteudo p { font-size: 14.5px; line-height: 1.75; color: var(--text); margin: 0 0 16px; }
.pagina-conteudo ul { padding-left: 20px; margin: 0 0 16px; color: var(--text); font-size: 14.5px; line-height: 1.75; }

/* ---------- Card de app (Conecta, Assets, GLPI, Kanban) ---------- */
.app-hero { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.app-hero-texto { flex: 1; min-width: 280px; }
.app-hero-icone {
  width: 88px; height: 88px; border-radius: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.app-hero-icone svg { width: 44px; height: 44px; }
.app-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.app-feature-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.app-feature-card h4 { font-size: 14px; margin: 0 0 6px; color: var(--text); }
.app-feature-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   Melhorias: integração do logo, decoração do hero,
   treinamentos com editor rico e embed de vídeo
   ============================================================ */

.site-header {
  background: var(--bg-soft);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #384090 0%, #E83030 33%, #6058A0 66%, #00A858 100%) 1;
}

.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  letter-spacing: 0.01em;
  display: none;
}
@media (min-width: 640px) { .brand-tagline { display: inline; } }

/* ---------- Decoração sutil no hero (sem depender de fotos) ---------- */
main { position: relative; }
main::before {
  content: "";
  position: absolute;
  top: -10px; right: 0;
  width: 320px; height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(48,114,240,0.08), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0,168,88,0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Cards de "últimos treinamentos" na home ---------- */
.treino-mini-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.treino-mini-card h3 { font-size: 15px; margin: 0; color: var(--text); }
.treino-mini-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }
.treino-mini-card .tag-video { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; }

/* ---------- Treinamentos: conteúdo rico + vídeo embutido ---------- */
.treino-card-full { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 18px; }
.treino-card-full h3 { font-size: 18px; margin: 0 0 10px; color: var(--text); }
.treino-video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin: 14px 0; background: #000; }
.treino-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.treino-conteudo-expandido { font-size: 14px; line-height: 1.7; color: var(--text); margin-top: 14px; }
.treino-conteudo-expandido h1, .treino-conteudo-expandido h2, .treino-conteudo-expandido h3 { color: var(--navy); margin: 16px 0 8px; }
.treino-conteudo-expandido p { margin: 0 0 12px; }
.treino-conteudo-expandido ul, .treino-conteudo-expandido ol { margin: 0 0 12px; padding-left: 22px; }
.btn-ler-mais { background: none; border: none; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; margin-top: 10px; }
.treino-conteudo-expandido.oculto { display: none; }

/* ---------- Editor Quill no admin ---------- */
.ql-editor { min-height: 220px; font-size: 14px; }
.ql-toolbar.ql-snow { border-radius: 8px 8px 0 0; border-color: var(--line) !important; }
.ql-container.ql-snow { border-radius: 0 0 8px 8px; border-color: var(--line) !important; }
