/* NPO Widgets — Base Primitives */

.npo-wrap { max-width: var(--npo-max-width); margin: 0 auto; padding: 0 var(--npo-gutter); }
.npo-section { padding: 56px 0; position: relative; }
.npo-center { text-align: center; }

/* Typography guard */
.npo-section h1, .npo-section h2, .npo-section h3,
.npo-section h4, .npo-section h5, .npo-section h6,
.npo-section p, .npo-section a, .npo-section button,
.npo-section li, .npo-section dl, .npo-section dt, .npo-section dd {
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
.npo-section h1, .npo-section h2, .npo-section h3,
.npo-section h4, .npo-section h5, .npo-section h6 {
    margin-top: 0;
    letter-spacing: inherit;
    text-transform: none;
    text-shadow: none;
}
.npo-hero .npo-hero-heading { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important; }

/* Backgrounds */
.npo-bg-light       { background: var(--npo-color-surface); }
.npo-bg-alt         { background: var(--npo-color-surface-alt); }
.npo-bg-primary     { background: linear-gradient(135deg, var(--npo-color-primary-deep), var(--npo-color-deep)); color: #fff; }
.npo-bg-dark        { background: linear-gradient(135deg, var(--npo-color-deep), var(--npo-color-deep-alt)); color: #fff; }
.npo-bg-transparent { background: transparent; }

/* Typography */
.npo-eyebrow {
  display: inline-block;
  font-family: var(--npo-font-body);
  font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--npo-color-accent);
  margin: 0 0 12px;
}
.npo-bg-primary .npo-eyebrow,
.npo-bg-dark .npo-eyebrow { color: var(--npo-color-gold-soft); }

.npo-heading {
  font-family: var(--npo-font-heading);
  font-weight: 700; line-height: 1.15;
  color: var(--npo-color-ink);
  margin: 0 0 0.5em;
}
.npo-bg-primary .npo-heading,
.npo-bg-dark .npo-heading { color: #fff; }

.npo-lede {
  font-family: var(--npo-font-body);
  font-size: 1.05rem;
  color: var(--npo-color-muted);
  line-height: 1.65;
  max-width: 68ch;
}
.npo-bg-primary .npo-lede,
.npo-bg-dark .npo-lede { color: rgba(255, 255, 255, 0.85); }

/* Buttons */
.npo-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4em;
  font-family: var(--npo-font-body);
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: var(--npo-radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--npo-dur) var(--npo-ease);
  text-decoration: none;
  white-space: nowrap;
}
.npo-btn-primary { background: var(--npo-color-accent); color: #fff; border-color: var(--npo-color-accent); }
.npo-btn-primary:hover { background: var(--npo-color-deep-alt); border-color: var(--npo-color-deep-alt); color: #fff; }
.npo-btn-teal { background: var(--npo-color-primary); color: #fff; border-color: var(--npo-color-primary); }
.npo-btn-teal:hover { background: var(--npo-color-primary-deep); border-color: var(--npo-color-primary-deep); color: #fff; }
.npo-btn-outline { background: transparent; color: var(--npo-color-primary-deep); border-color: var(--npo-color-primary-deep); }
.npo-btn-outline:hover { background: var(--npo-color-primary-deep); color: #fff; }
.npo-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.npo-btn-outline-light:hover { background: #fff; color: var(--npo-color-deep-alt); }
.npo-btn-lg { padding: 14px 28px; font-size: 0.96rem; }

/* Image placeholder */
.npo-img-ph {
  position: relative;
  border-radius: var(--npo-radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14,124,123,0.14) 0%, rgba(107,31,42,0.10) 100%);
  border: 1.5px dashed rgba(14,124,123,0.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px;
  text-align: center;
  color: var(--npo-color-primary-deep);
  min-height: 220px;
}
.npo-img-ph::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10;
  background-image:
    linear-gradient(45deg, var(--npo-color-primary) 1px, transparent 1.2px),
    linear-gradient(-45deg, var(--npo-color-primary) 1px, transparent 1.2px);
  background-size: 40px 40px;
  pointer-events: none;
}
.npo-img-ph__icon {
  position: relative;
  width: 40px; height: 40px;
  border: 2px solid currentColor; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 12px; opacity: 0.7;
}
.npo-img-ph__icon::before {
  content: "";
  width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.npo-img-ph__label {
  position: relative;
  font-family: var(--npo-font-body);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--npo-color-primary-deep);
  margin: 0 0 6px;
}
.npo-img-ph__desc {
  position: relative;
  font-family: var(--npo-font-body);
  font-size: 0.78rem;
  color: var(--npo-color-muted);
  max-width: 44ch; line-height: 1.5; margin: 0;
}
.npo-img-ph--tall { min-height: 360px; }
.npo-img-ph--dark {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.4);
  color: var(--npo-color-gold-soft);
}
.npo-img-ph--dark .npo-img-ph__label { color: var(--npo-color-gold-soft); }
.npo-img-ph--dark .npo-img-ph__desc  { color: rgba(255,255,255,0.75); }

.npo-img {
  display: block; width: 100%; height: auto;
  border-radius: var(--npo-radius);
  box-shadow: var(--npo-shadow-lg);
  object-fit: cover;
}

/* ============================================================
   FOOTER WIDGET — HARD OVERRIDE
   Wins against Elementor globals and any theme H4 styles.
   ============================================================ */
.npo-footer,
.npo-footer h1,
.npo-footer h2,
.npo-footer h3,
.npo-footer h4,
.npo-footer h5,
.npo-footer h6 {
    text-shadow: none !important;
}

.npo-footer .npo-footer__heading,
footer.npo-footer h4.npo-footer__heading,
.npo-footer__heading {
    color: #ffffff !important;
    font-family: var(--npo-font-body) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    line-height: 1.4 !important;
    margin: 0 0 18px !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff;
}

.npo-footer .npo-footer__brand-text strong,
.npo-footer__brand-text strong {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.npo-footer .npo-footer__brand-text > span,
.npo-footer__brand-text > span {
    color: var(--npo-color-gold-soft) !important;
    -webkit-text-fill-color: var(--npo-color-gold-soft);
}

.npo-footer__desc,
.npo-footer__list a,
.npo-footer__contact-row,
.npo-footer__contact-row a,
.npo-footer__bottom {
    color: rgba(255, 255, 255, 0.75) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.75);
}

.npo-footer__list a:hover,
.npo-footer__contact-row a:hover {
    color: var(--npo-color-gold-soft) !important;
    -webkit-text-fill-color: var(--npo-color-gold-soft);
}

.npo-footer__badge {
    color: var(--npo-color-gold-soft) !important;
    -webkit-text-fill-color: var(--npo-color-gold-soft);
}

/* ============================================================
   HEADER MOBILE OVERRIDES
   ============================================================ */
@media (max-width: 639px) {
  .npo-header .npo-header__topbar-inner {
    padding: 0 16px !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .npo-header .npo-header__topbar-left {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    overflow: hidden;
    flex: 1;
  }
  .npo-header .npo-header__topbar-right { display: none !important; }
  .npo-header .npo-header__topbar-item {
    font-size: 0.7rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .npo-header .npo-header__topbar-item svg {
    width: 11px !important;
    height: 11px !important;
  }
  .npo-header .npo-header__inner {
    padding: 8px 16px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .npo-header .npo-header__brand {
    gap: 8px !important;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .npo-header .npo-header__logo {
    width: 36px !important;
    height: 36px !important;
    padding: 3px !important;
  }
  .npo-header .npo-header__text { min-width: 0; overflow: hidden; }
  .npo-header .npo-header__text strong {
    font-size: 0.82rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .npo-header .npo-header__text > span {
    font-size: 0.52rem !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .npo-header .npo-header__cta {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .npo-header .npo-header__donate {
    padding: 8px 12px !important;
    font-size: 0.76rem !important;
  }
  .npo-header .npo-header__burger {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
  }
  .npo-header .npo-header__burger span { width: 16px; }
}

@media (max-width: 420px) {
  .npo-header .npo-header__text > span { display: none !important; }
  .npo-header .npo-header__text strong { font-size: 0.78rem !important; }
  .npo-header .npo-header__donate {
    padding: 7px 10px !important;
    font-size: 0.72rem !important;
  }
  .npo-header .npo-header__burger {
    width: 34px !important;
    height: 34px !important;
  }
}

/* Responsive */
@media (min-width: 640px) { .npo-section { padding: 72px 0; } }
@media (min-width: 960px) { .npo-section { padding: 90px 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
:focus-visible { outline: 2px solid var(--npo-color-primary); outline-offset: 3px; border-radius: 6px; }