/* ===========================
   TruthPoint Church - Advent 2026
   Popup + home page band. Loaded from partials/footer.html.
   =========================== */

/* --- Popup --- */
.advent-pop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 26, 46, 0.72);
  animation: advent-fade 0.3s ease both;
}
.advent-pop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  max-height: 100%;
  padding: 14px 14px 16px;
  background: #f7efe4;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: advent-rise 0.35s ease both;
}
.advent-pop-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* leave room for the button so the whole flyer fits on screen */
  max-height: calc(100vh - 32px - 100px);
  max-height: calc(100dvh - 32px - 100px);
  border-radius: 6px;
}
.advent-pop-cta {
  flex-shrink: 0;
  background: #5c1230;
  border-color: #5c1230;
}
.advent-pop-cta:hover {
  background: #450d24;
  border-color: #450d24;
}
.advent-pop-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #5c1230;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.advent-pop-close:hover { background: #f7efe4; }
.advent-pop-close:focus-visible { outline: 3px solid #a9802c; outline-offset: 2px; }
body.advent-pop-open { overflow: hidden; }

@keyframes advent-fade { from { opacity: 0; } }
@keyframes advent-rise { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) {
  .advent-pop, .advent-pop-card { animation: none; }
}

/* --- Home page band --- */
.advent-band {
  background: #f7efe4;
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid rgba(169, 128, 44, 0.45);
  border-bottom: 1px solid rgba(169, 128, 44, 0.45);
}
.advent-band[hidden] { display: none; }
.advent-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a9802c;
  margin-bottom: 14px;
}
.advent-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #5c1230;
  margin-bottom: 16px;
  text-wrap: balance;
}
.advent-band h2 em { color: #a9802c; }
.advent-band p {
  max-width: 620px;
  margin: 0 auto 14px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4a3b33;
  text-wrap: pretty;
}
.advent-band .advent-times {
  font-weight: 700;
  color: #5c1230;
  margin-bottom: 24px;
}
.advent-band .btn-primary {
  background: #5c1230;
  border-color: #5c1230;
}
.advent-band .btn-primary:hover {
  background: #450d24;
  border-color: #450d24;
}
@media (max-width: 640px) {
  .advent-band { padding: 40px 0; }
}
