/* ======================================
   DESIGN 2 — ANIMATIONS LAYER
   Forest Green & Gold — animations.css
   ====================================== */

/* ===== PAGE LOAD REVEAL ===== */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  transform-origin: bottom;
  animation: pageReveal 0.85s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes pageReveal {
  0%   { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.reveal-up    { transform: translateY(48px); }
.reveal.reveal-left  { transform: translateX(-48px); }
.reveal.reveal-right { transform: translateX(48px); }
.reveal.reveal-zoom  { transform: scale(0.88); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== HERO ENTRANCE ===== */
.hero-eyebrow { animation: heroFadeUp 0.7s 0.15s ease both; }
.hero-title   { animation: heroFadeUp 0.75s 0.3s ease both; }
.hero-sub     { animation: heroFadeUp 0.7s 0.48s ease both; }
.hero-cta     { animation: heroFadeUp 0.7s 0.62s ease both; }
.hero-side    { animation: heroFadeLeft 0.85s 0.2s cubic-bezier(0.4,0,0.2,1) both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== GOLD LINE PULSE (hero eyebrow) ===== */
.eyebrow-line {
  animation: linePulse 2.5s ease-in-out infinite alternate;
}
@keyframes linePulse {
  from { opacity: 0.5; width: 30px; }
  to   { opacity: 1; width: 48px; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
  background: rgba(201,168,76,0.15);
}
.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(to right, var(--gold), #F4E4B0);
  transition: width 0.1s linear;
}

/* ===== ANNOUNCEMENT BAR MARQUEE ===== */
.announcement-bar { overflow: hidden; padding: 0; }
.announce-track {
  display: inline-flex; white-space: nowrap;
  animation: announceTicker 22s linear infinite;
  padding: 10px 0;
  gap: 64px;
}
.announce-track:hover { animation-play-state: paused; }
@keyframes announceTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== CATEGORY CARDS HOVER ===== */
.category-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
}
.category-card:hover { transform: scale(1.03) translateY(-4px); }
.cat-content h3 {
  transition: transform 0.3s ease;
}
.category-card:hover .cat-content h3 { transform: translateY(-3px); }
.cat-link {
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.category-card:hover .cat-link { gap: 10px; }

/* ===== PRODUCT SLIDER ===== */
.products-section { overflow: hidden; }
.slider-wrapper { position: relative; margin-bottom: 48px; }
.products-track-outer { overflow: hidden; }
.products-track {
  display: flex; gap: 20px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.product-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
}
.slider-controls {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px;
}
.slider-btn {
  width: 48px; height: 48px; border-radius: 4px;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: transparent; color: var(--gold); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--gold); color: var(--forest-dark); border-color: var(--gold); }
.slider-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--gold); width: 24px; border-radius: 3px; }

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-section { overflow: hidden; }
.testimonials-track-outer { overflow: hidden; }
.testimonials-track {
  display: flex; gap: 24px;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.testimonial-card { flex: 0 0 calc(33.333% - 16px); min-width: 0; }
.testimonials-controls {
  display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px;
}

/* ===== PILLAR COUNTER ===== */
.pillar-num { transition: none; }

/* ===== WHY SECTION REVEAL ===== */
.pillar {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ===== PRODUCT CARD LIFT ===== */
.product-card {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
}
.product-card:hover { transform: translateY(-10px) scale(1.01); }

/* ===== NAVBAR ===== */
.navbar {
  animation: navSlideDown 0.6s 0.1s ease both;
}
@keyframes navSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ===== MOBILE MENU ===== */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15,36,25,0.97);
  backdrop-filter: blur(20px);
  z-index: 998; align-items: center; justify-content: center; gap: 24px;
  animation: mobileMenuIn 0.3s ease;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.nav-links.mobile-open .nav-link {
  font-size: 1.6rem; font-family: 'Playfair Display', serif; color: #fff;
}
.nav-links.mobile-open .nav-link:hover { color: var(--gold); }

/* ===== BUNDLE SECTION SHIMMER ===== */
.bundle-section::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(201,168,76,0.04) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: bundleShimmer 5s ease infinite;
}
.bundle-section { position: relative; }
@keyframes bundleShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ===== MOBILE SLIDER ===== */
@media (max-width: 1024px) {
  .product-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 640px) {
  .product-card { flex: 0 0 82%; }
  .testimonial-card { flex: 0 0 85%; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-eyebrow, .hero-title, .hero-sub, .hero-cta, .hero-side,
  .navbar, .announce-track, .eyebrow-line { animation: none !important; }
  .products-track, .testimonials-track { transition: none !important; }
}
