/* ==========================================================================
   Empower Communities Outreach — shared site-wide styles
   Consolidated from repeated inline <style> blocks across the old pages.
   Page-specific styles remain inline on their own page for safety.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* ---- NGO design system: typography + shared components ---- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Section eyebrow label (small caps tag above a section heading) */
.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c8871a;
  background: #fdf3e0;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

/* Soft card used across program pages */
.ngo-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(15, 61, 34, 0.08), 0 8px 24px -8px rgba(15, 61, 34, 0.12);
  border: 1px solid rgba(15, 61, 34, 0.06);
}

/* Primary CTA button (gold) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  background: #e6a325;
  color: #0f3d22;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px -4px rgba(230, 163, 37, 0.55);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn-gold:hover {
  background: #c8871a;
  transform: translateY(-1px);
}

/* Secondary CTA button (outline, on dark backgrounds) */
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.7);
  color: #ffffff;
  padding: 0.8rem 1.7rem;
  border-radius: 9999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

/* Program page hero banner */
.program-hero {
  background: linear-gradient(135deg, #134e2b 0%, #166534 55%, #1f7a3d 100%);
}

/* Scroll progress bar (optional, used on the homepage) */
#scrollProgress {
  transition: width 0.25s ease-in-out;
}

/* Background gradient float animation (homepage hero) */
@keyframes background-float {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.animate-background-float {
  background-size: 400% 400%;
  animation: background-float 20s ease-in-out infinite;
}

/* Floating decoration animations (homepage) */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes floatMedium {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-40px); }
}
@keyframes floatFast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-60px); }
}
.animate-float-slow { animation: floatSlow 10s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium 6s ease-in-out infinite; }
.animate-float-fast { animation: floatFast 4s ease-in-out infinite; }

/* Typewriter heading effect (Empower Community Centre page) */
.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  width: 0;
  animation: typing 4s steps(40, end) forwards, blinkCaret 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkCaret {
  50% { border-color: transparent; }
}

/* Slow zoom hero background */
.animate-zoomSlow {
  animation: zoomIn 20s ease-in-out infinite alternate;
}
@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Fade-in-up reveal for images/sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMoveUp 1.5s ease-out forwards;
}
@keyframes fadeInMoveUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide-in animation (Contact heading, chat bubble) */
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Gallery image fade-in (gallery-full page) */
.gallery-image {
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.6s ease;
}
.gallery-image.fade-in {
  opacity: 1;
}
.gallery-image:hover {
  transform: scale(1.05);
}

/* WhatsApp floating button + chat bubble (site-wide, in footer include) */
#whatsapp-button-container {
  position: relative;
}
#chatBubble {
  animation: slideIn 0.6s ease-out;
}
.whatsapp-button:hover {
  transform: scale(1.1);
}
