/* =========================================
   ROOT VARIABLES
   ========================================= */
:root {
  /* Church Colors */
  --ghbc-dark-red: #752B2F;
  --ghbc-light-brown: #DDC1A1;
  --ghbc-light: #E0D4D1;

  /* Sticky Notepad */
  --note-blue-50: #eff8ff;
  --note-blue-100: #d9ecff;
  --note-blue-200: #bfe0ff;
  --note-ink: #143a52;
  --note-shadow: 0 10px 30px rgba(0,0,0,.15);
  --note-tab-top: 45vh;   /* JS updates this */
  --note-popup-top: 20vh; /* JS updates this */
}

/* =========================================
   BASE / LAYOUT / BACKGROUND
   ========================================= */
html, body { height: 100%; }

body {
  background-attachment: fixed;            
  background-color: #d7d1c6;               
  background-repeat: repeat;
  background-size: 300px 300px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* removed navbar padding */
}

/* Match <li> backgrounds on schedule list to paper */
#schedule li {
  background-attachment: fixed;
  background-color: #d7d1c6;
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* Footer sticks to the bottom of the viewport on short pages */
.site-footer { margin-top: auto; }

/* Phones: avoid fixed background jank */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

/* =========================================
   BULLETIN — FULLSCREEN OVERLAY
   ========================================= */
.bb-overlay {
  align-items: center;
  background: rgba(0,0,0,0.92);
  display: none;
  inset: 0;
  opacity: 0;
  position: fixed;
  justify-content: center;
  transition: opacity 180ms ease-in-out;
  z-index: 5000;
}
.bb-overlay.show { display: flex; opacity: 1; }

.bb-overlay-img {
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  height: auto;
  max-height: 92vh;
  max-width: 92vw;
  user-select: none;
  -webkit-user-drag: none;
  width: auto;
}
.bb-toolbar {
  display: flex;
  gap: 8px;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5001;
  justify-content: space-between;
}
.bb-close { z-index: 5002; }

/* When overlay is open, prevent page scroll */
body.no-scroll { overflow: hidden; }

/* =========================================
   HERO INTRO OVERLAY (video on Home)
   ========================================= */
#hero { min-height: 52vh; position: relative; }
#hero #hero-bg { height: 100%; object-fit: cover; }

#hero .intro-video-card-full {
  align-items: center;
  background: rgba(0,0,0,0.65);
  display: none;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity 250ms ease;
  z-index: 1200;
}
#hero .intro-video-card-full.show { display: flex; opacity: 1; }

#hero .intro-video-full { height: 100%; object-fit: cover; width: 100%; }

#hero .intro-close {
  background: rgba(0,0,0,0.55);
  border: 0;
  border-radius: 50%;
  color: #fff;
  
  font-size: 1.5rem;
  height: 36px;
  line-height: 34px;
  position: absolute;
  right: 16px;
  top: 12px;
  width: 36px;
  z-index: 2;
}
#hero .intro-close:hover { background: rgba(0,0,0,0.8); }

@media (max-width: 576px) { #hero { min-height: 46vh; } }
@media (prefers-reduced-motion: reduce) {
  #hero .intro-video-card-full,
  #hero .intro-video-card-full.show { transition: opacity 200ms ease !important; }
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-card {
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.about-quote { background: rgba(0,0,0,.05); border-left: 4px solid var(--ghbc-dark-red); }
.about-visit {
  background: var(--ghbc-dark-red);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  color: var(--ghbc-light);
}
.about-visit .btn-light { border: 0; color: var(--ghbc-dark-red); }
.about-visit .btn-outline-light:hover {
  background: var(--ghbc-light);
  border-color: var(--ghbc-light);
  color: var(--ghbc-dark-red);
}
@media (max-width: 576px) { #about-section .fs-5 { font-size: 1.05rem !important; } }

/* =========================================
   LEADERSHIP PAGE
   ========================================= */
.leader-card {
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.leader-photo { border-radius: 12px; object-fit: cover; object-fit: cover; object-position: center top;}
.leader-quote { background: rgba(0,0,0,.05); border-left: 4px solid var(--ghbc-dark-red); }
.leader-focus { background: rgba(255,255,255,.4); border: 1px solid rgba(0,0,0,.06); }
.leader-timeline { border-top: 1px solid rgba(0,0,0,.08); }
.timeline-dot {
  background: var(--ghbc-dark-red);
  box-shadow: 0 0 0 3px rgba(117,43,47,.15);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}
@media (max-width: 576px) {
  #leadership h1 { font-size: 1.6rem; }
  .leader-photo { max-height: 360px; width: 100%; }
}

/* =========================================
   SERMONS PAGE
   ========================================= */
.sermon-player-wrapper {
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.05);
}
.sermon-chip {
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.06);
  color: inherit;
}
.sermon-chip:hover { background: rgba(255,255,255,.55); }

/* =========================================
   GOSPEL PAGE
   ========================================= */
.beliefs-outline { background: rgba(255,255,255,.35); border: 1px solid rgba(0,0,0,.06); }
.outline-link { color: inherit; text-decoration: none; }
.outline-link:hover { text-decoration: underline; }
.belief-card .accordion-button { background: rgba(255,255,255,.45); font-weight: 600; }
.belief-card .accordion-button:not(.collapsed) { box-shadow: inset 0 -1px 0 rgba(0,0,0,.075); }
.belief-card .accordion-body { background: rgba(255,255,255,.35); border-top: 1px solid rgba(0,0,0,.06); }
.verse-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.verse {
  background: var(--ghbc-dark-red);
  border-radius: 999px;
  color: var(--ghbc-light);
  font-size: .8rem;
  padding: .15rem .5rem;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-header { background: rgba(255,255,255,.35); border-bottom: 1px solid rgba(0,0,0,.06); }
.contact-header .social-links a { color: var(--ghbc-dark-red, #a30000); }
.contact-header .social-links a:hover { color: #000; }

.contact-hero .overlay {
  background: radial-gradient(60% 80% at 50% 50%, rgba(255,255,255,0.08), transparent 60%);
  inset: 0;
  position: absolute;
}
.contact-hero .content {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
  z-index: 1;
}
.contact-badge {
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
}
.quick-actions .btn { border-width: 2px; }
.info-card .icon-wrap {
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.ratio > iframe { border-radius: .75rem; }
.section-title { font-weight: 700; letter-spacing: .2px; }

/* =========================================
   GENERIC PAGE HERO (sitewide)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, rgba(20,40,72,0.85), rgba(17,93,120,0.85));
  color: #fff;
  position: relative;
}
.page-hero__overlay {
  background: radial-gradient(60% 80% at 50% 50%, rgba(255,255,255,0.08), transparent 60%);
  inset: 0;
  position: absolute;
}
.page-hero__content {
  padding: 5rem 0 4rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

/* =========================================
   ADMIN (accordion)
   ========================================= */
#adminAccordion .accordion-button {
  background: #fff;
  color: inherit;
  justify-content: center;
  position: relative;
}
#adminAccordion .accordion-button:not(.collapsed) {
  background: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.05);
}
#adminAccordion .accordion-button .acc-title { margin: 0 auto; }
#adminAccordion .accordion-button::after {
  margin-left: 0;
  position: absolute;
  right: 1rem;
}
