/* ============================================================
   VirtueleWereld — Sticky Features Section
   Split-screen pinned feature slideshow.
   The entire section — intro heading + slide texts — lives
   inside the 100vh stage so everything fits in one viewport.
   ============================================================ */

.sticky-features {
  background: var(--color-bg);
  position: relative;
}

/* ── Stage: 100vh pin target, 50/50 split on desktop ─────── */

/* Mobile: single-column, natural scroll */
.sticky-features__stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-sm);
}

/* Desktop: side-by-side columns, full viewport height */
@media (min-width: 768px) {
  .sticky-features__stage {
    grid-template-columns: 1fr 1fr;
    height: 70vh;
    padding: 0 var(--space-lg);
    align-items: center;
    gap: var(--space-2xl);
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* ── Media — left column ──────────────────────────────────── */

.sticky-features__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .sticky-features__media {
    align-self: auto;
  }
}

/* Landscape image frame — overflow:hidden clips sliding images */
.sticky-features__media-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-feature);
}

/* Each image fills the frame absolutely — GSAP animates yPercent */
.sticky-features__slide-image {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.sticky-features__slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: hide the shared media column — each slide shows its own image inline */
@media (max-width: 767px) {
  .sticky-features__media {
    display: none;
  }
}

/* ── Content — right column ───────────────────────────────── */

/* Mobile: flex column, everything in natural flow */
.sticky-features__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Desktop: full-height flex column — intro at top, slides fill remaining space */
@media (min-width: 768px) {
  .sticky-features__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
  }
}

/* ── Static intro (section label + heading) ───────────────── */

.sticky-features__intro {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Section label — identical to .about__label, .pricing__label, etc. */
.sticky-features__intro-label {
  display: block;
  font-size: 0.65rem;
  font-weight: var(--fw-regular);
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Section heading — one step below full hero scale */
.sticky-features__intro-heading {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2.25rem);
  font-weight: var(--fw-regular);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

/* ── Slides container — animated texts live here ──────────── */

/* Mobile: normal flow, all slides visible */
.sticky-features__slides {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Desktop: fixed-height clip container; GSAP positions texts absolutely */
@media (min-width: 768px) {
  .sticky-features__slides {
    position: relative;
    height: clamp(180px, 28vh, 300px);
    overflow: hidden;
    gap: 0;
    flex-shrink: 0;
  }
}

/* Individual slide text blocks */
.sticky-features__slide-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Desktop: stacked absolutely so GSAP can drive opacity + y */
@media (min-width: 768px) {
  .sticky-features__slide-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-sm);
    will-change: transform, opacity;
  }
}

/* ── Slide text elements ──────────────────────────────────── */

/* Slide title */
.sticky-features__title {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-xs);
}

/* Description */
.sticky-features__desc {
  margin: 0;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: var(--color-text-dim);
}

/* CTA link */
.sticky-features__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
  text-decoration: none;
  width: fit-content;
  transition: color 0.2s ease, gap 0.25s ease;
}

.sticky-features__link:hover {
  color: var(--color-accent);
  gap: 1rem;
}

/* Arrow circle — adapts the shared .hero__cta-circle component */
.sticky-features__link .hero__cta-circle {
  width: 2rem;
  height: 2rem;
  background: var(--color-bg-feature);
  flex-shrink: 0;
}

.sticky-features__link .hero__cta-circle svg {
  stroke: var(--color-text);
}

.sticky-features__link:hover .hero__cta-circle {
  background: var(--color-accent);
}

.sticky-features__link:hover .hero__cta-circle svg {
  stroke: var(--color-bg);
}

/* ── Light mode variant ───────────────────────────────────── */

.sticky-features--light {
  background: var(--color-bg-light);
}

.sticky-features--light .sticky-features__media-track {
  background: var(--color-border-dark);
}

.sticky-features--light .sticky-features__intro-heading {
  color: var(--color-text-dark);
}

.sticky-features--light .sticky-features__title {
  color: var(--color-text-dark);
}

.sticky-features--light .sticky-features__desc {
  color: var(--color-text-dark-dim);
}

.sticky-features--light .sticky-features__link {
  color: var(--color-text-dark);
}

.sticky-features--light .sticky-features__link .hero__cta-circle {
  background: var(--color-border-dark);
}

.sticky-features--light .sticky-features__link .hero__cta-circle svg {
  stroke: var(--color-text-dark);
}

.sticky-features--light .sticky-features__link:hover {
  color: var(--color-accent);
}

.sticky-features--light .sticky-features__link:hover .hero__cta-circle {
  background: var(--color-accent);
}

.sticky-features--light .sticky-features__link:hover .hero__cta-circle svg {
  stroke: var(--color-bg-light);
}

/* ── Mobile inline slide images ───────────────────────────── */

.sticky-features__slide-image-mobile {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-feature);
}

.sticky-features__slide-image-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hidden on desktop — the shared media track handles images there */
@media (min-width: 768px) {
  .sticky-features__slide-image-mobile {
    display: none;
  }
}

.sticky-features--light .sticky-features__slide-image-mobile {
  background: var(--color-border-dark);
}
