/* ============================================================
   OAK ROOTS LLC — ANIMATIONS CSS
   GSAP & CSS Animation Definitions
   ============================================================ */

/* ============================================================
   INITIAL STATES (set before GSAP runs)
   ============================================================ */
.fade-up {
  /* reveal disabled — content stays visible */
}
.fade-in {
  opacity: 0;
}
.clip-reveal {
  clip-path: inset(0 100% 0 0);
}
.slide-left {
  opacity: 0;
  transform: translateX(-60px);
}
.slide-right {
  opacity: 0;
  transform: translateX(60px);
}
.scale-in {
  opacity: 0;
  transform: scale(0.9);
}

/* ============================================================
   GSAP will handle these — class-based initial states
   only apply when JS is loaded
   ============================================================ */

/* Page transitions */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

/* Stagger containers */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
}

/* Gold line grow */
.gold-rule-animate {
  width: 0;
  transition: width 1s ease;
}
.gold-rule-animate.visible {
  width: 60px;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--oak-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}
#loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fdfaf5;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
  opacity: 0;
  animation: loaderFadeIn 0.5s ease 0.2s forwards;
}
.loader-logo span { color: #d4a843; }

.loader-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(212,168,67,0.2);
  position: relative;
  overflow: hidden;
}
.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #d4a843;
  width: 0;
  animation: loaderBar 1.4s ease 0.4s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}
@keyframes loaderBar {
  to { width: 100%; }
}

/* ============================================================
   PARALLAX
   ============================================================ */
.parallax-img {
  will-change: transform;
}

/* ============================================================
   HOVER EFFECTS
   ============================================================ */
.hover-gold {
  transition: color 0.3s ease;
}
.hover-gold:hover { color: #d4a843; }

.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ============================================================
   IMAGE REVEAL WRAPPER
   ============================================================ */
.img-reveal-wrap {
  overflow: hidden;
  position: relative;
}
.img-reveal-wrap img {
  transform-origin: center;
}

/* ============================================================
   COUNTER
   ============================================================ */
.counter-wrap {
  overflow: hidden;
}

/* ============================================================
   CURSOR (optional premium touch)
   ============================================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #d4a843;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: normal;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212,168,67,0.6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #d4a843, #c9a96e);
  z-index: 1001;
  transition: width 0.1s linear;
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.divider-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,168,67,0.4), transparent);
  margin: 0;
}

/* ============================================================
   REVEAL ON SCROLL (fallback without GSAP)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
