/* ═══════════════════════════════════════════════════════════
   FREE MINISTRY LIBRARY :: home-page registration band + nav links
   Loaded AFTER style.css. Does not change style.css.
   ═══════════════════════════════════════════════════════════ */

/* ── The band: first thing under the fixed nav ─────────── */
.fp-band {
  position: relative;
  z-index: 5;
  isolation: isolate;
  padding:
    calc(max(78px, env(safe-area-inset-top, 0px) + 70px))
    clamp(14px, 3.5vw, 44px)
    clamp(18px, 3vw, 30px);
  background:
    radial-gradient(900px 260px at 50% 100%, rgba(244,201,93,.26), transparent 70%),
    linear-gradient(180deg, #0C150F 0%, #13241A 55%, #16291E 100%);
  overflow: hidden;
}
/* soft firefly sparkle behind the card */
.fp-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(2px 2px at 12% 38%, rgba(244,201,93,.9), transparent 60%),
    radial-gradient(2px 2px at 28% 78%, rgba(244,201,93,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 30%, rgba(249,242,227,.8), transparent 60%),
    radial-gradient(2px 2px at 71% 70%, rgba(244,201,93,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 34%, rgba(249,242,227,.7), transparent 60%),
    radial-gradient(2px 2px at 94% 82%, rgba(244,201,93,.6), transparent 60%);
}

.fp-band-card {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 3vw, 36px);
  border-radius: 26px;
  color: #2E2418;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg, #FFF3CF 0%, #F9D986 38%, #F4C95D 62%, #E9A83C 100%);
  border: 2px solid rgba(255,244,210,.9);
  box-shadow:
    0 0 0 5px rgba(244,201,93,.22),
    0 0 46px rgba(244,201,93,.55),
    0 22px 50px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.8);
  animation: fpBandGlow 3.6s ease-in-out infinite;
}
@keyframes fpBandGlow {
  0%, 100% { box-shadow: 0 0 0 5px rgba(244,201,93,.22), 0 0 40px rgba(244,201,93,.45), 0 22px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.8); }
  50%      { box-shadow: 0 0 0 7px rgba(244,201,93,.32), 0 0 70px rgba(244,201,93,.7),  0 22px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.8); }
}

.fp-band-seal {
  position: relative; width: 84px; height: 84px; flex: 0 0 auto;
  display: grid; place-items: center;
  filter: drop-shadow(0 6px 14px rgba(107,74,47,.35));
}
.fp-band-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-band-seal span {
  position: relative; z-index: 1;
  font-family: var(--font-body, "Nunito", sans-serif); font-weight: 900; font-size: .78rem; letter-spacing: .08em;
  color: #fff; background: #1F3D2B; border: 2px solid #F4C95D;
  padding: 2px 8px; border-radius: 999px; transform: rotate(-10deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.3);
}

.fp-band-kicker {
  font-family: var(--font-body, "Nunito", sans-serif);
  font-weight: 900; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #6B3F05; margin-bottom: .2em;
}
.fp-band-title {
  font-family: var(--font-display, "Fraunces", Georgia, serif);
  font-weight: 900; font-size: clamp(1.45rem, 3vw, 2.3rem); line-height: 1.05;
  color: #2A1A08; letter-spacing: -.01em; margin: 0 0 .25em;
}
.fp-band-text {
  font-family: var(--font-body, "Nunito", sans-serif);
  font-weight: 700; font-size: clamp(.95rem, 1.35vw, 1.05rem); line-height: 1.45;
  color: #3A2410; max-width: 60ch;
}

.fp-band-actions { display: grid; gap: 8px; justify-items: center; }
.fp-band-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fp-band-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 50px; padding: .7em 1.35em; border-radius: 999px;
  font-family: var(--font-body, "Nunito", sans-serif); font-weight: 900; font-size: 1rem; line-height: 1.15;
  text-decoration: none; white-space: nowrap; color: #fff;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, filter .25s ease;
}
.fp-band-btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
.fp-band-btn:active { transform: translateY(0) scale(.98); }
.fp-band-btn-church {
  background: linear-gradient(160deg, #2C5A3E 0%, #1F3D2B 60%, #16291E 100%);
  box-shadow: 0 8px 20px rgba(22,41,30,.45), inset 0 1px 0 rgba(255,255,255,.2);
}
.fp-band-btn-family {
  background: linear-gradient(160deg, #D9463B 0%, #C8372D 55%, #A82A21 100%);
  box-shadow: 0 8px 20px rgba(168,42,33,.4), inset 0 1px 0 rgba(255,255,255,.25);
}
.fp-band-btn:focus-visible,
.fp-band-login a:focus-visible { outline: 3px solid #101B14; outline-offset: 3px; }
.fp-band-login {
  font-family: var(--font-body, "Nunito", sans-serif);
  font-size: .95rem; font-weight: 700; color: #3A2410; margin: 0;
}
.fp-band-login a { color: #1F3D2B; font-weight: 900; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fp-band-login a:hover { color: #101B14; }

/* Small YouTube / Facebook links under the buttons (2026-09-29) */
.fp-band-social {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 0;
  font-family: var(--font-body, "Nunito", sans-serif); font-size: .85rem; font-weight: 800; color: #3A2410;
}
.fp-band-soc {
  display: inline-flex; align-items: center; gap: .4em; min-height: 32px; padding: .2em .75em .2em .45em; border-radius: 999px;
  background: rgba(255,255,255,.72); color: #2A1A08; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(107,63,5,.35);
  transition: background .2s ease, transform .2s ease;
}
.fp-band-soc:hover { background: #fff; color: #101B14; transform: translateY(-1px); }
.fp-band-soc svg { width: 1.35em; height: 1.35em; flex: 0 0 auto; }
.fp-band-soc:focus-visible { outline: 3px solid #101B14; outline-offset: 2px; }
.fp-band-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Tablet: seal + copy on one row, buttons full width below */
@media (max-width: 1060px) {
  .fp-band-card { grid-template-columns: auto minmax(0, 1fr); }
  .fp-band-actions { grid-column: 1 / -1; }
}
/* Phones: stack and centre everything */
@media (max-width: 620px) {
  .fp-band { padding-top: calc(max(72px, env(safe-area-inset-top, 0px) + 64px)); }
  .fp-band-card { grid-template-columns: 1fr; text-align: center; justify-items: center; border-radius: 22px; padding: 18px 16px; gap: 10px; }
  .fp-band-seal { width: 62px; height: 62px; }
  .fp-band-seal span { font-size: .68rem; }
  .fp-band-text { margin: 0 auto; }
  .fp-band-actions { width: 100%; }
  .fp-band-btns { flex-direction: column; width: 100%; }
  .fp-band-btn { width: 100%; white-space: normal; }
}
@media (max-width: 360px) {
  .fp-band { padding-left: 10px; padding-right: 10px; }
  .fp-band-title { font-size: 1.32rem; }
  .fp-band-kicker { font-size: .68rem; letter-spacing: .1em; }
}
/* short landscape phones: keep it compact so the hero still peeks in */
@media (max-height: 540px) and (orientation: landscape) {
  .fp-band { padding-top: 64px; padding-bottom: 14px; }
  .fp-band-card { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 18px; }
  .fp-band-seal { display: none; }
  .fp-band-actions { grid-column: auto; }
  .fp-band-social { display: none; }
  .fp-band-btns { flex-direction: row; flex-wrap: nowrap; }
  .fp-band-btn { width: auto; min-height: 44px; padding: .55em 1em; font-size: .92rem; }
  .fp-band-text { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-band-card { animation: none; }
}

/* ── Nav: the two new portal links ─────────────────────── */
.nav-links a.nav-portal { color: #F4C95D; }
.nav-links a.nav-portal::before { content: "✦ "; }
.nav.scrolled .nav-links a.nav-portal { color: #7A4E0E; }
.nav-links a.nav-login {
  padding: .35em .95em; border-radius: 999px;
  border: 1.5px solid rgba(249,242,227,.55);
}
.nav-links a.nav-login::after { display: none; }
.nav.scrolled .nav-links a.nav-login { border-color: #8B5E3C; }

/* Ten links on one desktop row: tighten between the burger breakpoint and wide screens */
@media (min-width: 881px) and (max-width: 1280px) {
  .nav-links { gap: clamp(9px, 1.1vw, 16px); }
  .nav-links a { font-size: .86rem; }
  .nav-brand { font-size: 1.25rem; }
  .nav-cta { padding: .5em 1em; }
}
@media (min-width: 881px) and (max-width: 1020px) {
  .nav { padding-left: 14px; padding-right: 14px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: .8rem; }
  .nav-links a.nav-portal::before { content: ""; }
}
/* In the burger menu, the login link keeps its pill but gets room */
@media (max-width: 880px) {
  .nav-links a.nav-login { border-color: rgba(249,242,227,.55) !important; }
  .nav.scrolled .nav-links a.nav-portal { color: #F4C95D; }
}

/* ── This season's free episode (added 2026-09-29) ───────────── */
.fp-band-feature {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,.62); border: 1.5px solid rgba(200,55,45,.35);
  border-radius: 14px; color: #2E2418; text-decoration: none;
  box-shadow: 0 4px 14px rgba(107,74,47,.14);
  transition: transform .18s ease, box-shadow .18s ease;
  max-width: 520px;
}
.fp-band-feature:hover, .fp-band-feature:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,55,45,.25); }
.fp-band-feature:focus-visible { outline: 3px solid #1F3D2B; outline-offset: 2px; }
.fp-band-feature img { width: 112px; height: 63px; object-fit: cover; border-radius: 9px; flex: none; }
.fp-band-feature strong { display: block; font-size: .95rem; line-height: 1.3; color: #9E2A22; }
.fp-band-feature strong em { font-style: normal; color: #2E2418; }
.fp-band-feature-cta { display: block; font-size: .86rem; font-weight: 700; color: #1F3D2B; margin-top: 2px; }
@media (max-width: 620px) {
  .fp-band-feature { margin: 12px auto 0; text-align: left; }
}
@media (max-width: 360px) {
  .fp-band-feature img { width: 84px; height: 47px; }
}

/* ── Band now sits BELOW the hero (2026-09-29): no nav clearance needed ── */
.fp-band { padding-top: clamp(26px, 4vw, 48px); }
@media (max-height: 540px) and (orientation: landscape) { .fp-band { padding-top: 22px; } }
