/* ==========================================================================
   JNK SISTEMAS - ESTILOS COMPLEMENTARES & MICRO-INTERAÇÕES
   ========================================================================== */

/* Suavização de Rolagem e Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  overflow-x: hidden;
  background-color: #090d16;
  color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ==========================================================================
   ANIMAÇÕES E EFEITOS DE BRILHO (GLOW)
   ========================================================================== */

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: ripple 2.2s infinite;
}

/* ==========================================================================
   MENU MOBILE DRAWER
   ========================================================================== */

#mobile-menu-drawer {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

#mobile-menu-drawer.menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-menu-drawer.menu-closed {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

/* Hamburger Icon Animation */
.hamburger-line {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-active .hamburger-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-active .hamburger-line-2 {
  opacity: 0;
}

.menu-active .hamburger-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.whatsapp-float-tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float-btn:hover .whatsapp-float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   CARROSSEL DO HERO - INTERAÇÕES
   ========================================================================== */

.carousel-slide {
  will-change: opacity, transform;
}

.carousel-slide.active-slide {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

.carousel-slide:not(.active-slide) {
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Focus Ring Custom */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}
