/*! Hope Foundation: header and footer rules shared by every Hope page (copied to css/hope-shell.css by
 * tools/home-2-static/hope/nav.js). Teal #007480, dark teal #0c3a3f, leaf #80bc40, lime #a4cc38 */

/* Top bar social icons (inline SVG, see SOCIAL in nav.js): the same size as the template's icon font */
.elementor-72 .elementor-element-23ecd1d .elementor-social-icon svg,
.elementor-424 .elementor-element-9aa7bb0 .elementor-social-icon svg { width: 1em; height: 1em; }

/* Mobile menu: Donate Now stands out */
.gva-mobile-menu > li.hope-menu-donate > a .menu-title {
  color: #007480;
  font-weight: 700;
}

/* Footer: three columns (logo, quick links, contact) share the width the four template columns had */
@media (min-width: 768px) {
  .elementor-424 .elementor-element.elementor-element-1806339 { --width: 40%; }
  .elementor-424 .elementor-element.elementor-element-392ece7 { --width: 30%; }
  .elementor-424 .elementor-element.elementor-element-7d6c1c2 { --width: 30%; }
}

/* Footer strip: the office number is a phone link; same look as the address and ambulance next to it */
.elementor-424 .elementor-element-bed8cf4 .box-style-two__desc a { color: inherit; font: inherit; }

/* ---------------------------------------------------------------- home page campaign popup (hope/popup.js) */
.hope-popup {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hope-popup[hidden] { display: none; }
.hope-popup.is-open { opacity: 1; }
.hope-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 36, 39, 0.82);
  cursor: pointer;
}
.hope-popup__box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s ease;
}
.hope-popup.is-open .hope-popup__box { transform: none; }
.hope-popup__poster { display: block; line-height: 0; }
.hope-popup__poster img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 560px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  background: #fff;
}
.hope-popup__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #0c3a3f;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
.hope-popup__close:hover, .hope-popup__close:focus-visible { background: #007480; outline: none; }
.hope-popup .btn-theme.hope-popup__donate { margin: 0; }
.hope-popup__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.hope-popup-open { overflow: hidden; }
@media (max-width: 600px) {
  .hope-popup__close { top: -10px; right: -6px; width: 40px; height: 40px; }
  .hope-popup__poster img { max-height: calc(100dvh - 130px); }
}
@media (prefers-reduced-motion: reduce) {
  .hope-popup, .hope-popup__box { transition: none; }
}
