/* ==========================================================================
   Animations Stylesheet
   Custom fade / slide / zoom keyframes used across the site,
   in addition to AOS (scroll) and Animate.css (utility) libraries.
   ========================================================================== */

/* ---- Fade ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Slide ---- */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Zoom ---- */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ---- Float (ambient motion for hero accents) ---- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.float-anim {
  animation: floatY 4s ease-in-out infinite;
}

/* ---- Shimmer for gold text/backgrounds ---- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 25%, var(--gold-dark) 50%, var(--gold-light) 75%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Hero content entrance sequence */
.hero-eyebrow {
  animation: fadeInDown 0.8s ease both;
}

.hero h1 {
  animation: fadeInUp 0.9s ease 0.15s both;
}

.hero p.lead {
  animation: fadeInUp 0.9s ease 0.3s both;
}

.hero-btns {
  animation: fadeInUp 0.9s ease 0.45s both;
}

/* Utility animation classes (used with data attributes / JS toggling) */
.fade-in { animation: fadeIn 0.8s ease both; }
.fade-in-up { animation: fadeInUp 0.8s ease both; }
.fade-in-down { animation: fadeInDown 0.8s ease both; }
.slide-in-left { animation: slideInLeft 0.8s ease both; }
.slide-in-right { animation: slideInRight 0.8s ease both; }
.zoom-in { animation: zoomIn 0.7s ease both; }

/* Image zoom-on-hover helper (used outside card components too) */
.img-zoom-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom-wrap img {
  transition: transform 0.6s ease;
}

.img-zoom-wrap:hover img {
  transform: scale(1.1);
}

/* Pulsing ring used behind badge / icon accents */
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.pulse-ring {
  animation: pulseRing 2.4s infinite;
}

/* AOS override tuning — keep motion subtle and premium */
[data-aos] {
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}
