/* ═══════════════════════════════════════════════════
   Samtaleverkstedet — Animations
   All scroll animations driven by GSAP + ScrollTrigger
   ═══════════════════════════════════════════════════ */

/* ── NAV FADE IN ── */
@keyframes navIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav {
  animation: navIn 0.6s ease forwards;
}

/* ── HERO TEXT REVEAL ── */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content .eyebrow {
  animation: heroReveal 0.7s ease forwards 0.4s;
  opacity: 0;
}

.hero__content h1 {
  animation: heroReveal 0.8s ease forwards 0.55s;
  opacity: 0;
}

.hero__sub {
  animation: heroReveal 0.7s ease forwards 0.7s;
  opacity: 0;
}

.hero__ctas {
  animation: heroReveal 0.7s ease forwards 0.85s;
  opacity: 0;
}

.hero__image {
  animation: heroReveal 0.9s ease forwards 0.6s;
  opacity: 0;
}

/* ── PROOF BAR ITEMS ── */
.proof-item {
  opacity: 0;
  animation: heroReveal 0.5s ease forwards;
}

.proof-item:nth-child(1) { animation-delay: 1.1s; }
.proof-item:nth-child(2) { animation-delay: 1.2s; }
.proof-item:nth-child(3) { animation-delay: 1.3s; }
.proof-item:nth-child(4) { animation-delay: 1.4s; }

/* ── HOVER EFFECTS ── */
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── LINK UNDERLINE ANIMATION ── */
.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terra);
  transition: width 0.25s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* ── SCROLL PROGRESS INDICATOR ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--terra);
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.05s linear;
}

/* ── PAGE TRANSITIONS ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--forest);
  z-index: 9998;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ── FLOATING LABEL EFFECT (forms) ── */
.form__group {
  position: relative;
}

.form__group input:not(:placeholder-shown),
.form__group textarea:not(:placeholder-shown) {
  padding-top: 1.1rem;
  padding-bottom: 0.4rem;
}

/* ── CARD SHIMMER ON LOAD ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── STAGGER ANIMATION DELAYS (set by JS) ── */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gsap-fade-up,
  .gsap-fade-in,
  .gsap-scale-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__content .eyebrow,
  .hero__content h1,
  .hero__sub,
  .hero__ctas,
  .hero__image,
  .proof-item {
    opacity: 1 !important;
    animation: none !important;
  }
}
