/* Preloader Styles */
html.is-page-loading,
html.is-page-loading body {
  overflow: hidden;
}

html.is-page-loading body > *:not(.site-preloader) {
  opacity: 0;
  visibility: hidden;
}

body > * {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(122, 201, 67, 0.18), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 5s ease, visibility 5s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__inner {
  position: relative;
  width: min(100%, 320px);
  display: grid;
  place-items: center;
  gap: 18px;
  text-align: center;
  isolation: isolate;
}

.site-preloader__brand {
  width: clamp(132px, 24vw, 200px);
  animation: preloaderFloat 3.8s ease-in-out infinite;
}

.site-preloader__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-preloader__pulse {
  position: absolute;
  width: clamp(132px, 24vw, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(122, 201, 67, 0.12);
  animation: preloaderPulse 1.9s ease-out infinite;
  z-index: -1;
}

.site-preloader__spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  /* border-top-color: #7ac943; */
  animation: preloaderSpin 0.9s linear infinite;
  will-change: transform;
}

.site-preloader__text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloaderPulse {
  0% {
    transform: scale(0.72);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@keyframes preloaderFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader__brand,
  .site-preloader__pulse,
  .site-preloader__spinner {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
