/* =========================================================
   lux-motion.css — premium motion only (no layout/design changes)
   ========================================================= */

:root {
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lux-gold: #c4a052;
}

/* ---------- Scroll reveal ---------- */
.lux-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.8s var(--lux-ease),
    transform 0.8s var(--lux-ease);
  will-change: opacity, transform;
}

.lux-reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.lux-reveal--img {
  transform: translate3d(0, 20px, 0) scale(1.03);
  transform-origin: center center;
}

.lux-reveal--img.is-in {
  transform: translate3d(0, 0, 0) scale(1);
}

.lux-reveal--left {
  transform: translate3d(-18px, 16px, 0);
}

.lux-reveal--left.is-in {
  transform: translate3d(0, 0, 0);
}

.lux-d1 { transition-delay: 0ms; }
.lux-d2 { transition-delay: 100ms; }
.lux-d3 { transition-delay: 180ms; }
.lux-d4 { transition-delay: 260ms; }

/* ---------- Hero sparkle floats ---------- */
body.page-home .hero-sparkles {
  overflow: visible;
}

body.page-home .hero-sparkles .lux-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: var(--lux-gold);
  opacity: 0.35;
  clip-path: polygon(50% 0%, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0% 50%, 42% 42%);
  animation: luxSparkFloat var(--lux-dur, 7s) ease-in-out infinite;
  animation-delay: var(--lux-delay, 0s);
  will-change: transform, opacity;
}

@keyframes luxSparkFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: var(--lux-a, 0.3);
  }
  40% {
    transform: translate3d(var(--lux-dx, 6px), var(--lux-dy, -10px), 0) rotate(4deg);
    opacity: calc(var(--lux-a, 0.3) + 0.18);
  }
  70% {
    transform: translate3d(calc(var(--lux-dx, 6px) * -0.6), calc(var(--lux-dy, -10px) * 0.5), 0) rotate(-3deg);
    opacity: var(--lux-a, 0.3);
  }
}

body.page-home .hero-sparkles {
  animation: luxSparkLayer 14s ease-in-out infinite;
}

@keyframes luxSparkLayer {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(0, -4px, 0);
    opacity: 1;
  }
}

/* ---------- Hero parallax host ---------- */
body.page-home .hero-visual {
  transition: none;
  will-change: transform;
}

body.page-home .hero-visual .hero-frame {
  will-change: transform;
}

/* ---------- Navbar scroll polish ---------- */
body.page-home .nav .nav-shell {
  transition:
    height 0.4s var(--lux-ease),
    min-height 0.4s var(--lux-ease),
    padding 0.4s var(--lux-ease),
    box-shadow 0.4s var(--lux-ease),
    background 0.4s var(--lux-ease),
    backdrop-filter 0.4s var(--lux-ease) !important;
}

body.page-home .nav.is-scrolled .nav-shell {
  height: 56px !important;
  min-height: 56px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 36px rgba(42, 30, 23, 0.1) !important;
  backdrop-filter: blur(18px) saturate(1.05);
}

/* Gold underline already exists — refine timing only */
body.page-home .menu a::after {
  transition: width 0.4s var(--lux-ease) !important;
  background: var(--lux-gold) !important;
}

/* ---------- Explore button micro-interaction ---------- */
body.page-home .hero-actions .btn,
body.page-home .hero-actions .btn.ghost,
body.page-home .hero-actions .btn.ghost.dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.35s var(--lux-ease),
    box-shadow 0.35s var(--lux-ease),
    background 0.3s ease,
    border-color 0.3s ease !important;
}

body.page-home .hero-actions .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0.55s var(--lux-ease);
  pointer-events: none;
  z-index: 1;
}

body.page-home .hero-actions .btn > * {
  position: relative;
  z-index: 2;
}

body.page-home .hero-actions .btn:hover,
body.page-home .hero-actions .btn.ghost:hover,
body.page-home .hero-actions .btn.ghost.dark:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

body.page-home .hero-actions .btn:hover::before {
  transform: translateX(120%);
}

body.page-home .hero-actions .btn:active,
body.page-home .hero-actions .btn.ghost:active,
body.page-home .hero-actions .btn.ghost.dark:active {
  transform: translateY(0) scale(0.985) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16) !important;
}

/* Arrow nudge — text already includes → */
body.page-home .hero-actions .btn {
  letter-spacing: 0.12em;
}

body.page-home .hero-actions .btn:hover {
  letter-spacing: 0.14em;
}

/* ---------- Features strip ---------- */
body.page-home .home-feature {
  transition: transform 0.45s var(--lux-ease), opacity 0.45s var(--lux-ease);
}

body.page-home .home-feature:hover {
  transform: translateY(-3px);
}

body.page-home .home-feature i,
body.page-home .home-feature svg {
  transition: transform 0.45s var(--lux-ease), color 0.35s ease, stroke 0.35s ease;
}

body.page-home .home-feature:hover i,
body.page-home .home-feature:hover svg {
  transform: translateY(-1px);
  color: var(--lux-gold);
  stroke: var(--lux-gold);
}

/* ---------- Collection cards — see home-collection-motion.css ---------- */

/* ---------- Footer / trust polish ---------- */
body.page-home .footer-brand,
body.page-home .footer-cols,
body.page-home .trust-card {
  will-change: opacity, transform;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 960px) {
  .lux-reveal {
    transform: translate3d(0, 18px, 0);
  }

  .lux-reveal--img {
    transform: translate3d(0, 12px, 0) scale(1.02);
  }

  body.page-home .hero-sparkles .lux-spark {
    opacity: 0.28;
  }

  body.page-home .hero-actions .btn:hover,
  body.page-home .hero-actions .btn.ghost:hover,
  body.page-home .hero-actions .btn.ghost.dark:hover {
    transform: translateY(-1px) scale(1.01) !important;
  }

  body.page-home .nav.is-scrolled .nav-shell {
    height: 54px !important;
    min-height: 54px !important;
  }
}

@media (pointer: coarse) {
  body.page-home .hero-visual {
    transform: none !important;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .lux-reveal,
  .lux-reveal--img,
  .lux-reveal--left {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.page-home .hero-sparkles,
  body.page-home .hero-sparkles .lux-spark {
    animation: none !important;
  }

  body.page-home .hero-visual {
    transform: none !important;
  }

  body.page-home .nav .nav-shell,
  body.page-home .hero-actions .btn,
  body.page-home .home-feature {
    transition: none !important;
  }

  body.page-home .hero-actions .btn:hover,
  body.page-home .hero-actions .btn.ghost:hover,
  body.page-home .hero-actions .btn.ghost.dark:hover,
  body.page-home .home-feature:hover {
    transform: none !important;
  }

  body.page-home .hero-actions .btn::before {
    display: none;
  }
}
