/* =====================================================================
   OHIS UI enhancements
   Layered on top of style.css / tpas.css. Keeps the existing palette:
   green #008000, gradient #7ed56f -> #28b485, accent #55c57a, dark #333.
   (html font-size is 62.5%, so 1rem = 10px)
   ===================================================================== */

:root {
  --green: #008000;
  --green-1: #7ed56f;
  --green-2: #28b485;
  --green-3: #55c57a;
  --green-ink: #0f5132;
  --green-tint: #eaf7ee;
  --ink: #1f2a24;
  --muted: #5f6b64;
  --line: #e3e9e5;
  --surface: #ffffff;
  --page: #f3f3f3;
  --grad: linear-gradient(135deg, var(--green-1), var(--green-2));
  --shadow-sm: 0 2px 6px rgba(16, 64, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 64, 40, 0.1);
  --shadow-lg: 0 20px 50px rgba(16, 64, 40, 0.16);
  --radius: 1.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--green-1);
  color: #fff;
}

/* ---------------------------------------------------------------------
   Scroll reveal (classes are added by enhance.js, so without JS nothing
   is hidden)
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 4rem, 0);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal--left {
  transform: translate3d(-5rem, 0, 0);
}
.reveal--right {
  transform: translate3d(5rem, 0, 0);
}
.reveal--zoom {
  transform: scale(0.92) translate3d(0, 2rem, 0);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------------------
   Scroll progress + back to top
   --------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--grad);
  z-index: 1000;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 2.6rem;
  bottom: 11rem; /* sits above the chatbot launcher */
  width: 4.6rem;
  height: 4.6rem;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.5rem) scale(0.9);
  pointer-events: none;
  transition: all 0.4s var(--ease);
  z-index: 900;
}
.to-top.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.3rem);
}

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */
.nav {
  transition:
    height 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
/* sticky (not fixed) so the page doesn't jump when the bar pins */
.nav,
.nav.sticky {
  position: sticky;
  top: 0;
}
.nav.nav--scrolled {
  height: 7.2rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 6px 24px rgba(16, 64, 40, 0.1);
}
.nav__logo {
  transition: transform 0.5s var(--ease);
}
.logo:hover .nav__logo {
  transform: rotate(-8deg) scale(1.06);
}

@media (min-width: 62rem) {
  .nav-links li a {
    position: relative;
    font-weight: 400;
    transition: color 0.25s;
  }
  .nav-links > ul > li > a::after {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    bottom: 0.4rem;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }
  .nav-links > ul > li > a:hover::after,
  .nav-links > ul > li > a.is-current::after {
    transform: scaleX(1);
  }
  .nav-links > ul > li > a.is-current {
    font-weight: 600;
  }
}

.dropdown-content {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  animation: drop-in 0.25s var(--ease);
}
.dropdown-content a {
  font-size: 1.5rem;
  color: var(--green);
  transition:
    background-color 0.2s,
    padding-left 0.2s;
}
.dropdown-content a:hover {
  background-color: var(--green-tint);
  padding-left: 2.2rem;
}
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-0.6rem);
  }
}

/* ---------------------------------------------------------------------
   Shared bits
   --------------------------------------------------------------------- */
.section-intro {
  text-align: center;
  max-width: 80rem;
  margin: 0 auto 5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-2);
  background: var(--green-tint);
  padding: 0.6rem 1.6rem;
  border-radius: 99px;
  margin-bottom: 1.6rem;
}
.section-intro__title {
  font-size: clamp(2.6rem, 3.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.change__facility--CTA,
.tpa__reg-CTA--two {
  border-radius: 99px !important;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s;
}
.change__facility--CTA:hover,
.tpa__reg-CTA--two:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 10px 24px rgba(40, 180, 133, 0.35);
}

/* Diaspora hero button was rendering as a tiny default button */
.tpa__reg-CTA--two {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 1.4rem 3.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: 0;
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   Home: hero
   --------------------------------------------------------------------- */
.fnc-slide__heading-line span {
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------------------
   Home: counters + live stats
   --------------------------------------------------------------------- */
.counters {
  position: relative;
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  padding: 10rem 2rem 11rem;
  background:
    radial-gradient(60rem 30rem at 8% 0%, rgba(126, 213, 111, 0.14), transparent 70%),
    radial-gradient(60rem 30rem at 100% 100%, rgba(40, 180, 133, 0.14), transparent 70%),
    #fff;
}
.counters::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--grad);
}

.counters .container--one {
  gap: 3rem;
  overflow: visible;
  align-items: stretch;
}
.counter__box {
  position: relative;
  margin: 0;
  padding: 4rem 3rem 3.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  justify-content: flex-start;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s;
}
.counter__box::after {
  content: "";
  position: absolute;
  left: 3rem;
  right: 3rem;
  top: 0;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--grad);
  transform: scaleX(0.3);
  transition: transform 0.5s var(--ease);
}
.counter__box:hover {
  transform: translateY(-0.8rem);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.counter__box:hover::after {
  transform: scaleX(1);
}

/* icon in a soft gradient disc */
.counter__box > svg.counter__icon,
.counter__box > i.fas {
  display: grid;
  place-items: center;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1px rgba(40, 180, 133, 0.15);
  transition: transform 0.5s var(--ease);
}
.counter__box > svg.counter__icon {
  padding: 1.8rem;
  fill: var(--green-2);
}
.counter__box > i.fas:before {
  font-size: 3rem !important;
  color: var(--green-2) !important;
}
.counter__box:hover > svg.counter__icon,
.counter__box:hover > i.fas {
  transform: scale(1.08) rotate(-6deg);
}

.counters .counter {
  font-size: clamp(3.6rem, 4vw, 4.6rem);
  font-weight: 700;
  margin: 2rem 0 0.4rem;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.counter__label {
  font-weight: 500;
  color: var(--ink);
}
.line {
  border: 0;
  height: 3px;
  width: 4rem;
  border-radius: 3px;
  background: var(--grad);
  margin: 1.6rem auto 2rem;
}
.counter__desc {
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1.75;
}
.live-number {
  font-weight: 600;
  color: var(--green-2);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 61.9rem) {
  .counter__box + .counter__box {
    margin-top: 2.4rem;
  }
}

.stats-panel {
  position: relative;
  max-width: 110rem;
  margin: 5rem auto 0;
  padding: 4rem;
  border-radius: calc(var(--radius) + 0.6rem);
  color: #fff;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    var(--grad);
  box-shadow: 0 24px 60px rgba(40, 180, 133, 0.35);
  overflow: hidden;
}
.stats-panel::before {
  /* soft decorative rings */
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  right: -14rem;
  bottom: -22rem;
  border-radius: 50%;
  border: 5rem solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.stats-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.stats-panel__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
}
.stats-panel__sub {
  font-size: 1.5rem;
  opacity: 0.85;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  font-size: 1.3rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.live-badge__dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 1.8s infinite;
}
.stats-panel--offline .live-badge {
  display: none;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 0.9rem rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.stat-card {
  padding: 2.4rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  transition:
    transform 0.4s var(--ease),
    background-color 0.4s;
}
.stat-card:hover {
  transform: translateY(-0.5rem);
  background: rgba(255, 255, 255, 0.22);
}
.stat-card__icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: #fff;
  color: var(--green-2);
  font-size: 1.8rem;
  margin-bottom: 1.6rem;
}
.stat-card__value {
  font-size: clamp(2.6rem, 3vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  font-size: 1.4rem;
  opacity: 0.9;
  line-height: 1.4;
  margin-top: 0.4rem;
}

.split {
  position: relative;
  margin-top: 3rem;
}
.split__bar {
  display: flex;
  height: 1.4rem;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  gap: 2px;
}
.split__seg {
  width: 0;
  transition: width 1.6s var(--ease);
}
.split__seg--a {
  background: #fff;
}
.split__seg--b {
  background: rgba(255, 255, 255, 0.55);
}
.split__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 1.4rem;
  font-size: 1.4rem;
}
.split__legend b {
  font-weight: 700;
  margin-left: 0.4rem;
}
.split__key {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  margin-right: 0.8rem;
  vertical-align: middle;
}
.split__key--a {
  background: #fff;
}
.split__key--b {
  background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 75rem) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .stats-panel {
    padding: 2.6rem 2rem;
  }
  .stat-card {
    padding: 1.8rem;
  }
}

/* ---------------------------------------------------------------------
   Home: welcome, leaders, gallery
   --------------------------------------------------------------------- */
.section__2 {
  background-image:
    linear-gradient(135deg, rgba(10, 40, 25, 0.88), rgba(15, 60, 40, 0.8)),
    url(../assets/images/oshia-new-logo.png);
  /* overlay must cover the whole section; only the logo is sized */
  background-size: cover, 46rem;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll, fixed;
  padding: 10rem 2rem;
}
.welcome__note--heading {
  font-weight: 600;
}
.welcome__note--main {
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
}

.pioneer__card {
  transition: transform 0.5s var(--ease);
}
.pioneer__card:hover {
  transform: translateY(-1rem);
}
.pioneer__image {
  border-radius: 1.6rem;
  border: 5px solid rgba(255, 255, 255, 0.85);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.pioneer__card:hover .pioneer__image {
  transform: scale(1.04);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.card-image {
  border-radius: 1.6rem;
  overflow: hidden;
}
.card-image img {
  transition: transform 1.2s var(--ease);
}
.swiper-slide-active .card-image img:hover {
  transform: scale(1.04);
}

/* ---------------------------------------------------------------------
   About + Diaspora
   --------------------------------------------------------------------- */
.statement__card {
  border-radius: var(--radius);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.statement__card:hover {
  transform: translateY(-0.8rem);
  box-shadow: var(--shadow-lg);
}
.flip-card-front,
.flip-card-back {
  border-radius: var(--radius);
  overflow: hidden;
}
.point {
  transition:
    transform 0.3s var(--ease),
    color 0.3s;
}
.point:hover {
  transform: translateX(0.8rem);
  color: var(--green-ink);
}
.point .fa-check-circle {
  transition: transform 0.4s var(--ease);
}
.point:hover .fa-check-circle {
  transform: scale(1.25);
}

/* ---------------------------------------------------------------------
   FAQ
   --------------------------------------------------------------------- */
.faq-search,
.facility-search {
  position: relative;
  width: 100%;
}
.faq-search {
  max-width: 70rem;
  margin: 3rem auto 0;
}
.faq-search i,
.facility-search i {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green-2);
  font-size: 1.6rem;
  pointer-events: none;
}
.faq-search input,
.facility-search input {
  width: 100%;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 400;
  padding: 1.5rem 2rem 1.5rem 5rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.faq-search input:focus,
.facility-search input:focus {
  border-color: var(--green-3);
  box-shadow: 0 0 0 4px rgba(85, 197, 122, 0.18);
}
.faq-empty {
  text-align: center;
  font-size: 1.6rem;
  color: var(--muted);
  padding: 2rem;
}

.accordion .contentBx .label {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 2rem 6rem 2rem 2.4rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    color 0.25s;
}
.accordion .contentBx .label:hover {
  border-color: var(--green-3);
  box-shadow: var(--shadow-md);
}
.accordion .contentBx .label::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-2);
  font-size: 2rem;
  line-height: 1;
  transition:
    transform 0.4s var(--ease),
    background-color 0.3s,
    color 0.3s;
}
.accordion .contentBx.active .label::before {
  content: "+";
  transform: translateY(-50%) rotate(45deg);
  background: var(--grad);
  color: #fff;
}
.accordion .contentBx.active .label {
  color: var(--green-ink);
  border-color: var(--green-3);
}

/* smooth open/close using the grid-rows trick */
.accordion .contentBx .content,
.accordion .contentBx.active .content {
  display: grid;
  grid-template-rows: 0fr;
  height: auto !important;
  overflow: hidden;
  padding: 0 2.4rem;
  margin: 0;
  text-align: left;
  font-size: 1.55rem;
  line-height: 1.8;
  background: #fff;
  color: var(--muted);
  border-radius: 0 0 1.2rem 1.2rem;
  opacity: 0;
  transition:
    grid-template-rows 0.45s var(--ease),
    padding 0.45s var(--ease),
    opacity 0.35s;
}
.accordion .contentBx .content > * {
  min-height: 0;
  overflow: hidden;
}
.accordion .contentBx.active .content {
  grid-template-rows: 1fr;
  margin: -2.6rem 0 2rem;
  padding: 2.8rem 2.4rem 2rem;
  opacity: 1;
  border: 1px solid var(--green-3);
  border-top: 0;
}
.accordion .contentBx.is-filtered-out {
  display: none;
}

/* ---------------------------------------------------------------------
   Accredited facilities
   --------------------------------------------------------------------- */
.facility-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 3rem 0;
}
.facility-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.6rem;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.facility-stat:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow-md);
}
.facility-stat__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 1.2rem;
  background: var(--green-tint);
  color: var(--green-2);
  font-size: 2rem;
}
/* style.css sizes every .fa-hospital / .fa-users globally; undo it inside badges */
.facility-stat__icon i:before,
.stat-card__icon i:before {
  font-size: inherit !important;
  color: inherit !important;
}
.facility-stat__value {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.facility-stat__label {
  font-size: 1.35rem;
  color: var(--muted);
  line-height: 1.4;
}

.facility-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.facility-toolbar .facility-search {
  flex: 1 1 28rem;
}
.chip-group {
  display: inline-flex;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.chip {
  font: inherit;
  font-size: 1.4rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.9rem 1.8rem;
  border-radius: 99px;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s;
}
.chip:hover {
  color: var(--green-ink);
}
.chip.is-active {
  background: var(--grad);
  color: #fff;
}
.facility-select {
  font: inherit;
  font-size: 1.4rem;
  padding: 1.2rem 1.6rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  outline: none;
}
.facility-select:focus {
  border-color: var(--green-3);
}
.facility-count {
  font-size: 1.4rem;
  color: var(--muted);
  margin-left: auto;
}
.facility-count b {
  color: var(--green-ink);
}

.table__container {
  padding: 0 4rem 6rem;
  max-width: 140rem;
  margin: 0 auto;
}
.table__container .table-wrap {
  overflow: auto;
  max-height: 75vh;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.table__container table {
  font-family: "Poppins", sans-serif;
  border-collapse: separate;
  border-spacing: 0;
}
.table__container th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--green-2);
  background-image: var(--grad);
  color: #fff;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  border: 0;
  padding: 1.4rem 1.2rem;
  white-space: nowrap;
}
.table__container td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 1.2rem;
  font-size: 1.3rem;
  color: var(--ink);
  vertical-align: top;
}
.table__container tr:nth-child(even) {
  background-color: #fafcfb;
}
.table__container tbody tr {
  transition: background-color 0.2s;
}
.table__container tbody tr:hover td {
  background-color: var(--green-tint);
}
.table__container td:nth-child(2) {
  font-weight: 600;
}
.table__container td a {
  color: var(--green-2);
}
.table__container tr.is-filtered-out {
  display: none;
}
.badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 99px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge--public {
  background: #e6f1ff;
  color: #1d4f91;
}
.badge--private {
  background: var(--green-tint);
  color: var(--green-ink);
}
.table-empty td {
  text-align: center;
  padding: 4rem !important;
  color: var(--muted);
  font-size: 1.5rem;
}

@media (max-width: 75rem) {
  .facility-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 48rem) {
  .table__container {
    padding: 0 1.6rem 4rem;
  }
  .facility-count {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------------------------------------------------------------------
   Contact (contact.css is not loaded globally because its generic class
   names clash with other pages, so everything here is scoped)
   --------------------------------------------------------------------- */
.contact__container {
  padding: 8rem 2rem 10rem;
  background:
    radial-gradient(50rem 30rem at 0% 0%, rgba(126, 213, 111, 0.18), transparent 70%),
    radial-gradient(50rem 30rem at 100% 100%, rgba(40, 180, 133, 0.16), transparent 70%),
    var(--page);
}
.contact__container .content {
  max-width: 112rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: start;
}
.contact__container .left-side,
.contact__container .oshia__addresses {
  display: grid;
  gap: 1.6rem;
}
.contact__container .details {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.4rem 2.4rem 9rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--muted);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.contact__container .details:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--shadow-md);
}
.contact__container .details > i {
  position: absolute;
  left: 2.4rem;
  top: 2.4rem;
  display: grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.2rem;
  background: var(--grad);
  color: #fff;
  font-size: 1.8rem;
}
.contact__container .topic {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact__container .right-side {
  background: #fff;
  border-radius: calc(var(--radius) + 0.6rem);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--green-3);
}
.contact__container .topic-text {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.contact__container .topic-text + form::before {
  content: "Send us a message and our team will get back to you.";
  display: block;
  font-size: 1.5rem;
  color: var(--muted);
  margin-bottom: 2.4rem;
}
.contact__container .input-box {
  margin-bottom: 1.6rem;
}
.contact__container input[type="text"],
.contact__container input[type="email"],
.contact__container textarea {
  width: 100%;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.4rem 1.8rem;
  outline: none;
  resize: vertical;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background-color 0.25s;
}
.contact__container textarea {
  min-height: 16rem;
}
.contact__container input:focus,
.contact__container textarea:focus {
  background: #fff;
  border-color: var(--green-3);
  box-shadow: 0 0 0 4px rgba(85, 197, 122, 0.18);
}
.contact__container .button {
  font: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: 0;
  border-radius: 99px;
  padding: 1.4rem 4.4rem;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.contact__container .button:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 12px 26px rgba(40, 180, 133, 0.38);
}
@media (max-width: 75rem) {
  .contact__container .content {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 48rem) {
  .contact__container .right-side {
    padding: 2.8rem 2rem;
  }
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer {
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad);
}
.footer__link {
  transition: color 0.25s;
}
.footer__link:hover {
  color: var(--green-1) !important;
}
.social-icons a {
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.social-icons a:hover {
  transform: translateY(-0.5rem) scale(1.08);
  box-shadow: 0 10px 22px rgba(126, 213, 111, 0.4);
}

/* ---------------------------------------------------------------------
   Respect reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal--left,
  .reveal--right,
  .reveal--zoom {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------
   Late fixes
   --------------------------------------------------------------------- */
/* fixed 43rem height clipped longer cards (Diaspora "Additional Notes") */
.statement__card {
  height: auto;
  min-height: 43rem;
}
/* hero CTA sits on a green photo: use white so it stands out */
.about__section--1 .tpa__reg-CTA--two {
  background: #fff;
  color: var(--green-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
/* side-sliding reveals must never cause sideways scrolling on phones
   (clip, unlike hidden, keeps the sticky nav working) */
html,
body {
  overflow-x: clip;
}
