/* ========================================
   FREELA PULSE - STYLESHEET PRINCIPAL
   Sistema de design completo com variáveis CSS
   ======================================== */

/* ========================================
   VARIÁVEIS CSS CUSTOMIZADAS
   Todas as cores e valores do design system centralizados
   ======================================== */
:root {
  /* Paleta de cores primárias */
  --primary-color: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #6366f1;

  /* Paleta de cores secundárias */
  --secondary-color: #06b6d4;
  --secondary-dark: #0891b2;
  --secondary-light: #22d3ee;

  /* Cor de destaque (WhatsApp green) */
  --accent-color: #10b981;
  --accent-dark: #059669;
  --accent-light: #34d399;

  /* Cores neutras para textos e backgrounds */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Cores de ação */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Sombras em níveis progressivos */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Raios de borda padronizados */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transições suaves padronizadas */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   ESTILOS GLOBAIS E RESET
   ======================================== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

/* ========================================
   NAVBAR CUSTOMIZADO
   ======================================== */
.navbar {
  background-color: white;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar-brand .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-right: 0.75rem;
  transition: transform var(--transition-base);
}

.navbar-brand .logo-icon:hover {
  transform: rotate(-5deg) scale(1.05);
}

.navbar-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-item {
  color: var(--gray-700);
  font-weight: 500;
  transition: color var(--transition-base);
}

.navbar-item:hover {
  color: var(--primary-color);
  background-color: transparent;
}

/* ========================================
   SISTEMA DE BOTÕES CUSTOMIZADO
   ======================================== */
.button {
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  border: none;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.2px;
}

.button.is-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.button.is-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.button.is-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.button.is-success {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.button.is-success:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.button.is-light {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.button.is-light:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}

.button.is-outlined {
  border: 2px solid currentColor;
  background: transparent;
}

.button.is-outlined:hover {
  background: currentColor;
}

.button.is-outlined.has-text-white:hover {
  color: var(--primary-color);
}

.button.is-large {
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
  min-height: 3.5rem;
}

/* ========================================
   HERO SECTION COM GRADIENTE ANIMADO
   ======================================== */
.gradient-hero {
  background: linear-gradient(-45deg, #4f46e5, #06b6d4, #8b5cf6, #ec4899);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.gradient-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ========================================
   ANIMAÇÕES DE ENTRADA
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}
.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}

/* ========================================
   CARDS E CONTAINERS
   ======================================== */
.custom-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
  height: 100%;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-light);
}

/* ========================================
   ÍCONES CIRCULARES DECORATIVOS
   ======================================== */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-slow);
  position: relative;
}

.icon-circle::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.icon-circle:hover {
  transform: scale(1.1) rotate(5deg);
}

.icon-circle:hover::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.icon-circle.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.icon-circle.primary::before {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.icon-circle.secondary {
  background: linear-gradient(135deg, var(--secondary-color), #8b5cf6);
  color: white;
}

.icon-circle.secondary::before {
  background: linear-gradient(135deg, var(--secondary-color), #8b5cf6);
}

.icon-circle.accent {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.icon-circle.accent::before {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* ========================================
   BOXES DE BENEFÍCIOS
   ======================================== */
.benefit-box {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.benefit-box:hover {
  background-color: var(--gray-50);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  transform: translateX(8px);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.benefit-box:hover .benefit-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Corrigindo os títulos dentro dos benefit boxes para evitar sobreposição */
.benefit-box .title {
  margin-bottom: 0.5rem;
  line-height: 1.3;
  font-weight: 700;
}

.benefit-box .subtitle {
  line-height: 1.6;
  margin-bottom: 0;
}

/* ========================================
   MOCKUP DO WHATSAPP
   ======================================== */
.whatsapp-mockup {
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.whatsapp-mockup::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.whatsapp-message {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.whatsapp-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: white;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   PRICING CARDS
   ======================================== */
.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
  transition: all var(--transition-slow);
  height: 100%;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3);
  background: linear-gradient(180deg, white 0%, #f0f0ff 100%);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 25px 70px rgba(79, 70, 229, 0.4);
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0 var(--radius-xl) 0 var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

/* ========================================
   TESTIMONIAL CARDS
   ======================================== */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-200);
  height: 100%;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.stars {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

/* ========================================
   FOOTER CUSTOMIZADO
   ======================================== */
.footer {
  background: linear-gradient(180deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: var(--gray-300);
  padding: 3.5rem 1.5rem 2rem;
}

.footer a {
  color: var(--gray-300);
  transition: color var(--transition-base);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

/* ========================================
   TÍTULOS E TIPOGRAFIA
   Corrigindo problemas de espaçamento e formatação
   ======================================== */
.title {
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  color: var(--gray-900);
}

.title.is-1 {
  font-size: 3.5rem;
}

.title.is-2 {
  font-size: 2.5rem;
}

.title.is-3 {
  font-size: 2rem;
}

.title.is-4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

.title.is-5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.subtitle {
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Corrigindo especificamente os títulos na seção Como Funciona para separar número do texto */
.title.is-4 {
  word-spacing: 0.15em;
}

/* ========================================
   UTILITÁRIOS E HELPERS
   ======================================== */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.section-spacing {
  padding: 5rem 1.5rem;
}

.navbar-spacer {
  height: 52px;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media screen and (max-width: 768px) {
  .title.is-1 {
    font-size: 2.5rem;
  }

  .title.is-2 {
    font-size: 2rem;
  }

  .section-spacing {
    padding: 3rem 1.5rem;
  }

  .pricing-card.featured {
    transform: scale(1);
    margin-top: 1.5rem;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .button.is-large {
    font-size: 1rem;
    padding: 1rem 2rem;
    min-height: 3rem;
  }
}

@media screen and (max-width: 1024px) {
  .navbar-menu {
    background-color: white;
    box-shadow: var(--shadow-lg);
  }
}

/* ========================================
   CORREÇÕES ESPECÍFICAS PARA PROBLEMAS DE FORMATACAO
   Estas regras usam seletores mais específicos para garantir prioridade
   ======================================== */

/* Correção para títulos na seção Como Funciona - garante espaçamento entre número e texto */
#como-funciona .title.is-4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--gray-900);
  letter-spacing: normal;
  word-spacing: normal;
}

/* Correção específica para os boxes de benefícios */
.benefit-box .title.is-5 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  display: block;
}

.benefit-box .subtitle.is-6 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-600);
  margin-top: 0;
  margin-bottom: 0;
  display: block;
}

/* Garantir que não há elementos strong ou bold causando problemas */
.benefit-box strong,
#como-funciona strong {
  font-weight: inherit;
}

/* ========================================
   CORREÇÃO DO SEARCHBOX NA FAQ
   Remove o efeito de retângulo dentro do outro e ajusta altura
   ======================================== */
.faq-search-container .field.has-addons {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
  display: flex;
  align-items: stretch;
  height: 3.5rem;
}

.faq-search-container .control.is-expanded {
  flex: 1;
}

.faq-search-container .control.is-expanded .input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0 1.5rem;
  font-size: 1.125rem;
  height: 100%;
  line-height: 1;
  margin: 0;
}

.faq-search-container .control .button {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  padding: 0 1.5rem;
  background: var(--primary-color);
  color: white;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  margin: 0;
}

.faq-search-container .control .button:hover {
  background: var(--primary-dark);
  transform: none;
}

/* Garantir que a seção de benefícios mantenha layout de duas colunas em desktop */
@media screen and (min-width: 769px) {
  .benefit-box {
    max-width: 100%;
  }

  /* Força o mockup do WhatsApp a permanecer na sua coluna */
  .whatsapp-mockup {
    position: relative;
    width: 100%;
    max-width: 100%;
  }
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  border: 2px solid var(--gray-200);
  transition: all var(--transition-base);
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all var(--transition-base);
}

.faq-question:hover {
  background-color: var(--gray-50);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  flex: 1;
  padding-right: 1rem;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item:hover .faq-icon {
  background: var(--primary-color);
  color: white;
}

.faq-icon i {
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--primary-color);
  color: white;
}

.faq-item.active .faq-icon i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.faq-answer-content p {
  margin-bottom: 1rem;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.faq-category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.5rem;
}

.faq-category-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.query-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gray-300);
  transition: all var(--transition-base);
  margin-bottom: 1rem;
}

.query-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.query-card.active {
  border-left-color: var(--primary-color);
}

.query-card.paused {
  border-left-color: var(--gray-400);
  opacity: 0.8;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  min-width: 200px;
  z-index: 100;
}

.dropdown.is-active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: var(--gray-100);
  color: var(--primary-color);
}

.dropdown-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.dropdown-item.danger:hover {
  background-color: #fee2e2;
  color: var(--danger-color);
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--gray-100);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--gray-700);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.keyword-tag.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: white;
}

.keyword-tag.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
