/**
 * PURIVOM — PHASE 4A: CINEMATIC MOTION
 * Enhances existing sections with restrained, premium motion. Builds on
 * top of the reveal system (animation.css + assets/js/animations.js) and
 * existing hover utilities — nothing here duplicates that mechanism.
 *
 * Every decorative/looping animation in this file is neutralized by the
 * global `prefers-reduced-motion: reduce` rule already in
 * accessibility.css (it zeroes animation-duration/transition-duration
 * site-wide), so no rule below needs its own reduced-motion override
 * unless it changes something structural rather than purely decorative.
 */

/* ---------------------------------------------------------------------
   HERO — slow atmospheric drift + product float
   --------------------------------------------------------------------- */

.pv-hero__glow--one {
  animation: pv-glow-drift-a 16s var(--pv-ease-standard) infinite alternate;
}

.pv-hero__glow--two {
  animation: pv-glow-drift-b 20s var(--pv-ease-standard) infinite alternate;
}

@keyframes pv-glow-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 3%) scale(1.06); }
}

@keyframes pv-glow-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}

.pv-hero__ripple {
  animation: pv-ripple-drift 14s linear infinite;
}

@keyframes pv-ripple-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 56px; }
}

/* Product bottle: slow float + soft highlight sweep. Applied to the
   frame (not the <img> itself) so real bottle photography is never
   stretched or distorted by the animation. */
.pv-hero__product-frame {
  animation: pv-float 7s var(--pv-ease-standard) infinite alternate;
  will-change: transform;
}

@keyframes pv-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.pv-hero__product-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 48%,
    transparent 58%
  );
  background-size: 220% 220%;
  background-position: -40% -40%;
  animation: pv-sheen-sweep 7s var(--pv-ease-standard) infinite;
  pointer-events: none;
}

@keyframes pv-sheen-sweep {
  0%, 55%  { background-position: -40% -40%; }
  100%     { background-position: 140% 140%; }
}

/* ---------------------------------------------------------------------
   HERO CTA — restrained light sweep on the primary button
   --------------------------------------------------------------------- */

.pv-hero__actions .pv-btn--primary {
  position: relative;
  overflow: hidden;
}

.pv-hero__actions .pv-btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left var(--pv-duration-slow) var(--pv-ease-standard);
}

.pv-hero__actions .pv-btn--primary:hover::before,
.pv-hero__actions .pv-btn--primary:focus-visible::before {
  left: 130%;
}

/* ---------------------------------------------------------------------
   BRAND STATEMENT — gentle accent divider reveal
   --------------------------------------------------------------------- */

.pv-brand-statement .pv-divider--accent {
  width: 64px;
  transition: width var(--pv-duration-slow) var(--pv-ease-standard);
}

.pv-brand-statement.is-visible .pv-divider--accent,
.pv-brand-statement[data-pv-animate].is-visible .pv-divider--accent {
  width: 96px;
}

/* ---------------------------------------------------------------------
   PRODUCT SHOWCASE — desktop hover, keyboard-equivalent focus-within
   --------------------------------------------------------------------- */

.pv-product-card {
  position: relative;
}

.pv-product-card:hover,
.pv-product-card:focus-within {
  transform: translateY(-4px);
}

.pv-product-card {
  transition: border-color var(--pv-duration-base) var(--pv-ease-standard),
              box-shadow var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-product-card:hover .pv-product-card__bottle,
.pv-product-card:focus-within .pv-product-card__bottle {
  transform: translateY(-4px) scale(1.03);
}

.pv-product-card__media {
  position: relative;
  overflow: hidden;
}

.pv-product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(224, 199, 140, 0.16) 50%, transparent 70%);
  background-size: 220% 220%;
  background-position: -60% -60%;
  opacity: 0;
  transition: opacity var(--pv-duration-base) var(--pv-ease-standard);
  pointer-events: none;
}

.pv-product-card:hover .pv-product-card__media::after,
.pv-product-card:focus-within .pv-product-card__media::after {
  opacity: 1;
  animation: pv-sheen-sweep 1.1s var(--pv-ease-standard) 1;
}

.pv-product-card__cta {
  position: relative;
}

.pv-product-card__cta::after {
  content: "\2192"; /* → */
  display: inline-block;
  margin-left: 0.35em;
  transform: translateX(-2px);
  opacity: 0.7;
  transition: transform var(--pv-duration-base) var(--pv-ease-standard),
              opacity var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-product-card:hover .pv-product-card__cta::after,
.pv-product-card:focus-within .pv-product-card__cta::after {
  transform: translateX(2px);
  opacity: 1;
}

/* ---------------------------------------------------------------------
   WATER JOURNEY — active-stage emphasis + mobile vertical sequence
   --------------------------------------------------------------------- */

.pv-journey__marker {
  transition: border-color var(--pv-duration-base) var(--pv-ease-standard),
              background-color var(--pv-duration-base) var(--pv-ease-standard),
              color var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-journey__label {
  transition: color var(--pv-duration-base) var(--pv-ease-standard);
}

/* Active state relies on more than color: solid heavier border, filled
   background, and a bolder label weight so it reads without relying on
   the gold hue alone. */
.pv-journey__stage.is-active .pv-journey__marker {
  border-width: 2px;
  border-color: var(--pv-color-gold);
  background-color: var(--pv-accent);
  color: var(--pv-color-gold-contrast);
  transform: scale(1.08);
}

.pv-journey__stage.is-active .pv-journey__label {
  color: var(--pv-text-primary);
  font-weight: var(--pv-weight-semibold);
}

@media (max-width: 768px) {
  .pv-journey__track {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--pv-space-lg);
    padding-left: var(--pv-space-md);
    border-left: 1px solid var(--pv-border-default);
  }

  .pv-journey__stage {
    flex-direction: row;
    text-align: left;
    gap: var(--pv-space-md);
  }

  .pv-journey__marker {
    width: 48px;
    height: 48px;
    font-size: var(--pv-text-small);
    flex-shrink: 0;
  }
}

/* ---------------------------------------------------------------------
   TRUST / CERTIFICATION — subtle badge hover
   --------------------------------------------------------------------- */

.pv-trust__seal {
  transition: transform var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-trust__badge:hover .pv-trust__seal,
.pv-trust__badge:focus-within .pv-trust__seal {
  transform: scale(1.08);
}

/* ---------------------------------------------------------------------
   FOUNDERS — hover/focus lift + gentle photo scale
   --------------------------------------------------------------------- */

.pv-founder-card {
  transition: transform var(--pv-duration-base) var(--pv-ease-standard),
              border-color var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-founder-card:not(.pv-founder-card--placeholder):hover,
.pv-founder-card:not(.pv-founder-card--placeholder):focus-within {
  transform: translateY(-3px);
  border-color: var(--pv-border-accent);
}

.pv-founder-card__photo img {
  transition: transform var(--pv-duration-slow) var(--pv-ease-standard);
}

.pv-founder-card:hover .pv-founder-card__photo img,
.pv-founder-card:focus-within .pv-founder-card__photo img {
  transform: scale(1.05);
}

/* ---------------------------------------------------------------------
   COMING SOON — soft gold glow on hover
   --------------------------------------------------------------------- */

.pv-coming-soon__card {
  position: relative;
}

.pv-coming-soon__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(224, 199, 140, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity var(--pv-duration-base) var(--pv-ease-standard);
  pointer-events: none;
}

.pv-coming-soon__card:hover::before,
.pv-coming-soon__card:focus-within::before {
  opacity: 1;
}

/* ---------------------------------------------------------------------
   DEALER / PARTNERSHIP + TESTIMONIAL CARDS — shared lift language
   --------------------------------------------------------------------- */

.pv-opportunity__card {
  transition: transform var(--pv-duration-base) var(--pv-ease-standard),
              border-color var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-opportunity__card:hover,
.pv-opportunity__card:focus-within {
  transform: translateY(-4px);
  border-color: var(--pv-border-accent);
}

/* ---------------------------------------------------------------------
   MOBILE NAVIGATION — staggered link reveal on open
   --------------------------------------------------------------------- */

.pv-nav-mobile__list .pv-nav-link {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--pv-duration-base) var(--pv-ease-standard),
              transform var(--pv-duration-base) var(--pv-ease-standard);
}

.pv-nav-mobile.is-open .pv-nav-mobile__list .pv-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.pv-nav-mobile__list li:nth-child(1) .pv-nav-link { transition-delay: 40ms; }
.pv-nav-mobile__list li:nth-child(2) .pv-nav-link { transition-delay: 80ms; }
.pv-nav-mobile__list li:nth-child(3) .pv-nav-link { transition-delay: 120ms; }
.pv-nav-mobile__list li:nth-child(4) .pv-nav-link { transition-delay: 160ms; }
.pv-nav-mobile__list li:nth-child(5) .pv-nav-link { transition-delay: 200ms; }
.pv-nav-mobile__list li:nth-child(6) .pv-nav-link { transition-delay: 240ms; }
.pv-nav-mobile__list li:nth-child(7) .pv-nav-link { transition-delay: 280ms; }

/* ---------------------------------------------------------------------
   WHATSAPP FLOAT / BACK TO TOP — one-time settle-in on load
   --------------------------------------------------------------------- */

.pv-whatsapp-float {
  animation: pv-settle-in var(--pv-duration-slow) var(--pv-ease-standard) both;
  animation-delay: 400ms;
}

@keyframes pv-settle-in {
  0%   { opacity: 0; transform: translateY(10px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------------------------------------------------------------------
   MOBILE — lighter motion: shorter/no floats, no sheen sweep loops
   --------------------------------------------------------------------- */

@media (max-width: 600px) {
  .pv-hero__product-frame,
  .pv-hero__glow--one,
  .pv-hero__glow--two,
  .pv-hero__ripple {
    animation: none;
  }

  .pv-hero__product-frame::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   REDUCED MOTION — structural safeguards beyond the global reset
   (the sheen/settle-in pseudo-elements use `both`/one-shot fills, so
   make sure their resting state is the *end* state, not hidden)
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .pv-hero__product-frame::after,
  .pv-product-card__media::after {
    display: none;
  }

  .pv-whatsapp-float {
    opacity: 1;
    transform: none;
  }

  .pv-journey__stage.is-active .pv-journey__marker {
    transform: none;
  }
}
