/*
 * NSS SLIET — Greenery Visual System
 * Shared, readable styles for the premium nature experience.
 */

:root {
  --nss-forest: #063b20;
  --nss-green: #16824b;
  --nss-leaf: #77c957;
  --nss-lime: #d5ff73;
  --nss-mint: #edf9e9;
  --nss-line: rgba(6, 59, 32, 0.16);
}

body.greenery-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(119, 201, 87, 0.18), transparent 25%),
    radial-gradient(circle at 92% 35%, rgba(213, 255, 115, 0.16), transparent 22%),
    linear-gradient(180deg, #f8fff5 0%, #e8f6e5 52%, #d6edd8 100%);
}

.greenery-page::before,
.greenery-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.7;
}

.greenery-page::before {
  left: -12rem;
  bottom: -12rem;
  background: radial-gradient(circle, rgba(30, 126, 71, 0.24), transparent 68%);
  animation: greeneryDrift 14s ease-in-out infinite;
}

.greenery-page::after {
  right: -12rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(119, 201, 87, 0.2), transparent 68%);
  animation: greeneryDrift 18s ease-in-out infinite reverse;
}

.greenery-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.greenery-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(6, 59, 32, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(22, 130, 75, 0.08) 0 1px, transparent 1px);
  background-size: 34px 34px, 48px 48px;
}

.floating-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.floating-leaf {
  position: absolute;
  display: block;
  width: 1.5rem;
  height: 2.4rem;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, var(--nss-leaf), var(--nss-green));
  opacity: 0.28;
  transform: rotate(35deg);
  animation: leafFloat 12s linear infinite;
}

.floating-leaf:nth-child(1) { left: 8%; animation-delay: -2s; animation-duration: 15s; }
.floating-leaf:nth-child(2) { left: 23%; animation-delay: -7s; animation-duration: 19s; }
.floating-leaf:nth-child(3) { left: 47%; animation-delay: -10s; animation-duration: 14s; }
.floating-leaf:nth-child(4) { left: 68%; animation-delay: -5s; animation-duration: 18s; }
.floating-leaf:nth-child(5) { left: 87%; animation-delay: -12s; animation-duration: 16s; }

.botanical-line {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(6, 59, 32, 0.12);
  border-radius: 50%;
  animation: botanicalSpin 30s linear infinite;
}

.botanical-line::before,
.botanical-line::after {
  content: "";
  position: absolute;
  inset: 2.5rem;
  border: 1px dashed rgba(22, 130, 75, 0.16);
  border-radius: 50%;
}

.botanical-line::after {
  inset: 5.5rem;
  border-style: solid;
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--nss-line);
}

.mission-strip > article {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, background 0.35s ease;
}

.mission-strip > article:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.88);
}

.mission-strip strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--nss-green);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.mission-strip h3 {
  margin: 0 0 0.8rem;
  color: var(--nss-forest);
}

.mission-strip p {
  margin: 0;
  color: #587261;
}

@keyframes greeneryDrift {
  50% { transform: translate3d(35px, -28px, 0) scale(1.08); }
}

@keyframes leafFloat {
  0% { top: 110%; transform: translateX(0) rotate(35deg) scale(0.7); }
  50% { transform: translateX(45px) rotate(160deg) scale(1); }
  100% { top: -15%; transform: translateX(-25px) rotate(320deg) scale(0.8); }
}

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

@media (max-width: 800px) {
  .mission-strip {
    grid-template-columns: 1fr;
  }

  .botanical-line {
    width: 12rem;
    height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .greenery-page::before,
  .greenery-page::after,
  .floating-leaf,
  .botanical-line {
    animation: none;
  }
}
