/* ============================================================
   The Butcher Shoppe — Inside the Shoppe Cinematic Polish
   Additive layer loaded after inside.css.
   ============================================================ */

/* ---------- Page hero: front door warmth ---------- */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 75% 20%,
    rgba(212, 160, 86, 0.16) 0%,
    transparent 55%
  );
}

.page-header__overlay {
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.45) 0%,
    rgba(12, 12, 12, 0.6) 55%,
    rgba(12, 12, 12, 0.88) 100%
  );
}

.page-header__media img {
  filter: saturate(0.9) contrast(1.08) brightness(0.74);
}

.page-header .display-headline {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.page-header .hero__sub {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ---------- Primary/outline CTA glow ---------- */
.btn--primary,
.btn--outline {
  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);
}

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

/* ---------- Fresh Cases: premium case window ---------- */
.case-showcase__media {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.18));
}

.case-showcase__media:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 32px 70px rgba(0, 0, 0, 0.24));
}

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

.case-showcase__media:hover img {
  transform: scale(1.04);
}

.case-badge {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  align-self: flex-start;
}

/* List bullets animate in */
.case-showcase__list li::before {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s var(--ease-out),
              opacity 0.4s var(--ease-out);
}

.case-showcase.is-visible .case-showcase__list li::before {
  transform: scale(1);
  opacity: 1;
}

.case-showcase.is-visible .case-showcase__list li:nth-child(1)::before { transition-delay: 0ms; }
.case-showcase.is-visible .case-showcase__list li:nth-child(2)::before { transition-delay: 90ms; }
.case-showcase.is-visible .case-showcase__list li:nth-child(3)::before { transition-delay: 180ms; }
.case-showcase.is-visible .case-showcase__list li:nth-child(4)::before { transition-delay: 270ms; }
.case-showcase.is-visible .case-showcase__list li:nth-child(5)::before { transition-delay: 360ms; }
.case-showcase.is-visible .case-showcase__list li:nth-child(6)::before { transition-delay: 450ms; }

/* Body copy stagger (parent already has data-reveal="stagger") */
.case-showcase.is-visible .case-showcase__body > *:nth-child(1) { transition-delay: 80ms; }
.case-showcase.is-visible .case-showcase__body > *:nth-child(2) { transition-delay: 160ms; }
.case-showcase.is-visible .case-showcase__body > *:nth-child(3) { transition-delay: 240ms; }
.case-showcase.is-visible .case-showcase__body > *:nth-child(4) { transition-delay: 320ms; }
.case-showcase.is-visible .case-showcase__body > *:nth-child(5) { transition-delay: 400ms; }
.case-showcase.is-visible .case-showcase__body > *:nth-child(6) { transition-delay: 480ms; }

/* ---------- Butcher counter / sticky story ---------- */
.sticky-story {
  overflow: clip;
}

.sticky-story__media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(212, 160, 86, 0.12) 0%,
    transparent 50%
  );
}

.sticky-story__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(12, 12, 12, 0.55);
}

.sticky-story__media img {
  transition: transform 1.2s var(--ease-out);
}

.sticky-story__panel {
  position: relative;
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out),
              background 0.5s var(--ease-out);
}

.sticky-story__panel::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 1.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(212, 160, 86, 0);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.sticky-story__panel.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-4px) scale(1.01);
}

.sticky-story__panel.is-active::before {
  opacity: 1;
  animation: ip-active-pulse 2.5s ease-in-out infinite;
}

@keyframes ip-active-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 160, 86, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(212, 160, 86, 0);
  }
}

.sticky-story__panel .eyebrow {
  padding-left: 1.25rem;
}

/* ---------- Custom cuts / Ask Anything ---------- */
.bring-card {
  transition: background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.bring-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 160, 86, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.inside-custom__visual {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

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

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

.inside-custom__visual:hover img {
  transform: scale(1.04);
}

/* ---------- Freezer & Extras ---------- */
.preview__visual {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

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

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

.preview__visual:hover img {
  transform: scale(1.04);
}

.freezer-note {
  background: rgba(212, 160, 86, 0.1);
  border-left-width: 4px;
  transition: background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.freezer-note:hover {
  background: rgba(212, 160, 86, 0.14);
  transform: translateY(-2px);
}

.extras-card {
  transition: box-shadow 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.extras-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

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

.extras-card:hover img {
  transform: scale(1.06);
}

.extras-card__content {
  transition: transform 0.4s var(--ease-out);
}

.extras-card:hover .extras-card__content {
  transform: translateY(-4px);
}

/* ---------- Grocery diff ---------- */
.grocery-diff__col {
  transition: background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.grocery-diff__col:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.grocery-diff__col--us:hover {
  border-color: rgba(212, 160, 86, 0.25);
}

.grocery-diff__col--them:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

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

.grocery-diff__grid.is-visible .grocery-diff__col li::before {
  transform: scale(1);
  opacity: 1;
}

.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(1)::before { transition-delay: 0ms; }
.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(2)::before { transition-delay: 90ms; }
.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(3)::before { transition-delay: 180ms; }
.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(4)::before { transition-delay: 270ms; }
.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(5)::before { transition-delay: 360ms; }
.grocery-diff__grid.is-visible .grocery-diff__col li:nth-child(6)::before { transition-delay: 450ms; }

.grocery-diff__note {
  position: relative;
  display: inline-block;
  padding: 0 var(--space-md);
}

.grocery-diff__note::before,
.grocery-diff__note::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--amber);
  opacity: 0.25;
}

.grocery-diff__note::before { right: 100%; }
.grocery-diff__note::after { left: 100%; }

/* ---------- Final CTA ---------- */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(212, 160, 86, 0.06) 48%,
    rgba(255, 248, 240, 0.08) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  opacity: 0;
  animation: ip-cta-sweep 10s var(--ease-in-out) infinite;
}

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

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* ---------- Mobile simplification ---------- */
@media (max-width: 768px) {
  .page-header::before,
  .page-header::after,
  .cta-banner::after {
    animation: none !important;
  }

  .case-showcase__media:hover,
  .inside-custom__visual:hover,
  .preview__visual:hover,
  .extras-card:hover,
  .bring-card:hover,
  .grocery-diff__col:hover,
  .freezer-note:hover {
    transform: none;
  }

  .case-showcase__media:hover img,
  .inside-custom__visual:hover img,
  .preview__visual:hover img,
  .extras-card:hover img {
    transform: scale(1.02);
  }

  .sticky-story__panel.is-active {
    transform: scale(1);
  }

  .grocery-diff__note::before,
  .grocery-diff__note::after {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-header::before,
  .page-header::after,
  .cta-banner::after,
  .sticky-story__panel::before,
  .case-showcase__media,
  .case-showcase__media img,
  .case-showcase__list li::before,
  .bring-card,
  .inside-custom__visual,
  .inside-custom__visual img,
  .preview__visual,
  .preview__visual img,
  .extras-card,
  .extras-card img,
  .extras-card__content,
  .freezer-note,
  .grocery-diff__col,
  .grocery-diff__col li::before,
  .btn--primary,
  .btn--outline {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }

  .sticky-story__panel.is-active {
    transform: none;
    box-shadow: none;
  }
}
