/* ── Liquid effects layer (pairs with effects.js) ───────────────────── */

/* Glass nav — translucent, refracting the page beneath it */
.fx-on nav {
  background:linear-gradient(180deg, rgba(26,58,42,0.84), rgba(26,58,42,0.74));
  backdrop-filter:blur(18px) saturate(1.6);
  -webkit-backdrop-filter:blur(18px) saturate(1.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(122,171,133,0.18);
  transition:background .5s ease, box-shadow .5s ease;
}
.fx-on nav.fx-scrolled {
  background:linear-gradient(180deg, rgba(20,46,33,0.76), rgba(20,46,33,0.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 40px -12px rgba(8,20,13,0.45);
}

/* Liquid-fill buttons — a rotating wave rises from the bottom on hover */
.fx-on .btn-primary, .fx-on .btn-outline, .fx-on .nav-cta {
  position:relative; overflow:hidden; isolation:isolate;
}
.fx-on .btn-primary::before, .fx-on .btn-outline::before, .fx-on .nav-cta::before {
  content:""; position:absolute; z-index:-1;
  left:var(--fx-x, 50%); top:220%;
  width:260%; aspect-ratio:1; border-radius:42%;
  transform:translate(-50%, 0) rotate(0deg);
  transition:top .7s cubic-bezier(.2,.8,.2,1);
  animation:fx-spin 6s linear infinite;
  pointer-events:none;
}
.fx-on .btn-primary::before, .fx-on .nav-cta::before { background:var(--color-bark); }
.fx-on .btn-outline::before { background:rgba(232,242,230,0.92); }
.fx-on .btn-primary:hover::before, .fx-on .nav-cta:hover::before,
.fx-on .btn-outline:hover::before { top:-30%; }
.fx-on .btn-outline:hover { color:var(--color-forest) !important; }
.fx-on .btn-primary:hover, .fx-on .nav-cta:hover { background:var(--color-clay); }
@keyframes fx-spin { to { transform:translate(-50%, 0) rotate(360deg); } }

/* Hero: liquid shimmer on the italic word */
.fx-on .hero-title em {
  background:linear-gradient(100deg, #7aab85 0%, #c8dbc5 25%, #7aab85 45%, #5f9e8f 70%, #7aab85 100%);
  background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:fx-flow 7s ease-in-out infinite;
  text-shadow:none;
  filter:drop-shadow(0 1px 12px rgba(8,20,13,0.5));
}
@keyframes fx-flow { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }

/* Water ripple canvas sits between the footage and the scrim */
.fx-ripple { position:absolute; inset:0; z-index:2; width:100%; height:100%; pointer-events:none; }

/* Flowing wave into the next section */
.fx-wave { position:absolute; left:0; right:0; bottom:-1px; height:90px; z-index:4; pointer-events:none; }
.fx-wave svg { position:absolute; inset:0; width:100%; height:100%; overflow:visible; }
.fx-wave path { fill:var(--fx-next); }
.fx-wave svg:first-child path { opacity:.45; }
.fx-wave-a { animation:fx-drift 14s linear infinite; }
.fx-wave-b { animation:fx-drift 9s linear infinite reverse; }
@keyframes fx-drift { from { transform:translateX(0); } to { transform:translateX(-1200px); } }
/* The hero's own bottom padding hides nothing important; keep the CTA clear */
.fx-on .hero-content { margin-bottom:40px; }

/* Scroll reveals — content flows up out of a soft blur */
.fx-reveal {
  opacity:0; transform:translateY(28px); filter:blur(6px);
  transition:opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1), filter .9s ease;
  transition-delay:var(--fx-d, 0ms);
}
.fx-reveal.fx-in { opacity:1; transform:none; filter:none; }

/* Liquid glass cards on the dark impact section */
.fx-on .impact-card {
  backdrop-filter:blur(10px) saturate(1.3); -webkit-backdrop-filter:blur(10px) saturate(1.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
  transition:background .3s, transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.fx-on .impact-card:hover { transform:translateY(-4px); box-shadow:inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 40px -18px rgba(0,0,0,.5); }

/* Everyone who asked for less motion gets a still page */
@media (prefers-reduced-motion: reduce) {
  .fx-wave-a, .fx-wave-b, .fx-on .hero-title em,
  .fx-on .btn-primary::before, .fx-on .btn-outline::before, .fx-on .nav-cta::before { animation:none; }
  .fx-reveal { opacity:1; transform:none; filter:none; transition:none; }
}
