/* ============================================================
   Word of Hope Christian Ministry Foundation – style.css v2
   ============================================================ */

:root {
  --navy:       #002B5B;
  --navy-dark:  #001a3a;
  --navy-light: #003f85;
  --gold:       #D4AF37;
  --gold-dark:  #b8961e;
  --white:      #FFFFFF;
  --light-gray: #F5F5F5;
  --text-dark:  #1a1a2e;
  --text-muted: #6c757d;
  --border:     #dee2e6;
  --shadow:     0 4px 24px rgba(0,43,91,.10);
  --radius:     12px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Merriweather', Georgia, serif; line-height: 1.3; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; }

/* ── Colour Utilities ── */
.text-gold   { color: var(--gold)  !important; }
.text-navy   { color: var(--navy)  !important; }
.bg-navy     { background: var(--navy)  !important; }
.bg-gold     { background: var(--gold)  !important; }
.bg-section  { background: var(--light-gray); }

/* ── Buttons ── */
.btn-gold {
  background: var(--gold); color: #1a1a2e;
  border: none; font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-gold:hover { background: var(--gold-dark); color: #1a1a2e; transform: translateY(-1px); }

.btn-navy {
  background: var(--navy); color: #fff;
  border: none; font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-navy:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); }

/* ── Navbar ── */
.woh-navbar {
  background: var(--navy) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  padding: .55rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.woh-navbar .navbar-brand { text-decoration: none; }
.woh-navbar .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.woh-navbar .nav-link:hover,
.woh-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.14);
}
.woh-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,.3);
  padding: .3rem .55rem;
}
.woh-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.woh-logo-circle {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--navy);
  flex-shrink: 0;
  font-style: normal;
}
/* Cross symbol fallback (when BI font unavailable) */
.woh-logo-circle::before { content: '✝'; font-size: 1rem; }
.woh-logo-circle i, .woh-logo-circle .bi { display: none; }
@supports (font-family: 'bootstrap-icons') {
  .woh-logo-circle::before { display: none; }
  .woh-logo-circle i, .woh-logo-circle .bi { display: inline; }
}

/* ── Hero Section ── */
.hero-section {
  min-height: 92vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4080 100%) !important;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(212,175,55,.06) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.35);
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  color: #fff !important;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(212,175,55,.25);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-card .cross-icon {
  font-size: 4.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
/* Fallback cross when BI not loaded */
.hero-card .cross-icon::before { content: '✝'; }
.hero-card .cross-icon .bi { display: none; }
@supports (font-family: 'bootstrap-icons') {
  .hero-card .cross-icon::before { display: none; }
  .hero-card .cross-icon .bi { display: inline; }
}
.hero-card h3 {
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin: 0 0 .25rem;
}
.hero-card .subtitle { color: rgba(255,255,255,.55); font-size: .82rem; }
.hero-stat-val {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  line-height: 1;
}
.hero-stat-label { color: rgba(255,255,255,.6); font-size: .72rem; margin-top: .2rem; }

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}

/* ── Section Heading ── */
.section-heading { text-align: center; margin-bottom: 3rem; }
.section-heading .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: .5rem;
  display: block;
}
.section-heading h2 { color: var(--navy); margin-bottom: 0; }
.section-heading .divider {
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 2px;
  margin: .75rem auto 0;
  display: block;
}
.section-heading.text-start .divider { margin-left: 0; }

/* ── Cards ── */
.woh-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  background: #fff;
}
.woh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.woh-card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
}

/* ── Stats banner ── */
.stats-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-item .number {
  font-family: 'Merriweather', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-item .label { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: .3rem; }

/* ── Event date badge ── */
.event-date-badge {
  min-width: 54px;
  background: var(--navy);
  border-radius: 10px;
  text-align: center;
  padding: .5rem .7rem;
  color: #fff;
  flex-shrink: 0;
}
.event-date-badge .day { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.event-date-badge .mon { font-size: .68rem; text-transform: uppercase; opacity: .75; margin-top: 2px; }

/* ── News ── */
.news-category {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
}

/* ── Campaign / Donation ── */
.campaign-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}
.campaign-card .progress { height: 8px; border-radius: 4px; background: #e9ecef; }
.campaign-card .progress-bar {
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 4px;
}

/* ── Testimonials ── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Merriweather', serif;
  font-size: 4.5rem;
  color: var(--gold);
  opacity: .18;
  position: absolute;
  top: .5rem; left: 1.25rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial-avatar {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}

/* ── Gallery ── */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
}
.gallery-item img {
  width: 100%; height: 220px;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,43,91,.58);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  font-size: 1.5rem; color: #fff;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 3.5rem 0 2.75rem;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: .84rem; }
.page-hero .breadcrumb-item.active { color: var(--gold); font-size: .84rem; }
.page-hero .breadcrumb-divider { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.page-hero p { color: rgba(255,255,255,.72); margin-top: .4rem; }

/* ── Form ── */
.form-control:focus, .form-select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 .2rem rgba(0,63,133,.15);
}
.woh-form-label { font-weight: 500; font-size: .88rem; color: var(--navy); }

/* ── Footer ── */
.woh-footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--gold);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}
.woh-footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.woh-footer a:hover { color: var(--gold); }

/* ── Lightbox ── */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1;
  background: none; border: none;
}

/* ── Flash / Alert ── */
.flash-msg { position: fixed; top: 80px; right: 1rem; z-index: 9000; min-width: 280px; }

/* ── Scroll-to-top ── */
#scrollTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--navy); color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%; border: none;
  display: none; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  cursor: pointer;
  transition: background .2s;
}
#scrollTop:hover { background: var(--gold); color: var(--navy); }
#scrollTop.visible { display: flex; }

/* ── Donation amount buttons ── */
.amount-btn { min-width: 72px; cursor: pointer; }
.amount-btn.active { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 2rem; }

/* ── Admin ── */
.admin-sidebar { min-height: 100vh; background: var(--navy-dark); }
.admin-sidebar .nav-link { color: rgba(255,255,255,.75); border-radius: 8px; margin-bottom: 2px; }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { background: rgba(255,255,255,.12); color: #fff; }
.stat-card { border-radius: var(--radius); padding: 1.5rem; color: #fff; }
.stat-card.navy  { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.stat-card.gold  { background: linear-gradient(135deg, #b8961e, var(--gold)); color: var(--text-dark); }
.stat-card.green { background: linear-gradient(135deg, #1a6b3a, #27ae60); }
.stat-card.red   { background: linear-gradient(135deg, #8b0000, #c0392b); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .hero-section { min-height: auto; padding: 3.5rem 0 5rem; }
  .hero-title   { font-size: 1.75rem; }
  .hero-card    { margin-top: 2rem; }
}
@media (max-width: 575px) {
  .woh-card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
}
