:root {
  --pg-ink: #10132a;
  --pg-ink-soft: #4a4f6b;
  --pg-ink-faint: #85889f;
  --pg-bg: #f3f2f6;
  --pg-bg-sunk: #eceaf2;
  --pg-line: #dad8e6;
  --pg-accent: #b8791f;
  --pg-accent-fill: #e8a548;
  --pg-accent-2: #b64d29;
  --pg-night: #10132a;
  --pg-night-ink: #f3f1ea;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
}

html { overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--pg-ink);
  background: var(--pg-bg);
  overflow-x: hidden;
  max-width: 100vw;
}
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }
a { color: var(--pg-accent); text-decoration: none; }
a:hover { color: var(--pg-accent-2); }

.btn-pg-primary {
  background: var(--pg-accent-fill); border-color: var(--pg-accent-fill); color: #171008;
  font-weight: 600; border-radius: 2px; padding: 0.85em 1.6em;
}
.btn-pg-primary:hover { background: var(--pg-accent); border-color: var(--pg-accent); color: #171008; }
.btn-pg-ghost {
  border: 1px solid rgba(247,244,238,0.4); color: #f7f4ee; font-weight: 600; border-radius: 2px; padding: 0.85em 1.6em;
  background: transparent;
}
.btn-pg-ghost:hover { border-color: #f7f4ee; background: rgba(247,244,238,0.1); color: #f7f4ee; }

/* ---- nav ---- */
.pg-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; padding-block: 1rem; transition: background .2s ease; }
.pg-nav.pg-scrolled { position: fixed; background: rgba(16,19,42,0.94); backdrop-filter: blur(8px); }
.pg-nav .navbar-brand { font-family: var(--font-display); font-weight: 700; color: #f7f4ee; font-size: 1.2rem; }
.pg-nav .nav-link { color: #e6e1d6; font-weight: 500; }
.pg-nav .nav-link:hover { color: var(--pg-accent-fill); }

.pg-nav-dropdown-menu { background: rgba(16,19,42,0.98); border: 1px solid rgba(243,241,234,.14); border-radius: 8px; padding: 0.4rem; min-width: 11rem; }
.pg-nav-dropdown-menu .dropdown-item { color: #e6e1d6; font-weight: 500; font-size: 0.92rem; border-radius: 5px; padding: 0.5rem 0.8rem; }
.pg-nav-dropdown-menu .dropdown-item:hover, .pg-nav-dropdown-menu .dropdown-item:focus { background: rgba(232,165,72,.14); color: var(--pg-accent-fill); }
.pg-nav-dropdown-menu .dropdown-item.active { background: rgba(232,165,72,.1); color: var(--pg-accent-fill); }
.navbar .dropdown-toggle::after { opacity: 0.7; vertical-align: 0.1em; }

@media (max-width: 991.98px) {
  .pg-nav-dropdown-menu { background: rgba(255,255,255,.04); border-color: rgba(243,241,234,.1); box-shadow: none; }
  .pg-nav .navbar-collapse {
    background: rgba(9,8,20,0.97);
    backdrop-filter: blur(10px);
    margin-top: 0.85rem;
    padding: 0.75rem 1.1rem 1.1rem;
    border-radius: 10px;
    box-shadow: 0 16px 34px rgba(0,0,0,.4);
  }
  .pg-nav .navbar-nav { gap: 0.1rem; }
  .pg-nav .nav-link { padding-block: 0.5rem; }
  .pg-nav .nav-item:last-child { margin-top: 0.5rem; }
}

/* ---- hero carousel ---- */
.pg-hero { position: relative; min-height: 92vh; background: #0c0a08; overflow: hidden; }
.pg-hero .carousel, .pg-hero .carousel-inner, .pg-hero .carousel-item { height: 92vh; min-height: 92vh; }
.pg-hero .carousel-item { overflow: hidden; }
.pg-hero .carousel-fade .carousel-item { transition: opacity 1.6s ease; }
.pg-hero .carousel-item img {
  width: 112%; height: 112%; max-width: none; object-fit: cover; object-position: center 25%;
  transform: scale(1.06); will-change: transform; transform-origin: 50% 42%;
}
.pg-hero .carousel-item.active img.pg-kb-zoom-in { animation: pgKenBurnsIn 8s cubic-bezier(.25,.1,.25,1) forwards; }
.pg-hero .carousel-item.active img.pg-kb-zoom-out { animation: pgKenBurnsOut 8s cubic-bezier(.25,.1,.25,1) forwards; }
@keyframes pgKenBurnsIn {
  0%   { transform: scale(1.0) translate(1%, 0.5%) rotate(0deg); }
  50%  { transform: scale(1.16) translate(-2%, -1.8%) rotate(.4deg); }
  100% { transform: scale(1.34) translate(-4.5%, -3%) rotate(0deg); }
}
@keyframes pgKenBurnsOut {
  0%   { transform: scale(1.34) translate(4%, 2.5%) rotate(0deg); }
  50%  { transform: scale(1.17) translate(1.5%, .8%) rotate(-.4deg); }
  100% { transform: scale(1.0) translate(-1%, -0.5%) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero .carousel-item.active img.pg-kb-zoom-in,
  .pg-hero .carousel-item.active img.pg-kb-zoom-out { animation: none !important; transform: scale(1.02); }
}
.pg-hero .carousel-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,5,4,0.92) 0%, rgba(6,5,4,0.5) 45%, rgba(6,5,4,0.25) 68%, rgba(6,5,4,0.5) 100%);
}
.pg-hero .carousel-item .pg-sheen {
  content: ""; position: absolute; z-index: 1; top: -60%; left: -60%; width: 60%; height: 220%;
  background: linear-gradient(75deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: rotate(8deg);
  animation: pgSheen 8s ease-in-out forwards;
}
@keyframes pgSheen { 0% { left: -60%; } 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .pg-hero .pg-sheen { display: none; } }

.pg-hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.pg-hero-particles span {
  position: absolute; bottom: -4%; border-radius: 50%; background: var(--pg-accent-fill); opacity: 0;
  box-shadow: 0 0 6px 1px rgba(232,165,72,.85); animation-name: pgFloatUp; animation-timing-function: linear; animation-iteration-count: infinite;
}
@keyframes pgFloatUp {
  0%   { transform: translate(0,0); opacity: 0; }
  8%   { opacity: .85; }
  85%  { opacity: .25; }
  100% { transform: translate(var(--pg-drift, 24px), -108vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .pg-hero-particles { display: none; } }

.pg-hero-glow { position: absolute; z-index: 2; border-radius: 50%; filter: blur(70px); pointer-events: none; mix-blend-mode: screen; opacity: .55; }
.pg-hero-glow-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; right: -10%; top: -8%; background: radial-gradient(circle, rgba(232,165,72,.55) 0%, rgba(232,165,72,0) 70%); animation: pgDrift1 22s ease-in-out infinite; }
.pg-hero-glow-b { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; left: -6%; bottom: -10%; background: radial-gradient(circle, rgba(182,77,41,.45) 0%, rgba(182,77,41,0) 70%); animation: pgDrift2 26s ease-in-out infinite; }
@keyframes pgDrift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4%, 5%) scale(1.12); } }
@keyframes pgDrift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(5%, -4%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .pg-hero-glow { animation: none !important; } }

.pg-hero-caption { position: absolute; z-index: 3; inset: 0; display: flex; align-items: flex-end; }
.pg-hero-caption .container { width: 100%; }
.pg-hero-caption .inner { max-width: 720px; padding: clamp(11rem,18vw,14rem) 1.5rem 3rem; color: #f7f4ee; }
.pg-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pg-accent-fill); display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.6em; max-width: 100%; }
.pg-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--pg-accent-fill); }
.pg-hero h1 { font-size: clamp(2.8rem,2rem + 4.4vw,6rem); line-height: 0.98; letter-spacing: -0.01em; color: #fbf8f2; margin: 1rem 0 0; }
.pg-hero .lede { font-size: clamp(1.05rem,0.98rem + 0.3vw,1.3rem); color: #e6e1d6; margin-top: 1.4rem; max-width: 46ch; }
.pg-hero-ctas { margin-top: 2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.pg-slide-copy { opacity: 0; transform: translateY(14px); }
.pg-slide-copy.pg-anim-in { animation: pgCaptionIn .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes pgCaptionIn { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .pg-slide-copy { opacity: 1; transform: none; } .pg-slide-copy.pg-anim-in { animation: none !important; } }

.pg-hero-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 1.6rem; display: flex; gap: 0.5rem; padding: 0 1.5rem; max-width: 720px; margin: 0 auto; }
.pg-hero-progress button {
  flex: 1 1 0; height: 3px; border: none; padding: 0; border-radius: 2px; cursor: pointer;
  background: rgba(247,244,238,0.28); position: relative; overflow: hidden;
}
.pg-hero-progress button .fill { position: absolute; inset: 0; width: 0%; background: var(--pg-accent-fill); border-radius: 2px; }
.pg-hero-progress button.is-done .fill { width: 100%; transition: none; }
.pg-hero-progress button.is-active .fill { transition: width linear; }

/* ---- locations strip ---- */
.pg-locs { background: var(--pg-night); color: var(--pg-night-ink); padding: 2.4rem 0; border-bottom: 1px solid rgba(243,241,234,0.12); }
.pg-locs .eyebrow2 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pg-accent-fill); }
.pg-loc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pg-accent-fill); box-shadow: 0 0 0 4px rgba(232,165,72,0.2); margin-bottom: 0.8rem; }
.pg-loc-time { font-variant-numeric: tabular-nums; font-size: 1.3rem; font-weight: 600; }

.pg-locs-flex { display: flex; align-items: center; gap: 2.5rem; }
.pg-locs-main { flex: 1 1 auto; min-width: 0; }
.pg-pray-figure { position: relative; flex: 0 0 auto; width: 150px; height: 180px; align-items: center; justify-content: center; }
.pg-pray-glow {
  position: absolute; inset: -34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,165,72,.4) 0%, rgba(232,165,72,0) 70%);
  filter: blur(16px); animation: pgPrayGlow 4.5s ease-in-out infinite;
}
@keyframes pgPrayGlow { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.14); } }
.pg-pray-svg {
  position: relative; z-index: 1; width: 104px; display: block;
  animation: pgPrayBob 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(232,165,72,.4));
}
@keyframes pgPrayBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pg-pray-particles { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.pg-pray-particles span {
  position: absolute; bottom: 20%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--pg-accent-fill); box-shadow: 0 0 5px 1px rgba(232,165,72,.8);
  opacity: 0; animation: pgPrayRise 6s linear infinite;
}
@keyframes pgPrayRise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .8; }
  80% { opacity: .2; }
  100% { transform: translateY(-130px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-pray-glow, .pg-pray-svg, .pg-pray-particles span { animation: none !important; }
}
@media (max-width: 991px) { .pg-locs-flex { gap: 0; } }

/* ---- generic sections ---- */
.pg-section { padding-block: clamp(3.5rem,4vw,6rem); }
.pg-section-dark { background: var(--pg-night); color: var(--pg-night-ink); }
.pg-section-dark h2 { color: #fbf8f2; }

footer.pg-footer { background: var(--pg-bg-sunk); border-top: 1px solid var(--pg-line); padding-block: 3rem 1.5rem; }
.pg-footer h5 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-ink-faint); font-weight: 700; margin-bottom: 0.9rem; }
.pg-footer ul li { margin-bottom: 0.5rem; }
.pg-footer ul a { color: var(--pg-ink-soft); text-decoration: none; }
.pg-footer ul a:hover { color: var(--pg-accent); }
.pg-foot-social { display: flex; gap: 0.6rem; }
.pg-foot-social a { width: 30px; height: 30px; border: 1px solid var(--pg-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pg-ink-soft); }
.pg-foot-social a:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.pg-foot-bottom { border-top: 1px solid var(--pg-line); font-size: 0.78rem; color: var(--pg-ink-faint); }

/* ---- give ---- */
.pg-give-card { background: rgba(247,244,238,.04); border: 1px solid rgba(247,244,238,.14); border-radius: 4px; padding: 1.4rem; height: 100%; }
.pg-give-card h3 { font-size: 1.05rem; color: #fbf8f2; margin: 0; }
.pg-give-card p { font-size: 0.86rem; color: #b7bad6; margin-top: 0.6rem; }

/* ---- contact ---- */
.pg-contact-list li { padding-block: 0.9rem; border-top: 1px solid var(--pg-line); }
.pg-contact-list li:last-child { border-bottom: 1px solid var(--pg-line); }
.pg-contact-list strong { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pg-ink-faint); font-weight: 700; }

/* ---- founders / team ---- */
.pg-founder-card { background: #fff; border: 1px solid var(--pg-line); border-radius: 4px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.pg-founder-photo { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.pg-founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.pg-founder-body { padding: 1.1rem 1.25rem 1.25rem; min-width: 0; }
.pg-founder-designation { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pg-accent); }
.pg-founder-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-top: 0.2rem; }
.pg-founder-bio { color: var(--pg-ink-soft); font-size: 0.82rem; margin-top: 0.4rem; line-height: 1.4; }
.pg-founder-links { margin-top: 0.6rem; display: flex; gap: 0.5rem; }
.pg-founder-links a { width: 26px; height: 26px; border: 1px solid var(--pg-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pg-ink-soft); font-size: 0.75rem; }
.pg-founder-links a:hover { border-color: var(--pg-accent); color: var(--pg-accent); }

.pg-team-mini { display: flex; align-items: center; gap: 1rem; }
.pg-team-mini img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* ---- ministries: asymmetric bento grid ---- */
.pg-min-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, clamp(160px, 22vw, 230px));
  gap: 0.65rem;
}
.pg-min-bento .pg-min-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.pg-min-bento .pg-min-card:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.pg-min-bento .pg-min-card:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.pg-min-bento .pg-min-card:nth-child(4) { grid-column: 3 / 4; grid-row: 2 / 3; }
.pg-min-bento .pg-min-card:nth-child(5) { grid-column: 4 / 5; grid-row: 2 / 3; }
.pg-min-bento .pg-min-card:nth-child(6) { grid-column: 1 / 5; grid-row: 3 / 4; }

.pg-min-card { position: relative; display: block; overflow: hidden; border-radius: 4px; background: var(--pg-night); }
.pg-min-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pg-min-card:hover img { transform: scale(1.09); }
.pg-min-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,5,4,.9) 0%, rgba(6,5,4,.15) 55%, transparent 75%); transition: background .25s ease; }
.pg-min-card-noimg::after { background: linear-gradient(160deg, var(--pg-night) 0%, #241a3d 60%, var(--pg-accent-2) 145%); }
.pg-min-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3;
  background: var(--pg-accent-fill); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.pg-min-card:hover::before { transform: scaleX(1); }
.pg-min-card .pg-min-body {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.1rem; color: #f7f4ee;
  background: linear-gradient(0deg, rgba(6,5,4,.78) 0%, rgba(6,5,4,.5) 55%, rgba(6,5,4,0) 100%);
}
.pg-min-index { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--pg-accent-fill); opacity: 0.9; }
.pg-min-card:nth-child(1) h3 { font-size: 1.4rem; }
.pg-min-card h3 { font-size: 1rem; margin: 0.2rem 0 0; font-family: var(--font-display); font-weight: 600; }
.pg-min-card p { font-size: 0.82rem; color: #d8d4c8; margin-top: 0.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-min-more { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pg-accent-fill); margin-top: 0.6rem; }
.pg-min-more i { transition: transform .2s ease; }
.pg-min-card:hover .pg-min-more i { transform: translateX(3px); }

@media (max-width: 767px) {
  .pg-min-bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .pg-min-bento .pg-min-card { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4/3; }
  .pg-min-bento .pg-min-card:nth-child(1), .pg-min-bento .pg-min-card:nth-child(6) { grid-column: 1 / 3 !important; aspect-ratio: 16/9; }
}

/* ---- sermons ---- */
.pg-sermon-card { border: 1px solid var(--pg-line); border-radius: 4px; overflow: hidden; background: #fff; height: 100%; }
.pg-sermon-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000; }
.pg-sermon-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pg-sermon-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.15); }
.pg-sermon-play span { width: 46px; height: 46px; border-radius: 50%; background: rgba(16,19,42,0.75); display: flex; align-items: center; justify-content: center; color: #fff; }
.pg-sermon-body { padding: 1rem 1.1rem; }
.pg-sermon-body h3 { font-size: 0.98rem; font-weight: 600; margin: 0; font-family: var(--font-body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-sermon-body .date { font-size: 0.78rem; color: var(--pg-ink-faint); margin-top: 0.3rem; }

@media (max-width: 575px) {
  .pg-sermon-play span { width: 34px; height: 34px; }
  .pg-sermon-play svg, .pg-sermon-play span { font-size: 0.7rem; }
  .pg-sermon-body { padding: 0.65rem 0.7rem; }
  .pg-sermon-body h3 { font-size: 0.8rem; -webkit-line-clamp: 3; }
  .pg-sermon-body .date { font-size: 0.7rem; margin-top: 0.2rem; }
  .pg-duration-badge, .pg-cat-badge { font-size: 0.58rem; padding: 0.15em 0.4em; }
  .row.g-4 { --bs-gutter-x: 0.6rem; --bs-gutter-y: 0.9rem; }
}
