/* Faith Aid — Supplemental Styles */
/* Handles: nav transitions, dropdowns, mobile menu, hero slider,
   lightbox, video modal, testimonial carousel, count-up, animations */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #4B4B4B; }
img { max-width: 100%; }

/* ── Navigation ─────────────────────────────────────────── */

#site-nav {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

#site-nav .nav-link {
  color: rgba(255,255,255,0.92);
  transition: color 0.2s;
}
#site-nav .nav-link:hover { color: #C9A84C; }

#site-nav.scrolled {
  background-color: #fff !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
#site-nav.scrolled .nav-link { color: #1A2E4A; }
#site-nav.scrolled .nav-link:hover { color: #C9A84C; }
#site-nav.scrolled .hamburger-icon { color: #1A2E4A; }

/* Logo invert/normal */
#site-nav .logo-img { filter: brightness(0) invert(1); transition: filter 0.35s; }
#site-nav.scrolled .logo-img { filter: none; }

/* Donate button in nav */
.nav-donate-btn {
  background: #C9A84C;
  color: #1A2E4A;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.nav-donate-btn:hover { background: #b8953e; transform: translateY(-1px); }

/* Serve button in nav */
.nav-serve-btn {
  color: #fff;
  font-weight: 600;
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 0.8125rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-serve-btn:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
#site-nav.scrolled .nav-serve-btn { color: #1A2E4A; border-color: rgba(26,46,74,0.4); }
#site-nav.scrolled .nav-serve-btn:hover { border-color: #1A2E4A; background: rgba(26,46,74,0.06); }

/* Dropdown */
.dropdown-parent { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-radius: 10px;
  min-width: 210px;
  padding: 10px 0 6px;
  z-index: 999;
}
.dropdown-parent:hover .dropdown-menu { display: block; }
/* Invisible top-bridge prevents the gap from breaking hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #4B4B4B;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover { background: #F8F5F0; color: #1A2E4A; }

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  background: #1A2E4A;
  z-index: 900;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.32s ease;
}
#mobile-menu.open { transform: translateX(0); }

#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 899;
}
#mobile-overlay.open { display: block; }

.mobile-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
  text-decoration: none;
}
.mobile-accordion-btn:hover { background: rgba(255,255,255,0.05); }

.mobile-accordion-panel {
  display: none;
  background: rgba(0,0,0,0.15);
}
.mobile-accordion-panel.open { display: block; }
.mobile-accordion-panel a {
  display: block;
  padding: 10px 36px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-accordion-panel a:hover { color: #C9A84C; background: rgba(255,255,255,0.05); }

.mobile-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mobile-accordion-btn.active .mobile-chevron {
  transform: rotate(180deg);
}

/* ── Hero Slider ─────────────────────────────────────────── */

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.hero-dots button.active {
  background: #C9A84C;
  transform: scale(1.3);
}

/* ── Impact Counter ──────────────────────────────────────── */

.count-up { display: inline-block; }

/* ── Testimonial Carousel ────────────────────────────────── */

.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; }

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: #1A2E4A;
  transform: scale(1.2);
}

/* ── Gallery ─────────────────────────────────────────────── */

.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Lightbox ────────────────────────────────────────────── */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }

#lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
#lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#lightbox-close:hover { opacity: 1; }

#lightbox-prev, #lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 20px 16px;
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
}
#lightbox-prev:hover, #lightbox-next:hover { opacity: 1; }
#lightbox-prev { left: 8px; }
#lightbox-next { right: 8px; }

/* ── Video Modal ─────────────────────────────────────────── */

#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.70);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#video-modal.open { display: flex; }

#video-modal-inner {
  position: relative;
  width: min(92vw, 960px);
}
#video-modal-inner iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 10px;
  display: block;
}
#video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}
#video-modal-close:hover { opacity: 1; }

/* Play button overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,46,74,0.25);
  transition: background 0.3s;
  cursor: pointer;
}
.play-overlay:hover { background: rgba(26,46,74,0.45); }

.play-btn {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.play-overlay:hover .play-btn { transform: scale(1.1); background: #fff; }

/* ── Scroll Animations ───────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Staggered delays */
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Press Release article body ──────────────────────────── */

.prose-article p {
  color: rgba(75,75,75,0.85);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.prose-article blockquote {
  border-left: 4px solid #C9A84C;
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
}
.prose-article blockquote p {
  font-family: 'Playfair Display', serif;
  color: #1A2E4A;
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.75rem;
}
.prose-article blockquote footer {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(75,75,75,0.55);
}

/* ── Page Hero (inner pages) ─────────────────────────────── */

.page-hero {
  height: 45vh;
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,74,0.85) 0%, rgba(26,46,74,0.3) 60%, rgba(26,46,74,0.15) 100%);
}
.page-hero-content {
  position: relative;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* ── Donate Page ─────────────────────────────────────────── */

.give-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.give-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-2px); }

/* ── Team Grid ───────────────────────────────────────────── */

.team-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }

/* ── Campaign / Room for More ────────────────────────────── */

.phase-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: #C9A84C;
}

/* ── Typography Helpers ──────────────────────────────────── */

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #C9A84C;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #1A2E4A;
  line-height: 1.2;
}
.section-body { color: #4B4B4B; line-height: 1.75; }

/* Quote styling */
.pull-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #4B4B4B;
  line-height: 1.6;
}
.pull-quote::before { content: '\201C'; color: #C9A84C; font-size: 3rem; line-height: 0; vertical-align: -0.6em; margin-right: 0.1em; }

/* ── Responsive Helpers ──────────────────────────────────── */

@media (max-width: 768px) {
  .dropdown-menu { display: none !important; }
  .page-hero { height: 44vh; min-height: 300px; }
  .page-hero-content { padding: 2rem 1.25rem 2.5rem; }
  .page-hero-content .section-label {
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 480px) {
  #lightbox-prev, #lightbox-next { font-size: 1.8rem; padding: 12px 8px; }
}
