/* =============================================================================
   Premium warm upgrade — visual depth + feature chrome
   Complements polish.css. Respects prefers-reduced-motion.
   ============================================================================= */

/* --- Glass nav refinement ------------------------------------------------- */
#navbar {
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(232, 117, 26, 0.08);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.12);
}

#navbar .nav-link {
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
}

#navbar .nav-link.is-active {
  color: #1a1a1a;
  background: rgba(232, 117, 26, 0.08);
}

#navbar .nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2D8B4E, #E8751A);
  transform: translateX(-50%);
}

/* --- Hero premium --------------------------------------------------------- */
.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.55);
}

/* --- Impact stats band ---------------------------------------------------- */
.stats-band {
  position: relative;
  background:
    radial-gradient(ellipse 80% 120% at 10% 50%, rgba(232, 117, 26, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 100% at 90% 40%, rgba(45, 139, 78, 0.06), transparent 50%),
    linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-top: 1px solid rgba(232, 117, 26, 0.08);
  border-bottom: 1px solid rgba(45, 139, 78, 0.08);
}

.stat-card {
  position: relative;
  padding: 2.5rem 1.25rem;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.7);
  }
}

.stat-card .stat-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* --- Trust bento ---------------------------------------------------------- */
.trust-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .trust-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

.trust-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(232, 117, 26, 0.06), transparent 55%);
  pointer-events: none;
}

.trust-tile.green::before {
  background: linear-gradient(145deg, rgba(45, 139, 78, 0.07), transparent 55%);
}

@media (hover: hover) and (pointer: fine) {
  .trust-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 117, 26, 0.2);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.18);
  }
  .trust-tile.green:hover {
    border-color: rgba(45, 139, 78, 0.25);
  }
}

.trust-tile .tile-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* --- Journey timeline ----------------------------------------------------- */
.journey-rail {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .journey-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.journey-step {
  position: relative;
  text-align: center;
  padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
  .journey-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.1rem;
    left: calc(50% + 1.75rem);
    width: calc(100% - 3.5rem);
    height: 2px;
    background: linear-gradient(90deg, #2D8B4E, #E8751A);
    opacity: 0.35;
  }
}

.journey-num {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #2D8B4E, #E8751A);
  box-shadow: 0 8px 20px -8px rgba(232, 117, 26, 0.45);
}

/* --- Premium cards -------------------------------------------------------- */
.premium-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 32px -18px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
}

/* --- Donate trust strip --------------------------------------------------- */
.donate-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.donate-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.donate-trust-item i,
.donate-trust-item svg {
  width: 0.9rem;
  height: 0.9rem;
  color: #2D8B4E;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-list {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:has(.faq-answer:not(.hidden)) {
  border-color: rgba(232, 117, 26, 0.25);
  box-shadow: 0 12px 28px -16px rgba(232, 117, 26, 0.18);
}

.faq-item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  background: transparent;
  transition: background 0.2s ease;
}

.faq-item button:hover {
  background: rgba(232, 117, 26, 0.04);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #6b7280;
}

/* --- Sticky mobile action bar --------------------------------------------- */
#mobileActionBar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 55;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 12px 40px -12px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateY(120%);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
  pointer-events: none;
}

#mobileActionBar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#mobileActionBar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem;
  border-radius: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

#mobileActionBar a:active {
  transform: scale(0.97);
}

#mobileActionBar .mab-call {
  background: #f3f4f6;
  color: #1a1a1a;
}

#mobileActionBar .mab-wa {
  background: rgba(45, 139, 78, 0.12);
  color: #1F6B38;
}

#mobileActionBar .mab-donate {
  background: #E8751A;
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(232, 117, 26, 0.55);
}

@media (max-width: 1023px) {
  #mobileActionBar {
    display: flex;
  }

  /* Room so content isn't hidden behind the bar */
  body {
    padding-bottom: 5.5rem;
  }

  #backToTop {
    bottom: 5.25rem !important;
  }
}

/* Hide sticky bar when modals open */
body.modal-open #mobileActionBar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(120%) !important;
}

/* --- Emergency band polish ------------------------------------------------ */
.emergency-band {
  position: relative;
  overflow: hidden;
}

.emergency-band .emergency-inner {
  position: relative;
  border-radius: 1.5rem;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.9), rgba(255, 247, 237, 0.95));
  padding: 2.5rem 1.5rem;
  box-shadow: 0 20px 50px -28px rgba(185, 28, 28, 0.25);
}

@media (min-width: 768px) {
  .emergency-band .emergency-inner {
    padding: 3rem 2.5rem;
  }
}

/* --- Section soft depth --------------------------------------------------- */
.section-warm {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(232, 117, 26, 0.05), transparent 60%),
    #ffffff;
}

.section-soft {
  background:
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(45, 139, 78, 0.05), transparent 55%),
    #f9fafb;
}

/* --- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .trust-tile,
  .premium-card,
  #mobileActionBar,
  .hero-cta-secondary {
    transition: none !important;
  }

  .stat-card:hover,
  .trust-tile:hover {
    transform: none !important;
  }
}
