/* Scroll reaction */

.aqua-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  z-index: 1400;
  pointer-events: none;
  transform: scaleX(var(--aqua-scroll, 0));
  transform-origin: right center;
  background: linear-gradient(90deg, var(--as-primary, var(--blue, #0aa3b8)), color-mix(in srgb, var(--as-primary, var(--blue, #0aa3b8)) 40%, white));
  will-change: transform;
}

html.aqua-scrolled .site-header {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

html.aqua-scrolled .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.aqua-await {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--in-delay, 0ms),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--in-delay, 0ms),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--in-delay, 0ms);
}

.aqua-await.is-in,
.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.product-card,
.post-card,
.cat-card,
.feature-card,
.woocommerce ul.products li.product {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card .product-thumb img,
.woocommerce ul.products li.product img,
.post-card img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb img,
.woocommerce ul.products li.product:hover img,
.post-card:hover img {
  transform: scale(1.06);
}

.section-head,
.page-hero h1,
.hero-copy {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .aqua-await,
  .aqua-await.is-in,
  .is-in,
  .product-card,
  .product-card .product-thumb img {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .aqua-scroll-progress { display: none !important; }
}
