/* ==========================================================================
   SAVED BY GRACE CHURCH - OFFICIAL STYLESHEET
   A Modern, Elegant, Responsive Christian Organization Website
   Theme: Christian, Faith, Grace, Worship, Fellowship, Salvation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Navy, Cream, Gold Accents */
  --navy-950: #070e19;
  --navy-900: #0a192f;
  --navy-850: #0f203c;
  --navy-800: #162a4a;
  --navy-700: #1e3a5f;
  --navy-600: #294c77;

  --gold-300: #fae188;
  --gold-400: #ecd068;
  --gold-500: #d4af37;
  /* Primary Gold Accent */
  --gold-600: #b89324;
  --gold-700: #937418;
  --gold-800: #916e05;
  --gold-900: #e7b00c;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-gradient: linear-gradient(135deg, #fae188 0%, #d4af37 50%, #937418 100%);
  --gold-subtle: rgba(212, 175, 55, 0.12);

  --cream-50: #fffdfa;
  --cream-100: #faf7f2;
  --cream-200: #f4efe6;
  --cream-300: #e9e0d1;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;

  /* Typography */
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-subheading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 8px 25px -5px rgba(212, 175, 55, 0.35);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing & Layout */
  --nav-height: 84px;
  --container-max: 1240px;
}

/* --------------------------------------------------------------------------
   2. CSS RESET & GLOBAL BASICS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream-50);
  color: var(--slate-800);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & COMMON STYLES
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.text-golden {
  color: var(--gold-500) !important;
}

.paragraph-label {
  margin: -0.5rem;
}

.version-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  margin-top: 20px;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-cream {
  background-color: var(--cream-100);
}

.section-white {
  background-color: var(--white);
}

.section-navy {
  background-color: var(--navy-900);
  color: var(--cream-50);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-subtitle::before,
.section-subtitle::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gold-500);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--slate-600);
  max-width: 650px;
  margin: 0 auto;
}

.section-lead2 {
  font-size: 1.5rem;
  color: var(--slate-800);
  max-width: 650px;
  margin: 0 auto;
}

.section-navy .section-lead {
  color: var(--slate-300);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & UI ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(212, 175, 55, 0.45);
  color: var(--navy-950);
}

.btn-secondary {
  background-color: var(--navy-900);
  color: var(--cream-50);
  border: 1px solid var(--navy-700);
}

.btn-secondary:hover {
  background-color: var(--navy-800);
  color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-300);
  border: 2px solid var(--gold-500);
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   5. TOP ANNOUNCEMENT BAR & NAVIGATION
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--navy-950);
  color: var(--cream-200);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1001;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-bar-item i {
  color: var(--gold-500);
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-bar-socials a {
  color: var(--cream-200);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.top-bar-socials a:hover {
  color: var(--gold-400);
  transform: translateY(-1px);
}

/* Main Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 25, 47, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background-color: rgba(7, 14, 25, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.4));
  transition: transform var(--transition-normal);
}

.nav-brand:hover .nav-logo-img {
  transform: scale(1.06) rotate(2deg);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.15;
}

.nav-brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-100);
  letter-spacing: 0.03em;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-300);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-only-btn {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--gold-400);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO SECTION & EPHESIANS 2:8-9
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 7.5rem 1.5rem;
  overflow: hidden;
  background-color: var(--navy-950);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.02) translateY(0);
  }

  100% {
    transform: scale(1.1) translateY(-12px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center 35%, rgba(10, 25, 47, 0.65) 0%, rgba(7, 14, 25, 0.92) 80%),
    linear-gradient(to bottom, rgba(10, 25, 47, 0.5) 0%, rgba(7, 14, 25, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-box {
  width: 110px;
  height: 110px;
  margin-bottom: 1.5rem;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(10, 25, 47, 0) 70%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--transition-slow);
}

.hero-logo-box:hover {
  transform: scale(1.06) rotate(3deg);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.hero-badge {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge::before,
.hero-badge::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--gold-400);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.85rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  display: block;
}

/* Scripture Presentation - Ephesians 2:8-9 */
.hero-verse-card {
  max-width: 780px;
  background: rgba(15, 32, 60, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.8rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.08);
  position: relative;
}

.hero-verse-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-900);
  color: var(--gold-400);
  padding: 0 1rem;
  font-size: 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero-verse-text {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.7;
  color: var(--cream-100);
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.hero-verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(212, 175, 55, 0.12);
  padding: 0.35rem 1.15rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Floating Service Strip at Hero bottom */
.hero-service-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1.2rem 2rem;
  background: rgba(10, 25, 47, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  color: var(--cream-100);
  font-size: 0.9rem;
}

.hero-service-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-service-item i {
  color: var(--gold-400);
  font-size: 1.1rem;
}

.hero-service-divider {
  width: 1px;
  height: 20px;
  background: rgba(212, 175, 55, 0.3);
}

/* --------------------------------------------------------------------------
   7. ABOUT US SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-text-content h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--navy-900);
}

.about-lead {
  font-size: 1.15rem;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.about-p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.about-highlight-card {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.about-highlight-card h4 {
  font-size: 1rem;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.about-highlight-card p {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.about-img-accent {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-500);
  box-shadow: var(--shadow-xl);
  max-width: 250px;
}

.about-img-accent .accent-number {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-img-accent .accent-label {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Pastor's Welcome Card */
.pastor-welcome-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--cream-300);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.pastor-photo-col {
  text-align: center;
}

.pastor-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  border: 4px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}

.pastor-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.pastor-role {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.pastor-message-col blockquote {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--slate-700);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--gold-500);
}

.pastor-signature {
  font-family: 'Brush Script MT', cursive, var(--font-subheading);
  font-size: 1.85rem;
  color: var(--navy-800);
  margin-top: 1rem;
}

/* Statement of Faith & Values */
.faith-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.faith-pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.faith-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.faith-pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
}

.faith-pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.faith-pillar-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.faith-pillar-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. WORSHIP SERVICES & PLAN YOUR VISIT
   -------------------------------------------------------------------------- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-500);
}

.service-card-header {
  background: var(--navy-900);
  color: var(--cream-50);
  padding: 1.75rem 2rem;
  position: relative;
  border-bottom: 3px solid var(--gold-500);
}

.service-badge {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.service-card-title {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
}

.service-card-body {
  padding: 2rem;
}

.service-time-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--slate-200);
}

.service-time-box i {
  color: var(--gold-600);
  font-size: 1.35rem;
}

.service-desc {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--slate-700);
}

.service-meta-item i {
  color: var(--success);
  font-size: 0.95rem;
}

/* Visitor Guide Card */
.visitor-welcome-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-850) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.visitor-welcome-banner h3 {
  color: var(--white);
  font-size: 2.15rem;
  margin-bottom: 1rem;
}

.visitor-welcome-banner p {
  color: var(--cream-200);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.visitor-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.visitor-perk {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.visitor-perk-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.visitor-perk h5 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.visitor-perk p {
  font-size: 0.825rem;
  color: var(--slate-300);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. MINISTRIES SECTION
   -------------------------------------------------------------------------- */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.25rem;
}

.ministry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.ministry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.ministry-thumb-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.ministry-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.ministry-card:hover .ministry-thumb {
  transform: scale(1.08);
}

.ministry-icon-badge {
  position: absolute;
  bottom: -22px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  border: 2px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.ministry-card-body {
  padding: 2.25rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ministry-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.ministry-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  color: var(--navy-900);
}

.ministry-card-desc {
  color: var(--slate-600);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

.ministry-card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ministry-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
  font-weight: 700;
  font-size: 0.9rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.ministry-learn-more i {
  color: var(--gold-500);
  transition: transform var(--transition-fast);
}

.ministry-card:hover .ministry-learn-more {
  color: var(--gold-600);
}

.ministry-card:hover .ministry-learn-more i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   10. UPCOMING EVENTS SECTION
   -------------------------------------------------------------------------- */
/* Featured Event Countdown Hero */
.featured-event-banner {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(15, 32, 60, 0.92) 100%),
    url('../images/event-1.jpg') center/cover no-repeat;
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-xl);
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  color: var(--white);
}

.featured-event-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--navy-950);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.featured-event-title {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.featured-event-desc {
  color: var(--cream-200);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.featured-event-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--cream-100);
}

.featured-event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-event-meta i {
  color: var(--gold-400);
}

/* Countdown Clock */
.countdown-box {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.countdown-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.countdown-segment {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
}

.countdown-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  display: block;
  margin-bottom: 0.3rem;
}

.countdown-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-300);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.event-thumb-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.event-card:hover .event-thumb {
  transform: scale(1.06);
}

.event-date-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-500);
}

.event-date-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-300);
  font-weight: 800;
}

.event-date-day {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.event-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.event-meta i {
  color: var(--gold-500);
}

.event-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}

.event-card-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   11. SERMONS AND MESSAGES SECTION
   -------------------------------------------------------------------------- */
.sermon-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.sermon-filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}

.sermon-filter-btn:hover,
.sermon-filter-btn.active {
  background: var(--navy-900);
  color: var(--gold-300);
  border-color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-400);
}

.sermon-thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.sermon-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sermon-card:hover .sermon-thumb {
  transform: scale(1.06);
}

.sermon-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.sermon-card:hover .sermon-play-overlay {
  opacity: 1;
}

.sermon-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-gold);
  transform: scale(0.85);
  transition: transform var(--transition-normal);
}

.sermon-card:hover .sermon-play-btn {
  transform: scale(1);
}

.sermon-duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 25, 47, 0.85);
  color: var(--white);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.sermon-series-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.sermon-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sermon-scripture {
  font-size: 0.82rem;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sermon-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--navy-900);
}

.sermon-speaker {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sermon-date {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.sermon-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   12. PHOTO GALLERY SECTION & LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.gallery-filter-btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--white);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  background: var(--slate-800);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.2) 60%, rgba(10, 25, 47, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-cat {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.gallery-overlay-title {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
}

.gallery-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 14, 25, 0.96);
  backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.lightbox-caption-bar {
  margin-top: 1rem;
  text-align: center;
  color: var(--cream-100);
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.lightbox-counter {
  font-size: 0.85rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--cream-100);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--gold-400);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2001;
}

.lightbox-nav-btn:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* --------------------------------------------------------------------------
   13. CONTACT US SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
}

.contact-card-box h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-content h5 {
  font-size: 0.95rem;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.contact-detail-content p,
.contact-detail-content a {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.5;
}

.contact-detail-content a:hover {
  color: var(--gold-600);
}

/* Prayer Request Highlight Card */
.prayer-callout-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-850) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-lg);
}

.prayer-callout-card h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.prayer-callout-card h4 i {
  color: var(--gold-400);
}

.prayer-callout-card p {
  color: var(--cream-200);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Map Embed */
.map-embed-wrapper {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  height: 230px;
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xl);
}

.contact-form-card h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.contact-form-card p {
  color: var(--slate-600);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.45rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  color: var(--slate-800);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error-msg {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--error);
  background-color: #fef2f2;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--slate-600);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-600);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   14. FOOTER SECTION
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--navy-950);
  color: var(--cream-100);
  padding: 5rem 0 2rem 0;
  border-top: 2px solid rgba(212, 175, 55, 0.25);
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.2;
}

.footer-brand-desc {
  font-size: 0.92rem;
  color: var(--slate-400);
  line-height: 1.65;
  margin: -0.5rem 0;
}

.footer-motto-quote {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-300);
  border-left: 2px solid var(--gold-500);
  padding-left: 0.85rem;
  margin-top: 0.5rem;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-500);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--slate-300);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a i {
  font-size: 0.75rem;
  color: var(--gold-500);
  transition: transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-300);
  transform: translateX(4px);
}

.footer-service-times {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-service-slot h5 {
  font-size: 0.9rem;
  color: var(--cream-100);
  margin-bottom: 0.2rem;
}

.footer-service-slot p {
  font-size: 0.82rem;
  color: var(--gold-300);
}

.footer-newsletter-text {
  font-size: 0.88rem;
  color: var(--slate-400);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.88rem;
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--slate-400);
}

.footer-statement {
  font-family: var(--font-heading);
  color: var(--gold-300);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. INTERACTIVE MODALS & TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 14, 25, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--slate-200);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  /* for sticky exit btn   */
  position: sticky;
  /* change it to absolute as the original code */
  float: right;
  margin: 20px 20px -56px 0;
  /* for sticky exit btn   */
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--navy-900);
  color: var(--gold-300);
}

.modal-header {
  padding: 2.5rem 2.5rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.modal-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--slate-600);
  font-size: 0.95rem;
}

.modal-body {
  padding: 2rem 2.5rem 2.5rem 2.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: var(--navy-900);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.toast-message i {
  color: var(--gold-400);
  font-size: 1.15rem;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.success i {
  color: var(--success);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  border: 1.5px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* --------------------------------------------------------------------------
   16. SCROLL ANIMATION UTILITY
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE DESIGN & MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-img-main {
    height: 380px;
  }

  .pastor-welcome-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .pastor-message-col blockquote {
    padding-left: 0;
    border-left: none;
    border-top: 2px solid var(--gold-500);
    padding-top: 1.5rem;
  }

  .visitor-welcome-banner,
  .featured-event-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 72px;
  }

  .top-bar {
    display: none;
    /* Hide topbar on mobile for compact header */
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(7, 14, 25, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
    /* Hide navbar CTA on small screen, accessible inside drawer */
  }

  .nav-actions #navDailyVerseBtn {
    display: inline-flex;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .nav-menu .mobile-only-btn {
    display: flex;
    width: 100%;
    margin-top: 1rem;
  }

  .hero-verse-card {
    padding: 2rem 1.5rem;
  }

  .hero-service-banner {
    flex-direction: column;
    gap: 0.85rem;
    border-radius: var(--radius-lg);
  }

  .hero-service-divider {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .nav-actions #navDailyVerseBtn span {
    display: none;
  }

  .nav-actions #navDailyVerseBtn {
    padding: 0.45rem 0.65rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .about-highlights,
  .visitor-perks-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 2rem 1.5rem;
  }

  .pastor-welcome-card {
    padding: 2rem 1.5rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   19. DAILY BIBLE VERSE SPLASH PAGE & MODAL OVERLAY
   ========================================================================== */

/* Splash Screen Container */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(15, 32, 60, 0.95) 0%, rgba(7, 14, 25, 0.98) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Hidden State */
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
}

/* Early skip rule when visitor chose 'don't show today' */
html.splash-already-dismissed .splash-screen:not(.show-forced) {
  display: none !important;
}

/* Lock page scrolling while splash is active */
body.splash-active {
  overflow: hidden !important;
}

/* Ambient Ray Background / Glow Accent */
.splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(850px, 92vw);
  height: min(850px, 92vw);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  animation: splashPulse 7s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.94);
    opacity: 0.75;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
}

/* Top Skip / Close Button */
.splash-skip-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--cream-200);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.splash-skip-btn:hover {
  background: var(--gold-gradient);
  color: var(--navy-950);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Main Splash Card */
.splash-card {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
  background: rgba(10, 25, 47, 0.90);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  text-align: center;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: auto;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Church Brand Header */
.splash-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.splash-logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 7px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, rgba(10, 25, 47, 0.9) 100%);
  border: 2px solid var(--gold-400);
  box-shadow: 0 0 25px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-church-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--white);
  text-transform: uppercase;
  margin: 0;
}

.splash-church-title span {
  color: var(--gold-400);
}

.splash-church-subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);

  margin: 0;
}

.splash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

/* Scripture Presentation Box */
.splash-scripture-box {
  position: relative;
  background: rgba(15, 32, 60, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem 2rem;
  margin-bottom: 1.6rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.splash-quote-icon {
  font-size: 2rem;
  color: var(--gold-400);
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.splash-verse-text {
  font-family: var(--font-subheading);
  font-size: 1.38rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--cream-50);
  font-style: italic;
  margin: 0 0 1.25rem 0;
  max-width: 600px;
}

.splash-verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  font-style: normal;
  text-transform: uppercase;
}

/* Verse Toolbar Buttons */
.splash-verse-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.splash-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--slate-300);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.splash-tool-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-1px);
}

.splash-tool-btn.active {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}

/* Loading / Shimmer State */
.splash-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  padding: 2.5rem 0;
}

.splash-spinner {
  width: 44px;
  height: 44px;
  border: 3.5px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: splashSpin 0.9s linear infinite;
}

@keyframes splashSpin {
  to {
    transform: rotate(360deg);
  }
}

/* CTA Footer */
.splash-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.splash-enter-btn {
  width: 100%;
  max-width: 440px;
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
  cursor: pointer;
}

.splash-remember-box {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--slate-400);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-fast);
}

.splash-remember-box input[type="checkbox"] {
  accent-color: var(--gold-500);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.splash-remember-box:hover {
  color: var(--cream-100);
}

/* Top bar / Navbar triggers */
.top-bar-verse-link:hover span {
  color: var(--gold-400) !important;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .splash-card {
    padding: 2rem 1.25rem 1.75rem 1.25rem;
  }

  .splash-verse-text {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .splash-verse-ref {
    font-size: 0.92rem;
  }

  .splash-church-title {
    font-size: 0.98rem;
  }

  .splash-skip-btn {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .splash-enter-btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }

  .text-gold {
    color: var(--gold-400);
  }
}

/* ==========================================================================
   CHURCH MEMBERS BUTTON & MODAL
   ========================================================================== */
.members-cta {
  text-align: center;
  margin-top: 1rem;
}

.members-modal-window {
  max-width: 1000px;
}

.members-modal-header {
  text-align: center;
  padding: 3rem 2.5rem 1rem;
}

.members-modal-header h3 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy-950);
  margin-top: 0.5rem;
}

.members-modal-body {
  padding: 1.5rem 2.5rem 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.team-photo {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-500);
  box-shadow: var(--shadow-md);
}

.team-info {
  min-width: 0;
}

.team-name {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  color: var(--navy-900);
}

.team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.75rem;
}

.team-detail {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

.team-detail strong {
  color: var(--navy-800);
}

@media (max-width: 820px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .members-modal-body {
    padding: 1rem 1.5rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .team-member {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   END PART OF CHURCH MEMBERS BUTTON & MODAL
   ========================================================================== */

/* ==========================================================================
   CHURCH HISTORY MODAL
   ========================================================================== */
.history-modal-window {
  max-width: 720px;
}

.history-timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold-500);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.history-item {
  position: relative;
}

.history-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold-500);
}

.history-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.2rem;
}

.history-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--navy-900);
}

.history-content p {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   END PART OF CHURCH HISTORY MODAL
   ========================================================================== */

.history-closing {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gold-500);
}

.history-closing-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.history-closing-ref {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-800);
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   MEMBERS INFINITE PHOTO CAROUSEL
   ========================================================================== */
.member-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
  padding: 1.75rem 0 3rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.member-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}

.member-marquee:hover .member-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  margin-right: 2rem;
  text-align: center;
}

.marquee-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-500);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), filter var(--transition-normal);
  filter: grayscale(25%);
}

.marquee-item:hover .marquee-photo {
  transform: scale(1.18) translateY(-6px);
  border-color: var(--gold-300);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.25), 0 14px 30px rgba(212, 175, 55, 0.45);
  filter: grayscale(0%);
}

.marquee-name {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.marquee-item:hover .marquee-name {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 540px) {
  .marquee-item {
    width: 100px;
    margin-right: 1.25rem;
  }

  .marquee-photo {
    width: 100px;
    height: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member-marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   END OF MEMBERS INFINITE PHOTO CAROUSEL
   ========================================================================== */

.marquee-item {
  cursor: pointer;
}

.marquee-item:focus-visible .marquee-photo {
  transform: scale(1.18) translateY(-6px);
  border-color: var(--gold-300);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.4);
  outline: none;
}

/* Highlight the member that was clicked in the modal */
.team-member.member-highlight {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.35), var(--shadow-xl);
  animation: memberPulse 1.6s ease-out 1;
}

@keyframes memberPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7), var(--shadow-xl);
  }

  100% {
    box-shadow: 0 0 0 14px rgba(212, 175, 55, 0), var(--shadow-xl);
  }
}

/* ==========================================================================
   CAROUSEL -> MODAL TRANSITION
   ========================================================================== */
.fly-photo {
  position: fixed;
  z-index: 3500;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold-500);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition:
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

/* Slower, softer modal fade when opened from the carousel */
#membersModal.from-carousel {
  transition: opacity 0.6s ease;
}

#membersModal.from-carousel .modal-window {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   STATEMENT OF FAITH - STACKED CARDS
   ========================================================================== */
.faith-pillars-grid {
  --faith-card-h: 390px;
}

.faith-pillars-grid.is-stacked {
  grid-template-columns: repeat(var(--faith-cols, 3), 1fr);
  grid-template-rows: var(--faith-card-h);
  padding-bottom: 80px;
  /* room for the stacked layers peeking below */
}

.faith-pillars-grid.is-stacked .faith-pillar-card {
  grid-column: var(--col);
  grid-row: 1;
  height: var(--faith-card-h);
  overflow: hidden;
  cursor: pointer;
  transform-origin: top center;
  transform: translateY(calc(var(--depth) * 30px)) scale(calc(1 - var(--depth) * 0.05));
  z-index: calc(10 - var(--depth));
  filter: brightness(calc(1 - var(--depth) * 0.03));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

.faith-pillars-grid.is-stacked .faith-pillar-card.stack-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Lift the top card slightly on hover to hint it is clickable */
.faith-pillars-grid.is-stacked .faith-pillar-card.stack-top:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* "+N more" badge on the top card of each stack */
.faith-stack-badge {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-500);
}

.faith-pillars-grid.is-stacked .faith-pillar-card.stack-top .faith-stack-badge {
  display: inline-block;
}

/* Fan-out animation when expanding */
.faith-pillars-grid.is-fanning .faith-pillar-card {
  animation: faithFanOut 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 40ms);
}

@keyframes faithFanOut {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.faith-toggle-wrap {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 1100px) {
  .faith-pillars-grid {
    --faith-card-h: 370px;
  }
}

@media (max-width: 700px) {
  .faith-pillars-grid {
    --faith-card-h: 430px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faith-pillars-grid.is-fanning .faith-pillar-card {
    animation: none;
  }
}

/* Sunday schoolers carousel: 75% size, reverse flow (left -> right) */
.schoolers-marquee {
  margin-top: 1rem;
  padding: 1.3rem 0 2.5rem;
}

.schoolers-marquee .member-marquee-track {
  animation-name: marqueeScrollReverse;
}

@keyframes marqueeScrollReverse {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.schoolers-marquee .marquee-item {
  width: 97.5px;
  /* 75% of 130px */
  margin-right: 1.5rem;
  cursor: default;
}

.schoolers-marquee .marquee-photo {
  width: 97.5px;
  height: 97.5px;
  border-width: 2.5px;
}

.schoolers-marquee .marquee-name {
  font-size: 0.64rem;
  bottom: -1.5rem;
}

@media (max-width: 540px) {
  .schoolers-marquee .marquee-item {
    width: 75px;
    /* 75% of 100px */
    margin-right: 1rem;
  }

  .schoolers-marquee .marquee-photo {
    width: 75px;
    height: 75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .schoolers-marquee .member-marquee-track {
    animation: none;
  }
}

.section-title-schoolers {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.history-btn-group {
  display: flex;
  flex-wrap: nowrap;
  /* keep all three buttons in one row */
  align-items: stretch;
  gap: 0.5rem;
}

.history-btn-group .btn {
  white-space: normal;
  /* let the label wrap inside the button instead of pushing it down */
  flex: 0 1 auto;
  padding: 0.65rem 0.95rem;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  gap: 0.45rem;
}

/* On phones there isn't room for one row, so stack them */
@media (max-width: 700px) {
  .history-btn-group {
    flex-wrap: wrap;
  }

  .history-btn-group .btn {
    flex: 1 1 100%;
  }
}

.modal-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   PHOTO GALLERY - STACKED CARDS
   ========================================================================== */
.gallery-grid {
  --gallery-card-h: 280px;
}

.gallery-grid.is-stacked {
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  grid-template-rows: var(--gallery-card-h);
  padding-bottom: 80px;
  /* room for the layers peeking below */
}

.gallery-grid.is-stacked .gallery-item {
  grid-column: var(--col);
  grid-row: 1;
  transform-origin: top center;
  transform: translateY(calc(var(--depth) * 26px)) scale(calc(1 - var(--depth) * 0.05));
  z-index: calc(10 - var(--depth));
  filter: brightness(calc(1 - var(--depth) * 0.06));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, box-shadow 0.3s ease;
}

.gallery-grid.is-stacked .gallery-item.stack-hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-grid.is-stacked .gallery-item.stack-top:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* "+N more" badge on the top card of each stack */
.gallery-stack-badge {
  display: none;
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-500);
}

.gallery-grid.is-stacked {
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  grid-template-rows: var(--gallery-card-h);
  padding-bottom: 0;
  /* no peeking layers, so no extra room needed */
}

/* Fan-out animation when expanding */
.gallery-grid.is-fanning .gallery-item {
  animation: galleryFanOut 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 40ms);
}

@keyframes galleryFanOut {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-toggle-wrap {
  text-align: center;
  margin-top: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid.is-fanning .gallery-item {
    animation: none;
  }
}

/* image block */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  /* iOS long-press "Save Image" menu */
}

/* Center zoom: the photo nearest the middle grows up to 150% */
.member-marquee .marquee-photo {
  transform: scale(var(--center-scale, 1));
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), filter var(--transition-normal);
  will-change: transform;
}

/* Keep hover working on top of the zoom instead of shrinking it */
.member-marquee .marquee-item:hover .marquee-photo {
  transform: scale(calc(var(--center-scale, 1) * 1.1)) translateY(-6px);
}

/* Extra room so the enlarged photo isn't clipped by the carousel edges */
.member-marquee {
  padding-top: 2.75rem;
}

.schoolers-marquee {
  padding-top: 2rem;
}

/* CHURCH SONGS */
.songs-modal-window {
  width: 100%;
  /* <--  keeps the width fixed at all times */
  max-width: 760px;
  height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.songs-modal-window .modal-close-btn {
  position: absolute;
  float: none;
  margin: 0;
  top: 16px;
  right: 16px;
}

.songs-modal-head {
  padding: 2rem 2rem 1.1rem;
  border-bottom: 1px solid var(--slate-100);
  flex-shrink: 0;
}

.songs-modal-head h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.songs-search {
  position: relative;
}

.songs-search i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold-600);
}

.songs-search input {
  width: 100%;
  padding: .8rem 1.1rem .8rem 2.8rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--slate-50);
}

.songs-search input:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .15);
}

.songs-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.songs-count {
  margin-left: auto;
  font-size: .8rem;
  color: var(--slate-500);
}

.songs-list {
  overflow-y: auto;
  flex: 1;
  padding: 1rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.song-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.song-row:hover,
.song-row:focus-visible {
  background: var(--cream-100);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  outline: none;
}


.song-row-main {
  flex: 1;
  min-width: 0;
}

.song-row-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy-900);
  line-height: 1.3;
}

.song-row-writer {
  display: block;
  font-size: .8rem;
  color: var(--slate-500);
}

.song-lang-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-subtle);
  border: 1px solid rgba(212, 175, 55, .3);
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
}

/* Songs list theme: navy-600 background, white song titles */
.songs-modal-window {
  background: var(--navy-600);
  border-color: rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
}

.songs-modal-window .songs-modal-head {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.songs-modal-window .songs-modal-head h3 {
  color: var(--white);
}

.songs-modal-window .modal-eyebrow {
  color: var(--gold-300);
}

.songs-modal-window .modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.songs-modal-window .modal-close-btn:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.songs-modal-window .songs-search i {
  color: var(--gold-400);
}

.songs-modal-window .songs-search input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.songs-modal-window .songs-search input::placeholder {
  color: var(--slate-300);
}

.songs-modal-window .songs-search input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-500);
}

.songs-modal-window .songs-count {
  color: var(--gold-900);
}

.songs-modal-window .song-row {
  background: var(--navy-800);
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--gold-500);
}

.songs-modal-window .song-row:hover,
.songs-modal-window .song-row:focus-visible {
  background: var(--navy-900);
}

.songs-modal-window .song-row-title {
  color: var(--gold-900);
}

.songs-modal-window .song-row-writer {
  color: var(--slate-300);
}

.songs-modal-window .song-lang-badge {
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.15);
}

.songs-modal-window .songs-empty {
  color: var(--slate-300);
}


.songs-empty {
  text-align: center;
  color: var(--slate-500);
  padding: 2rem;
}

.song-lyrics {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--slate-700);
}

.song-lyrics .stanza {
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.song-lyrics .chorus {
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid var(--gold-500);
  color: var(--navy-800);
}

.song-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--slate-100);
}

.song-back-btn {
  display: block;
  margin-top: 1.25rem;
  color: var(--navy-800);
  font-weight: 600;
  font-size: .9rem;
}

.song-back-btn:hover {
  color: var(--gold-600);
}

@media (max-width:540px) {
  .songs-modal-head {
    padding: 1.5rem 1.25rem 1rem;
  }

  .songs-list {
    padding: 1rem 1.25rem 1.5rem;
  }

  .song-lang-badge {
    display: none;
  }
}

/* ==========================================================================
   HERO TITLE - DIAGONAL SHINE LOOP
   ========================================================================== */

/* Line 1: off-white base, strong gold band */
.hero-title span:first-child {
  background: linear-gradient(115deg,
      #e9e4d6 0%,
      #e9e4d6 36%,
      #d4af37 44%,
      #ffe27a 50%,
      #d4af37 56%,
      #e9e4d6 64%,
      #e9e4d6 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleShine 5s ease-in-out infinite, titleGlow 5s ease-in-out infinite;
}

/* Line 2: deeper gold base, bright white band */
.hero-title .text-gradient-gold {
  background: linear-gradient(115deg,
      #a8841c 0%,
      #a8841c 36%,
      #e7c04a 43%,
      #ffffff 50%,
      #e7c04a 57%,
      #a8841c 64%,
      #937418 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 5s ease-in-out infinite, titleGlow 5s ease-in-out infinite;

}

@keyframes titleShine {
  0% {
    background-position: 100% 0;
  }

  60% {
    background-position: 0% 0;
  }

  100% {
    background-position: 0% 0;
  }
}

@keyframes titleGlow {

  0%,
  100% {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  }

  30% {
    filter: drop-shadow(0 0 18px rgba(250, 225, 136, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .hero-title span:first-child,
  .hero-title .text-gradient-gold {
    animation: titleGlow 6s ease-in-out infinite;
  }
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

/* Stagger support (delay is set by JS) */
.reveal-on-scroll {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Variants: starting positions */
.reveal-on-scroll.reveal-left {
  transform: translateX(-70px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(70px);
}

.reveal-on-scroll.reveal-zoom {
  transform: scale(0.88);
}

.reveal-on-scroll.reveal-pop {
  transform: scale(0.6);
}

.reveal-on-scroll.reveal-blur {
  filter: blur(12px);
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

/* End state (must come after the variants) */
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Section header: gold lines grow outward */
.section-header .section-subtitle::before,
.section-header .section-subtitle::after {
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.section-header .section-subtitle::before {
  transform-origin: right;
}

.section-header .section-subtitle::after {
  transform-origin: left;
}

.section-header.revealed .section-subtitle::before,
.section-header.revealed .section-subtitle::after {
  transform: scaleX(1);
}

/* Ministry photo: slow zoom-out as the card appears */
.ministry-card .ministry-thumb {
  transform: scale(1.25);
}

.ministry-card.revealed .ministry-thumb {
  transform: scale(1);
}

.ministry-card.revealed:hover .ministry-thumb {
  transform: scale(1.08);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 3001;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {

  .reveal-on-scroll,
  .reveal-on-scroll.reveal-blur {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .ministry-card .ministry-thumb {
    transform: none;
  }
}

/* ==========================================================================
   SECTION ENTRANCE EFFECTS
   ========================================================================== */

/* Keep content above the glow */
.section>.container {
  position: relative;
  z-index: 1;
}

/* 1. Gold line sweeping across the top of the section */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-300), var(--gold-500), transparent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.section.in-view::before {
  animation: sectionLine 1.4s ease-out forwards;
}

@keyframes sectionLine {
  0% {
    transform: scaleX(0);
    opacity: 1;
  }

  60% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

/* 2. Soft gold glow at the top of the section */
.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.section.in-view::after {
  animation: sectionGlow 1.8s ease-out forwards;
}

@keyframes sectionGlow {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* 3. Section title: words rise up one by one */
.section-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
}

.section-title .word>span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 80ms + 200ms);
}

.section-header.header-in .section-title .word>span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {

  .section::before,
  .section::after {
    animation: none !important;
  }

  .section-title .word>span {
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   SIGNATURE EFFECT - DIAGONAL SHINE LOOP
   ========================================================================== */

.pastor-signature {
  background: linear-gradient(115deg,
      #000000 0%,
      #1f1f1e 36%,
      #666665 43%,
      #ffffff 50%,
      #616160 57%,
      #020202 64%,
      #000000 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 5s ease-in-out infinite, titleGlow 5s ease-in-out infinite;

}

@keyframes titleShine {
  0% {
    background-position: 100% 0;
  }

  60% {
    background-position: 0% 0;
  }

  100% {
    background-position: 0% 0;
  }
}

@keyframes titleGlow {

  0%,
  100% {
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
  }

  30% {
    filter: drop-shadow(0 0 18px rgba(250, 225, 136, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .pastor-signature {
    animation: titleGlow 6s ease-in-out infinite;
  }
}

/* ==========================================================================
   HERO CONTENT - STAGGERED ENTRANCE (replays on scroll)
   ========================================================================== */

.hero-content {
  animation: none;
}

body:not(.splash-active) .hero-content.hero-play>* {
  animation: heroItemIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(1) {
  animation: heroItemIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards,
    logoGlow 3.5s ease-in-out 1.5s infinite;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(2) {
  animation-delay: 0.3s;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(3) {
  animation-name: heroTitleIn;
  animation-duration: 1.2s;
  animation-delay: 0.5s;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(4) {
  animation-delay: 0.9s;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(5) {
  animation-delay: 1.15s;
}

body:not(.splash-active) .hero-content.hero-play> :nth-child(6) {
  animation-delay: 1.4s;
}

@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    letter-spacing: 0.22em;
    filter: blur(10px);
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    letter-spacing: 0.04em;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero-logo-box {
  animation: logoGlow 3.5s ease-in-out 1.5s infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.30);
  }

  50% {
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.65);
  }
}

@media (prefers-reduced-motion: reduce) {

  body:not(.splash-active) .hero-content.hero-play>*,
  .hero-logo-box {
    animation: none !important;
  }
}

/* ==========================================================================
   ANNOUNCEMENTS FLASH PAGE
   ========================================================================== */
.announce-screen {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, rgba(15, 32, 60, 0.94) 0%, rgba(7, 14, 25, 0.98) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.announce-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.announce-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: rgba(10, 25, 47, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 175, 55, 0.16);
  transform: translateY(0) scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.announce-screen.hidden .announce-card {
  transform: translateY(24px) scale(0.96);
}

.announce-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream-100);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.announce-close:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.announce-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
}

.announce-head h3 {
  color: var(--white);
  font-size: 1.7rem;
  margin: 0.8rem 0 1.25rem;
}

/* Slides */
.announce-stage {
  position: relative;
  min-height: 340px;
}

.announce-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.announce-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.announce-slide.leaving {
  transform: translateX(-30px);
}

.announce-media {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin: 0 auto 1.1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
}

.announce-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.announce-media i {
  font-size: 3.5rem;
  color: var(--gold-400);
}

/* No photo: keep it a small banner instead of a big empty square */
.announce-media.no-image {
  aspect-ratio: auto;
  width: 100%;
  height: 110px;
}

.announce-cat {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--gold-gradient);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.announce-title {
  color: var(--white);
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.announce-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.25rem;
  font-size: 0.88rem;
  color: var(--gold-300);
  margin-bottom: 0.7rem;
}

.announce-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.announce-text {
  color: var(--cream-200);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 480px;
}

.announce-link {
  margin-top: 0.9rem;
}

/* Controls */
.announce-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.announce-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--cream-100);
  transition: all var(--transition-fast);
}

.announce-nav:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.announce-dots {
  display: flex;
  gap: 0.5rem;
}

.announce-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: all var(--transition-normal);
}

.announce-dot.active {
  background: var(--gold-400);
  width: 26px;
  border-radius: 6px;
}

/* Auto-advance progress bar (pauses on hover) */
.announce-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin: 1rem 0 1.4rem;
  overflow: hidden;
}

.announce-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
}

.announce-progress span.run {
  animation: announceProgress 7s linear forwards;
}

.announce-card:hover .announce-progress span.run {
  animation-play-state: paused;
}

@keyframes announceProgress {
  to {
    transform: scaleX(1);
  }
}

.announce-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Single announcement: hide the slider controls */
.announce-card.is-single .announce-controls,
.announce-card.is-single .announce-progress {
  display: none;
}


@media (max-width: 540px) {
  .announce-card {
    padding: 2rem 1.1rem 1.5rem;
    max-height: calc(100dvh - 3rem);
    overflow-y: auto;
  }

  .announce-stage {
    position: relative;
  }

  .announce-media {
    width: min(100%, 260px);
  }

  .announce-title {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .announce-slide,
  .announce-card,
  .announce-screen {
    transition: none;
  }

  .announce-progress span.run {
    animation: none;
  }
}

/* Daily verse toolbar: all 5 buttons in one row */
.splash-verse-tools {
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.splash-tool-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  font-size: 0.78rem;
}

/* Small screens: icon on top, label under it, so 5 buttons still fit */
@media (max-width: 640px) {
  .splash-verse-tools {
    gap: 0.3rem;
  }

  .splash-tool-btn {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.2rem;
    font-size: 0.62rem;
    border-radius: var(--radius-md);
  }

  .splash-tool-btn i {
    font-size: 1rem;
  }
}

/* Lyrics text size controls */
.song-lyrics {
  font-size: calc(1.12rem * var(--lyrics-scale, 1));
}

.lyrics-size-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lyrics-size-btn {
  min-width: 42px;
  height: 36px;
  padding: 0 0.7rem;
  border-radius: var(--radius-full);
  background: var(--navy-900);
  color: var(--gold-300);
  border: 1px solid var(--navy-700);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.lyrics-size-btn:hover:not(:disabled) {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.lyrics-size-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lyrics-size-val {
  min-width: 46px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
}

/* ==========================================================================
   FOOTER QUIZ STRIP + QUIZ MODAL
   ========================================================================== */
.footer-quiz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
}

.footer-quiz-text h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-quiz-text h4 i {
  color: var(--gold-400);
}

.footer-quiz-text p {
  color: var(--slate-300);
  font-size: 0.92rem;
  margin: 0;
}

.quiz-modal-window {
  max-width: 680px;
}

.quiz-intro {
  text-align: center;
}

.quiz-intro p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.quiz-intro-icon {
  font-size: 3rem;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.quiz-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 0.6rem;
}

.quiz-score-live {
  color: var(--gold-600);
}

.quiz-bar {
  height: 6px;
  background: var(--slate-100);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-bar span {
  display: block;
  height: 100%;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
}

.quiz-question {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy-900);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-800);
  font-size: 0.97rem;
  line-height: 1.4;
  transition: all var(--transition-fast);
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--gold-500);
  background: var(--cream-100);
  transform: translateX(4px);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-letter {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  color: var(--gold-700);
  font-weight: 800;
  font-size: 0.85rem;
}

.quiz-option.correct {
  border-color: var(--success);
  background: #ecfdf5;
}

.quiz-option.correct .quiz-letter {
  background: var(--success);
  color: var(--white);
}

.quiz-option.wrong {
  border-color: var(--error);
  background: #fef2f2;
}

.quiz-option.wrong .quiz-letter {
  background: var(--error);
  color: var(--white);
}

.quiz-option.dim {
  opacity: 0.55;
}

.quiz-feedback {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--cream-100);
  border-left: 4px solid var(--gold-500);
  font-size: 0.93rem;
  color: var(--slate-700);
  line-height: 1.6;
}

.quiz-feedback strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy-900);
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.quiz-result {
  text-align: center;
}

.quiz-result-score {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold-600);
  line-height: 1;
  margin: 0.5rem 0;
}

.quiz-result h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.quiz-result p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.quiz-result .quiz-actions {
  justify-content: center;
}

@media (max-width: 540px) {
  .footer-quiz {
    padding: 1.5rem 1.25rem;
    text-align: center;
    justify-content: center;
  }

  .footer-quiz-text h4 {
    justify-content: center;
  }

  .quiz-question {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   FIX: iOS Safari horizontal overflow / zoomed-out page
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* "clip" doesn't create a scroll container, so sticky/fixed items keep working */
@supports (overflow: clip) {

  html,
  body {
    overflow-x: clip;
  }
}

/* Sections: contain the side-slide animations (reveal-left / reveal-right) */
.section,
.hero,
.footer {
  overflow-x: clip;
}

/* Closed mobile menu: truly hidden, so it can't widen the page */
@media (max-width: 820px) {
  .nav-menu {
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), visibility 0s linear 0.3s;
  }

  .nav-menu.open {
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--transition-normal), visibility 0s linear 0s;
  }
}