/* Medical Lab Portal — public landing (medical-lab.php) */

.mlp-page {
  --mlp-ink: #0f1f1a;
  --mlp-muted: #5b6b64;
  --mlp-deep: #033528;
  --mlp-emerald: #0B6B4B;
  --mlp-lime: #16A34A;
  --mlp-gold: #D4AF37;
  --mlp-surface: #f3f6f4;
  --mlp-line: rgba(6, 78, 59, 0.14);
  --mlp-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mlp-serif: "Source Serif 4", Georgia, serif;
}

.mlp-page .eh-main--app {
  padding-top: 0;
  background: #fff;
}

/* Beat public-app link resets so CTAs stay buttons */
.mlp-page .eh-main--app a.mlp-btn,
.mlp-page .eh-main--app a.mlp-btn:hover {
  text-decoration: none !important;
}
.mlp-page .eh-main--app a.mlp-btn--primary,
.mlp-page .eh-main--app a.mlp-btn--primary:hover {
  color: #1a1404 !important;
}
.mlp-page .eh-main--app a.mlp-btn--ghost,
.mlp-page .eh-main--app a.mlp-btn--ghost:hover,
.mlp-page .eh-main--app a.mlp-btn--solid,
.mlp-page .eh-main--app a.mlp-btn--solid:hover {
  color: #fff !important;
}

/* —— Hero: one full-bleed composition —— */
.mlp-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(3, 53, 40, 0.92) 0%, rgba(11, 107, 75, 0.78) 48%, rgba(6, 78, 59, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(212, 175, 55, 0.22), transparent 55%),
    linear-gradient(120deg, #033528 0%, #0B6B4B 55%, #064E3B 100%);
}

.mlp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("../images/nigeria-map.svg");
  background-repeat: no-repeat;
  background-position: right -8% center;
  background-size: min(58vw, 620px);
  opacity: 0.12;
  pointer-events: none;
  animation: mlp-map-drift 18s ease-in-out infinite alternate;
}

.mlp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 22px,
      rgba(255, 255, 255, 0.02) 22px,
      rgba(255, 255, 255, 0.02) 23px
    );
  pointer-events: none;
}

.mlp-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4.5rem, 12vh, 7rem) 1.75rem clamp(3rem, 8vh, 4.5rem);
}

.mlp-brand {
  margin: 0 0 1.1rem;
  font-family: var(--mlp-serif);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  animation: mlp-rise 0.7s ease both;
}

.mlp-brand span {
  display: block;
  font-family: var(--mlp-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 230, 176, 0.95);
  margin-bottom: 0.55rem;
}

.mlp-headline {
  margin: 0 0 0.85rem;
  font-family: var(--mlp-font);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  max-width: 22ch;
  animation: mlp-rise 0.75s ease 0.08s both;
}

.mlp-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  animation: mlp-rise 0.75s ease 0.16s both;
}

.mlp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: mlp-rise 0.75s ease 0.24s both;
}

.mlp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  font-family: var(--mlp-font);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mlp-btn:hover {
  transform: translateY(-1px);
}

.mlp-btn--primary {
  background: var(--mlp-gold);
  color: #1a1404;
  border: 2px solid transparent;
}

.mlp-btn--primary:hover {
  background: #e0c04a;
  color: #1a1404;
}

.mlp-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.mlp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.mlp-btn--solid {
  background: var(--mlp-emerald);
  color: #fff;
  border: 2px solid transparent;
}

.mlp-btn--solid:hover {
  background: var(--mlp-deep);
  color: #fff;
}

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

.mlp-section--surface {
  background:
    linear-gradient(180deg, #fff 0%, var(--mlp-surface) 100%);
}

.mlp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.mlp-section-head {
  max-width: 36rem;
  margin: 0 0 2.25rem;
}

.mlp-section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--mlp-serif);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--mlp-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mlp-section-head p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--mlp-muted);
}

/* Capabilities: editorial columns, not cards */
.mlp-desk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--mlp-line);
}

.mlp-desk-item {
  padding: 1.5rem 1.35rem 1.5rem 0;
  border-bottom: 1px solid var(--mlp-line);
}

.mlp-desk-item:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid var(--mlp-line);
}

.mlp-desk-item:nth-child(even) {
  padding-left: 2rem;
}

.mlp-desk-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--mlp-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mlp-emerald);
}

.mlp-desk-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mlp-muted);
}

/* Access path: horizontal timeline */
.mlp-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  counter-reset: mlp-step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mlp-path li {
  position: relative;
  padding-top: 2.5rem;
  counter-increment: mlp-step;
  animation: mlp-rise 0.6s ease both;
}

.mlp-path li:nth-child(1) { animation-delay: 0.05s; }
.mlp-path li:nth-child(2) { animation-delay: 0.12s; }
.mlp-path li:nth-child(3) { animation-delay: 0.19s; }
.mlp-path li:nth-child(4) { animation-delay: 0.26s; }

.mlp-path li::before {
  content: counter(mlp-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mlp-emerald);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--mlp-font);
}

.mlp-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 2.1rem;
  right: -1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--mlp-emerald), transparent);
  opacity: 0.35;
}

.mlp-path strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  color: var(--mlp-ink);
  line-height: 1.3;
}

.mlp-path p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mlp-muted);
}

/* Closing band */
.mlp-close {
  background: linear-gradient(135deg, var(--mlp-deep) 0%, var(--mlp-emerald) 100%);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
  text-align: center;
}

.mlp-close h2 {
  margin: 0 0 0.65rem;
  font-family: var(--mlp-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}

.mlp-close p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.mlp-close .mlp-cta {
  justify-content: center;
}

.mlp-close .mlp-btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
}

@keyframes mlp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mlp-map-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.03); }
}

@media (max-width: 860px) {
  .mlp-desk-grid {
    grid-template-columns: 1fr;
  }
  .mlp-desk-item,
  .mlp-desk-item:nth-child(odd),
  .mlp-desk-item:nth-child(even) {
    padding: 1.25rem 0;
    border-right: none;
  }
  .mlp-path {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }
  .mlp-path li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .mlp-hero {
    min-height: auto;
    align-items: center;
  }
  .mlp-path {
    grid-template-columns: 1fr;
  }
  .mlp-cta {
    flex-direction: column;
  }
  .mlp-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlp-brand,
  .mlp-headline,
  .mlp-lead,
  .mlp-cta,
  .mlp-path li,
  .mlp-hero::before {
    animation: none !important;
  }
}
