/* =============================================================
   feat-problem-changes-block.css — Bluworks v2
   Matches prototype:
     TOP    — "The problem" centered white section
     BOTTOM — "What changes" heading + 2×2 card grid
   ============================================================= */

/* ── Shared container ─────────────────────────────────────── */
.feat-problem-section .container,
.feat-changes-section .container {
  width: 100%;
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 0 var(--gutter, 24px);
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════════
   THE PROBLEM — centered, white background
   ══════════════════════════════════════════════════════════ */
.feat-problem-section {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--surface, #FFFFFF);
  border-top: 1px solid var(--line, #E4E8F3);
  border-bottom: 1px solid var(--line, #E4E8F3);
}

.feat-problem-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* "THE PROBLEM" label */
.feat-problem-label {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted, #6B7088);
  margin-bottom: 20px;
}

/* Problem paragraph */
.feat-problem-text {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--ink-mid, #4B5068);
  line-height: 1.72;
  margin: 0;
}

html[dir="rtl"] .feat-problem-label,
html[dir="rtl"] .feat-problem-text {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   WHAT CHANGES — heading + 2×2 card grid
   ══════════════════════════════════════════════════════════ */
.feat-changes-section {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--bg, #FAFBFD);
}

/* Section heading */
.feat-changes-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.feat-changes-head h2 {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink, #0A0F1E);
  margin: 0;
}

html[dir="rtl"] .feat-changes-head h2 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
  letter-spacing: 0;
}

/* 2×2 grid */
.feat-changes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4, 16px);
}

/* If the grid has an odd number of cards, the last card ends up alone
   on its own row, pinned left. Center it instead. */
.feat-change-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - (var(--s-4, 16px) / 2));
  margin: 0 auto;
}

@media (max-width: 600px) {
  .feat-changes-grid { grid-template-columns: 1fr; }

  /* Single column on mobile — the centering rule above no longer applies */
  .feat-change-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
}

/* ── Card ── */
.feat-change-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #E4E8F3);
  border-top: 3px solid var(--blu-primary, #1E50E5);
  border-radius: var(--r-4, 16px);
  padding: var(--s-6, 28px);
  display: flex;
  flex-direction: column;
  gap: var(--s-3, 12px);
  transition: transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}

.feat-change-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 15, 30, 0.08);
}

/* Icon box */
.feat-change-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blu-soft, #EEF3FF);
  color: var(--blu-primary, #1E50E5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-change-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Title */
.feat-change-card h3 {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink, #0A0F1E);
  margin: 0;
}

html[dir="rtl"] .feat-change-card h3 {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* Body */
.feat-change-card p {
  font-family: 'Neue Haas Grotesk Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-mid, #4B5068);
  line-height: 1.6;
  margin: 0;
}

html[dir="rtl"] .feat-change-card p {
  font-family: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

/* ── Reveal ── */
.feat-problem-section .reveal,
.feat-changes-section .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feat-problem-section .reveal.in,
.feat-changes-section .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .feat-problem-section .reveal,
  .feat-changes-section .reveal,
  .feat-problem-section .reveal.in,
  .feat-changes-section .reveal.in {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .feat-change-card { transition: none !important; }
  .feat-change-card:hover { transform: none !important; }
}