/* ===== Luckinjet - Estilos modernos e animações ===== */
:root {
  --primary: #1101FA;
  --primary-rgb: 37, 99, 235;
  --foreground: #0f172a;
  --duration: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

.bg-primary {
  background-color: var(--primary);
}

/* Utilitários */
.text-muted {
  color: #64748b;
}

.font-heading {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
}

/* Seções com padding consistente */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .section-py {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

/* Navegação ativa (primary atualizado) */
.nav-link.active,
.mobile-nav-link.active {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-weight: 600;
}

/* Cards com hover animado */
.card-hover {
  will-change: transform;
}

/* Prose para páginas institucionais */
.prose p {
  margin: 0 0 1rem;
  line-height: 1.8;
  color: #475569;
}

.prose h2 {
  color: var(--foreground);
  font-family: 'Space Grotesk', Inter, sans-serif;
}

.prose-slate p {
  color: #475569;
}

/* Formulários */
input,
textarea,
select {
  background: #fff;
}

/* Mobile menu - bloquear scroll quando aberto */
@media (max-width: 767px) {
  .mobile-open {
    overflow: hidden;
  }
}

/* ===== Animações ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Entrada suave para conteúdo da página */
.page-content {
  animation: fadeIn 0.4s ease-out;
}

/* ===== Page Hero - Estilo moderno ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--foreground) 0%, #1e293b 40%, #0f172a 100%);
}

/* Padrão de grid sutil no fundo */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Brilho sutil do canto */
.page-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Conteúdo acima do overlay */
.page-hero > * {
  position: relative;
  z-index: 1;
}

/* Curva suave na transição para a seção seguinte */
.page-hero {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

@media (min-width: 768px) {
  .page-hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
  }
}

/* Hero background - parallax suave */
.hero-bg {
  transform: scale(1.02);
}

/* Botão WhatsApp flutuante - pulse sutil */
.whatsapp-float {
  animation: float 4s ease-in-out infinite;
}

/* Respeitar preferência de redução de movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .whatsapp-float {
    animation: none;
  }
}
