/**
 * Section: Feature Showcase
 * Variants: [data-variant="light"] (default), "dark", "muted"
 * Alternating image/text rows; text-below-image stack on mobile.
 */

.feature-showcase {
  background: var(--color-bg);
  color: var(--color-text);
  padding: var(--section-py) 0;
}

.feature-showcase[data-variant="muted"] { background: var(--color-bg-muted); }

.feature-showcase[data-variant="dark"] {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

/* ─── Section header ────────────────────────────── */

.feature-showcase__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.feature-showcase__heading {
  color: inherit;
}

.feature-showcase[data-variant="dark"] .section-label {
  color: rgba(255, 255, 255, 0.5);
}

/* ─── Row layout ────────────────────────────────── */

.feature-showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-20);
}

.feature-showcase__row:last-child { margin-bottom: 0; }

/* Reverse row: text on left, media on right */
.feature-showcase__row--reverse .feature-showcase__media {
  order: 2;
}

/* ─── Media / image placeholder ─────────────────── */

.feature-showcase__media {
  width: 100%;
}

.feature-showcase__media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  font-style: italic;
}

.feature-showcase[data-variant="dark"] .feature-showcase__media-placeholder {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-dark);
  color: rgba(255, 255, 255, 0.3);
}

/* ─── Text block ────────────────────────────────── */

.feature-showcase__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.feature-showcase__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.feature-showcase[data-variant="dark"] .feature-showcase__eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

.feature-showcase__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: inherit;
  max-width: 520px;
}

.feature-showcase__body {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 520px;
}

.feature-showcase[data-variant="dark"] .feature-showcase__body {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── Feature list ──────────────────────────────── */

.feature-showcase__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}

.feature-showcase__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.feature-showcase[data-variant="dark"] .feature-showcase__list-item {
  color: rgba(255, 255, 255, 0.85);
}

.feature-showcase__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-primary);
}

.feature-showcase[data-variant="dark"] .feature-showcase__check {
  color: var(--color-accent);
}

/* ─── Dark variant button override ──────────────── */

.feature-showcase[data-variant="dark"] .btn-dark {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 1199px) {
  .feature-showcase__row { gap: var(--space-12); }
}

@media (max-width: 809px) {
  .feature-showcase { padding: var(--section-py-sm) 0; }
  .feature-showcase__header { margin-bottom: var(--space-10); }

  .feature-showcase__row {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-14);
  }
  /* Always media above text on mobile, regardless of row order */
  .feature-showcase__row--reverse .feature-showcase__media { order: 0; }

  .feature-showcase__title { font-size: var(--text-2xl); }
}
