/**
 * Suguta Marmar — Laikipia County
 * Engineering blueprint / solar-irrigation theme
 * Hammering challenge · 16 m³/hr solar pump @ 180m
 */
@import url('kisima-project-ngatataek.css');

.kisima-suguta-page {
  --sg-deep: #052e2b;
  --sg-teal: #0d9488;
  --sg-mint: #5eead4;
  --sg-solar: #f59e0b;
  --sg-sun: #fde047;
  --sg-paper: #f1f5f4;
  --sg-line: rgba(13, 148, 136, 0.18);
  --ng-water: #0d9488;
  --ng-sky: #14b8a6;
  --ng-navy: #052e2b;
  background: var(--sg-paper);
  color: #0f172a;
}

/* Blueprint grid background on whole page */
.kisima-suguta-page main,
.kisima-suguta-page .sg-section {
  background-image:
    linear-gradient(var(--sg-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sg-line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

/* ——— Video hero ——— */
.sg-hero {
  position: relative;
  min-height: clamp(560px, 95vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.sg-hero__video,
.sg-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sg-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 46, 43, 0.55) 0%, rgba(5, 46, 43, 0.35) 40%, rgba(5, 46, 43, 0.92) 100%),
    radial-gradient(60% 80% at 15% 30%, rgba(245, 158, 11, 0.18) 0%, transparent 60%);
}

.sg-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1240px, 100% - 2rem);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.sg-hero__crumb {
  font-size: 0.78rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.sg-hero__crumb a { color: #5eead4; text-decoration: none; }

.sg-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.sg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.sg-pill--solar {
  background: linear-gradient(135deg, #f59e0b, #fde047);
  color: #422006;
  border: none;
}

.sg-pill--yield {
  background: linear-gradient(135deg, #14b8a6, #5eead4);
  color: #022c22;
  border: none;
}

.sg-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.sg-hero__lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  max-width: 44rem;
  opacity: 0.94;
  margin-bottom: 1.75rem;
}

.sg-hero__strap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.75rem;
  max-width: 56rem;
}

.sg-hero__stat {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.sg-hero__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fde047;
  line-height: 1.1;
}

.sg-hero__stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.82;
}

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

.sg-mute-btn {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.sg-mute-btn:hover { background: rgba(0, 0, 0, 0.75); }

/* ——— Discovery band: lots of water ——— */
.sg-discovery {
  background: linear-gradient(95deg, #052e2b 0%, #0f766e 60%, #14b8a6 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 2.5rem) 0;
  position: relative;
  overflow: hidden;
}

.sg-discovery::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(94, 234, 212, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
}

.sg-discovery__inner {
  width: min(1240px, 100% - 2rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sg-discovery__icon {
  font-size: 2.2rem;
  color: #fde047;
}

.sg-discovery__text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.sg-discovery__text span {
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.5;
}

.sg-discovery__metric {
  text-align: right;
  border-left: 1px dashed rgba(255, 255, 255, 0.3);
  padding-left: 1.25rem;
}

.sg-discovery__metric strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fde047;
}

.sg-discovery__metric span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ——— Generic wrap ——— */
.sg-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.sg-section--alt {
  background-color: #fff;
}

.sg-wrap {
  width: min(1240px, 100% - 2rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.sg-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-teal);
  margin-bottom: 0.6rem;
}

.sg-h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #0f172a;
}

.sg-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  max-width: 46rem;
}

/* ——— The Wall: 185m hammering challenge ——— */
.sg-wall {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.06);
}

.sg-wall__column {
  position: relative;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  color: #f1f5f9;
  padding: 2rem 1.5rem;
  min-height: 480px;
  overflow: hidden;
}

.sg-wall__column::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.sg-wall__strata {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr 1fr 0.7fr 0.4fr;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.sg-wall__layer {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  position: relative;
}

.sg-wall__layer strong {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sg-wall__layer span {
  font-size: 0.72rem;
  opacity: 0.85;
}

.sg-wall__layer--top { background: linear-gradient(180deg, #a8a29e, #78716c); color: #1c1917; }
.sg-wall__layer--mid { background: linear-gradient(180deg, #525252, #404040); }
.sg-wall__layer--hammer {
  background: repeating-linear-gradient(-45deg, #b45309 0 8px, #92400e 8px 16px);
  color: #fef3c7;
  border-top: 2px solid #fcd34d;
  border-bottom: 2px solid #fcd34d;
}
.sg-wall__layer--aquifer {
  background: linear-gradient(180deg, #0d9488, #14b8a6);
  color: #022c22;
}

.sg-wall__layer--hammer strong::before {
  content: '⚠ ';
}

.sg-wall__pump-marker {
  position: absolute;
  right: -10px;
  bottom: 12%;
  z-index: 2;
  background: #fde047;
  color: #422006;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  border-radius: 6px 0 0 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sg-wall__body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sg-wall__body h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.sg-wall__body p {
  font-size: 0.96rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0.85rem;
}

.sg-wall__points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.sg-wall__points li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

.sg-wall__points li::before {
  content: '◆';
  color: var(--sg-solar);
  flex-shrink: 0;
}

/* ——— Spec sheet card ——— */
.sg-spec {
  margin-top: 2.5rem;
  border-radius: 22px;
  background: #052e2b;
  color: #f1f5f9;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.sg-spec::before {
  content: 'SPEC · INSTALL · 2026';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-family: ui-monospace, monospace;
  opacity: 0.5;
}

.sg-spec__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(94, 234, 212, 0.3);
}

.sg-spec__title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.sg-spec__sub {
  font-size: 0.85rem;
  opacity: 0.75;
  font-family: ui-monospace, monospace;
}

.sg-spec__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.sg-spec__cell {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(94, 234, 212, 0.15);
  border-radius: 12px;
}

.sg-spec__cell--accent {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.08));
  border-color: rgba(253, 224, 71, 0.4);
}

.sg-spec__cell strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 0.15rem;
}

.sg-spec__cell--accent strong { color: #fbbf24; }

.sg-spec__cell span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* ——— Solar flow diagram ——— */
.sg-flow {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  align-items: stretch;
}

.sg-flow__step {
  position: relative;
  padding: 1.2rem 0.9rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sg-flow__step i {
  font-size: 1.75rem;
  color: var(--sg-solar);
}

.sg-flow__step:nth-child(odd) i { color: var(--sg-teal); }

.sg-flow__step strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.sg-flow__step span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.sg-flow__step + .sg-flow__step::before {
  content: '→';
  position: absolute;
  left: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--sg-solar);
  background: var(--sg-paper);
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ——— Irrigation band ——— */
.sg-irrigation {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sg-irrigation__card {
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(155deg, #ecfdf5, #fff);
  border: 1px solid #99f6e4;
}

.sg-irrigation__card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #0f766e;
}

.sg-irrigation__card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* ——— Media wall: photos + clip ——— */
.sg-media {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 0.5rem;
}

.sg-media__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.sg-media__item img,
.sg-media__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-media__tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(5, 46, 43, 0.85);
  color: #fde047;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.sg-media__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 0.85rem 0.55rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.sg-media__item--video { grid-column: span 3; grid-row: span 2; }
.sg-media__item--big { grid-column: span 3; grid-row: span 2; }
.sg-media__item--w { grid-column: span 2; }
.sg-media__item--t { grid-column: span 2; }

.sg-media__item video {
  background: #000;
}

/* ——— Outcome ladder ——— */
.sg-ladder {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  counter-reset: rung;
}

.sg-ladder__rung {
  padding: 1.4rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  position: relative;
  counter-increment: rung;
}

.sg-ladder__rung::before {
  content: counter(rung, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--sg-teal);
  font-weight: 800;
}

.sg-ladder__rung h4 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.sg-ladder__rung p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* ——— Quote (light theme override) ——— */
.kisima-suguta-page .ng-quote__scrim {
  background: linear-gradient(135deg, rgba(5, 46, 43, 0.92), rgba(13, 148, 136, 0.85));
}

.kisima-suguta-page .ng-quote__text,
.kisima-suguta-page .ng-quote__author {
  color: #fff;
}

.kisima-suguta-page .ng-quote__mark {
  color: #fde047;
}

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

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

/* ——— Responsive ——— */
@media (max-width: 1000px) {
  .sg-wall { grid-template-columns: 1fr; }
  .sg-wall__column { min-height: 380px; }
  .sg-spec__grid { grid-template-columns: repeat(2, 1fr); }
  .sg-flow { grid-template-columns: repeat(2, 1fr); }
  .sg-flow__step + .sg-flow__step::before { display: none; }
  .sg-irrigation { grid-template-columns: 1fr; }
  .sg-media { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .sg-media__item--video,
  .sg-media__item--big { grid-column: span 2; }
  .sg-media__item--w,
  .sg-media__item--t { grid-column: span 1; }
  .sg-ladder { grid-template-columns: repeat(2, 1fr); }
  .sg-discovery__inner { grid-template-columns: 1fr; text-align: center; }
  .sg-discovery__metric { border-left: none; padding-left: 0; border-top: 1px dashed rgba(255,255,255,0.3); padding-top: 0.85rem; text-align: center; }
}

@media (max-width: 560px) {
  .sg-hero__strap { grid-template-columns: repeat(2, 1fr); }
  .sg-spec__grid { grid-template-columns: 1fr; }
  .sg-ladder { grid-template-columns: 1fr; }
}
