/* ─────────────────────────────────────────────────────────────────────────────
   Chaynarium — Scroll animations
   Replaces Webflow Interactions 2.0 (webflow.js IX2)
   ───────────────────────────────────────────────────────────────────────────── */

/* Initial hidden state — added by JS before observing */
.anim-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* Visible state — added by IntersectionObserver when element enters viewport */
.anim-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Staggered children — each sibling gets a slightly longer delay */
.anim-stagger > .anim-hidden:nth-child(1)  { transition-delay: 0s;    }
.anim-stagger > .anim-hidden:nth-child(2)  { transition-delay: 0.10s; }
.anim-stagger > .anim-hidden:nth-child(3)  { transition-delay: 0.20s; }
.anim-stagger > .anim-hidden:nth-child(4)  { transition-delay: 0.30s; }
.anim-stagger > .anim-hidden:nth-child(5)  { transition-delay: 0.40s; }
.anim-stagger > .anim-hidden:nth-child(6)  { transition-delay: 0.50s; }
.anim-stagger > .anim-hidden:nth-child(7)  { transition-delay: 0.60s; }
.anim-stagger > .anim-hidden:nth-child(8)  { transition-delay: 0.70s; }
.anim-stagger > .anim-hidden:nth-child(9)  { transition-delay: 0.80s; }
.anim-stagger > .anim-hidden:nth-child(10) { transition-delay: 0.90s; }
.anim-stagger > .anim-hidden:nth-child(11) { transition-delay: 1.00s; }
.anim-stagger > .anim-hidden:nth-child(12) { transition-delay: 1.10s; }

/* ─────────────────────────────────────────────────────────────────────────────
   Sticky footer — body is a flex column so <main> grows to fill the viewport.
   Prevents short pages (auth, empty states) from leaving a gap before the footer.
   ───────────────────────────────────────────────────────────────────────────── */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form field spacing (field-wrap / checkbox-wrap have no CSS in Webflow export)
   ───────────────────────────────────────────────────────────────────────────── */

.field-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field-wrap .field-label {
  margin-bottom: 6px;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.checkbox-wrap .field-label {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .anim-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
