/* ============================================================
   Motion Polish Layer — Pass 1 Staging
   Additive, conversion-safe enhancements for index-motion-test.html.
   ============================================================ */

/* ---------- Hero: ambient light sweep & glow pulse ---------- */
.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(212, 160, 86, 0.08) 48%,
    rgba(255, 248, 240, 0.10) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
}

.hero-editorial.is-loaded::before {
  animation: mp-hero-sweep 10s var(--ease-in-out) infinite;
}

@keyframes mp-hero-sweep {
  0%, 100% {
    opacity: 0;
    background-position: 200% 0;
  }
  45% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  55% {
    opacity: 0;
  }
}

.hero-editorial__light {
  animation: mp-glow-pulse 7s ease-in-out infinite alternate;
}

@keyframes mp-glow-pulse {
  0% {
    opacity: 0.85;
    background-size: 100% 100%;
  }
  100% {
    opacity: 1;
    background-size: 120% 120%;
  }
}

/* Hero headline line-by-line reveal (preserves existing span structure) */
.hero-editorial__headline > span {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

/* If the polish JS never runs, keep the headline readable */
html:not(.mp-js-ready) .hero-editorial__headline > span {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-editorial.is-loaded .hero-editorial__headline > span {
  opacity: 1;
  transform: translateY(0);
}

.hero-editorial.is-loaded .hero-editorial__headline > span:nth-child(1) { transition-delay: 0ms; }
.hero-editorial.is-loaded .hero-editorial__headline > span:nth-child(2) { transition-delay: 90ms; }
.hero-editorial.is-loaded .hero-editorial__headline > span:nth-child(3) { transition-delay: 180ms; }

/* ---------- Trust strip hover polish ---------- */
.trust-strip__list li {
  position: relative;
  transition: color 0.25s var(--ease-out);
}

.trust-strip__list li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-lg);
  right: var(--space-lg);
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.trust-strip__list li:hover {
  color: var(--bone);
}

.trust-strip__list li:hover::after {
  transform: scaleX(1);
}

.trust-strip__icon {
  transition: transform 0.3s var(--ease-out),
              background 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.trust-strip__list li:hover .trust-strip__icon {
  transform: translateY(-3px) scale(1.08);
  background: rgba(212, 160, 86, 0.22);
  box-shadow: 0 8px 20px rgba(212, 160, 86, 0.18);
}

/* ---------- Products Showcase ---------- */
.products-showcase__hero {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.products-showcase__hero img {
  transition: transform 0.9s var(--ease-out);
}

.products-showcase__hero:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.products-showcase__hero:hover img {
  transform: scale(1.04);
}

/* Category callout enhancements */
.category-callout {
  position: relative;
  overflow: hidden;
}

.category-callout::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease-out);
}

.category-callout:hover::before {
  transform: translateX(0);
}

.category-callout .num {
  display: inline-block;
  transition: color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
}

.category-callout:hover .num {
  color: var(--ember);
  transform: scale(1.15);
}

/* ---------- Inside the Shoppe Preview ---------- */
.detail-card {
  transition: transform 0.35s var(--ease-out),
              background 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}

.detail-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.shoppe-preview__content .section-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Ask Your Butcher ---------- */
.butcher-help__visual {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.butcher-help__visual img {
  transition: transform 0.9s var(--ease-out);
}

.butcher-help__visual:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.butcher-help__visual:hover img {
  transform: scale(1.03);
}

.butcher-help__list li::before {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s var(--ease-out),
              opacity 0.4s var(--ease-out);
}

.butcher-help__list.is-visible li::before {
  transform: scale(1);
  opacity: 1;
}

.butcher-help__list.is-visible li:nth-child(1)::before { transition-delay: 0ms; }
.butcher-help__list.is-visible li:nth-child(2)::before { transition-delay: 90ms; }
.butcher-help__list.is-visible li:nth-child(3)::before { transition-delay: 180ms; }
.butcher-help__list.is-visible li:nth-child(4)::before { transition-delay: 270ms; }

/* ---------- Visit CTA ---------- */
.visit-cta__visual {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.visit-cta__visual img {
  transition: transform 0.9s var(--ease-out);
}

.visit-cta__visual:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.visit-cta__visual:hover img {
  transform: scale(1.03);
}

.visit-cta__body address a {
  position: relative;
  display: inline-block;
}

.visit-cta__body address a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.visit-cta__body address a:hover::after,
.visit-cta__body address a:focus-visible::after {
  transform: scaleX(1);
}

/* Subtle amber glow on primary CTAs */
.btn--primary {
  transition: transform 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 10px 28px rgba(201, 58, 58, 0.28),
              0 0 0 3px rgba(212, 160, 86, 0.18);
}

/* ---------- Mobile simplification ---------- */
@media (max-width: 768px) {
  .hero-editorial.is-loaded::before,
  .hero-editorial__light {
    animation: none !important;
  }

  .hero-editorial__headline > span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .products-showcase__hero:hover,
  .butcher-help__visual:hover,
  .visit-cta__visual:hover,
  .detail-card:hover {
    transform: none;
  }

  .products-showcase__hero:hover img,
  .butcher-help__visual:hover img,
  .visit-cta__visual:hover img {
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-editorial.is-loaded::before,
  .hero-editorial__light,
  .hero-editorial.is-loaded .hero-editorial__headline > span,
  .trust-strip__list li,
  .trust-strip__list li::after,
  .trust-strip__icon,
  .products-showcase__hero,
  .products-showcase__hero img,
  .category-callout,
  .category-callout::before,
  .category-callout .num,
  .detail-card,
  .butcher-help__visual,
  .butcher-help__visual img,
  .butcher-help__list li::before,
  .visit-cta__visual,
  .visit-cta__visual img,
  .visit-cta__body address a::after,
  .btn--primary {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-editorial.is-loaded .hero-editorial__headline > span,
  .butcher-help__list li::before {
    opacity: 1 !important;
    transform: none !important;
  }
}
