/* ============================================================
   St. Apollo Kivebulaaya Kansanga C.O.U — main stylesheet
   Palette: Anglican deep purple + liturgical gold
   ============================================================ */
:root {
  --purple-900: #2a1245;
  --purple-800: #3b1f5e;
  --purple: #4a2570;
  --purple-light: #6d4a9e;
  --gold: #c9a227;
  --gold-light: #e3c65c;
  --ink: #241d2e;
  --paper: #faf8f5;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Ubuntu Sans', system-ui, sans-serif;
  --ui: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--sans); color: var(--ink); background: var(--paper); }
h1, h2, h3, h4, .display-5, .display-4 { font-family: var(--serif); }
.eyebrow, .btn, .badge, .stat-label, .footer-heading { font-family: var(--ui); }
.main-nav .nav-link, .dropdown-item { font-family: var(--sans); }

.text-gold { color: var(--gold) !important; }
.bg-purple { background: var(--purple-800) !important; }

/* --- Top bar --- */
.topbar { background: var(--purple-900); color: #d9cfe8; font-size: .82rem; padding: .4rem 0; }
.topbar a { color: #d9cfe8; text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }

/* --- Navbar --- */
.main-nav { background: #fff; box-shadow: 0 2px 12px rgba(42, 18, 69, .08); padding: .55rem 0; }
.nav-logo { height: 56px; width: auto; max-width: 260px; object-fit: contain; }
@media (max-width: 575px) { .nav-logo { height: 44px; max-width: 200px; } }
.main-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; padding: .5rem .8rem; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--purple); }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(42, 18, 69, .15); border-radius: .6rem; }
.dropdown-item:hover { background: #f3eefa; color: var(--purple); }

/* --- Buttons --- */
.btn-gold { background: var(--gold); color: var(--purple-900); font-weight: 600; border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--purple-900); }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--purple-800); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: var(--purple-900); }
.btn-purple { background: var(--purple); color: #fff; font-weight: 600; border: 2px solid var(--purple); }
.btn-purple:hover { background: var(--purple-800); color: #fff; }
.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.7); color: #fff; font-weight: 600; }
.btn-outline-light-2:hover { background: #fff; color: var(--purple-900); }

/* --- Hero slideshow --- */
.hero {
  position: relative; color: #fff; padding: 7.5rem 0 8.5rem;
  background: var(--purple-900); overflow: hidden;
}
.hero-carousel, .hero-carousel .carousel-inner { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-item {
  height: 100%; background-size: cover; background-position: center top;
  transition: transform 8s ease-out, opacity .9s ease;
}
.hero-carousel .carousel-item.active { transform: scale(1.06); }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(42, 18, 69, .74), rgba(42, 18, 69, .84));
}
.hero-content { z-index: 2; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
.hero .lead { color: #e6ddf3; max-width: 640px; }
.hero-verse { font-family: var(--serif); font-style: italic; color: var(--gold-light); }

.page-hero {
  position: relative; color: #fff; padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(42, 18, 69, .88), rgba(74, 37, 112, .78)),
    var(--hero-img, linear-gradient(120deg, var(--purple-900), var(--purple)))
    center 30%/cover no-repeat;
}
.page-hero h1 { font-weight: 700; }
.page-hero .breadcrumb a { color: var(--gold-light); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: #cbbde0; }

/* --- Countdown band --- */
.countdown-band {
  background: linear-gradient(100deg, var(--purple-800), var(--purple));
  color: #fff;
}
.countdown-band h3 { font-family: var(--serif); font-weight: 700; margin-bottom: .2rem; }
.cd-subtitle { color: #d9cfe8; font-size: .95rem; }
.cd-box {
  min-width: 76px; padding: .8rem .6rem; text-align: center; border-radius: .6rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-direction: column; line-height: 1.15;
}
.cd-num { font-family: var(--ui); font-size: 1.7rem; font-weight: 700; color: var(--gold-light); }
.cd-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #d9cfe8; }
@media (max-width: 575px) { .cd-box { min-width: 64px; padding: .6rem .4rem; } .cd-num { font-size: 1.35rem; } }

/* --- Sections --- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-purple { background: var(--purple-900); color: #e6ddf3; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; font-weight: 700; color: var(--gold); }
.section-title { font-weight: 700; color: var(--purple-900); }
.section-purple .section-title { color: #fff; }

/* --- Cards --- */
.card-lift { border: none; border-radius: 1rem; box-shadow: 0 6px 24px rgba(42,18,69,.07); transition: transform .25s, box-shadow .25s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(42,18,69,.14); }
.card-img-frame { height: 210px; object-fit: cover; border-radius: 1rem 1rem 0 0; }
.icon-badge {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: #f3eefa; color: var(--purple);
}

/* --- Service times --- */
.service-card { border-left: 4px solid var(--gold); border-radius: .8rem; background: #fff; }
.service-time { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--purple-800); }

/* --- Stats --- */
.stat-number { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--gold); }
.stat-label { letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }

/* --- Progress bars --- */
.progress { height: 10px; border-radius: 99px; background: #eee5f7; }
.progress-bar { background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 99px; }

/* --- Gallery --- */
.gallery-item { border-radius: .8rem; overflow: hidden; cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem .9rem .7rem;
  background: linear-gradient(transparent, rgba(42,18,69,.85));
  color: #fff; font-size: .85rem; font-weight: 500;
}
.filter-btn { border: 1.5px solid var(--purple-light); color: var(--purple-800); border-radius: 99px; padding: .35rem 1.1rem; font-size: .88rem; font-weight: 600; background: transparent; }
.filter-btn.active, .filter-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

/* --- Leader cards --- */
.leader-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); }
.leader-initials {
  width: 120px; height: 120px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 2rem; font-weight: 700;
  background: #f3eefa; color: var(--purple); border: 3px solid var(--gold);
}

/* --- Footer --- */
.site-footer { background: var(--purple-900); color: #cbbde0; }
.site-footer a { color: #cbbde0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-logo-chip {
  display: inline-block; background: #fff; border-radius: .8rem; padding: .55rem .9rem;
}
.footer-logo-chip img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.footer-heading { color: #fff; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; font-size: .9rem; }
.footer-verse { font-family: var(--serif); font-style: italic; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); gap: .5rem; }

/* --- Footer giving accordion --- */
.footer-accordion { --bs-accordion-bg: rgba(255,255,255,.05); }
.footer-accordion .accordion-item { border: 1px solid rgba(255,255,255,.14); }
.footer-accordion .accordion-button {
  background: transparent; color: #e6ddf3; font-weight: 600; font-size: .92rem;
  box-shadow: none;
}
.footer-accordion .accordion-button:not(.collapsed) { color: var(--gold-light); }
.footer-accordion .accordion-button::after { filter: invert(1) brightness(1.6); }
.footer-accordion .accordion-body { color: #cbbde0; font-size: .9rem; }
.footer-accordion .accordion-body a { color: var(--gold-light); }

/* --- WhatsApp float --- */
.whatsapp-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- Video library --- */
.video-thumb {
  position: relative; display: block; width: 100%; background: var(--purple-900);
  border-radius: 1rem 1rem 0 0; overflow: hidden; cursor: pointer;
}
.video-thumb img { width: 100%; height: 210px; object-fit: cover; transition: transform .35s; display: block; }
.video-thumb:hover img { transform: scale(1.06); }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: rgba(201, 162, 39, .92);
  color: var(--purple-900); display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .2s;
  pointer-events: none;
}
.video-thumb:hover .play-badge { transform: translate(-50%, -50%) scale(1.12); }

/* --- Newsletters --- */
.icon-badge-lg { width: 72px; height: 72px; font-size: 2rem; border-radius: 18px; }
.latest-issue { border-left: 5px solid var(--gold); }

/* --- Misc --- */
.ratio iframe { border-radius: 1rem; }
.verse-band { background: linear-gradient(120deg, var(--purple-800), var(--purple)); color: var(--gold-light); }
.badge-status { background: #f3eefa; color: var(--purple-800); font-weight: 600; }
.giving-channel { border: 1.5px dashed var(--purple-light); border-radius: 1rem; background: #fff; }
