/* ==========================================================
   Radha Madhav Aqua – motion & "alive" effects
   Loaded after style.css. Delete this file's <link> to turn all of it off.
   ========================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100;
  background: linear-gradient(90deg, var(--peacock), var(--aqua), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Hero ---------- */
/* Headline: word-by-word rise (JS wraps words) */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .word > span {
  display: inline-block; transform: translateY(110%); opacity: 0;
  animation: wordUp .9s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}
@keyframes wordUp { to { transform: none; opacity: 1; } }

.hero__copy > .eyebrow, .hero__lead, .hero__actions, .hero__stats {
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .8s ease forwards;
}
.hero__copy > .eyebrow { animation-delay: .05s; }
.hero__lead    { animation-delay: .75s; }
.hero__actions { animation-delay: .9s; }
.hero__stats   { animation-delay: 1.05s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__visual { opacity: 0; animation: bottleIn 1.2s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes bottleIn { from { opacity: 0; transform: translateY(60px) scale(.92); } to { opacity: 1; transform: none; } }

/* Parallax tilt wrapper around the floating bottle (JS sets --px/--py) */
.hero__bottle {
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px);
  rotate: calc(var(--px, 0) * 4deg);
  transition: translate .3s ease-out, rotate .3s ease-out;
}
.hero__glow { animation: pulse 4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .75; } }

/* Ripples under the bottle */
.ripple {
  position: absolute; left: 50%; bottom: 0; width: 220px; height: 44px; margin-left: -110px;
  border: 2px solid rgba(156,230,245,.55); border-radius: 50%;
  transform: scale(.3); opacity: 0;
  animation: ripple 3.6s ease-out infinite;
}
.ripple:nth-of-type(2) { animation-delay: 1.2s; }
.ripple:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* Droplet falling beside the bottle */
.drip {
  position: absolute; left: 18%; top: 0; width: 12px; height: 16px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--aqua) 60%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0; animation: drip 4.2s ease-in infinite 1.5s;
}
@keyframes drip {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translateY(400px) scale(1); opacity: 1; }
  74%, 100% { transform: translateY(400px) scale(1.8, .2); opacity: 0; }
}

/* Layered moving waves */
.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 3; overflow: hidden; pointer-events: none; }
.hero__waves .w { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.hero__waves .w1 { fill: rgba(156,230,245,.22); animation: drift 18s linear infinite; }
.hero__waves .w2 { fill: rgba(56,182,255,.28); animation: drift 12s linear infinite reverse; height: 85%; }
.hero__waves .w3 { fill: var(--bg); animation: drift 22s linear infinite; height: 65%; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Marquee ribbon ---------- */
.ribbon {
  background: linear-gradient(90deg, var(--navy), var(--royal));
  color: #fff; overflow: hidden; padding: 1rem 0;
  transform: rotate(-1.2deg); margin: -10px -20px 0;
  position: relative; z-index: 4; box-shadow: 0 10px 30px -14px rgba(15,42,99,.6);
}
.ribbon__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 30s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
.ribbon i {
  width: 12px; height: 16px; flex: none; background: var(--aqua);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: rotate(180deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Products ---------- */
.mini-bottle::before {
  background:
    radial-gradient(14px 6px at 30% 0, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, rgba(92,207,242,.55), rgba(27,127,209,.75));
  transition: inset .7s cubic-bezier(.3,1.4,.5,1);
  animation: slosh 3.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.product:hover .mini-bottle::before { inset: 8% 0 0; }
@keyframes slosh { 50% { transform: skewY(-3deg); } }

.mini-bottle, .mini-jar { transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.product:hover .mini-bottle, .product:hover .mini-jar { transform: translateY(-8px) rotate(-5deg); }

/* Fizz bubbles on hover */
.product__img { position: relative; }
.product__img::after {
  content: ""; position: absolute; left: 50%; bottom: 30px; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 10px -20px 0 -1px rgba(56,182,255,.7), -8px -44px 0 0 rgba(255,255,255,.8), 4px -70px 0 -2px rgba(56,182,255,.7);
  opacity: 0; pointer-events: none;
}
.product:hover .product__img::after { animation: fizz 1.4s ease-out infinite; }
@keyframes fizz { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }

/* 3D tilt: JS writes an inline transform on hover (beats the reveal transform) */
.tilt.is-visible { transition: transform .2s ease-out, box-shadow .25s, opacity .8s ease, background .25s; transition-delay: 0s; }

/* Shine sweep on cards & buttons */
.product, .why-card, .btn { position: relative; overflow: hidden; }
.product::before, .why-card::before, .btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.product:hover::before, .why-card:hover::before, .btn:hover::after { animation: shine .9s ease; }
@keyframes shine { to { left: 130%; } }

.why-card { transition: transform .3s, box-shadow .3s, opacity .8s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-card__icon { transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.why-card:hover .why-card__icon { transform: rotate(-8deg) scale(1.12); }

/* ---------- Process timeline ---------- */
.steps { position: relative; padding-top: 34px; }
.steps__line {
  position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.12); overflow: hidden;
}
.steps__line span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--peacock), var(--aqua));
  box-shadow: 0 0 14px var(--aqua);
}
.step__num { transition: color .5s, text-shadow .5s, -webkit-text-stroke .5s; }
.step.is-active { border-color: rgba(56,182,255,.55); background: rgba(56,182,255,.1); }
.step.is-active .step__num { color: var(--aqua); text-shadow: 0 0 18px rgba(56,182,255,.6); }

/* ---------- Misc ---------- */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

/* Staggered reveal (JS sets --d per sibling) */
.reveal { transition-delay: var(--d, 0s); }


/* Reduced motion (OS setting): keep soft fades + slow ambient motion,
   remove large movement, bouncing and flashing effects. */
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; }
  .split .word > span { transform: none; animation-name: fadeIn; }
  @keyframes fadeIn { to { opacity: 1; } }
  .drip, .ripple, .hero__bubbles { display: none; }
  .hero__bottle { animation: none; }
  .ribbon__track { animation-duration: 60s; }
  .hero__waves .w { animation-duration: 40s; }
  .wa-float::before { animation: none; }
}
