/*------------ Footer Waves Solid Colors v1.2.1 ------------*/

.site-footer {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(6rem, 10vw, 11rem);
  background: var(--global-color-18);
}

.footer-water-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(14rem, 22vw, 24rem);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/*------------ Wave SVG layer ------------*/

.footer-waves-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: clamp(3.6rem, 5.6vw, 5.6rem);
  z-index: 4;
}

.footer-wave-layers use {
  animation-name: footer-wave-flow;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.footer-wave-layers use:nth-child(1) {
  /*fill: #3d79e6;*/
  fill: var(--global-color-19);
  animation-delay: -22s;
  animation-duration: 34s;
}

.footer-wave-layers use:nth-child(2) {
  /*fill: #4e85f0;*/
  fill: var(--global-color-18);
  animation-delay: -31s;
  animation-duration: 42s;
}

.footer-wave-layers use:nth-child(3) {
  /*fill: #2e67d5;*/
  fill: var(--global-color-18);
  animation-delay: -44s;
  animation-duration: 30s;
}

.footer-wave-layers use:nth-child(4) {
  /*fill: #13419d;*/
  fill: var(--global-color-8);
  animation-delay: -57s;
  animation-duration: 16s;
}

@keyframes footer-wave-flow {
  0% {
    transform: translate3d(-35px, 0, 0);
  }

  50% {
    transform: translate3d(24px, 0, 0);
  }

  100% {
    transform: translate3d(-35px, 0, 0);
  }
}

/*------------ Subtle water ripples ------------*/

.footer-water-ripple {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transform-origin: center;
  animation-name: footer-water-ripple;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ripple-1 {
  left: 14%;
  bottom: 1rem;
  width: 16px;
  height: 6px;
  --ripple-scale: 2.1;
  --ripple-rotate: -4deg;
  animation-duration: 18s;
  animation-delay: -2s;
}

.ripple-2 {
  left: 23%;
  bottom: 0.75rem;
  width: 9px;
  height: 4px;
  --ripple-scale: 1.8;
  --ripple-rotate: 6deg;
  animation-duration: 24s;
  animation-delay: -9s;
}

.ripple-3 {
  left: 31%;
  bottom: 1.15rem;
  width: 12px;
  height: 5px;
  --ripple-scale: 1.9;
  --ripple-rotate: -7deg;
  animation-duration: 21s;
  animation-delay: -15s;
}

.ripple-4 {
  left: 39%;
  bottom: 0.85rem;
  width: 6px;
  height: 3px;
  --ripple-scale: 1.7;
  --ripple-rotate: 3deg;
  animation-duration: 28s;
  animation-delay: -4s;
}

.ripple-5 {
  left: 48%;
  bottom: 1.05rem;
  width: 10px;
  height: 4px;
  --ripple-scale: 1.8;
  --ripple-rotate: -2deg;
  animation-duration: 23s;
  animation-delay: -12s;
}

.ripple-6 {
  left: 56%;
  bottom: 0.7rem;
  width: 7px;
  height: 3px;
  --ripple-scale: 1.6;
  --ripple-rotate: 8deg;
  animation-duration: 27s;
  animation-delay: -18s;
}

.ripple-7 {
  left: 64%;
  bottom: 1.2rem;
  width: 13px;
  height: 5px;
  --ripple-scale: 2;
  --ripple-rotate: -6deg;
  animation-duration: 32s;
  animation-delay: -7s;
}

.ripple-8 {
  left: 71%;
  bottom: 0.95rem;
  width: 8px;
  height: 3px;
  --ripple-scale: 1.7;
  --ripple-rotate: 5deg;
  animation-duration: 20s;
  animation-delay: -14s;
}

.ripple-9 {
  left: 78%;
  bottom: 1.1rem;
  width: 11px;
  height: 4px;
  --ripple-scale: 1.9;
  --ripple-rotate: -3deg;
  animation-duration: 30s;
  animation-delay: -22s;
}

.ripple-10 {
  left: 84%;
  bottom: 0.8rem;
  width: 6px;
  height: 3px;
  --ripple-scale: 1.5;
  --ripple-rotate: 7deg;
  animation-duration: 26s;
  animation-delay: -5s;
}

.ripple-11 {
  left: 91%;
  bottom: 1.05rem;
  width: 9px;
  height: 4px;
  --ripple-scale: 1.8;
  --ripple-rotate: -5deg;
  animation-duration: 34s;
  animation-delay: -19s;
}

.ripple-12 {
  left: 67%;
  bottom: 0.65rem;
  width: 5px;
  height: 2px;
  --ripple-scale: 1.5;
  --ripple-rotate: 4deg;
  animation-duration: 29s;
  animation-delay: -24s;
}

@keyframes footer-water-ripple {
  0% {
    transform: rotate(var(--ripple-rotate)) scale(0.25);
    opacity: 0;
  }

  4% {
    opacity: 0.36;
  }

  14% {
    transform: rotate(var(--ripple-rotate)) scale(var(--ripple-scale));
    opacity: 0;
  }

  100% {
    transform: rotate(var(--ripple-rotate)) scale(var(--ripple-scale));
    opacity: 0;
  }
}

/*------------ Foreground plants ------------*/

.footer-plants {
  position: absolute;
  right: 20px;
  bottom: clamp(-1rem, -0.5vw, 0rem);
  width: clamp(150px, 16vw, 230px);
  height: clamp(150px, 18vw, 260px);
  z-index: 6;
  pointer-events: none;
}

.footer-plants span {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  transform-origin: bottom center;
}

.footer-plants-static {
  background-image: url("/wp-content/uploads/2026/05/footer-waves-cattails-static.webp");
  opacity: 1;
}

/* Stronger sway layer */
.footer-plants-sway-01 {
  background-image: url("/wp-content/uploads/2026/05/footer-waves-cattails-sway-01.webp");
  opacity: 1;
  animation: footer-plants-sway-strong 10s ease-in-out infinite;
}

/* Softer sway layer */
.footer-plants-sway-02 {
  background-image: url("/wp-content/uploads/2026/05/footer-waves-cattails-sway-02.webp");
  opacity: 1;
  animation: footer-plants-sway-soft 10s ease-in-out infinite;
}

@keyframes footer-plants-sway-strong {
  0%,
  100% {
    transform: skewX(0deg) rotate(0deg) translateX(0);
  }

  20% {
    transform: skewX(-2.4deg) rotate(-0.6deg) translateX(-2.4px);
  }

  50% {
    transform: skewX(-4.5deg) rotate(-1.2deg) translateX(-4.8px);
  }

  80% {
    transform: skewX(-1.8deg) rotate(-0.42deg) translateX(-1.2px);
  }
}

@keyframes footer-plants-sway-soft {
  0%,
  100% {
    transform: skewX(0deg) rotate(0deg) translateX(0);
  }

  20% {
    transform: skewX(-1.45deg) rotate(-0.36deg) translateX(-1.1px);
  }

  50% {
    transform: skewX(-2.5deg) rotate(-0.65deg) translateX(-2.2px);
  }

  80% {
    transform: skewX(-1.1deg) rotate(-0.28deg) translateX(-0.8px);
  }
}

/*------------ Reduced motion ------------*/

@media (prefers-reduced-motion: reduce) {
  .footer-water-ripple,
  .footer-wave-layers use,
  .footer-plants-sway {
    animation: none;
  }
}
