/* ============================================================
   SARVNIPUN — Motion Layer (calm, natural, soft)
   Loaded AFTER style.css.
   Hooks (do not rename): [data-reveal], .is-visible,
   [data-stagger], [data-count], .float-wrap, .to-top, .header.scrolled
   ============================================================ */

:root { --ease: cubic-bezier(.22, .61, .36, 1); }

/* ---------- Keyframes ---------- */
@keyframes soft-up   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes soft-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes soft-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-float{ 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes soft-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Scroll reveal (gentle fade + lift) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: translateY(20px) scale(.97); }
[data-reveal="blur"]  { transform: translateY(16px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Hero — soft, calm entrance ---------- */
.hero .eyebrow { animation: soft-down .8s .1s both var(--ease); }
.hero h1 { animation: soft-up .9s .2s both var(--ease); }
.hero-copy > p { animation: soft-up .9s both var(--ease); }
.hero-copy > p:nth-of-type(1) { animation-delay: .32s; }
.hero-copy > p:nth-of-type(2) { animation-delay: .42s; }
.hero-cta { animation: soft-up .9s .55s both var(--ease); }
.hero-media { animation: soft-in 1.1s .3s both var(--ease); }
.hero-media .float-wrap { animation: soft-float 7s ease-in-out infinite 1.5s; }
.hero-badge { animation: soft-up .8s .8s both var(--ease); }

/* Accent word is styled in CSS (green italic) — no shimmer */

/* ---------- Divider grows softly on reveal ---------- */
.divider { transform-origin: center; }
[data-reveal] .divider { transform: scaleX(0); transition: transform .9s .35s var(--ease); }
[data-reveal].is-visible .divider { transform: scaleX(1); }

/* ---------- Gentle hover interactions ---------- */
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.icon-btn { transition: transform .3s var(--ease), color .3s ease; }
.icon-btn:hover { transform: translateY(-2px); }

.btn { transition: all .3s var(--ease); }

.feature .ico { transition: transform .5s var(--ease); }
.feature:hover .ico { transform: scale(1.08); }

.chip { transition: transform .4s var(--ease), box-shadow .4s ease, color .3s ease; }
.chip:hover { transform: translateY(-4px); color: var(--green-600); box-shadow: var(--shadow-lg); }

/* Product cards — soft leaf lift, no shine flash */
.product-thumb .leaf { transition: transform .6s var(--ease); }
.product-card:hover .product-thumb .leaf { transform: scale(1.12) rotate(3deg); }
.product-thumb .swatch { transition: opacity .5s ease; }
.product-card:hover .product-thumb .swatch { opacity: .2; }

.powder-visual .leaf { transition: transform .6s var(--ease); }
.powder:hover .powder-visual .leaf { transform: scale(1.08); }
.powder { transition: box-shadow .4s ease, transform .4s var(--ease); }
.powder:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- Stats counter band ---------- */
.stats {
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(139,160,106,.18), transparent 60%),
    linear-gradient(160deg, var(--green-700), var(--green-800));
  color: var(--cream);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; color: var(--ochre); line-height: 1; display: inline-block; }
.stat .lbl { display: block; margin-top: 10px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,243,234,.82); }

/* ---------- Marquee (slow, calm) ---------- */
@keyframes soft-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee {
  overflow: hidden; white-space: nowrap; padding: 26px 0;
  background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; gap: 46px; animation: soft-marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--green-700);
  display: inline-flex; align-items: center; gap: 46px;
}
.marquee-track span::after { content: "❋"; color: var(--ochre); font-style: normal; font-size: .9rem; }

/* ---------- Testimonials ---------- */
.tt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 46px; }
.tt {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s ease;
}
.tt:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tt .stars { color: var(--ochre); letter-spacing: 3px; margin-bottom: 14px; }
.tt p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.tt .who { margin-top: 16px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }

/* ---------- Mega CTA ---------- */
.mega-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 340px at 20% 10%, rgba(139,160,106,.22), transparent 60%),
    linear-gradient(150deg, var(--green-700), var(--green-800));
  color: var(--cream); border-radius: var(--radius); padding: 72px 44px; text-align: center;
}
.mega-cta > * { position: relative; z-index: 1; }
.mega-cta h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.mega-cta p { color: rgba(247,243,234,.88); max-width: 580px; margin: 14px auto 24px; }

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--green-700); color: var(--cream); font-size: 1.15rem;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s ease;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--ochre); }

/* ---------- Header scroll ---------- */
.header.scrolled { box-shadow: 0 6px 22px rgba(45,74,40,.08); }

/* ---------- Page banner entrance ---------- */
.page-banner .eyebrow { animation: soft-down .8s .05s both var(--ease); }
.page-banner h1 { animation: soft-up .9s .18s both var(--ease); }
.page-banner p  { animation: soft-up .9s .32s both var(--ease); }
.page-banner .crumbs { animation: soft-up .9s .45s both var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .tt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .marquee-track span { font-size: 1.3rem; }
}
