/* MF Sections v1: Reach map + Initiatives + Impact polish */

:root {
  --mf-map-fill: rgba(15, 23, 42, 0.06);
  --mf-map-fill-available: rgba(99, 102, 241, 0.18);
  --mf-map-fill-hover: rgba(79, 70, 229, 0.42);
  --mf-map-fill-selected: rgba(79, 70, 229, 0.55);
  --mf-map-stroke: rgba(15, 23, 42, 0.14);
  --mf-map-stroke-width: 1.1;
  --mf-map-label: rgba(15, 23, 42, 0.72);
  --mf-map-label-stroke: rgba(255, 255, 255, 0.88);
  --mf-map-label-stroke-width: 3;
}

/* Reach */
.reach-map-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.reach-map {
  border-radius: 18px;
}

/* Override legacy reach-map neon styling from home-updates.css */
.home-reach-section .reach-map svg.reach-svg {
  filter: none;
}

.home-reach-section .reach-map .reach-state {
  fill: var(--mf-map-fill);
  stroke: var(--mf-map-stroke);
  stroke-width: calc(var(--mf-map-stroke-width) * 1px);
  transition: fill 160ms ease;
}

.home-reach-section .reach-map .reach-state.is-available {
  fill: var(--mf-map-fill-available);
}

.home-reach-section .reach-map .reach-state.is-hover,
.home-reach-section .reach-map .reach-state.is-selected {
  filter: drop-shadow(0 14px 28px rgba(79, 70, 229, 0.18));
  fill: var(--mf-map-fill-selected);
}

.home-reach-section .reach-map .reach-state-label {
  fill: var(--mf-map-label);
  stroke: var(--mf-map-label-stroke);
}

.home-reach-section .reach-tooltip {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.18);
}

.home-reach-section .reach-tooltip .rt-kicker {
  color: rgba(15, 23, 42, 0.55);
}

.home-reach-section .reach-tooltip .rt-list {
  color: rgba(15, 23, 42, 0.76);
}

.reach-stat {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

/* Reach right side redesign (stats + highlights) */
.home-reach-section .reach-stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-reach-section .reach-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  text-align: left;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.home-reach-section .reach-stat-circle {
  width: 74px;
  height: 74px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 212, 0, 0.26), transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(124, 58, 237, 0.16), transparent 60%),
    #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
  flex: 0 0 auto;
}

.home-reach-section .reach-stat-circle span {
  font-size: 1.35rem;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.92);
}

.home-reach-section .reach-stat-label {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.86);
  letter-spacing: -0.01em;
}

.home-reach-section .reach-points {
  margin-top: 14px;
  padding: 18px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.home-reach-section .reach-points__title {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.home-reach-section .reach-points__list {
  color: rgba(15, 23, 42, 0.76);
}

.home-reach-section .reach-points__list li {
  margin: 12px 0;
}

@media (max-width: 575.98px) {
  .home-reach-section .reach-stats-grid {
    grid-template-columns: 1fr;
  }
}

.home-reach-section .reach-points {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-reach-section .reach-points__title {
  color: rgba(15, 23, 42, 0.85);
}

/* Initiatives */
.mf-initiative {
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mf-initiative:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  border-color: rgba(67, 56, 202, 0.25);
}

.mf-initiative:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.35);
  outline-offset: 2px;
}

.mf-initiative__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(16, 185, 129, 0.12));
  color: #1e293b;
}

.mf-initiative__icon i,
.mf-initiative__icon img {
  transition: transform 380ms cubic-bezier(.2, .8, .2, 1);
}

.mf-initiative:hover .mf-initiative__icon i,
.mf-initiative:hover .mf-initiative__icon img {
  transform: rotate(14deg) scale(1.06);
}

.mf-initiative__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.mf-initiative__title {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
}

.mf-initiative__desc {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: .94rem;
  line-height: 1.45;
  flex: 1;
}

.mf-initiative__btn {
  align-self: flex-start;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(67, 56, 202, 0.22);
  background: rgba(99, 102, 241, 0.10);
  color: #1e293b;
}

.mf-initiative__btn:hover {
  background: rgba(99, 102, 241, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .mf-initiative,
  .mf-initiative__icon i,
  .mf-initiative__icon img {
    transition: none;
  }
}

/* Impact */
.mf-impact-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.impact-stats-section {
  position: relative;
  overflow: hidden;
}

.mf-impact-stats-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 20% 10%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(900px 520px at 85% 35%, rgba(16, 185, 129, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(10, 15, 30, 0.86), rgba(10, 15, 30, 0.55));
  opacity: 1;
  pointer-events: none;
}

.impact-stats-section .impact-stat-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 18px 12px;
}

@media (prefers-reduced-motion: reduce) {
  .home-reach-section .reach-map .reach-state.is-hover,
  .home-reach-section .reach-map .reach-state.is-selected {
    filter: none;
  }
}
