/* LDA HC v3.6 — hover e contagem animada dos indicadores */
.lda-hc-v3__stats .lda-hc-v3__stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
  border-color: rgba(82, 100, 77, 0.08) !important;
  box-shadow: 0 18px 44px rgba(42, 33, 28, 0.08) !important;
  transition:
    transform 0.36s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.36s ease,
    border-color 0.36s ease,
    background 0.36s ease !important;
  will-change: transform;
}

.lda-hc-v3__stats .lda-hc-v3__stat > * {
  position: relative;
  z-index: 2;
}

.lda-hc-v3__stats .lda-hc-v3__stat::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -45%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 46%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.18) 54%,
    transparent 60%
  );
  transform: translateX(-72%) rotate(7deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.lda-hc-v3__stats .lda-hc-v3__stat::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(185, 104, 72, 0.16), transparent 58%);
  transition: opacity 0.36s ease;
}

.lda-hc-v3__stats .lda-hc-v3__stat .lda-hc-v3__icon {
  transition:
    transform 0.36s cubic-bezier(0.2, 0.75, 0.25, 1),
    box-shadow 0.36s ease,
    filter 0.36s ease !important;
}

.lda-hc-v3__stats .lda-hc-v3__stat strong {
  display: block;
  font-variant-numeric: tabular-nums;
  transform-origin: center;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
    color 0.28s ease,
    text-shadow 0.28s ease !important;
}

.lda-hc-v3__stats .lda-hc-v3__stat.is-counting strong {
  animation: lda-hc-v3-counter-pulse 0.72s ease-in-out infinite alternate;
}

.lda-hc-v3__stats .lda-hc-v3__stat.has-counted strong {
  animation: lda-hc-v3-counter-settle 0.52s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes lda-hc-v3-counter-pulse {
  from {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
  to {
    transform: translateY(-2px) scale(1.035);
    filter: saturate(1.12);
  }
}

@keyframes lda-hc-v3-counter-settle {
  0% { transform: scale(0.94); }
  58% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .lda-hc-v3__stats .lda-hc-v3__stat:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(185, 104, 72, 0.20) !important;
    background: #fff !important;
    box-shadow:
      0 28px 64px rgba(42, 33, 28, 0.15),
      0 0 0 1px rgba(185, 104, 72, 0.06) !important;
  }

  .lda-hc-v3__stats .lda-hc-v3__stat:hover::before {
    transform: translateX(72%) rotate(7deg);
  }

  .lda-hc-v3__stats .lda-hc-v3__stat:hover::after {
    opacity: 1;
  }

  .lda-hc-v3__stats .lda-hc-v3__stat:hover .lda-hc-v3__icon {
    transform: translateY(-5px) scale(1.10) rotate(-4deg) !important;
    filter: drop-shadow(0 10px 14px rgba(42, 33, 28, 0.12));
  }

  .lda-hc-v3__stats .lda-hc-v3__stat:hover strong {
    transform: translateY(-2px) scale(1.04);
    color: #52644d !important;
    text-shadow: 0 8px 22px rgba(82, 100, 77, 0.16);
  }
}

@media (max-width: 640px) {
  .lda-hc-v3__stats .lda-hc-v3__stat {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lda-hc-v3__stats .lda-hc-v3__stat,
  .lda-hc-v3__stats .lda-hc-v3__stat::before,
  .lda-hc-v3__stats .lda-hc-v3__stat::after,
  .lda-hc-v3__stats .lda-hc-v3__stat .lda-hc-v3__icon,
  .lda-hc-v3__stats .lda-hc-v3__stat strong {
    transition: none !important;
    animation: none !important;
  }
}
