/* ==========================================================================
   EVOLVIFY WELLNESS - OVERLAPPING STACK & GSAP ANIMATION SYSTEM
   ========================================================================== */

/* 1. LENIS SMOOTH SCROLL INTEGRATION */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* 2. INDEPENDENT CLEAN SECTION STORY SHEET SYSTEM */
.story-sheets-wrapper {
  position: relative;
  width: 100%;
}

.story-sheet {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
  z-index: 1;
}

.story-sheet-dark {
  background: url('https://i.pinimg.com/1200x/e1/29/d2/e129d214ea9faba2c4860d3dbab812b4.jpg') no-repeat center center;
  
  background-size: cover; 
  color: rgb(0, 0, 0);
}

.story-sheet-dark h1,
.story-sheet-dark h2,
.story-sheet-dark h3,
.story-sheet-dark h4 {
  color: white;
}

.story-sheet-dark .text-muted-custom {
  color: #A0B5AC;
}

/* 3. HERO COMPOSITION LAYERS */
.hero-composition-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.hero-layer-back {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.hero-layer-fore {
  transition: transform 0.4s var(--ease-apple);
}

/* 4. PROBLEM FRAGMENTED STORYTELLING */
.problem-fragment-container {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.problem-fragment-card {
  background-color: var(--color-dark-surface-card);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-md);
}

/* 5. ECOSYSTEM ORBIT DIAGRAM */
.ecosystem-diagram-container {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-center-node {
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 16px 40px rgba(30, 61, 51, 0.35);
  border: 3px solid var(--color-accent);
  z-index: 5;
}

.ecosystem-orbit-node {
  position: absolute;
  padding: 0.85rem 1.4rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: all var(--transition-medium);
}

.node-top-center { top: 30px; }
.node-top-right { top: 120px; right: 40px; }
.node-bottom-right { bottom: 100px; right: 50px; }
.node-bottom-left { bottom: 100px; left: 50px; }
.node-top-left { top: 120px; left: 40px; }

/* 6. SPLIT-TYPE TEXT REVEAL STYLES */
.split-line-wrapper {
  overflow: hidden;
  display: block;
}

.split-line {
  display: block;
  will-change: transform;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity;
}

.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* 7. HORIZONTAL SERVICES GALLERY TRACK */
.horizontal-scroll-wrapper {
  overflow: hidden;
  width: 100%;
}

.horizontal-scroll-track {
  display: flex;
  gap: 2.25rem;
  width: max-content;
  padding: 2rem 0;
  will-change: transform;
}

.horizontal-card-item {
  width: 420px;
  flex-shrink: 0;
}

/* 8. VERTICAL PROGRAM CARD STACK */
.program-stack-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 480px;
  margin: 0 auto;
}

.program-stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform, opacity;
}

/* 9. WHY EVOLVIFY TYPOGRAPHY SEQUENCE */
.why-word-item {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  transition: color 0.3s ease;
}

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

  .story-sheet {
    position: relative !important;
    top: auto !important;
    transform: none !important;
  }
}

