/* effects.css — Vraj Jewels Ultra-Luxury Micro-Interactions & Transitions
   ══════════════════════════════════════════════════════════════════════
   1. Staggered scroll reveal (IntersectionObserver triggers)
   2. Gold shimmer sweep & card hover elevation
   3. Reactive estimator pulse & rate ticker entrance
   4. prefers-reduced-motion fallback
*/

/* ── 1. Scroll Entrance Animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Entrance Sequence */
.hero-content > * {
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-badge-row      { animation-delay: 0.05s; }
.hero-headline       { animation-delay: 0.15s; }
.hero-lead           { animation-delay: 0.25s; }
.hero-actions-group  { animation-delay: 0.35s; }
.hero-trust-matrix   { animation-delay: 0.45s; }

.hero-visual-stage {
  animation: heroScaleIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

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

@keyframes heroScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── 2. Gold Button Continuous & Hover Shine Flare ─────────────────── */
.btn-royal-cta .btn-shine {
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 25%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  z-index: 1;
  animation: goldShimmerSweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Fast radiant gleam sweep on hover */
.btn-royal-cta:hover .btn-shine {
  animation: goldShimmerHover 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes goldShimmerSweep {
  0% {
    left: -120%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  35% {
    left: 200%;
    opacity: 1;
  }
  36%, 100% {
    left: 200%;
    opacity: 0;
  }
}

@keyframes goldShimmerHover {
  0% {
    left: -120%;
    opacity: 0.8;
  }
  50% {
    left: 200%;
    opacity: 1;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}

/* ── 3. Interactive Estimator Pulse ───────────────────────────────── */
.res-grand-val.is-updating {
  animation: pricePop 0.3s ease;
}

@keyframes pricePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: var(--color-gold); }
  100% { transform: scale(1); }
}

/* ── 4. Card Hover Interactions ───────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .masterpiece-card, .collection-tile, .pillar-card, .testimonial-card, .contact-channel-card {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  }
  .masterpiece-card:hover {
    box-shadow: 0 16px 36px rgba(25, 18, 14, 0.1);
  }
}

/* ── 5. Reduced Motion Compliance ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-content > *, .hero-visual-stage {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn-royal-cta .btn-shine {
    display: none !important;
  }
}
