/**
 * Kantafu — Machakos County full-project case study
 * Survey · drilling (clay) · DC equipping — livestock theme
 */
@import url('kisima-project-ngatataek.css');

.kisima-kantafu-page {
  --kt-clay: #b45309;
  --kt-earth: #78350f;
  --kt-sage: #4d7c0f;
  --kt-sky: #0284c7;
  --kt-cream: #fffbeb;
  --kt-navy: #1c1917;
  --ng-sky: #0284c7;
  --ng-water: #0369a1;
  --ng-navy: #1c1917;
  --ng-earth: #b45309;
  --ng-sand: #fffbeb;
  --ng-glow: rgba(180, 83, 9, 0.3);
  background: var(--kt-cream);
}

/* ——— Phase hero ——— */
.kt-hero {
  background: var(--kt-navy);
  color: #fff;
  padding: clamp(5rem, 11vh, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.kt-hero__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

.kt-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.kt-hero__crumb a {
  color: #fcd34d;
  text-decoration: none;
}

.kt-hero__pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.kt-hero__phase {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.kt-hero__phase i {
  font-size: 0.95rem;
  color: #fcd34d;
}

.kt-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.kt-hero__lead {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  line-height: 1.65;
  max-width: 42rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.kt-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: end;
  margin-top: 2rem;
}

.kt-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.kt-hero__stat {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.kt-hero__stat strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fcd34d;
}

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

.kt-hero__img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/11;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.kt-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* ——— Clay challenge banner ——— */
.kt-clay-banner {
  background: linear-gradient(90deg, #78350f, #b45309);
  color: #fff;
  padding: 1.35rem 0;
}

.kt-clay-banner__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kt-clay-banner__stat {
  text-align: center;
}

.kt-clay-banner__stat strong {
  display: block;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
}

.kt-clay-banner__stat span {
  font-size: 0.82rem;
  opacity: 0.9;
}

.kt-clay-banner__text {
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 36rem;
}

/* ——— Phase sections ——— */
.kt-phase-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #fde68a;
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
}

.kt-phase-nav__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.kt-phase-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: #78716c;
  border-radius: 999px;
  border: 1px solid #e7e5e4;
  transition: background 0.2s, color 0.2s;
}

.kt-phase-nav a:hover,
.kt-phase-nav a.is-active {
  background: var(--kt-clay);
  color: #fff;
  border-color: var(--kt-clay);
}

.kt-phase {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  scroll-margin-top: 4rem;
}

.kt-phase--alt {
  background: #fff;
}

.kt-phase__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 2rem;
}

.kt-phase__num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--kt-clay), #d97706);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kt-phase__head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.kt-phase__head p {
  font-size: 1rem;
  line-height: 1.6;
  color: #57534e;
  margin: 0;
}

.kt-phase__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.kt-prose p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #57534e;
  margin-bottom: 1rem;
}

.kt-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kt-checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #44403c;
}

.kt-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--kt-sage);
}

.kt-phase__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.kt-phase__photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

.kt-phase__photos img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/10;
}

/* ——— Water match panel ——— */
.kt-water-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.kt-water-card {
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid #e7e5e4;
  background: #fff;
}

.kt-water-card--need {
  border-color: #86efac;
  background: linear-gradient(145deg, #f0fdf4, #fff);
}

.kt-water-card--have {
  border-color: #93c5fd;
  background: linear-gradient(145deg, #eff6ff, #fff);
}

.kt-water-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: #78716c;
}

.kt-water-card strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kt-water-card--need strong { color: #15803d; }
.kt-water-card--have strong { color: #0369a1; }

.kt-water-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #57534e;
  margin: 0;
}

.kt-water-note {
  grid-column: 1 / -1;
  padding: 1rem 1.25rem;
  background: #fef3c7;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #78350f;
  border: 1px solid #fde68a;
}

/* ——— DC pump panel ——— */
.kt-pump-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, #1c1917, #44403c);
  border-radius: 20px;
  color: #e7e5e4;
  margin-top: 2rem;
}

.kt-pump-panel__media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.kt-pump-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kt-pump-panel h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.kt-pump-panel p {
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
  opacity: 0.92;
}

.kt-pump-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kt-pump-tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(252, 211, 77, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.3);
}

/* ——— Livestock band ——— */
.kt-livestock-band {
  background: linear-gradient(135deg, #4d7c0f 0%, #365314 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 4rem) 0;
}

.kt-livestock-band__inner {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.kt-livestock-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.kt-livestock-band p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.92;
  margin-bottom: 0.85rem;
}

.kt-livestock-band__img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.kt-livestock-band__img img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

/* ——— Full gallery strip ——— */
.kt-gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}

.kt-gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

.kt-gallery-strip img:nth-child(1),
.kt-gallery-strip img:nth-child(2) {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .kt-hero__grid,
  .kt-phase__split,
  .kt-water-panel,
  .kt-pump-panel,
  .kt-livestock-band__inner {
    grid-template-columns: 1fr;
  }

  .kt-gallery-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .kt-gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .kt-hero__stats {
    grid-template-columns: 1fr;
  }
}

.kt-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Testimonial — dark scrim so white quote text reads clearly */
.kisima-kantafu-page .ng-quote__scrim {
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.94), rgba(120, 53, 15, 0.9));
}

.kisima-kantafu-page .ng-quote__bg {
  opacity: 0.35;
}

.kisima-kantafu-page .ng-quote__text {
  color: #fff;
}

.kisima-kantafu-page .ng-quote__author {
  color: #fef3c7;
}

.kisima-kantafu-page .ng-quote__mark {
  color: #fcd34d;
  opacity: 0.65;
}
