/* Custom CSS enhancements for FeiraVolt */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Category Button active state */
.category-btn.active {
  border-color: #16db65 !important;
  background-color: #0d2818 !important;
  color: #16db65 !important;
  box-shadow: 0 0 15px rgba(22, 219, 101, 0.35);
}

/* Pulse badge animation */
@keyframes pulseSubtle {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.pulse-badge {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #020202;
}
::-webkit-scrollbar-thumb {
  background: #04471c;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #058c42;
}

/* Service card hover effects */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* FAQ accordion open indicator */
.faq-question.active i {
  transform: rotate(180deg);
  color: #058c42;
}

/* Mobile-First touch optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars for swipeable filter pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe area insets for notched mobile devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pb-safe {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
}

/* Prevent unwanted iOS auto-zoom on form inputs by ensuring 16px min */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Continuous Brand Logos Marquee Ticker */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
}

.brand-marquee-track:hover {
  animation-play-state: paused;
}

.w-13 { width: 3.25rem; }
.h-13 { height: 3.25rem; }

/* Modern Desktop Nav Dock Subtle Elevate */
nav.bg-slate-100\/90 {
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
nav.bg-slate-100\/90:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08), inset 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  border-color: rgba(22, 219, 101, 0.4);
}


/* Animação suave para Apresentação Interativa FeiraVolt */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeInScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#ecoRangeInput::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16db65;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(22, 219, 101, 0.6);
  border: 2px solid #020202;
}

#ecoRangeInput::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16db65;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(22, 219, 101, 0.6);
  border: 2px solid #020202;
}

/* Efeito de abanão para alerta de segurança 'Não sou um robô' */
@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.animate-shake {
  animation: shakeAlert 0.4s ease-in-out;
}
