/* ══════════════════════════════════════════════════════════
   CASE STUDY COMPONENTS — Shared across all pages
   Browser chrome frame + phone frame side by side.
   Import: <link rel="stylesheet" href="/css/case-studies.css">

   Approved layout (April 2026):
   - Browser frame: red/yellow/green dots + URL bar
   - Phone frame: notch, 24px radius, bottom home bar, 4px border
   - Devices side by side, phone 160px wide, centered vertically
   - Alternate phone left/right between cards
   - Dark background (#111)
   ══════════════════════════════════════════════════════════ */

.case-studies {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 36px;
}

.case-card {
  border: 1px solid #333;
  overflow: hidden;
}

.case-card-body {
  padding: 24px;
}

.case-card-body h3 {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  color: #F5F0EB;
  margin-bottom: 4px;
}

.case-card-body .case-type {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(245, 240, 235, 0.55);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.case-card-body p {
  font-size: 14px;
  color: rgba(245, 240, 235, 0.75);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Score badges */
.case-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-badge {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 2px;
}

.score-before {
  background: rgba(196, 74, 63, 0.15);
  color: #c44a3f;
}

.score-after {
  background: rgba(62, 207, 110, 0.15);
  color: #3ecf6e;
}

.score-arrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #C5A572;
  font-size: 18px;
}

/* ── Screenshot pair container ── */
.case-screenshots {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 24px 0;
  background: #111;
  position: relative;
  overflow: hidden;
}

/* ── Browser chrome frame ── */
.case-browser {
  flex: 1;
  border-radius: 6px 6px 0 0;
  border: 1px solid #333;
  border-bottom: none;
  overflow: hidden;
}

.case-browser-bar {
  background: #1A1918;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.case-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.case-browser-dot.r { background: #ff5f57; }
.case-browser-dot.y { background: #febc2e; }
.case-browser-dot.g { background: #28c840; }

.case-browser-url {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(245, 240, 235, 0.45);
  margin-left: 10px;
}

.case-browser img {
  width: 100%;
  display: block;
}

/* ── Phone frame ── */
.case-phone {
  width: 160px;
  flex-shrink: 0;
  border-radius: 24px;
  border: 4px solid #444;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  align-self: center;
}

.case-phone-notch {
  height: 20px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-phone-notch::after {
  content: '';
  width: 36%;
  height: 5px;
  background: #333;
  border-radius: 3px;
}

.case-phone img {
  width: 100%;
  display: block;
}

.case-phone-bottom {
  height: 12px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-phone-bottom::after {
  content: '';
  width: 28%;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .case-screenshots { gap: 12px; padding: 16px 12px 0; }
  .case-phone { width: 110px; border-radius: 18px; border-width: 3px; }
  .case-phone-notch { height: 14px; }
  .case-browser-bar { padding: 7px 10px; }
  .case-browser-dot { width: 7px; height: 7px; }
  .case-browser-url { font-size: 9px; }
}
