/**
 * Shared motion for SVHSS pages.
 * Each page must define :root --gold, --gold-light, --card-bg (already present in your HTML).
 */

/* ── Logo: gentle glow pulse ── */
.site-animate-logo {
  animation: siteLogoGlow 3.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

@keyframes siteLogoGlow {
  0%,
  100% {
    box-shadow: 0 0 24px rgba(201, 168, 76, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 44px rgba(201, 168, 76, 0.7);
    transform: scale(1.035);
  }
}

/* ── Gallery carousel: outer glow + Ken Burns on photos ── */
.site-carousel-glow {
  animation: siteCarouselAura 5.5s ease-in-out infinite;
}

@keyframes siteCarouselAura {
  0%,
  100% {
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  50% {
    border-color: rgba(201, 168, 76, 0.5);
    box-shadow:
      0 24px 72px rgba(0, 0, 0, 0.55),
      0 0 34px rgba(201, 168, 76, 0.14);
  }
}

.site-animate-carousel-img {
  animation: siteKenBurns 16s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes siteKenBurns {
  0% {
    transform: scale(1.06) translate(0%, 0%);
  }
  100% {
    transform: scale(1.13) translate(-1.5%, -1%);
  }
}

.carousel-slide:hover .site-animate-carousel-img {
  animation-play-state: paused;
  transform: scale(1.14) translate(-1%, -0.5%);
  transition: transform 0.55s ease;
}

/* ── Cards / panels: soft “breathe” shadow ── */
.site-animate-card {
  animation: siteCardBreathe 5s ease-in-out infinite;
}

@keyframes siteCardBreathe {
  0%,
  100% {
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.38);
  }
  50% {
    box-shadow:
      0 18px 56px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(201, 168, 76, 0.12);
  }
}

/* ── Notice / banner strip ── */
.site-animate-banner {
  animation: siteBannerEdge 3.5s ease-in-out infinite;
}

@keyframes siteBannerEdge {
  0%,
  100% {
    border-top-color: rgba(201, 168, 76, 0.22);
    border-bottom-color: rgba(201, 168, 76, 0.22);
  }
  50% {
    border-top-color: rgba(201, 168, 76, 0.45);
    border-bottom-color: rgba(201, 168, 76, 0.45);
  }
}

/* ── Accent text (e.g. gold word in a heading) ── */
.site-text-shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-light) 45%,
    var(--cream) 50%,
    var(--gold-light) 55%,
    var(--gold) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: siteTextShine 6s linear infinite;
}

@keyframes siteTextShine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
