/* ══════════════════════════════════════════
   ANIMATIONS — Sweetgrass Pavilion
   ══════════════════════════════════════════ */

/* ── Reveal states ── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-fade {
  opacity: 0;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

/* ── Visible trigger ── */
.is-visible {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) !important;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

/* ── Hero title overflow container ── */
.hero-title-line1,
.hero-title-line2,
.hero-title-line3 {
  overflow: hidden;
  display: block;
}

/* ── Scroll line animation ── */
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── Particle animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50%       { transform: translateY(-30px) rotate(180deg); opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.3); }
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.particle.star {
  background: var(--color-text-primary);
  opacity: 0.4;
}

/* ── Floating glow ring ── */
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.4; }
  50%  { transform: scale(1.06); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0.4; }
}

/* ── Glow pulse on primary CTA ── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(200, 168, 75, 0.3); }
  50%       { box-shadow: 0 4px 40px rgba(200, 168, 75, 0.6); }
}

.btn-primary {
  animation: glowPulse 3s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
}

/* ── Stagger delays for testimonials ── */
.testimonial-card:nth-child(1) { transition-delay: 0.00s; }
.testimonial-card:nth-child(2) { transition-delay: 0.08s; }
.testimonial-card:nth-child(3) { transition-delay: 0.16s; }
.testimonial-card:nth-child(4) { transition-delay: 0.24s; }

/* ── Stagger delays for stat items ── */
.stat-item:nth-child(1) { transition-delay: 0.00s; }
.stat-item:nth-child(2) { transition-delay: 0.08s; }
.stat-item:nth-child(3) { transition-delay: 0.16s; }
.stat-item:nth-child(4) { transition-delay: 0.24s; }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
