/* ===== WCA ANIMATIONS — SHARED STYLESHEET ===== */

/* -- Scroll Progress Bar -- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--red, #B91C1C);
  width: 0%;
  z-index: 10000;
  transition: none;
  pointer-events: none;
}

/* -- Scroll Reveal Base -- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal--up {
  transform: translateY(30px);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* -- Counter Number Flash -- */
.counter-active {
  transition: color 0.3s ease;
}

/* -- Card Hover Enhancements -- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.serve-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.serve-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.metric-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metric-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.diff-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.diff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.pain-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.why-wca-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-wca-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.base-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.base-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.coverage-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.coverage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* -- Icon Micro-Animations -- */
.service-card .service-icon,
.serve-card .serve-icon,
.diff-card .diff-icon,
.pain-card .pain-icon,
.why-wca-card .why-wca-icon {
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon,
.serve-card:hover .serve-icon,
.diff-card:hover .diff-icon,
.pain-card:hover .pain-icon,
.why-wca-card:hover .why-wca-icon {
  transform: scale(1.15);
}

/* Step number bounce on reveal */
.step-number {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-number.bounce {
  transform: scale(1.2);
}

/* Trust badge pulse */
@keyframes badge-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.trust-pulse {
  animation: badge-pulse 0.6s ease;
}

/* -- Image Brand Treatment -- */
.branded-img {
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}

.branded-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.branded-img-container::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.08), rgba(185,28,28,0.06));
  pointer-events: none;
}

/* Hero image overlay treatment */
.hero-img-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-img-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.85) 100%);
  z-index: 1;
}

/* -- Reduced Motion -- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  [data-parallax] {
    transform: none !important;
  }
  .service-card,
  .serve-card,
  .metric-card,
  .diff-card,
  .pain-card,
  .why-wca-card,
  .base-card,
  .coverage-card {
    transition: border-color 0.2s, box-shadow 0.2s !important;
    transform: none !important;
  }
  .service-card:hover,
  .serve-card:hover,
  .metric-card:hover,
  .diff-card:hover,
  .pain-card:hover,
  .why-wca-card:hover,
  .base-card:hover,
  .coverage-card:hover {
    transform: none !important;
  }
  .service-card .service-icon,
  .serve-card .serve-icon,
  .diff-card .diff-icon,
  .pain-card .pain-icon,
  .why-wca-card .why-wca-icon {
    transition: none !important;
  }
  .step-number { transition: none !important; }
  .trust-pulse { animation: none !important; }
}
