/*
 Theme Name: Synapse
 Theme URI: https://example.com/synapse
 Author: Victor
 Author URI: https://example.com
 Description: Tema WordPress da SYNapse — BPO + IA (SWaS) com identidade preto absoluto e amarelo-pulso.
 Version: 1.0.5
 License: GPL-2.0-or-later
 Text Domain: synapse
 */

 /* ===== Variáveis de tema ===== */
 :root {
  --bg: #000000;
  --bg-light-gray: #0B0B0B;
  --border-color: #1f2937;
  --text: #ffffff;
  --muted: #9CA3AF;
  --pulse: #FBDC27;
  --pulse-alt: #FFD017;
 }

 /* ===== Reset ===== */
 *, *::before, *::after {
  box-sizing: border-box;
 }
 html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
 }
 /* CORREÇÃO APLICADA AQUI */
 body.wp-theme-synapse-theme {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 }
 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
 }
 img {
  max-width: 100%;
  height: auto;
  display: block;
 }

 /* ===== Containers e Utilitários ===== */
 .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
 }
 .container-fluid {
  width: 100%;
  padding: 64px 0;
 }
 .bg-light-gray {
  background-color: var(--bg-light-gray);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
 }
 .mt-2 { margin-top: 0.5rem; }
 .mt-4 { margin-top: 1rem; }
 .mt-6 { margin-top: 1.5rem; }
 .mt-8 { margin-top: 2rem; }
 .mt-10 { margin-top: 4rem; }
 .mt-12 { margin-top: 6rem; }
 .mb-8 { margin-bottom: 2rem; }
 .ml-4 { margin-left: 1rem; }
 .text-center { text-align: center; }

 /* ========================================================================= */
 /* ===== CABEÇALHO ========================================================= */
 /* ========================================================================= */

 .header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #111;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: saturate(100%) blur(8px);
  -webkit-backdrop-filter: saturate(100%) blur(8px);
 }
 .header .container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 16px;
 }
 .brand, .custom-logo-link {
  flex-shrink: 0;
 }
 .custom-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
 }
 .menu ul {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
 }
 .menu a {
  padding: 8px 12px;
  border-radius: 12px;
  color: #d1d5db;
  transition: all 0.2s ease;
  white-space: nowrap;
 }
 .menu a:hover {
  color: var(--pulse);
  background: #111;
 }
 .header .btn {
  flex-shrink: 0;
  margin-left: 24px;
 }

 /* ========================================================================= */
 /* ===== NAVEGAÇÃO MOBILE ================================================== */
 /* ========================================================================= */

 .mobile-menu-toggle {
  display: none;
  z-index: 50;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-left: auto;
 }
 .mobile-menu-toggle .icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
 }
 .mobile-menu-toggle .icon-bar + .icon-bar {
  margin-top: 5px;
 }
 .mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
 }
 .mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(2) {
  opacity: 0;
 }
 .mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
 }
 .mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 30;
 }
 .mobile-nav-open .mobile-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
 }
 .mobile-nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
 }
 .mobile-nav li {
  margin-bottom: 24px;
 }
 .mobile-nav a {
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
 }
 .mobile-nav a:hover {
  color: var(--pulse);
 }

 /* ========================================================================= */
 /* ===== COMPONENTES GERAIS (Tipografia, Botões, etc.) ===================== */
 /* ========================================================================= */

 .h1, .h2, .h3, .h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
 }
 .h1 { font-size: clamp(2rem, 2.5vw + 1rem, 2.5rem); }
 .h2 { font-size: clamp(1.75rem, 2vw + 0.5rem, 2rem); }
 .h3 { font-size: 22px; }
 .h4 { font-size: 18px; }
 .lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
 .eyebrow { font-size: 14px; font-weight: 600; color: var(--pulse); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }

 .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pulse);
  border: 1px solid #eab308;
  color: #000;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(251, 220, 39, .25);
  font-weight: 600;
  transition: all 0.3s ease;
 }
 .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(251, 220, 39, .45);
 }
 .link {
  color: var(--pulse);
  font-weight: 600;
  display: inline-block;
 }
 .link:hover {
  color: var(--pulse-alt);
  text-decoration: underline;
 }

 .btn:focus-visible, .link:focus-visible, .mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--pulse-alt);
  outline-offset: 3px;
  border-radius: 6px;
 }
 input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--pulse);
  box-shadow: 0 0 0 3px rgba(251, 220, 39, 0.25);
 }

 .badge {
  background-color: rgba(251, 220, 39, 0.1);
  color: var(--pulse);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  border: 1px solid rgba(251, 220, 39, 0.2);
  margin: 0 8px 8px 0;
 }

 /* ===== Grid ===== */
 .grid {
  display: grid;
  gap: 24px;
 }
 .grid-2 {
  grid-template-columns: 1fr 1fr;
 }
 .grid-3-col {
  grid-template-columns: repeat(3, 1fr);
 }
 .items-center {
  align-items: center;
 }

 /* ===== Seções ===== */
 .section {
  padding: 80px 0;
 }

 /* ========================================================================= */
 /* ===== ANIMAÇÕES ========================================================= */
 /* ========================================================================= */

 @keyframes fadeInUp {
  to {
  opacity: 1;
  transform: translateY(0);
  }
 }
 @keyframes fadeInImage {
  to {
  opacity: 1;
  transform: scale(1);
  }
 }

 /* Animação genérica para seções ao rolar */
 .animated-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
 }
 .animated-section.is-visible {
  opacity: 1;
  transform: translateY(0);
 }

 /* ========================================================================= */
 /* ===== SEÇÕES ESPECÍFICAS E CARDS ======================================== */
 /* ========================================================================= */

 /* Hero */
 .hero {
  padding: 64px 0;
 }
 .hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
 }
 .hero-image img {
  max-width: 480px;
  border-radius: 18px;
  margin: 0 auto;
 }
 .hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .8s ease forwards;
 }
 .hero-content > *:nth-child(1) { animation-delay: .2s; }
 .hero-content > *:nth-child(2) { animation-delay: .3s; }
 .hero-content > *:nth-child(3) { animation-delay: .4s; }
 .hero-content > *:nth-child(4) { animation-delay: .6s; }
 .hero-content > *:nth-child(5) { animation-delay: .8s; }
 .hero-content > *:nth-child(6) { animation-delay: 1.0s; }
 .hero-image {
  opacity: 0;
  transform: scale(.95);
  animation: fadeInImage 1s ease forwards;
  animation-delay: 1.2s;
 }

 /* Card Geral */
 .card {
  background-color: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
 }
 .card h3, .card h4, .card p {
  color: var(--text);
 }
 .card a.link {
  color: var(--pulse);
 }
 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
 }

 /* KPI Cards */
 .kpi-card {
  background-color: var(--bg-light-gray);
  padding: 32px 24px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
 }
 .kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 220, 39, 0.5);
  box-shadow: 0 0 30px rgba(251, 220, 39, 0.2);
 }
 .kpi-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--pulse);
  line-height: 1;
 }
 .kpi-label {
  font-size: 16px;
  color: var(--muted);
  margin-top: 12px;
 }
 .kpi-source {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 16px;
 }
 .animated-section.is-visible .kpi-card:nth-child(1) { animation-delay: 0s; }
 .animated-section.is-visible .kpi-card:nth-child(2) { animation-delay: 0.1s; }
 .animated-section.is-visible .kpi-card:nth-child(3) { animation-delay: 0.2s; }

 /* Feature Card */
 .feature-card {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
 }
 .feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 220, 39, 0.5);
  box-shadow: 0 0 20px rgba(251, 220, 39, 0.2);
 }
 .animated-section.is-visible .feature-card:nth-child(1) { animation-delay: 0s; }
 .animated-section.is-visible .feature-card:nth-child(2) { animation-delay: 0.1s; }
 .animated-section.is-visible .feature-card:nth-child(3) { animation-delay: 0.2s; }

 /* Metodologia / Process Grid */
 #metodologia {
  padding: 60px 20px;
 }
 .process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
 }
 .process-step {
  text-align: center;
 }
 .process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--pulse);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
 }
 .animated-section.is-visible .process-step:nth-child(1) { animation-delay: 0s; }
 .animated-section.is-visible .process-step:nth-child(2) { animation-delay: 0.1s; }
 .animated-section.is-visible .process-step:nth-child(3) { animation-delay: 0.2s; }
 .animated-section.is-visible .process-step:nth-child(4) { animation-delay: 0.3s; }

 /* Testimonial Card */
 .testimonial-card {
  background: linear-gradient(145deg, #0F0F0F, #050505);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 40px;
  margin-top: 64px;
  display: flex;
  gap: 32px;
  align-items: center;
 }

 /* Funil de Leads */
 #funnel-leads {
  background: linear-gradient(135deg, #000000, #111827);
  padding: 100px 60px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
  transition: transform 0.3s ease;
 }
 #funnel-leads:hover {
  transform: translateY(-5px);
 }
 #funnel-leads h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
 }
 #funnel-leads p {
  color: #bbb;
  margin-top: 15px;
  font-size: 15px;
  line-height: 1.6;
 }
 #funnel-leads canvas {
  max-width: 2000px;
  max-height: 2000px;
  margin: 0 auto;
  display: block;
 }

 /* --- Estilos para a Página de Contato --- */
 .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
 }
 input[type="text"],
 input[type="email"],
 input[type="tel"],
 textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text);
  transition: all 0.2s ease;
 }
 input::placeholder,
 textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
 }
 .contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
 }
 .contact-info-item .icon {
  flex-shrink: 0;
  color: var(--pulse);
 }
 .contact-divider {
  border: none;
  height: 1px;
  background-color: var(--border-color);
 }

/* ========================================================================= */
/* ===== SEÇÕES ADICIONAIS DA PÁGINA SOBRE (NOVO) ========================== */
/* ========================================================================= */

/* --- Hero da Página Sobre (Ajuste) --- */
.hero-sobre {
 padding: 80px 0;
 text-align: center;
}

/* --- Pilares da Marca (usando seus cards) --- */
.pilares-synapse .grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
}
.card-icon {
 text-align: center;
}
.card-icon__image {
 font-size: 2.5rem;
 color: var(--pulse);
 margin-bottom: 1.5rem;
 line-height: 1;
}
.pilares-synapse .card {
 padding: 2.5rem;
}

/* --- Seção Nossos Números (inspirado nos seus KPI Cards) --- */
.nossos-numeros .grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 24px;
}
.stat-item {
 text-align: center;
 padding: 1.5rem 1rem;
 border: 1px solid transparent;
 border-radius: 18px;
 transition: all 0.3s ease;
}
.stat-item:hover {
 border-color: rgba(251, 220, 39, 0.5);
 background-color: var(--bg-light-gray);
}
.stat-number {
 font-size: clamp(2.5rem, 5vw, 3.25rem);
 font-weight: 700;
 color: var(--pulse);
 line-height: 1;
}
.stat-label {
 font-size: 1rem;
 color: var(--muted);
 margin-top: 0.75rem;
}

/* --- Seção Nossa Equipe --- */
.equipe-imagem {
 width: 100%;
 min-height: 350px;
 background-color: var(--bg-light-gray);
 border: 1px solid var(--border-color);
 border-radius: 18px;
 background-size: cover;
 background-position: center;
}

/* --- CTA Final --- */
.cta-final {
 padding: 80px 0;
 background-color: var(--bg-light-gray);
 border-top: 1px solid var(--border-color);
 border-bottom: 1px solid var(--border-color);
 text-align: center;
}
.cta-final .h2 {
 max-width: 650px;
 margin-left: auto;
 margin-right: auto;
}
.cta-final .lead {
 color: var(--muted);
 margin-bottom: 2rem;
}


 /* ========================================================================= */
 /* ===== RESPONSIVIDADE (TABLET) 💻 ======================================== */
 /* ========================================================================= */

 @media (max-width: 992px) {
  /* Esconde o menu principal e mostra o botão de hambúrguer */
  .menu, .header .btn {
  display: none;
  }
  .mobile-menu-toggle {
  display: block;
  }

  /* Ajusta grids de 3 e 4 colunas para 2 colunas */
  .grid-3-col, .process-grid {
  grid-template-columns: repeat(2, 1fr);
  }

  /* Reduz o espaçamento da seção do funil */
  #funnel-leads {
  padding: 80px 40px;
  }

  /* Ajusta grids da página Sobre para 2 colunas */
  .pilares-synapse .grid, .nossos-numeros .grid {
  grid-template-columns: repeat(2, 1fr);
  }
 }

 /* ========================================================================= */
 /* ===== RESPONSIVIDADE (MOBILE) 📱 ======================================== */
 /* ========================================================================= */

 @media (max-width: 768px) {
  /* Ajusta todos os grids para uma única coluna */
  .grid-2, .grid-3-col, .process-grid {
  grid-template-columns: 1fr;
  }

  /* Ajusta grids da página Sobre para 1 coluna */
  .pilares-synapse .grid, .nossos-numeros .grid {
  grid-template-columns: 1fr;
  }

  /* Ajusta o espaçamento da equipe para empilhar */
  .equipe-imagem {
  margin-bottom: 2rem;
  }

  /* Reduz o tamanho do texto dos números para mobile */
  .stat-number {
  font-size: 2.5rem;
  }

  /* Reduz o espaçamento geral das seções */
  .section, .hero {
  padding: 60px 0;
  }

  /* Centraliza o conteúdo do hero que estava em duas colunas */
  .grid-2.items-center {
  text-align: center;
  }
  .hero-cta {
  justify-content: center;
  }

  /* Reduz o tamanho da imagem principal no celular */
  .hero-image img {
  max-width: 320px;
  }

  /* Ajusta o card de depoimento para empilhar verticalmente */
  .testimonial-card {
  flex-direction: column;
  text-align: center;
  padding: 30px;
  }

  /* Reduz o padding dos cards gerais */
  .card {
  padding: 2rem;
  }

  /* Centraliza a seção do funil no celular para controlar o conteúdo rotacionado */
  #funnel-leads {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 450px; /* Garante espaço vertical para o conteúdo */
  }

  #funnel-leads h2 {
  font-size: 24px;
  }

  #funnel-leads p {
  font-size: 14px;
  }

  /* Reduz e gira o gráfico do funil, controlando sua altura (que vira largura) */
  #funnel-leads canvas {
  transform: rotate(90deg);
  max-height: 50vh; /* A altura vira a largura: não pode ser mais largo que 50% da altura da tela */
  max-width: 250px;  /* A largura vira a altura: não pode ser mais alto que 250px */
  }

  /* Reduz o tamanho do texto do h1 para telas pequenas */
  .h1 {
  font-size: clamp(1.8rem, 5vw + 1rem, 2.2rem);
  }

  /* NOVO: Reduz o padding e fontes dos KPI cards em mobile */
  .kpi-card {
  padding: 24px 16px;
  }
  .kpi-number {
  font-size: 40px;
  }
  .kpi-label {
  font-size: 14px;
  margin-top: 8px;
  }
  .kpi-source {
  font-size: 12px;
  margin-top: 10px;
  }
