/* Nairobi County borehole cost — extends borehole-drilling-guide.css */

.guide-hero--nairobi {
  background:
    linear-gradient(165deg, rgba(11, 19, 36, 0.88) 0%, rgba(30, 64, 175, 0.84) 42%, rgba(8, 145, 178, 0.8) 100%),
    url('/assets/img/portfolio/donholm/IMG_2031.jpeg') center 40% / cover no-repeat;
}

/* Field photo gallery — Donholm / Nairobi proof */
.nbi-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}

@media (max-width: 768px) {
  .nbi-gallery { grid-template-columns: 1fr; }
}

.nbi-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nbi-figure:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.nbi-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.nbi-figure--hero img {
  aspect-ratio: 16 / 10;
}

.nbi-figure figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748b;
  border-top: 1px solid var(--guide-border);
}

.nbi-figure figcaption strong {
  display: block;
  color: var(--guide-heading);
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.nbi-gallery--spotlight {
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .nbi-gallery--spotlight { grid-template-columns: 1fr; }
}

/* Inline Nairobi calculator embed */
.nbi-calculator {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.nbi-calculator__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.nbi-calculator__head i {
  font-size: 1.5rem;
  color: #2563eb;
  margin-top: 0.15rem;
}

.nbi-calculator__head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--guide-heading);
}

.nbi-calculator__head p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.nbi-calculator iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

@media (max-width: 768px) {
  .nbi-calculator iframe { min-height: 720px; }
}

.guide-hero--nairobi h1 {
  max-width: 28ch;
}

.guide-hero--nairobi .guide-hero__stat--warn strong {
  color: #fde68a;
}

/* Geological strata strip */
.nbi-strata {
  display: grid;
  gap: 0.5rem;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.nbi-strata__layer {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
}

.nbi-strata__depth {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.nbi-strata__layer strong {
  display: block;
  color: var(--guide-heading);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.nbi-strata__layer p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.nbi-strata__layer--surface { background: linear-gradient(90deg, #fef3c7, #fffbeb); }
.nbi-strata__layer--shallow { background: linear-gradient(90deg, #ffedd5, #fff7ed); }
.nbi-strata__layer--mid { background: linear-gradient(90deg, #dbeafe, #eff6ff); }
.nbi-strata__layer--deep { background: linear-gradient(90deg, #cffafe, #ecfeff); }
.nbi-strata__layer--target { background: linear-gradient(90deg, #d1fae5, #ecfdf5); border-top: 2px solid #059669; }

/* Diameter comparison */
.nbi-diameter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 720px) {
  .nbi-diameter { grid-template-columns: 1fr; }
}

.nbi-diameter__card {
  border-radius: 18px;
  padding: 1.35rem;
  border: 1px solid var(--guide-border);
  background: #fff;
}

.nbi-diameter__card--standard {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.nbi-diameter__card--commercial {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  border-color: #93c5fd;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
  position: relative;
}

.nbi-diameter__card--commercial::before {
  content: 'Kisima recommends';
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.nbi-diameter__rings {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.25rem;
}

.nbi-diameter__ring {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nbi-diameter__ring--outer {
  width: 120px;
  height: 120px;
  background: #e2e8f0;
  border: 3px dashed #94a3b8;
}

.nbi-diameter__ring--mid {
  width: 88px;
  height: 88px;
  background: #cbd5e1;
  border: 3px solid #64748b;
}

.nbi-diameter__ring--inner {
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  border: 2px solid #0369a1;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.nbi-diameter__card--commercial .nbi-diameter__ring--outer {
  width: 140px;
  height: 140px;
  background: #dbeafe;
  border-color: #3b82f6;
}

.nbi-diameter__card--commercial .nbi-diameter__ring--mid {
  width: 108px;
  height: 108px;
  background: #64748b;
  border-color: #334155;
}

.nbi-diameter__card--commercial .nbi-diameter__ring--inner {
  width: 68px;
  height: 68px;
}

.nbi-diameter__card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--guide-heading);
  margin: 0 0 0.5rem;
}

.nbi-diameter__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.nbi-diameter__spec span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.nbi-diameter__card--commercial .nbi-diameter__spec span {
  background: #dbeafe;
  color: #1e40af;
}

.nbi-diameter__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: #64748b;
}

.nbi-diameter__card li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.nbi-diameter__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
}

.nbi-diameter__card--commercial li::before {
  background: #2563eb;
}

/* Cost scenario cards */
.nbi-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.nbi-scenario {
  border: 1px solid var(--guide-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.nbi-scenario--avoid {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff5f5 0%, #fff 40%);
}

.nbi-scenario--featured {
  border-color: #93c5fd;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.12);
}

.nbi-scenario__head {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--guide-border);
}

.nbi-scenario--avoid .nbi-scenario__head { border-color: #fecaca; }
.nbi-scenario--featured .nbi-scenario__head { border-color: #bfdbfe; background: #eff6ff; }

.nbi-scenario__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.nbi-scenario--avoid .nbi-scenario__tag { color: #b91c1c; }
.nbi-scenario--featured .nbi-scenario__tag { color: #1d4ed8; }

.nbi-scenario__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--guide-heading);
  line-height: 1.35;
}

.nbi-scenario__meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.nbi-scenario__body {
  padding: 1rem 1.2rem;
  flex: 1;
}

.nbi-scenario__total {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--guide-heading);
  margin-bottom: 0.75rem;
}

.nbi-scenario__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
}

.nbi-scenario__lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #64748b;
}

.nbi-scenario__lines li:last-child { border-bottom: none; }
.nbi-scenario__lines strong { color: var(--guide-heading); white-space: nowrap; }

.nbi-scenario__foot {
  padding: 0.85rem 1.2rem 1.1rem;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid var(--guide-border);
}

.nbi-scenario--avoid .nbi-scenario__foot {
  background: #fef2f2;
  color: #991b1b;
}

/* Neighbourhood grid */
.nbi-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.nbi-area {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--guide-border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.nbi-area h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--guide-heading);
}

.nbi-area__depth {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.nbi-area p {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
}

/* Project spotlight */
.nbi-project-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
}

@media (max-width: 768px) {
  .nbi-project-spotlight { grid-template-columns: 1fr; }
}

.nbi-project-spotlight img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.nbi-project-spotlight__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.nbi-project-spotlight__stats div {
  text-align: center;
  padding: 0.55rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.nbi-project-spotlight__stats strong {
  display: block;
  font-size: 1rem;
  color: var(--guide-heading);
}

.nbi-project-spotlight__stats span {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nbi-project-spotlight a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.nbi-project-spotlight a:hover { text-decoration: underline; }

/* Eastleigh warning */
.nbi-eastleigh {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid #fdba74;
  border-left: 4px solid #ea580c;
}

.nbi-eastleigh > i {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: #c2410c;
  margin-top: 0.1rem;
}

.nbi-eastleigh p {
  margin: 0;
  font-size: 0.95rem;
  color: #7c2d12;
  line-height: 1.6;
}

/* Summary snapshot table highlight */
.nbi-summary-row--best td {
  background: #eff6ff !important;
  font-weight: 700;
}
