/* ============================================================
EXECUTIVE HUNTER — FEATURES SHOWCASE
Path: assets/css/features-showcase.css
------------------------------------------------------------
Interactive feature rail + dynamic preview panel.
Replaces the legacy 2-col grid of 10 cards.
============================================================ */

.features-showcase {
  background: url("../images/features.jpg") center/cover no-repeat;
  color: #121630;
  position: relative;
}

/* soft top gold line (matches testimonials) */
.features-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, .35), transparent);
}

.features-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}


/* ============================================================
HEADER
============================================================ */

.fs-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.fs-eyebrow {
  display: inline-block;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 10px;
  color: #c9a84c;
  margin-bottom: 22px;
  font-weight: 500;
  position: relative;
  padding: 0 28px;
}

.fs-eyebrow::before,
.fs-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: #c9a84c;
  opacity: .5;
}
.fs-eyebrow::before { right: 100%; margin-right: -24px; }
.fs-eyebrow::after  { left:  100%; margin-left:  -24px; }

.fs-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}


/* ============================================================
LAYOUT — 2-column on desktop
============================================================ */

.fs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: stretch;
}


/* ============================================================
LEFT RAIL
============================================================ */

.fs-rail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid rgba(201, 168, 76, .15);
  padding-right: 16px;
}

.fs-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;

  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  text-align: left;

  cursor: pointer;
  font-family: inherit;
  color: #121630;
  opacity: .52;

  transition: opacity .3s ease, background .3s ease, border-left-color .3s ease;
}

.fs-rail-item:hover:not(.is-active) {
  opacity: .78;
}

.fs-rail-item.is-active {
  opacity: 1;
  border-left-color: #c9a84c;
  background: rgba(201, 168, 76, .06);
}

.fs-rail-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  font-weight: 600;
  color: #c9a84c;
  min-width: 20px;
  letter-spacing: .06em;
}

.fs-rail-icon {
  font-size: 20px !important;
  color: rgba(18, 22, 48, .45);
  transition: color .25s ease;
  flex-shrink: 0;
}

.fs-rail-item.is-active .fs-rail-icon {
  color: #c9a84c;
}

.fs-rail-title {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.3;
}

.fs-rail-item.is-active .fs-rail-title {
  font-weight: 600;
}

.fs-rail-item:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: -2px;
  opacity: 1;
}


/* ============================================================
PROGRESS BAR (auto-advance indicator)
============================================================ */

.fs-progress {
  margin-top: 14px;
  padding: 0 14px;
  transition: opacity .3s ease;
}

.fs-progress.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.fs-progress-label {
  display: block;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(18, 22, 48, .4);
  margin-bottom: 6px;
  font-weight: 500;
}

.fs-progress-track {
  height: 2px;
  background: rgba(201, 168, 76, .15);
  border-radius: 2px;
  overflow: hidden;
}

.fs-progress-fill {
  height: 100%;
  width: 0%;
  background: #c9a84c;
  border-radius: 2px;
}

.fs-progress-fill.is-running {
  animation: fsProgress var(--fs-duration, 6000ms) linear forwards;
}

.fs-progress-fill.is-paused {
  animation-play-state: paused;
}

@keyframes fsProgress {
  from { width: 0%; }
  to   { width: 100%; }
}


/* ============================================================
RIGHT STAGE (dynamic preview)
============================================================ */

.fs-stage {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.fs-stage-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;

  opacity: 1;
  transform: translateY(0);
  transition: opacity .28s ease, transform .28s ease;
}

.fs-stage-inner.is-fading {
  opacity: 0;
  transform: translateY(6px);
}


/* ============================================================
VISUAL (dark panel)
============================================================ */

.fs-stage-visual {
  flex: 1;

  background: linear-gradient(135deg, #0f1c2e 0%, #0b1320 100%);
  border-radius: 14px;
  padding: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;
  min-height: 340px;

  box-shadow: 0 20px 60px rgba(15, 28, 46, .18);
}

/* soft gold glow inside the dark panel */
.fs-stage-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, .12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.fs-stage-visual svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Future: when switching to screenshots */
.fs-stage-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}


/* ============================================================
META (title + desc + link)
============================================================ */

.fs-stage-meta {
  padding: 0 4px;
}

.fs-stage-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #121630;
  letter-spacing: .01em;
  line-height: 1.2;
}

.fs-stage-desc {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(18, 22, 48, .68);
  margin: 0 0 18px;
  max-width: 640px;
}

.fs-stage-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;

  border-bottom: 1px solid rgba(201, 168, 76, .3);
  padding-bottom: 3px;
  transition: border-bottom-color .25s ease, gap .25s ease;
}

.fs-stage-link:hover {
  border-bottom-color: #c9a84c;
  gap: 10px;
}

.fs-stage-link[hidden] {
  display: none;
}


/* ============================================================
RESPONSIVE — TABLET (rail → horizontal scroller above stage)
============================================================ */

@media (max-width: 1200px) {
  .features-container {
    padding: 0 32px;
  }

  .fs-layout {
    grid-template-columns: 300px 1fr;
    gap: 48px;
  }
}

@media (max-width: 960px) {
  .features-container {
    padding: 0 24px;
  }

  .fs-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fs-rail {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    border-right: none;
    border-bottom: 1px solid rgba(201, 168, 76, .15);
    padding-right: 0;
    padding-bottom: 14px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    /* Mobile touch swipe fix: explicit pan-x lets browser handle horizontal
       swipe without conflict with vertical page scroll. overscroll-behavior
       prevents the scroll from bleeding into the page. */
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .fs-rail::-webkit-scrollbar {
    height: 3px;
  }
  .fs-rail::-webkit-scrollbar-thumb {
    background: rgba(201, 168, 76, .3);
    border-radius: 3px;
  }

  .fs-rail-item {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .fs-rail-item.is-active {
    border-left-color: transparent;
    border-bottom-color: #c9a84c;
  }

  .fs-progress {
    /* On mobile, progress sits below the scroller */
    order: 999;
    flex-basis: 100%;
    margin-top: 4px;
    padding: 0;
  }

  .fs-stage {
    min-height: 380px;
  }
}


/* ============================================================
RESPONSIVE — MOBILE
============================================================ */

@media (max-width: 640px) {
  .features-showcase {
    padding: 80px 0;
  }

  .fs-header {
    margin-bottom: 40px;
  }

  .fs-header h2 {
    font-size: 28px;
  }

  .fs-stage-visual {
    padding: 22px;
    min-height: 200px;
  }

  .fs-stage-title {
    font-size: 24px;
  }

  .fs-stage-desc {
    font-size: 14px;
  }

  .fs-rail-title {
    font-size: 13px;
  }
}


/* ============================================================
REDUCED MOTION — no progress animation, no slide fade
============================================================ */

@media (prefers-reduced-motion: reduce) {
  .fs-progress-fill,
  .fs-stage-inner,
  .fs-rail-item,
  .fs-rail-icon {
    animation: none !important;
    transition: opacity .15s ease !important;
  }

  .fs-stage-inner.is-fading {
    transform: none;
  }
}