/**
 * Ácácias — motion & micro-interações
 */
#ac-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, #8a8a86, #cfcfcb, #e8e8e4);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Reveal genérico (além do WOW) */
.ac-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ac-reveal.is-in {
  opacity: 1;
  transform: none;
}
.ac-reveal[data-dir="left"] { transform: translateX(-32px); }
.ac-reveal[data-dir="right"] { transform: translateX(32px); }
.ac-reveal[data-dir="scale"] { transform: scale(0.94); }
.ac-reveal[data-dir="left"].is-in,
.ac-reveal[data-dir="right"].is-in,
.ac-reveal[data-dir="scale"].is-in {
  transform: none;
}

/* Hover lift em cards / features */
.feature,
.blog,
.card.shadow,
.counter-box {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature:hover,
.blog:hover,
.card.shadow:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}
.counter-box:hover {
  transform: translateY(-4px);
}

/* Zoom suave em imagens de catálogo */
.feature img,
.blog-img img,
.ac-zoom-img {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover img,
.blog:hover .blog-img img,
.ac-zoom:hover .ac-zoom-img {
  transform: scale(1.06);
}
.feature.overflow-hidden,
.blog-img {
  overflow: hidden;
}

/* Botões com brilho */
.btn-primary,
.btn-soft-primary,
.btn-outline-light {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary:hover,
.btn-soft-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::after {
  transform: translateX(120%);
}

/* Marquee de serviços */
.ac-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.85rem 0;
}
.ac-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: acMarquee 36s linear infinite;
}
.ac-marquee__track span {
  flex-shrink: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 240, 236, 0.4);
  white-space: nowrap;
}
.ac-marquee__track span::after {
  content: ' ·';
  color: rgba(207, 207, 203, 0.45);
  margin-left: 2.5rem;
}
@keyframes acMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ac-marquee:hover .ac-marquee__track {
  animation-play-state: paused;
}

/* Floating WhatsApp pulse */
.whatsapp-float {
  animation: acWaPulse 2.4s ease-in-out infinite;
}
@keyframes acWaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Hero Ken Burns via JS class */
.swiper-slide.ac-ken .bg-overlay + .container {
  /* keep content stable */
}
.ac-hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  animation: acKen 14s ease-in-out infinite alternate;
  z-index: 0;
}
.swiper-slide > .bg-overlay {
  z-index: 1;
}
.swiper-slide > .container {
  z-index: 2;
  position: relative;
}
@keyframes acKen {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, 1%); }
}

/* Mover float (já no template) reforçado */
.mover {
  animation: acMover 3.2s ease-in-out infinite alternate;
}
@keyframes acMover {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

/* Steps número grande */
.ac-step-num {
  transition: color 0.3s, transform 0.3s;
}
.feature:hover .ac-step-num {
  color: #e8e8e4 !important;
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .ac-marquee__track,
  .ac-hero-bg,
  .mover,
  .whatsapp-float,
  .btn-primary::after {
    animation: none !important;
  }
  .ac-reveal {
    opacity: 1;
    transform: none;
  }
  .feature:hover,
  .blog:hover,
  .card.shadow:hover {
    transform: none;
  }
}
