/* ==========================================================================
   World Crystal Lighting — Animations
   Scroll-reveal effects and animated link underlines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animated gold underline for inline text links
   Apply the .link-underline class to inline links that should animate.
   -------------------------------------------------------------------------- */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Scroll reveal — fade up
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Scroll reveal — fade in
   -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Hero — Staggered entrance animations
   -------------------------------------------------------------------------- */
[class*="hero-animate-"] {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-animate-1 { animation-delay: 0.2s; }
.hero-animate-2 { animation-delay: 0.5s; }
.hero-animate-3 { animation-delay: 0.9s; }
.hero-animate-4 { animation-delay: 1.2s; }
.hero-animate-5 { animation-delay: 1.5s; }
.hero-animate-6 { animation-delay: 1.9s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Scroll reveal — section elements
   -------------------------------------------------------------------------- */
.trust-item,
.collection-card,
.value-card,
.gallery-item,
.testimonial-card,
.split-feature,
.section-header,
.cta-strip-inner {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.trust-item.visible,
.collection-card.visible,
.value-card.visible,
.gallery-item.visible,
.testimonial-card.visible,
.split-feature.visible,
.section-header.visible,
.cta-strip-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.marquee-track {
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

.brand-marquee.visible .marquee-track {
  opacity: 1;
}

/* Staggered cascade delays */
.collection-card:nth-child(2) { transition-delay: 0.1s; }
.collection-card:nth-child(3) { transition-delay: 0.2s; }

.value-card:nth-child(2) { transition-delay: 0.1s; }
.value-card:nth-child(3) { transition-delay: 0.2s; }

.trust-item:nth-child(1) { transition-delay: 0s; }
.trust-item:nth-child(3) { transition-delay: 0.1s; }
.trust-item:nth-child(5) { transition-delay: 0.2s; }
.trust-item:nth-child(7) { transition-delay: 0.3s; }

.split-feature:nth-child(2) { transition-delay: 0.1s; }
.split-feature:nth-child(3) { transition-delay: 0.2s; }
.split-feature:nth-child(4) { transition-delay: 0.3s; }
