/* ===== ENHANCEMENT 1: Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger cards */
.card-grid .card:nth-child(1) { transition-delay: 0s; }
.card-grid .card:nth-child(2) { transition-delay: 0.15s; }
.card-grid .card:nth-child(3) { transition-delay: 0.3s; }

/* ===== ENHANCEMENT 3: Better Card Hovers ===== */
.card {
  border-top: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-top-color: var(--highlight);
}
.card-icon {
  transition: transform 0.3s ease;
}
.card:hover .card-icon {
  transform: scale(1.15);
}

/* ===== ENHANCEMENT 4: Sticky Donate CTA ===== */
.sticky-donate {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--highlight);
  color: var(--primary);
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  opacity: 1;
}
.sticky-donate:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
  color: var(--primary);
}
/* Hide on donate page */
body.page-donate .sticky-donate { display: none; }

/* ===== ENHANCEMENT 5: Counter Animation ===== */
.stats-bar {
  background: var(--primary);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.stats-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.stat {
  color: #fff;
}
.stat-number {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--highlight);
  display: block;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

/* ===== ENHANCEMENT 6: Typography / Pull Quotes ===== */
.pull-quote {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-style: italic;
  color: var(--primary);
  border-left: 4px solid var(--highlight);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  line-height: 1.5;
  background: rgba(219, 196, 46, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== ENHANCEMENT 7: Testimonial Carousel ===== */
.testimonial-section {
  background: #f5f7fa;
  padding: clamp(3rem, 5vw, 5rem) 1.5rem;
  text-align: center;
  overflow: hidden;
}
.testimonial-carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 160px;
}
.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.testimonial-slide blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.testimonial-slide blockquote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--highlight);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.1em;
}
.testimonial-slide cite {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  padding: 0;
}
.testimonial-dot.active {
  background: var(--highlight);
  transform: scale(1.3);
}

/* ===== Header accent border ===== */
.site-header {
  border-bottom: 3px solid var(--highlight);
}

/* ===== Color scheme overrides for enhancements ===== */
.stats-bar {
  background: var(--primary-dark);
}

.testimonial-section {
  background: var(--bg-alt);
}

/* ===== SPLIT HERO ===== */
.hero-split {
  position: relative;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-split-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(4rem, 6vw, 6rem);
}
.hero-split .hero-text {
  text-align: left;
}
.hero-split .hero-text h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.hero-split .hero-text .subtitle {
  font-size: clamp(1.1rem, 1rem + 0.75vw, 1.6rem);
}
.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo-split {
  width: clamp(200px, 25vw, 320px);
  height: clamp(200px, 25vw, 320px);
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--highlight);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 767px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split .hero-text {
    text-align: center;
    order: 2;
  }
  .hero-photo-wrap {
    order: 1;
  }
}

/* Hero background pattern */
.hero-split::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(219,196,46,0.05) 0%, transparent 40%);
  pointer-events: none;
}

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 60px;
}

/* Page header wave (subpages) */
.page-header {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(219,196,46,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.page-header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.page-header-wave svg {
  width: 100%;
  height: 50px;
}

/* ===== ENHANCEMENT 8: Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--highlight);
  z-index: 200;
  width: 0%;
  transition: width 0.05s linear;
}

/* ===== ENHANCEMENT 9: Parallax Photos ===== */
.parallax-img {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.parallax-img img {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ===== ENHANCEMENT 10: Micro-Interactions ===== */

/* Nav link animated underline */
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 1.5rem);
  left: 0.75rem;
}

/* Button ripple */
.btn {
  position: relative;
  overflow: hidden;
}
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Form focus animation */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 61, 106, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
