/* Shared case study layout — MiraFAST / Iberogast pattern */

.mf-hero {
  border: 1px solid var(--white-12);
  padding: 48px;
  margin-top: 48px;
  border-radius: 8px;
}

.mf-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.mf-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-64);
  margin-bottom: 12px;
}

.mf-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white-81);
}

.mf-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--white-64);
  line-height: 1.6;
  max-width: 480px;
}

.mf-header img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--white-12);
  background: var(--white-6);
}

.mf-meta {
  display: flex;
  gap: 32px;
  padding: 16px 0 24px;
  margin: 24px 0;
  border-bottom: 1px solid var(--white-12);
  flex-wrap: wrap;
}

.mf-meta-item {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--white-64);
  line-height: 1.5;
}

.mf-meta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-right: 10px;
}

.mf-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 32px;
}

.mf-tab {
  flex: 1;
  background: var(--white-6);
  border: 1px solid var(--white-12);
  padding: 20px 24px;
  border-radius: 4px;
}

.mf-tab-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--white-64);
}

.mf-tab-number {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  color: var(--white-81);
}

.mf-tab-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.5;
}

.mf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--white-12);
  border: 1px solid var(--white-12);
  border-radius: 4px;
  margin-bottom: 32px;
}

.mf-stat {
  background: var(--button);
  padding: 28px 24px;
}

.mf-stat:first-child { border-radius: 4px 0 0 4px; }
.mf-stat:last-child { border-radius: 0 4px 4px 0; }

.mf-stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--white-81);
  font-variant-numeric: tabular-nums;
}

.mf-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--white-81);
  line-height: 1.5;
}

.mf-stat-label span {
  color: var(--white-50);
}

.mf-section { margin-top: 48px; }

.mf-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.mf-two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.mf-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.mf-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .mf-hero { padding: 32px 24px; }
  .mf-header { grid-template-columns: 1fr; gap: 24px; }
  .mf-stats { grid-template-columns: 1fr 1fr; }
  .mf-stat:first-child { border-radius: 4px 0 0 0; }
  .mf-stat:last-child { border-radius: 0 0 4px 0; }
}

@media (max-width: 600px) {
  .mf-stats { grid-template-columns: 1fr; }
  .mf-tabs { flex-direction: column; }
  .mf-two-up { grid-template-columns: 1fr; }
  .mf-gallery { grid-template-columns: 1fr; }
  .mf-stat { border-radius: 0 !important; }
}
