/**
 * Section: Bento Features Mixed
 * Variants: [data-variant="light"] (default), [data-variant="dark"], [data-variant="muted"]
 * 4-cell asymmetric bento: 1 large hero (2 cols x 1 row) + 3 small
 *
 * Cell modifiers (consumer-facing):
 *   .bfm-cell--hero  — 2 cols on desktop, full-row on tablet, full-row on mobile
 *   .bfm-cell--wide  — 2 cols on desktop, full-row on tablet, full-row on mobile
 *                      (use for non-hero cells that should be wider than default)
 */

.bento-features-mixed {
  padding-block: var(--section-py);
  background: var(--color-bg);
}

.bento-features-mixed[data-variant="dark"]  { background: var(--color-bg-dark); }
.bento-features-mixed[data-variant="muted"] { background: var(--color-bg-subtle); }

/* ─── Header ───────────────────────────────────── */

.bento-features-mixed__header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-14);
}

.bento-features-mixed__heading {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.bento-features-mixed[data-variant="dark"] .bento-features-mixed__heading {
  color: var(--color-text-on-dark);
}

.bento-features-mixed__subtext {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-text-subtle);
}

.bento-features-mixed[data-variant="dark"] .bento-features-mixed__subtext {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Grid (3 cols × 2 rows) ───────────────────── */

.bento-features-mixed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-5);
}

/* Hero cell: cols 1-2, row 1 */
.bfm-cell--hero {
  grid-column: span 2;
}

/* Wide cell modifier: 2/3 width on desktop, full-row on tablet, full-row on mobile.
   Same span as --hero but no accent background — for any non-hero cell that should
   be wider than the default 1-col. */
.bfm-cell--wide {
  grid-column: span 2;
}

/* ─── Cells ────────────────────────────────────── */

.bfm-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.bfm-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-features-mixed[data-variant="dark"] .bfm-cell {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

.bento-features-mixed[data-variant="dark"] .bfm-cell:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.bento-features-mixed[data-variant="muted"] .bfm-cell {
  background: var(--color-bg);
}

/* Hero cell: accent bg */
.bfm-cell--hero {
  background: var(--color-accent-light);
  border-color: transparent;
}

.bento-features-mixed[data-variant="dark"] .bfm-cell--hero {
  background: rgba(205, 250, 137, 0.12);
  border-color: rgba(205, 250, 137, 0.18);
}

/* ─── Visual area in hero ──────────────────────── */

.bfm-cell__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.bfm-cell__illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  color: var(--color-primary);
}

.bento-features-mixed[data-variant="dark"] .bfm-cell__illustration {
  color: var(--color-accent);
}

/* ─── Decorative SVGs in small cells ───────────── */

.bfm-cell__deco {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-1);
}

/* ─── Body text ────────────────────────────────── */

.bfm-cell__body { display: flex; flex-direction: column; gap: var(--space-3); }

.bfm-cell__eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.6;
}

.bento-features-mixed[data-variant="dark"] .bfm-cell__eyebrow {
  color: var(--color-accent);
}

.bfm-cell__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--color-text);
}

.bfm-cell--hero .bfm-cell__title {
  font-size: var(--text-2xl);
}

.bento-features-mixed[data-variant="dark"] .bfm-cell__title {
  color: var(--color-text-on-dark);
}

.bfm-cell__text {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  line-height: var(--leading-relaxed);
}

.bento-features-mixed[data-variant="dark"] .bfm-cell__text {
  color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 1199px) {
  .bento-features-mixed__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bfm-cell--hero { grid-column: span 2; }
  .bfm-cell--wide { grid-column: span 2; }
}

@media (max-width: 809px) {
  .bento-features-mixed { padding-block: var(--section-py-sm); }
  .bento-features-mixed__header { margin-bottom: var(--space-10); }
  .bento-features-mixed__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .bfm-cell--hero { grid-column: span 1; }
  .bfm-cell--wide { grid-column: span 1; }
  .bfm-cell { padding: var(--space-6); }
  .bfm-cell--hero .bfm-cell__title { font-size: var(--text-xl); }
}
