/**
 * Moiben — Uasin Gishu County case study
 * Coffee-agriculture / blue-stone geology theme
 * Unique layout: dossier, stratigraphy band, photo journal
 */
@import url('kisima-project-ngatataek.css');

.kisima-moiben-page {
  --mb-coffee: #6b4423;
  --mb-leaf: #3d5a3a;
  --mb-stone: #334155;
  --mb-slate: #475569;
  --mb-fresh: #0d9488;
  --mb-salt: #b45309;
  --mb-cream: #faf7f2;
  --mb-navy: #1a1410;
  --ng-sky: #0d9488;
  --ng-water: #115e59;
  --ng-navy: #1a1410;
  --ng-earth: #6b4423;
  --ng-sand: #faf7f2;
  --ng-glow: rgba(13, 148, 136, 0.32);
  background: var(--mb-cream);
}

/* ——— Split editorial hero (not full-bleed bottom hero) ——— */
.mb-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: clamp(480px, 88vh, 760px);
  background: var(--mb-navy);
  color: #fff;
  overflow: hidden;
}

.mb-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 5vw, 3rem);
  max-width: 640px;
  margin-left: auto;
}

.mb-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  opacity: 0.75;
}

.mb-hero__crumb a {
  color: #99f6e4;
  text-decoration: none;
}

.mb-hero__crumb a:hover {
  text-decoration: underline;
}

.mb-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.mb-hero__tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mb-hero__tag--yield {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #042f2e;
  border: none;
}

.mb-hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.mb-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.mb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mb-hero__visual {
  position: relative;
  min-height: 320px;
}

.mb-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--mb-navy) 0%, transparent 28%);
  pointer-events: none;
}

.mb-hero__statcol {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  z-index: 2;
}

.mb-hero__stat {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(26, 20, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.mb-hero__stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #5eead4;
}

.mb-hero__stat span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.78;
}

/* ——— Alert strip ——— */
.mb-alert-strip {
  background: #fff;
  border-bottom: 1px solid #e7e0d6;
  padding: 0.9rem 0;
}

.mb-alert-strip__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--mb-slate);
}

.mb-alert-strip__inner i {
  color: var(--mb-fresh);
}

/* ——— Geology dossier ——— */
.mb-dossier {
  background: #fff;
  border: 1px solid #e7e0d6;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(26, 20, 16, 0.06);
}

.mb-dossier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(90deg, #1a1410, #334155);
  color: #fff;
}

.mb-dossier__head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mb-dossier__ref {
  font-size: 0.75rem;
  opacity: 0.7;
  font-family: ui-monospace, monospace;
}

.mb-dossier__body {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.mb-dossier__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e7e0d6;
}

.mb-dossier__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mb-dossier__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--mb-cream);
  color: var(--mb-coffee);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-dossier__row h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #1a1410;
}

.mb-dossier__row p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* ——— Stratigraphy band ——— */
.mb-strata {
  margin-top: 2.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.mb-strata__bar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  min-height: 140px;
}

.mb-strata__zone {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
}

.mb-strata__zone--surface {
  background: linear-gradient(180deg, #d4a574 0%, #a67c52 100%);
  color: #fff;
}

.mb-strata__zone--blue {
  background: linear-gradient(180deg, #64748b 0%, #334155 100%);
  color: #e2e8f0;
  border-left: 3px solid #475569;
  border-right: 3px solid #475569;
}

.mb-strata__zone--aquifer {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  color: #042f2e;
}

.mb-strata__zone strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.mb-strata__zone span {
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0.92;
}

.mb-strata__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #f1f5f9;
  font-size: 0.78rem;
  color: #475569;
}

.mb-strata__legend i {
  color: var(--mb-fresh);
}

/* ——— Aquifer comparison matrix ——— */
.mb-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.mb-matrix__col {
  border-radius: 16px;
  padding: 1.35rem;
  border: 2px solid transparent;
}

.mb-matrix__col--good {
  background: linear-gradient(145deg, #ecfdf5, #f0fdfa);
  border-color: #99f6e4;
}

.mb-matrix__col--bad {
  background: linear-gradient(145deg, #fff7ed, #fef3c7);
  border-color: #fdba74;
}

.mb-matrix__col h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.mb-matrix__col--good h3 { color: #0f766e; }
.mb-matrix__col--bad h3 { color: #c2410c; }

.mb-matrix__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mb-matrix__col li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}

.mb-matrix__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mb-matrix__col--good li::before { background: #14b8a6; }
.mb-matrix__col--bad li::before { background: #f97316; }

/* ——— Landscape scan cards ——— */
.mb-scan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mb-scan-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e7e0d6;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-scan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(26, 20, 16, 0.08);
}

.mb-scan-card i {
  font-size: 1.5rem;
  color: var(--mb-coffee);
  margin-bottom: 0.65rem;
  display: block;
}

.mb-scan-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.mb-scan-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* ——— Steel casing panel ——— */
.mb-steel-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  color: #e2e8f0;
}

.mb-steel-panel__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mb-steel-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-steel-panel h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.mb-steel-panel p {
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.mb-steel-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.mb-steel-spec {
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.mb-steel-spec strong {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

/* ——— Coffee vision band ——— */
.mb-coffee-band {
  background: linear-gradient(135deg, #3d5a3a 0%, #6b4423 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.mb-coffee-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.mb-coffee-band__inner {
  position: relative;
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.mb-coffee-band h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.mb-coffee-band p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 1rem;
}

.mb-coffee-points {
  display: grid;
  gap: 0.65rem;
}

.mb-coffee-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
  list-style: none;
}

.mb-coffee-points i {
  color: #fde68a;
  margin-top: 0.15rem;
}

.mb-coffee-band__img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  aspect-ratio: 5/4;
}

.mb-coffee-band__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Photo journal (alternating narrative) ——— */
.mb-journal {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.mb-journal__entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.mb-journal__entry--reverse {
  direction: rtl;
}

.mb-journal__entry--reverse > * {
  direction: ltr;
}

.mb-journal__photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/11;
  box-shadow: 0 16px 40px rgba(26, 20, 16, 0.1);
}

.mb-journal__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-journal__text .mb-journal__step {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mb-fresh);
  margin-bottom: 0.4rem;
}

.mb-journal__text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mb-journal__text p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #64748b;
}

.mb-journal__wide {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 21/9;
  box-shadow: 0 20px 48px rgba(26, 20, 16, 0.12);
}

.mb-journal__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-journal__wide figcaption {
  padding: 0.85rem 1rem;
  background: #fff;
  font-size: 0.85rem;
  color: #64748b;
  border: 1px solid #e7e0d6;
  border-top: none;
  border-radius: 0 0 18px 18px;
  margin-top: -4px;
}

/* ——— Pull quote ——— */
.mb-pullquote {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  background: #fff;
  border-top: 1px solid #e7e0d6;
  border-bottom: 1px solid #e7e0d6;
}

.mb-pullquote blockquote {
  max-width: 38rem;
  margin: 0 auto;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1a1410;
  font-style: italic;
}

.mb-pullquote footer {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #64748b;
}

/* ——— Reveal animation ——— */
.mb-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.mb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .mb-hero {
    grid-template-columns: 1fr;
  }

  .mb-hero__copy {
    max-width: none;
    margin: 0;
    order: 2;
    padding-top: 2rem;
  }

  .mb-hero__visual {
    order: 1;
    min-height: 280px;
    max-height: 360px;
  }

  .mb-hero__visual::after {
    background: linear-gradient(0deg, var(--mb-navy) 0%, transparent 40%);
  }

  .mb-matrix,
  .mb-scan-grid,
  .mb-steel-panel,
  .mb-coffee-band__inner,
  .mb-journal__entry,
  .mb-strata__bar {
    grid-template-columns: 1fr;
  }

  .mb-journal__entry--reverse {
    direction: ltr;
  }

  .mb-steel-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mb-hero__statcol {
    grid-template-columns: 1fr;
  }
}
