/* ======================================
   ROOT COLORS + GLOBAL LAYOUT
====================================== */
:root {
  --nav-h: 70px;
  --brand: #0f1b4c;      /* Navy */
  --accent: #d4af37;     /* Gold */
  --ink: #0c1322;
  --muted: #5a6275;
  --cream: #f7f2e6;
  --ink-dark: #0b1224;
  --slate: #101828;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--ink);
  background: #f7f8fb;
  line-height: 1.6;
  padding-top: var(--nav-h);
}

section {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ======================================
   NAV BAR — NAVY + GOLD
====================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* Gold bar under nav */
.site-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #b58e00, #ffd700, #b58e00);
  box-shadow: 0 0 12px rgba(212,175,55,0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
}

.brand img { height: 28px; }

/* Nav links */
.site-nav nav a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: color .25s ease;
}

.site-nav nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #e6c764;
  transition: width .3s ease;
}

.site-nav nav a:hover {
  color: #e6c764;
}

.site-nav nav a:hover::after {
  width: 100%;
}

/* GIVE button pulse */
.btn-give {
  padding: 10px 26px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  margin-left: 20px;
  letter-spacing: 0.7px;
  animation: givePulse 2.7s ease-in-out infinite;
}

@keyframes givePulse {
  0% { box-shadow: 0 0 0 rgba(212,175,55,0); transform: scale(1); }
  50% { box-shadow: 0 0 18px rgba(212,175,55,0.5); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 rgba(212,175,55,0); transform: scale(1); }
}

/* ======================================
   HERO SECTION
====================================== */
.hero-balanced {
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 90px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0f1b4c, #1d2d64, #0f1b4c);
}

/* Hero video */
.hero-balanced .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: brightness(0.6);
  z-index: -2;
  animation: slowZoom 22s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Heavenly beam effect */
.hero-balanced::before {
  content: "";
  position: absolute;
  top: -20%; left: 50%;
  width: 60%; height: 130%;
  transform: translateX(-50%) rotate(8deg);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,215,120,0.05) 45%,
    transparent 80%
  );
  filter: blur(24px);
  opacity: 0.6;
  z-index: -1;
}

/* Title */
.hero-title-halo {
  font-family: "Cinzel", serif;
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 16px rgba(212,175,55,0.7);
  animation: haloGlow 4s ease-in-out infinite;
}

@keyframes haloGlow {
  0% { filter: drop-shadow(0 0 6px #d4af37); }
  50% { filter: drop-shadow(0 0 16px #ffd978); }
  100% { filter: drop-shadow(0 0 6px #d4af37); }
}

/* ======================================
   PARALLAX BASE CLASS
====================================== */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ======================================
   HIGHLIGHTS — PARALLAX + LOGOS + GALLERY
====================================== */

#media-gallery.parallax-section {
  background-image: url("assets/highlights-parallax.png") !important;
  padding: 140px 0;
}

#media-gallery.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
}

#media-gallery .container {
  position: relative;
  z-index: 2;
}

/* Side Logos — tighter spacing */
.gallery-with-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px !important;    /* ← MUCH closer */
  margin-bottom: 18px !important;
}

/* Smaller logo size for better proportion */
.gallery-side-logo {
  height: 75px !important;   /* ← smaller, looks cleaner */
  width: auto;
}


/* Fade only when visible */
.gallery-with-logos.in-view .left {
  animation: fadeLeft 1.4s ease forwards;
}

.gallery-with-logos.in-view .right {
  animation: fadeRight 1.4s ease forwards;
}

@keyframes fadeLeft {
  0% { opacity: 0; transform: translateX(-40px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes fadeRight {
  0% { opacity: 0; transform: translateX(40px) scale(0.9); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/*** Gallery Size (medium) ***/
.slideshow-container,
#slideshowContainer {
  width: 100%;
  max-width: 850px;
  height: 440px;
  margin: 24px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Center the Highlights text block */
#media-gallery .hero-media {
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto;
}

#media-gallery h2.section-header,
#media-gallery p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ======================================
   PLAN YOUR VISIT — PARALLAX
====================================== */
#visit.parallax-section {
  background-image: url("assets/pastor34.JPG");
  position: relative;
}

#visit.parallax-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* Title */
#visit .section-header {
  color: #fff;
  text-shadow: 0 0 14px rgba(0,0,0,0.8);
}

/* Cards */
#visit .card {
  background: #ffffffee;
  border: 3px solid rgba(212,175,55,0.85);
  border-radius: 20px;
  padding: 22px;
  opacity: 0;
  transform: translateY(35px);
  animation: visitUp 1s ease forwards;
}

#visit .card:nth-child(1) { animation-delay: .2s; }
#visit .card:nth-child(2) { animation-delay: .35s; }

@keyframes visitUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   ABOUT — ARCTIC THEME
====================================== */
#about.theme-dots {
  background: linear-gradient(135deg, #e8f4ff, #d9f1ff, #cce7f6);
  position: relative;
}

#about.theme-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.6), rgba(255,255,255,0.1) 60%, transparent);
}

/* ======================================
   MINISTRIES — 2 ROW GRID
====================================== */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .ministries-grid { grid-template-columns: repeat(2, 1fr); }
}

#ministries .card {
  background: #fff;
  border: 2px solid rgba(212,175,55,0.55);
  box-shadow: 0 8px 16px rgba(0,0,0,0.22);
  border-radius: 16px;
}

/* ======================================
   FOOTER
====================================== */
.site-footer {
  background: var(--brand);
  color: #fff;
  padding: 48px 0;
}

/* ======================================
   BACK TO TOP BUTTON
====================================== */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
