/* Estilos Customizados - Império das Embalagens */

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
}

/* WhatsApp Float Animation */
#whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 25px #7e0a0a;
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 35px #d04b4b;
  }
}

/* Header fixo com efeito de scroll */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.75rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero Section Background Pattern */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(126, 10, 10, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(251, 191, 36, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Cards hover effects */
.hover\:shadow-xl {
  transition: all 0.3s ease;
}

/* Smooth transitions para links */
a {
  transition: all 0.3s ease;
}

/* Estilo para seção Como Comprar */
#como-comprar .grid {
  position: relative;
}

#como-comprar .pointer-events-none {
  pointer-events: none;
  z-index: 0;
}

/* Estilo para números nas etapas */
.step-number {
  position: relative;
}

.step-number::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, #fbbf24, transparent);
  transform: translateY(-50%);
}

/* Loading lazy para imagens */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Responsividade customizada */
@media (max-width: 768px) {
  #whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  #whatsapp-float i {
    font-size: 28px;
  }
}

/* Animação de entrada para elementos */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Estilo para iframe do mapa */
iframe {
  border-radius: 0.75rem;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c66516;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7e0a0a;
}

/* Efeito de hover nos cards de produtos */
.product-card {
  transform: translateY(0);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* Gradiente animado para CTAs */
.cta-gradient {
  background: linear-gradient(135deg, #7e0a0a 0%, #fbbf24 100%);
  position: relative;
  overflow: hidden;
}

.cta-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.cta-gradient:hover::before {
  left: 100%;
}

/* Efeito de destaque em bullets */
.bullet-item {
  transition: all 0.2s ease;
}

.bullet-item:hover {
  transform: translateX(5px);
  color: #7e0a0a;
}

/* Animação para ícones */
.icon-bounce {
  animation: bounce 2s infinite;
}

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

/* Estilo para badges e tags */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fbbf24;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Grid alternado para diferenciais */
.alternating-grid > div:nth-child(odd) {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

/* Sombras customizadas */
.shadow-custom {
  box-shadow: 0 10px 30px rgba(126, 10, 10, 0.1);
}

.shadow-custom-hover:hover {
  box-shadow: 0 15px 40px rgba(126, 10, 10, 0.2);
}

/* Botões com efeito ripple */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Texto com gradiente */
.text-gradient {
  background: linear-gradient(135deg, #7e0a0a 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #7e0a0a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Print styles */
@media print {
  #whatsapp-float,
  header,
  .no-print {
    display: none !important;
  }
}
