/* ==========================================================================
   Resounding Hope — Components
   Nav, hero, stat counters, cards, CTA bands, quotes, footer, forms.
   ========================================================================== */

/* ---- Buttons ---- */
.btn{ font-weight: 600; border-radius: var(--radius-sm); padding: 0.65rem 1.5rem; }
.btn-lg{ padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-rh-primary{
  background-color: var(--rh-orange);
  border-color: var(--rh-orange);
  color: var(--rh-ink);
}
.btn-rh-primary:hover, .btn-rh-primary:focus{
  background-color: var(--rh-orange-dark);
  border-color: var(--rh-orange-dark);
  color: #fff;
}
.btn-rh-outline{
  background-color: transparent;
  border: 2px solid currentColor;
  color: inherit;
}
.btn-rh-outline:hover{
  background-color: rgba(255,255,255,0.12);
}
.btn-rh-blue{
  background-color: var(--rh-blue);
  border-color: var(--rh-blue);
  color: #fff;
}
.btn-rh-blue:hover, .btn-rh-blue:focus{
  background-color: var(--rh-blue-dark);
  border-color: var(--rh-blue-dark);
  color: #fff;
}

/* ---- Nav ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--rh-cream);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header.is-scrolled,
.site-header.is-solid{
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--rh-gray-300);
}
.site-header .navbar-brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.site-header .navbar-brand img{
  height: 40px;
  width: auto;
}
.site-header .navbar-brand .brand-sub{
  font-family: var(--rh-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--rh-gray-900);
  line-height: 1.1;
}
.site-nav .nav-link{
  font-weight: 600;
  color: var(--rh-gray-900);
  padding: 0.5rem 0.85rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active{
  color: var(--rh-blue-dark);
}
.site-nav .btn-donate-nav{
  background-color: var(--rh-orange);
  color: var(--rh-ink);
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-left: 0.25rem;
}
.site-nav .btn-donate-nav:hover{
  background-color: var(--rh-orange-dark);
  color: #fff;
}
.lang-switch{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rh-gray-600);
}
.lang-switch a{ color: var(--rh-gray-900); }
.lang-switch .is-current{ color: var(--rh-blue-dark); text-decoration: underline; }
.lang-switch .is-pending{ color: var(--rh-gray-300); pointer-events: none; }

/* ---- Hero ---- */
.hero{
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
}
.hero-sm{ min-height: 46svh; align-items: center; }
.hero .hero-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero .hero-bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero .hero-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20,16,12,0.82) 0%, rgba(20,16,12,0.45) 45%, rgba(20,16,12,0.1) 75%);
}
.hero-sm .hero-scrim{
  background: linear-gradient(100deg, rgba(20,16,12,0.82) 0%, rgba(20,16,12,0.55) 55%, rgba(20,16,12,0.25) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding-block: var(--space-7) var(--space-6);
}
.hero .eyebrow{
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--rh-orange);
}

/* ---- Trust / credibility strip ---- */
.credibility-bar{
  background-color: var(--rh-gray-900);
  color: var(--rh-gray-100);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.credibility-bar .divider{
  color: var(--rh-gray-600);
  padding-inline: 0.6rem;
}

/* ---- Stat counters ---- */
.stat-strip{
  background-color: var(--rh-ink);
  color: var(--rh-cream);
}
.stat-item{ text-align: center; padding: var(--space-4) var(--space-2); }
.stat-number{
  font-family: var(--rh-font-display);
  font-weight: 700;
  font-size: var(--rh-fs-stat);
  color: var(--rh-orange);
  line-height: 1;
  display: block;
}
.stat-label{
  font-size: 0.95rem;
  color: var(--rh-gray-300);
  margin-top: 0.5rem;
}

/* ---- Cards ---- */
.card-rh{
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rh-gray-300);
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-rh:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }

.program-card{ padding: var(--space-5); }
.program-card .icon-badge{
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--rh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.program-card .icon-badge svg{ width: 28px; height: 28px; }

.leadership-card{ text-align: center; padding: var(--space-5); }
.leadership-card img{
  width: 128px; height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 4px solid var(--rh-cream-deep);
}
.leadership-card .role{
  color: var(--rh-blue-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.donate-tier-card{
  padding: var(--space-6) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.donate-tier-card .amount{
  font-family: var(--rh-font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rh-blue-dark);
}
.donate-tier-card.is-selected{
  border-color: var(--rh-blue);
  box-shadow: 0 0 0 3px rgba(27,94,146,0.25);
}
.donate-tier-card.is-featured{
  border: 2px solid var(--rh-orange);
  position: relative;
}
.donate-tier-card .badge-featured{
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--rh-orange);
  color: var(--rh-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

/* ---- CTA band ---- */
.cta-band{
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-band .cta-bg{ position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img{ width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-scrim{
  position: absolute; inset: 0; z-index: 1;
  background: rgba(20,16,12,0.72);
}
.cta-band .cta-content{ position: relative; z-index: 2; text-align: center; }

/* ---- Quote / testimonial block ---- */
.quote-block{
  position: relative;
  padding: var(--space-6) var(--space-5);
  margin: 0;
}
.quote-block .quote-mark{
  font-family: var(--rh-font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--rh-orange);
  opacity: 0.6;
  display: block;
  margin-bottom: -1rem;
}
.quote-block blockquote{
  font-family: var(--rh-font-display);
  font-style: italic;
  font-size: var(--rh-fs-lead);
  color: var(--rh-gray-900);
}
.quote-block figcaption{
  margin-top: var(--space-4);
  font-size: 0.9rem;
  color: var(--rh-gray-600);
  font-weight: 600;
}

/* ---- Section headers ---- */
.section-eyebrow{
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--rh-crimson-dark);
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* ---- Photo/text split ---- */
.split-media img{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
figure.captioned figcaption{
  font-size: 0.85rem;
  color: var(--rh-gray-600);
  margin-top: 0.5rem;
}

/* ---- Footer ---- */
.site-footer{
  background-color: var(--rh-ink);
  color: var(--rh-gray-300);
}
.site-footer a{ color: var(--rh-gray-100); }
.site-footer a:hover{ color: var(--rh-orange); }
.site-footer h2, .site-footer h3{ color: #fff; }
.site-footer .footer-heading{
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rh-gray-100);
  margin-bottom: var(--space-3);
}
.site-footer .social-icons{ display: flex; gap: 0.75rem; }
.site-footer .social-icons a{
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}
.site-footer .social-icons a:hover{ background-color: var(--rh-orange); color: var(--rh-ink); }
.site-footer .social-icons a[aria-disabled="true"]{
  opacity: 0.35;
  pointer-events: none;
}
.footer-legal-strip{
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: var(--rh-gray-600);
}

/* ---- Forms ---- */
.form-rh label{ font-weight: 600; color: var(--rh-gray-900); }
.form-rh .form-control,
.form-rh .form-select{
  border-color: var(--rh-gray-300);
  padding: 0.65rem 0.9rem;
}
.form-rh .form-control:focus,
.form-rh .form-select:focus{
  border-color: var(--rh-blue);
  box-shadow: 0 0 0 0.2rem rgba(27,94,146,0.18);
}

/* ---- Donate: toggle + embed slot ---- */
.giving-toggle{
  display: inline-flex;
  background: var(--rh-gray-100);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.giving-toggle button{
  border: 0;
  background: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--rh-gray-600);
  transition: all 0.15s ease;
}
.giving-toggle button.is-active{
  background: var(--rh-blue);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.donate-embed-slot{
  border: 2px dashed var(--rh-gray-300);
  border-radius: var(--radius-lg);
  background: var(--rh-cream-deep);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--rh-gray-600);
}

/* ---- Gallery ---- */
.gallery-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.gallery-filters button{
  border: 2px solid var(--rh-gray-300);
  background: #fff;
  color: var(--rh-gray-900);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.gallery-filters button.is-active,
.gallery-filters button:hover{
  background: var(--rh-blue);
  border-color: var(--rh-blue);
  color: #fff;
}
.gallery-item{
  border: 0;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item .gallery-caption{
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(20,16,12,0.85) 0%, rgba(20,16,12,0) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption{
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.is-hidden{ display: none; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: rgba(15,12,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.is-open{ display: flex; }
.lightbox-figure{
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin: 0;
}
.lightbox-figure img{
  max-height: 75svh;
  width: auto;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-figure figcaption{
  color: var(--rh-gray-100);
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-nav{
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-nav:hover{ background: var(--rh-orange); color: var(--rh-ink); }
.lightbox-close{ top: 1.25rem; right: 1.25rem; }
.lightbox-nav.prev{ left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next{ right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---- Blog ---- */
.blog-card img{
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.blog-card .blog-card-body{ padding: var(--space-4) var(--space-4) var(--space-5); }
.blog-meta{
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rh-crimson-dark);
}
.blog-post-body{ max-width: 68ch; margin-inline: auto; }
.blog-post-body p{ color: var(--rh-gray-900); margin-bottom: 1.25rem; }
.blog-post-body h2{ font-size: 1.5rem; margin-top: 2rem; }

/* ---- FAQ Accordion ---- */
.accordion-item{
  border-color: var(--rh-gray-300);
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
}
.accordion-button{
  font-weight: 600;
  font-family: var(--rh-font-display);
  color: var(--rh-gray-900);
  background: #fff;
}
.accordion-button:not(.collapsed){
  color: var(--rh-blue-dark);
  background: var(--rh-cream-deep);
  box-shadow: none;
}
.accordion-button:focus{
  box-shadow: 0 0 0 0.2rem rgba(27,94,146,0.18);
}

/* ---- Misc ---- */
.badge-ecfa, .badge-501c3{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rh-gray-100);
  background: rgba(255,255,255,0.08);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.map-embed iframe{
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-lg);
}
.back-to-top{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--rh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; }
