.page-hope {
  background: #f5f2e8;
  color: #2f3721;
  --hope-olive: #4f6f52;
  --hope-olive-dark: #364b31;
  --hope-gold: #d6b25e;
  --hope-gold-soft: rgba(214, 178, 94, 0.72);
  --hope-cream: rgba(247, 241, 224, 0.92);
}

.site-header--hope .site-header__overlay {
  background: linear-gradient(
    135deg,
    rgba(79, 111, 82, 0.82) 0%,
    rgba(61, 78, 47, 0.58) 48%,
    rgba(214, 178, 94, 0.42) 100%
  );
}

.hero--hope {
  text-align: left;
}

.hero--hope .hero__content {
  align-items: flex-start;
  text-align: left;
}

.hero--hope .hero__summary {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
}

.hero--hope .hero__eyebrow {
  color: var(--hope-gold, #fadcb6);
}

.page-hope .button--primary {
  background: var(--hope-gold, #fadcb6);
  color: #2f331d;
  box-shadow: 0 12px 28px rgba(79, 111, 82, 0.18);
}

.page-hope .button--primary:hover,
.page-hope .button--primary:focus {
  background: #e0bf6f;
  color: #2f331d;
  box-shadow: 0 16px 36px rgba(79, 111, 82, 0.22);
}

.hope-section {
  padding: clamp(80px, 12vw, 120px) 0;
}

.hope-section--vision {
  background: linear-gradient(135deg, rgba(79, 111, 82, 0.08) 0%, rgba(214, 178, 94, 0.12) 100%);
}

.hope-section--cta {
  background: linear-gradient(130deg, rgba(79, 111, 82, 0.96) 0%, rgba(214, 178, 94, 0.92) 100%);
  color: #ffffff;
  padding: clamp(96px, 14vw, 140px) 0;
}

.hope-section--impact {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.hope-impact__background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(47, 55, 33, 0.88), rgba(79, 111, 82, 0.9)),
    url("../assets/hope/fondo.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  pointer-events: none;
}

.hope-section__inner--impact {
  position: relative;
  z-index: 1;
}

.hope-section__inner {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 6vw, 56px);
}

.hope-section__inner--vision {
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

.hope-section__content,
.hope-section__intro,
.hope-cta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.hope-section__intro {
  max-width: 560px;
}

.hope-section__title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--hope-olive-dark, #364b31);
}

.hope-section--cta .hope-section__title {
  color: #ffffff;
}

.hope-section__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(54, 75, 49, 0.78);
}

.hope-section--cta .hope-section__lead {
  color: rgba(255, 255, 255, 0.85);
}

.hope-section--impact .hope-section__title {
  color: #ffffff;
}

.hope-section--impact .hope-section__lead {
  color: rgba(255, 255, 255, 0.88);
}

.hope-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(79, 111, 82, 0.75);
}

.hope-section--cta .hope-eyebrow {
  color: rgba(255, 231, 176, 0.88);
}

.hope-section--impact .hope-eyebrow {
  color: rgba(255, 231, 176, 0.88);
}

.hope-feature {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hope-feature__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hope-olive-dark, #364b31);
}

.hope-feature__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hope-feature__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(54, 75, 49, 0.8);
}

.hope-feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hope-olive, #4f6f52) 0%, var(--hope-gold, #d6b25e) 100%);
}

.hope-cards {
  display: grid;
  gap: clamp(18px, 3vw, 24px);
}

.hope-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 22px 48px rgba(79, 111, 82, 0.16);
  border: 1px solid rgba(79, 111, 82, 0.18);
}

.hope-card__title {
  margin: 0;
  font-size: 1.26rem;
  color: var(--hope-olive-dark, #364b31);
}

.hope-card__description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(54, 75, 49, 0.75);
}

.hope-cta {
  align-items: flex-start;
  gap: 22px;
  max-width: 640px;
}

.hope-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.hope-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: rgba(250, 220, 182, 0.95);
  transition: color 0.2s ease, transform 0.2s ease;
}

.hope-cta__link:hover,
.hope-cta__link:focus {
  transform: translateX(4px);
  color: #ffffff;
}

.hope-cta__link span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hope-impact-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.hope-impact-card {
  position: relative;
  background: rgba(12, 18, 9, 0.62);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 22px 48px rgba(7, 10, 6, 0.5);
  border: 1px solid rgba(214, 178, 94, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hope-impact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(214, 178, 94, 0.32), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.hope-impact-card:hover,
.hope-impact-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.65);
  border-color: rgba(255, 231, 176, 0.9);
  outline: none;
}

.hope-impact-card:hover::after,
.hope-impact-card:focus-visible::after {
  opacity: 1;
}

.hope-impact-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.hope-impact-card__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 231, 176, 0.78);
}

.hope-impact-card__title {
  margin: 0;
  font-size: 1.3rem;
  color: #ffffff;
}

.hope-impact-card__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(244, 247, 241, 0.92);
}

.hope-impact-card__cta {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 231, 176, 0.9);
}

.hope-impact-card__cta span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.hope-impact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hope-impact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 6, 0.8);
}

.hope-impact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 960px);
  max-height: min(90vh, 720px);
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(214, 178, 94, 0.18), rgba(25, 33, 22, 0.96));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hope-impact-modal__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hope-impact-modal__title {
  margin: 0;
  font-size: 1.6rem;
  color: #ffffff;
}

.hope-impact-modal__body {
  flex: 1;
  overflow: auto;
  padding-top: 8px;
}

.hope-impact-modal__gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hope-impact-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hope-impact-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #11160d;
  border: 1px solid rgba(214, 178, 94, 0.45);
}

.hope-impact-slider__track {
  display: flex;
  transition: transform 0.45s ease;
}

.hope-impact-slider__slide {
  min-width: 100%;
  position: relative;
}

.hope-impact-slider__image-wrap {
  position: relative;
  width: 100%;
  height: clamp(220px, 40vh, 420px);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.hope-impact-slider__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hope-impact-slider__image-wrap.is-expanded {
  transform: scale(1.06);
  cursor: zoom-out;
}

.hope-impact-slider__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  align-self: center;
  background: rgba(8, 10, 6, 0.7);
  border-radius: 999px;
}

.hope-impact-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 231, 176, 0.35);
  padding: 0;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

.hope-impact-slider__dot.is-active {
  width: 26px;
  height: 9px;
  background: rgba(255, 231, 176, 0.95);
  opacity: 1;
  transform: translateY(-1px);
}

.hope-impact-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.hope-impact-modal__close:hover,
.hope-impact-modal__close:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
  outline: none;
}

.hope-impact-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
}

.hope-impact-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.hope-impact-lightbox__image-wrap {
  position: relative;
  z-index: 1;
  max-width: min(100vw - 40px, 1000px);
  max-height: min(100vh - 80px, 720px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.hope-impact-lightbox__image-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hope-impact-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hope-impact-lightbox__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hope-impact-lightbox__control--prev {
  left: 14px;
}

.hope-impact-lightbox__control--next {
  right: 14px;
}

.hope-impact-lightbox__control:hover,
.hope-impact-lightbox__control:focus-visible {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) translateY(-1px);
  outline: none;
}

@media (min-width: 900px) {
  .hope-section--mission .hope-section__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .hope-section--rhythms .hope-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hope-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hope-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero--hope .hero__content {
    align-items: center;
    text-align: center;
  }

  .hope-section__inner {
    gap: 32px;
  }

  .hope-feature {
    padding: clamp(20px, 6vw, 28px);
  }

  .hope-cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hope-cta {
    align-items: center;
    text-align: center;
  }

  .hope-cta__actions {
    justify-content: center;
  }

  .hope-impact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hope-impact-modal__dialog {
    width: min(100% - 32px, 720px);
  }
}

/* Connect section overrides for Hope page */

.page-hope .section__inner--connect {
  min-height: 60vh;
  padding: 80px 20px;
  /* Fallback solid color for browsers that don't support gradients or if gradient fails */
  background-color: rgba(79, 111, 82, 0.96);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hope .connect-summary .section__eyebrow {
  color: rgba(255, 231, 176, 0.9);
}

.page-hope .section__inner--connect .section__title {
  color: #ffffff;
}

.page-hope .section__inner--connect .section__lead {
  color: rgba(255, 255, 255, 0.9);
}

.page-hope .section--connect .button--primary {
  background: #ffffff;
  color: var(--hope-olive-dark, #364b31);
  box-shadow: 0 12px 28px rgba(12, 18, 9, 0.45);
}

.page-hope .section--connect .button--primary:hover,
.page-hope .section--connect .button--primary:focus {
  background: #fff9e8;
  color: var(--hope-olive-dark, #364b31);
  box-shadow: 0 16px 36px rgba(7, 10, 6, 0.6);
}
