/* ─────────────────────────────────────────────────────────────────────────────
   ClearPantry — Botanical Integration System
   Strategic placement: CTA zones, section anchors, visual rhythm
   Desaturated green tints, parallax motion (desktop only)
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Botanical Background Anchor ────────────────────────────
   Large, desaturated SVG behind the Buy Clean CTA section.
   Used on homepage (email band) and product/compare/category pages.
───────────────────────────────────────────────────────────── */
.botanical-cta-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.botanical-cta-wrap .botanical-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.botanical-cta-wrap .botanical-bg svg {
  width: auto;
  height: 100%;
  max-width: 100%;
}

/* ── Botanical Flanking Elements ───────────────────────────
   Left and right flanking SVGs on desktop
───────────────────────────────────────────────────────────── */
.botanical-flank {
  display: none;
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}

.botanical-flank--left  { left: -80px; }
.botanical-flank--right { right: -80px; }

.botanical-flank svg {
  width: 70px;
  height: auto;
  opacity: 1;
}

@media (min-width: 769px) {
  .botanical-flank { display: block; }
}

/* ── Botanical Parallax Wrapper ────────────────────────────
   Wraps a section with parallax botanical layers.
   Only active on desktop (min-width: 769px).
───────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .botanical-parallax {
    position: relative;
    overflow: hidden;
  }

  .botanical-parallax .parallax-layer {
    position: absolute;
    pointer-events: none;
    will-change: transform;
  }

  .botanical-parallax .parallax-layer--left {
    left: -120px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
  }

  .botanical-parallax .parallax-layer--right {
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
  }

  .botanical-parallax .parallax-layer svg {
    width: 160px;
    height: auto;
  }

  /* Layer speeds — 0.3x to 0.5x scroll */
  .botanical-parallax .parallax-layer--l1 {
    left: -60px;
    opacity: 1;
    animation: parallax-slow 12s ease-in-out infinite alternate;
  }
  .botanical-parallax .parallax-layer--l2 {
    right: -60px;
    opacity: 1;
    animation: parallax-mid 9s ease-in-out infinite alternate-reverse;
  }
  .botanical-parallax .parallax-layer--l3 {
    left: -180px;
    top: 30%;
    opacity: 1;
    animation: parallax-slow 15s ease-in-out infinite alternate;
  }
}

@keyframes parallax-slow {
  from { transform: translateY(-50%) translateY(0px); }
  to   { transform: translateY(-50%) translateY(-20px); }
}
@keyframes parallax-mid {
  from { transform: translateY(-50%) translateY(0px); }
  to   { transform: translateY(-50%) translateY(-12px); }
}

/* Mobile: static, no parallax */
@media (max-width: 768px) {
  .botanical-parallax { overflow: hidden; }
  .botanical-parallax .parallax-layer {
    position: absolute;
    bottom: -40px;
    right: -20px;
    opacity: 1;
    pointer-events: none;
  }
  .botanical-parallax .parallax-layer--l1 { display: block; }
  .botanical-parallax .parallax-layer--l2,
  .botanical-parallax .parallax-layer--l3 { display: none; }
  .botanical-parallax .parallax-layer svg {
    width: 120px;
    height: auto;
  }
}

/* ── Botanical Hero Anchor ────────────────────────────────
   Single botanical at bottom-right of hero on mobile.
───────────────────────────────────────────────────────────── */
.botanical-hero-anchor {
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.botanical-hero-anchor svg {
  width: 48px;
  height: auto;
  opacity: 1;
}

@media (max-width: 768px) {
  .botanical-hero-anchor { opacity: 1; }
}

/* ── Botanical CTA Button Frame ────────────────────────────
   Botanical backdrop directly behind Buy Clean CTAs.
   Used in product detail, category list rows, compare pages.
───────────────────────────────────────────────────────────── */
.btn-clean-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-clean-wrap .btn-clean-botanical {
  position: absolute;
  inset: -8px -20px;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-clean-wrap .btn-clean-botanical svg {
  width: auto;
  height: 100%;
  max-width: none;
}

@media (max-width: 768px) {
  .btn-clean-wrap .btn-clean-botanical { display: none; }
}

/* ── Buy Clean Button — the main visual anchor ──────────── */
.btn-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #00D54B !important;
  color: #000 !important;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  min-height: 44px;
  box-shadow: 0 2px 12px rgba(0, 213, 75, 0.35);
  position: relative;
  z-index: 1;
}

.btn-clean:hover {
  background: #00e55a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 213, 75, 0.45);
  color: #000 !important;
}

.btn-clean:active {
  transform: translateY(0) scale(0.98);
}

.btn-clean:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* ::after arrow removed — button text already contains → (was causing double arrow) */

/* ── Reduced Motion Guard ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .botanical-parallax .parallax-layer {
    animation: none !important;
    transform: none !important;
  }
}