/* ============================================================
   MUSKEGON CHURCH OF THE BRETHREN — STYLESHEET
   Design: Modern Church | Navy + Gold | 2024
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  --primary:       #1B3870;
  --primary-dark:  #0f2248;
  --primary-light: #2d5ba3;
  --gold:          #C8A951;
  --gold-light:    #e8c86a;
  --gold-dark:     #a8892f;
  --cream:         #FAF8F3;
  --cream-dark:    #F0EDE4;
  --dark:          #1C1C2E;
  --dark-mid:      #2e2e45;
  --text:          #333340;
  --text-light:    #6b6b80;
  --text-muted:    #9999aa;
  --white:         #ffffff;
  --success:       #2d8a4e;
  --error:         #c0392b;
  --warning:       #e67e22;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.20);

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: 0.3s ease;
  --nav-height: 72px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--primary-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text); }

.text-gold    { color: var(--gold); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-light   { font-weight: 300; }
.italic       { font-style: italic; }

/* ---- Container ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-danger:hover { background: #a93226; transform: translateY(-2px); }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold); color: var(--primary-dark); }
.badge-navy { background: var(--primary); color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.nav-brand-sub {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}
.nav-links .btn { margin-left: 8px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--primary-dark);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-mobile a:hover { background: rgba(255,255,255,0.1); color: var(--gold-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #1e4d9a 70%, #0d2347 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Large faded cross on right side of hero */
.hero::after {
  content: '\271D';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38rem;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  font-family: var(--font-heading);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,169,81,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(200,169,81,0.06);
  animation: float 8s ease-in-out infinite;
}
.hero-particles::before {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
}
.hero-particles::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '\271D';
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.7;
}
.hero h1 {
  color: var(--white);
  max-width: 720px;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 88px 0; }
.section-cream  { background: var(--cream); }
.section-white  { background: var(--white); }
.section-dark   { background: var(--dark); }
.section-navy   { background: var(--primary-dark); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { color: var(--text-light); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px auto 0;
  color: var(--gold);
  font-size: 1.05rem;
}
.section-divider::before,
.section-divider::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  border-radius: 2px;
}
.section-divider::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---- Cross watermark on section backgrounds ---- */
.cross-watermark {
  position: relative;
  overflow: hidden;
}
.cross-watermark > .container { position: relative; z-index: 1; }
.cross-watermark::after {
  content: '\271D';
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24rem;
  line-height: 1;
  color: rgba(200,169,81,0.065);
  font-family: var(--font-heading);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.cross-watermark-left::after {
  right: auto;
  left: 40px;
}

/* ---- Scripture verse box ---- */
.scripture-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  padding: 52px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(200,169,81,0.2);
}
.scripture-box::before {
  content: '\271D';
  position: absolute;
  font-size: 24rem;
  font-family: var(--font-heading);
  line-height: 1;
  color: rgba(255,255,255,0.04);
  top: -60px;
  left: -50px;
  pointer-events: none;
}
.scripture-box::after {
  content: '\271D';
  position: absolute;
  font-size: 16rem;
  font-family: var(--font-heading);
  line-height: 1;
  color: rgba(200,169,81,0.09);
  bottom: -40px;
  right: -20px;
  pointer-events: none;
}
.scripture-box blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 16px;
}
.scripture-box cite {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .scripture-box { padding: 36px 24px; }
}

/* ---- Three-cross decorative break between sections ---- */
.cross-break {
  display: flex;
  align-items: center;
  padding: 40px 0;
  background: var(--cream);
}
.cross-break::before,
.cross-break::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-dark);
}
.cross-break-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  color: var(--gold);
  font-size: 1.05rem;
  opacity: 0.7;
}

/* ---- Page-hero cross background ---- */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '\271D';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  font-family: var(--font-heading);
  pointer-events: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; color: var(--primary-dark); }
.card p  { color: var(--text-light); font-size: 0.95rem; }

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ============================================================
   SERVICE TIMES (home)
   ============================================================ */
.service-bar {
  background: var(--gold);
  padding: 20px 0;
}
.service-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.service-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-bar-item i { font-size: 1.1rem; }
.service-bar-sep { width: 1px; height: 24px; background: rgba(15,34,72,0.25); }

/* ============================================================
   WELCOME / ABOUT SECTION
   ============================================================ */
.welcome-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.welcome-text h2 { margin-bottom: 16px; }
.welcome-text p  { color: var(--text-light); margin-bottom: 16px; font-size: 1.02rem; }
.welcome-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.welcome-quote p {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--primary-dark);
  margin: 0;
}
.welcome-visual {
  position: relative;
}
.welcome-cross {
  width: 100%;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.welcome-cross::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(200,169,81,0.2), transparent 60%);
}
.cross-symbol {
  position: relative;
  z-index: 1;
  font-size: 7rem;
  color: rgba(255,255,255,0.15);
  font-family: var(--font-heading);
  line-height: 1;
}
.cross-text {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
}
.cross-text p {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-light);
}

/* ============================================================
   PASTOR SECTION
   ============================================================ */
.pastor-section { background: var(--white); }
.pastor-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: start;
}
.pastor-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pastor-photo {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.3);
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pastor-photo-badge {
  position: absolute;
  bottom: 8px;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.pastor-name-plate {
  text-align: center;
}
.pastor-name-plate h4 { color: var(--primary-dark); font-size: 1.1rem; }
.pastor-name-plate span { color: var(--text-muted); font-size: 0.8rem; }
.pastor-bio h2 { margin-bottom: 16px; }
.pastor-bio p   { color: var(--text-light); font-size: 1rem; margin-bottom: 14px; }
.pastor-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pastor-values span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
}

/* Pastor & wife — side-by-side portraits */
.pastor-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pastor-duo {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.pastor-duo .pastor-photo {
  width: 168px; height: 168px;
  font-size: 4.2rem;
}

/* Mirrored layout — bio left, portrait right */
.pastor-layout-alt { grid-template-columns: 1fr auto; }
.pastor-layout-alt .pastor-photo-wrap { order: 2; }

/* Keep value pills readable on cream backgrounds */
.section-cream .pastor-values span { background: var(--white); }

/* Joint statement from the pastor & his wife */
.pastor-together {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pastor-together p {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--primary-dark);
  margin: 0;
}

/* ============================================================
   MUSIC SECTION
   ============================================================ */
.music-section { background: var(--primary-dark); color: var(--white); }
.music-section h2 { color: var(--white); }
.music-section .section-eyebrow { color: var(--gold-light); }
.music-section p { color: rgba(255,255,255,0.75); }
.music-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.music-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}
.music-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.music-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  color: var(--primary-dark);
}
.music-card h3 { color: var(--white); margin-bottom: 8px; font-size: 1.1rem; }
.music-card p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* ============================================================
   SERMONS — PUBLIC PAGE
   ============================================================ */
.sermons-page { background: var(--cream); }
.sermon-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}
.sermon-search {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.sermon-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
.sermon-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,56,112,0.1);
}
.sermon-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sermon-list { display: flex; flex-direction: column; gap: 20px; }
.sermon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.sermon-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.sermon-card-body {
  padding: 24px 28px;
}
.sermon-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sermon-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sermon-card h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.sermon-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 0;
}
.sermon-pastor {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 500;
}

/* Audio Player */
.sermon-player {
  background: var(--primary-dark);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.player-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.player-btn:hover { background: var(--gold-light); transform: scale(1.08); }
.player-btn.playing i::before { content: '\f04c'; } /* pause icon */

.player-progress-wrap { flex: 1; min-width: 100px; }
.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.player-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.1s linear;
  width: 0%;
}
.player-progress:hover .player-progress-bar { filter: brightness(1.15); }

.player-actions { display: flex; gap: 10px; }
.player-action-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.player-download { background: rgba(255,255,255,0.1); color: var(--white); }
.player-download:hover { background: rgba(255,255,255,0.2); }

.sermon-empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-muted);
}
.sermon-empty i { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.3; }
.sermon-empty p { font-size: 1.05rem; }

/* ============================================================
   CONTACT SECTION / PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { color: var(--text-light); margin-bottom: 28px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--primary-dark); font-size: 0.85rem; margin-bottom: 2px; }
.contact-item-text span  { color: var(--text-light); font-size: 0.93rem; }

/* Map embed */
.map-embed {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream-dark);
  border: none;
  display: block;
  box-shadow: var(--shadow);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,56,112,0.1);
}
textarea.form-input { min-height: 120px; resize: vertical; }

/* Checkbox row (e.g. "share publicly") */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox span {
  font-size: 0.9rem;
  color: var(--text);
}

/* Honeypot field — hidden from sighted users and screen readers, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ============================================================
   PRAYER WALL
   ============================================================ */
.prayer-list { display: flex; flex-direction: column; gap: 16px; }
.prayer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow var(--transition), transform var(--transition);
}
.prayer-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prayer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.prayer-location {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.02em;
}
.prayer-location i { margin-right: 4px; }
.prayer-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.prayer-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.prayer-details {
  color: var(--text-light);
  font-size: 0.94rem;
  margin-bottom: 12px;
}
.prayer-focus-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.prayer-focus-box i { color: var(--gold-dark); margin-top: 2px; }
.prayer-card-footer { display: flex; justify-content: flex-end; }
.pray-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.pray-btn:hover:not(:disabled) { background: var(--gold); }
.pray-btn.prayed {
  background: var(--cream);
  border-color: var(--cream-dark);
  color: var(--gold-dark);
  cursor: default;
}
.pray-btn:disabled { cursor: default; }

.prayer-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}
.prayer-empty i { font-size: 3rem; margin-bottom: 14px; opacity: 0.3; }
.prayer-empty p { font-size: 1rem; }

/* Admin — Prayer Request moderation list */
.admin-prayer-list { display: flex; flex-direction: column; gap: 12px; }
.admin-prayer-item {
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
}
.admin-prayer-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.admin-prayer-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-prayer-item-body { font-size: 0.88rem; color: var(--text); margin-bottom: 4px; }
.admin-prayer-item-body strong { color: var(--primary-dark); }
.badge-private { background: var(--dark-mid); color: var(--white); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-page { background: #f4f5f7; min-height: 100vh; padding-top: var(--nav-height); }
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 40px 24px;
}
.admin-login-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
}
.admin-login-card .lock-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin: 0 auto 24px;
}
.admin-login-card h2 { margin-bottom: 6px; font-size: 1.6rem; }
.admin-login-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-header {
  background: var(--primary-dark);
  padding: 24px 0;
  margin-bottom: 32px;
}
.admin-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h1 { color: var(--white); font-size: 1.4rem; }
.admin-body { max-width: 960px; margin: 0 auto; padding: 0 24px 60px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.admin-card h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--primary-dark); display: flex; align-items: center; gap: 10px; }
.admin-card h3 i { color: var(--gold-dark); }

.upload-form { display: flex; flex-direction: column; gap: 16px; }
.file-drop-zone {
  border: 2px dashed var(--cream-dark);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(27,56,112,0.04);
}
.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.file-drop-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 10px; }
.file-drop-zone p { color: var(--text-muted); font-size: 0.9rem; }
.file-drop-zone strong { color: var(--primary); }
.file-selected { display: none; align-items: center; gap: 10px; padding: 10px 16px; background: rgba(27,56,112,0.07); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--primary-dark); }
.file-selected i { color: var(--success); }

.upload-progress {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.progress-bar-wrap {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}
.progress-label { font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* Sermon list in admin */
.admin-sermon-list { display: flex; flex-direction: column; gap: 12px; }
.admin-sermon-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
}
.admin-sermon-item-info { flex: 1; min-width: 0; }
.admin-sermon-item-info strong { display: block; font-size: 0.9rem; color: var(--primary-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-sermon-item-info span  { font-size: 0.78rem; color: var(--text-muted); }
.admin-sermon-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Alert / Toast */
.alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
  align-items: center;
  gap: 10px;
}
.alert.show { display: flex; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ============================================================
   LATEST SERMONS PREVIEW (home)
   ============================================================ */
.sermons-preview { background: var(--white); }
.sermons-preview-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.sermon-preview-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  transition: var(--transition);
}
.sermon-preview-card:hover { background: var(--white); box-shadow: var(--shadow); transform: translateX(4px); }
.sermon-preview-icon {
  width: 50px; height: 50px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sermon-preview-info { flex: 1; min-width: 0; }
.sermon-preview-info strong { display: block; color: var(--primary-dark); font-size: 0.95rem; margin-bottom: 3px; }
.sermon-preview-info span  { font-size: 0.8rem; color: var(--text-muted); }
.sermon-preview-card .btn { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 40px; height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer ul a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--primary-dark); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.fade-in.visible { opacity: 1; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--cream-dark) 25%, #e8e5dc 50%, var(--cream-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .welcome-layout, .pastor-layout, .contact-layout { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .welcome-cross { max-width: 280px; }
  .pastor-layout { text-align: center; }
  .pastor-values { justify-content: center; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero-stats { gap: 24px; }
  .service-bar-inner { flex-direction: column; gap: 12px; }
  .service-bar-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sermon-player { flex-direction: column; }
  .player-progress-wrap { width: 100%; }
  .admin-sermon-item { flex-direction: column; align-items: flex-start; }
  .admin-login-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 24px; }
}
