/* Scroll progress + stronger reveal motion */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100001;
  background: rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c41e1e 0%, #e63535 55%, #f87171 100%);
  box-shadow: 0 0 12px rgba(196, 30, 30, 0.45);
  transition: width 0.05s linear;
  will-change: width;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal-on-scroll,
.testimonial-card.reveal-on-scroll,
.area-band-list li.reveal-on-scroll {
  transform: translateY(34px) scale(0.985);
}

.service-card.reveal-on-scroll.is-visible,
.testimonial-card.reveal-on-scroll.is-visible,
.area-band-list li.reveal-on-scroll.is-visible {
  transform: translateY(0) scale(1);
}

.section-header.has-progress-line {
  position: relative;
  padding-bottom: 1rem;
}

.section-header.has-progress-line::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c41e1e, #e63535);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header.has-progress-line.is-filled::after {
  width: 4.75rem;
}

.about-years-callout.has-fill-bar {
  position: relative;
  overflow: hidden;
}

.about-years-callout.has-fill-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, #c41e1e, #e63535);
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-years-callout.has-fill-bar.is-filled::after {
  width: 100%;
}

.about-stat.has-fill-bar {
  position: relative;
  padding-bottom: 0.85rem;
}

.about-stat.has-fill-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #c41e1e, #e63535);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-stat.has-fill-bar.is-filled::after {
  width: 100%;
}

.area-band-list li {
  position: relative;
  overflow: hidden;
}

.area-band-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(196, 30, 30, 0.35), transparent);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.area-band-list li.is-filled::before {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress,
  .scroll-progress-bar {
    display: none !important;
  }

  .reveal-on-scroll,
  .about-years-callout.has-fill-bar::after,
  .about-stat.has-fill-bar::after,
  .section-header.has-progress-line::after,
  .area-band-list li::before {
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-years-callout.has-fill-bar::after,
  .about-stat.has-fill-bar::after,
  .area-band-list li::before {
    width: 100% !important;
  }

  .section-header.has-progress-line::after {
    width: 4.75rem !important;
  }
}
