/* ============ Resurrection Ministries — landing page ============ */
:root {
  --accent: #e8b959;
  --bg: #070d1a;
  --ink: #f2f1ea;
  --muted: #93a0b4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Inter", -apple-system, sans-serif;
  background: radial-gradient(ellipse at 50% 42%, #0d1526 0%, var(--bg) 68%);
  color: var(--ink);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;               /* single screen — no scrolling */
}

#globeCanvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  cursor: grab;
}
#globeCanvas:active { cursor: grabbing; }

/* ---------- glowing hands cradling the globe ---------- */
.hands img {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(232, 185, 89, .25));
}
#handTop { animation: handFloatT 7s ease-in-out infinite; }
#handBottom { animation: handFloatB 7s ease-in-out infinite; }
@keyframes handFloatT { 0%, 100% { margin-top: 0; } 50% { margin-top: 7px; } }
@keyframes handFloatB { 0%, 100% { margin-top: 0; } 50% { margin-top: -7px; } }
@media (max-width: 860px) { .hands { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  pointer-events: none;
}
.nav a, .brand, .menu-btn { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo { height: 40px; width: auto; }
.brand-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 21px; letter-spacing: .01em;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.menu-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.menu-btn:hover { background: rgba(255,255,255,.1); border-color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  padding: 0 clamp(14px, 1.8vw, 26px) 30px clamp(20px, 4vw, 56px);
  pointer-events: none;
}

/* left content panel (swaps on rail click) */
.content-panel {
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
  pointer-events: auto;
  opacity: 1; transform: none;
  transition: opacity .38s ease, transform .38s ease;
}
.content-panel.fade-out { opacity: 0; transform: translateY(14px); }
.content-panel.wide { max-width: none; flex: 1; align-self: stretch; padding-top: 6px; }
.content-panel.wide h1 { font-size: clamp(30px, 3.2vw, 44px); }
.content-panel.wide h1.with-rule::after { margin-top: 10px; }
.content-panel.wide .kicker { margin-bottom: 12px; }
.content-panel.wide .sub { margin-top: 10px; max-width: none; font-size: 14px; }
.content-panel.wide .sub > p { max-width: 560px; }
.content-panel.wide .back-home { margin-bottom: 16px; }

/* step counter (01 / 05) */
.step-now { color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.step-total { color: var(--muted); font-size: 13px; letter-spacing: .06em; }

/* gold rule under section titles */
h1.with-rule::after {
  content: ""; display: block;
  width: 64px; height: 2px;
  background: var(--accent);
  margin-top: 16px;
}

.kicker {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08; letter-spacing: -.015em;
}
h1 em { font-style: italic; color: var(--accent); }
.sub {
  margin-top: 20px;
  font-size: 15.5px; line-height: 1.75;
  color: var(--muted); max-width: 440px;
}
.sub p { margin-bottom: 4px; }
.hero-actions {
  margin-top: 30px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent); color: #14100a;
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 14px 26px; border-radius: 12px;
  transition: transform .15s ease, filter .2s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink); text-decoration: none; font-size: 14.5px;
  border: 1px solid rgba(255,255,255,.3);
  padding: 13px 22px; border-radius: 12px;
  transition: border-color .2s;
}
.btn-ghost:hover { border-color: var(--accent); }
.back-home {
  display: inline-block; margin-bottom: 24px;
  color: var(--ink); text-decoration: none; font-size: 14px;
  transition: color .2s;
}
.back-home:hover { color: var(--accent); }

/* ---------- Join us Live section ---------- */
.player {
  position: relative;
  width: min(43vw, 530px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .12);
}
.live-frame { width: 100%; height: 100%; border: 0; display: block; }
.live-badge {
  position: absolute; top: 10px; left: 10px;
  background: #e02020; color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 9px; border-radius: 5px;
}
.live-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  text-align: center; font-size: 12px; color: var(--muted);
  background: linear-gradient(160deg, #121828, #05080f);
}
.live-fallback .play {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px;
}
.live-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .14);
}
.live-bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 38%; background: #e02020;
}

.info-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; max-width: 860px; }
.info-row .i-card:first-child { flex: 1.4 1 300px; }
.i-card {
  flex: 1 1 230px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px; line-height: 1.5; color: var(--ink);
}
.i-card p { margin: 0; color: var(--ink); }
.i-icon {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(232, 185, 89, .13);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.i-top { display: block; font-size: 10.5px; color: var(--muted); }
.i-card b { display: block; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.i-time { display: block; font-size: 12px; }

.connect-title {
  margin-top: 12px;
  color: var(--accent);
  font-size: 15px; font-weight: 600;
}
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.s-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .15s ease;
}
.s-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.s-icon {
  flex: 0 0 32px; width: 32px; height: 32px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.s-txt { min-width: 0; }
.s-txt b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.s-txt i { font-style: normal; font-size: 11px; color: var(--muted); }
.s-arrow { margin-left: auto; color: var(--accent); font-size: 15px; }

/* ---------- Talk to a Pastor section ---------- */
.pastor-hero {
  position: absolute;
  left: 53%; top: 40%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}
.p-photo {
  width: clamp(150px, 21vh, 230px);
  height: clamp(150px, 21vh, 230px);
  margin: 0 auto;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 24px rgba(232, 185, 89, .35), 0 0 70px rgba(232, 185, 89, .15);
  overflow: hidden;
  background: #101623;
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-photo.no-photo img { display: none; }
.p-prefix {
  margin-top: 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic; font-size: 19px; color: var(--accent);
}
.p-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 4.6vh, 52px);
  line-height: 1.1; color: var(--ink);
}
.p-role {
  margin-top: 6px;
  font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
  position: relative;
}
.p-role::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 44px; height: 1.6px; background: var(--accent); opacity: .8;
}

.pastor-cards {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: calc(var(--railw, 235px) + 60px);   /* stop before the action rail */
  bottom: 76px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  z-index: 2;
}
.p-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 18px 10px 52px;
  text-align: center; text-decoration: none;
  color: var(--ink);
  transition: border-color .25s, transform .2s ease, background .25s;
}
.p-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .06); }
.p-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.p-card b { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.p-card i { font-style: normal; font-size: 12px; }
.p-go {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  border: 1px solid currentColor;
  transition: transform .2s ease;
}
.p-card:hover .p-go { transform: translateX(-50%) translateX(3px); }

/* card color variants */
.p-card.gold .p-ico { border: 1.6px solid var(--accent); color: var(--accent); }
.p-card.gold i, .p-card.gold .p-go { color: var(--accent); }
.p-card.gold:hover { border-color: rgba(232, 185, 89, .5); }
.p-card.purple .p-ico { border: 1.6px solid #a78bfa; color: #a78bfa; }
.p-card.purple .p-go { color: #a78bfa; }
.p-card.purple:hover { border-color: rgba(167, 139, 250, .5); }
.p-card.blue .p-ico { background: #1877F2; color: #fff; }
.p-card.blue i, .p-card.blue .p-go { color: #6aa8ff; }
.p-card.blue:hover { border-color: rgba(106, 168, 255, .5); }
.p-card.green .p-ico { background: #25D366; color: #fff; }
.p-card.green i, .p-card.green .p-go { color: #34d97b; }
.p-card.green:hover { border-color: rgba(52, 217, 123, .5); }
.p-card.sky .p-ico { background: #2AABEE; color: #fff; }
.p-card.sky i, .p-card.sky .p-go { color: #55bdf3; }
.p-card.sky:hover { border-color: rgba(85, 189, 243, .5); }

.pastor-note {
  position: absolute;
  left: 0; right: calc(var(--railw, 235px) + 60px); bottom: 34px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  z-index: 2;
}
.pastor-note svg { color: var(--accent); flex: 0 0 auto; }

@media (max-width: 980px) {
  .pastor-hero { position: static; transform: none; margin: 18px 0; pointer-events: auto; }
  .pastor-cards { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 14px; }
  .pastor-note { position: static; margin-top: 14px; justify-content: flex-start; }
}

/* ---------- Bible Study Groups section ---------- */
.bsg-meta {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; font-size: 13.5px; color: var(--ink);
}
.bsg-meta b { font-weight: 600; }
.bsg-sep { color: var(--accent); }
.bsg-meta-ico {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.4px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 32px;
}

.bsg-hero {
  position: absolute;
  left: 53%; top: 32%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2; pointer-events: none;
  color: var(--accent);
}
.bsg-emblem {
  width: clamp(170px, 28vh, 250px);
  height: clamp(170px, 28vh, 250px);
  margin: 0 auto;
}
.bsg-emblem img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  /* the PNG has a black background — screen blending keeps only the gold glow */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(232, 185, 89, .25));
}
.bsg-abbr {
  margin-top: 12px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(30px, 4.4vh, 46px);
  letter-spacing: .08em; color: var(--accent);
}
.bsg-tag {
  margin-top: 2px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 9px; position: relative;
}
.bsg-tag::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 44px; height: 1.6px; background: var(--accent); opacity: .8;
}

.bsg-cards {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  right: calc(var(--railw, 235px) + 60px);
  bottom: 66px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  z-index: 3;
  align-items: stretch;
}
.bsg-card {
  position: relative;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  padding: 16px 18px 20px;
}
.bsg-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bsg-ico {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  border: 1.6px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.bsg-num {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  border: 1.4px solid var(--accent); color: var(--accent);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.bsg-card h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 17.5px; color: var(--ink);
}
.bsg-card p { font-size: 12px; line-height: 1.65; color: #c6cdd8; margin: 0; }
.bsg-rule {
  position: absolute; left: 18px; bottom: 14px;
  width: 40px; height: 1.6px; background: var(--accent); opacity: .7;
}

#bsgForm { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.bsg-field {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--muted);
  transition: border-color .2s;
}
.bsg-field:focus-within { border-color: var(--accent); color: var(--accent); }
.bsg-field input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--ink);
  font-family: "Inter", sans-serif; font-size: 13px;
}
.bsg-field input::placeholder { color: var(--muted); }
.bsg-join {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #14100a;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 11px 0;
  transition: filter .2s, transform .15s ease;
}
.bsg-join:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bsg-note { bottom: 32px; }

@media (max-width: 980px) {
  .bsg-hero { position: static; transform: none; margin: 18px 0; }
  .bsg-cards { position: static; grid-template-columns: 1fr; margin-top: 14px; }
  .bsg-note { position: static; margin-top: 14px; justify-content: flex-start; }
}

/* copyright */
.copyright {
  position: fixed; left: 0; right: 0; bottom: 8px;
  text-align: center; z-index: 2;
  font-size: 11.5px; color: rgba(147, 160, 180, .55);
  pointer-events: none;
}

/* service times inside a section */
.service-list { list-style: none; margin-top: 18px; max-width: 400px; }
.service-list li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: baseline; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.service-list li:last-child { border-bottom: none; }
.svc-day {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.svc-name { font-size: 14.5px; color: var(--ink); }
.svc-time {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px; color: var(--accent);
}

/* contact rows inside a section */
.contact-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.c-row { display: flex; align-items: baseline; gap: 14px; font-size: 14px; }
.c-label {
  flex: 0 0 64px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.c-row a { color: var(--ink); text-decoration: none; }
.c-row a:hover { color: var(--accent); }
.c-row span:not(.c-label) { color: var(--ink); }

/* ---------- right action rail (winding path) ---------- */
.action-rail {
  pointer-events: auto;
  position: relative;
  width: 235px; flex: 0 0 235px;
}
.rail-path {
  position: absolute; left: 0; top: 0;
  filter: drop-shadow(0 0 4px rgba(232, 185, 89, .45));
  pointer-events: none;
}
.rail-item {
  /* anchor the icon badge (42px wide) on the path point, label extends right */
  position: absolute; transform: translate(-21px, -50%);
  display: flex; align-items: center; gap: 15px;
  background: none; border: none; cursor: pointer;
  text-align: left; white-space: nowrap;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
}
/* dark circular icon badge */
.rail-dot {
  position: relative;
  flex: 0 0 42px; width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #161e30, #0a101d 75%);
  border: 1px solid rgba(232, 185, 89, .35);
  color: rgba(240, 235, 220, .85);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 0 rgba(232, 185, 89, 0);
  transition: border-color .45s ease, color .45s ease,
              box-shadow .45s ease, transform .45s cubic-bezier(.34, 1.4, .5, 1);
}
.rail-label { line-height: 1.3; transition: color .35s ease; }
.rail-item:hover .rail-dot {
  border-color: rgba(232, 185, 89, .7);
  color: var(--accent);
  transform: scale(1.05);
}
.rail-item:hover .rail-label { color: var(--accent); }

/* active: glowing gold ring, gold icon + label */
.rail-item.active .rail-dot {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(232, 185, 89, .16),
              0 0 16px rgba(232, 185, 89, .65),
              0 0 38px rgba(232, 185, 89, .28);
}
.rail-item.active .rail-label { color: var(--accent); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .rail-item { font-size: 16px; max-width: 220px; }
}
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 18px; }
  .content-panel { max-width: 100%; }
  h1 { font-size: 38px; }
  .nav-links a { display: none; }             /* keep hamburger */
  .action-rail {
    position: fixed; right: 0; top: 0; bottom: 0; z-index: 5;
    background: rgba(6, 10, 20, .92);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255,255,255,.1);
    padding: 90px 26px 30px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .action-rail.open { transform: none; }
}
