/* ============================================
   EGIM | Elston Grace International Ministries
   Premium Red, White & Black Theme — Dubai, UAE
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --primary: #CC0000;
  --primary-dark: #990000;
  --primary-deeper: #660000;
  --primary-light: #FFE8E8;
  --primary-glow: rgba(204, 0, 0, 0.12);
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-mid: #1A1A1A;
  --dark-card: #1E1E1E;
  --white: #FFFFFF;
  --cream: #FAFAFA;
  --light-gray: #F0F0F0;
  --border-light: #E8E8E8;
  --text: #1A1A1A;
  --text-light: #888888;
  --text-subtle: #AAAAAA;
  --gold-accent: #C9A84C;
  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.14);
  --shadow-red: 0 4px 24px rgba(204, 0, 0, 0.25);
  --shadow-red-lg: 0 8px 40px rgba(204, 0, 0, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--primary); color: var(--white); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.accent-text { color: var(--primary); }
.egim-highlight { color: var(--primary); font-weight: 700; letter-spacing: 0.5px; }

/* ---------- PRELOADER ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-logo { max-height: 90px; margin: 0 auto 20px; }
.loader-bar {
  width: 220px; height: 3px; background: var(--light-gray);
  border-radius: 3px; margin: 0 auto 16px; overflow: hidden; position: relative;
}
.loader-bar::after {
  content: ''; position: absolute; left: -50%; width: 50%; height: 100%;
  background: var(--primary); border-radius: 3px;
  animation: loaderSlide 1.2s ease-in-out infinite;
}
@keyframes loaderSlide { 0% { left: -50%; } 100% { left: 100%; } }
.loader-text {
  font-size: 0.8rem; color: var(--text-light);
  letter-spacing: 3px; text-transform: uppercase;
}

/* ---------- NAVIGATION ---------- */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: var(--transition);
}
#header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.navbar { padding: 16px 0; transition: var(--transition); }
#header.scrolled .navbar { padding: 10px 0; }
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img { height: 48px; transition: var(--transition); }
#header.scrolled .nav-logo-img { height: 42px; }
.nav-logo-text {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: 3px; position: relative;
}
.nav-logo-text::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s ease;
}
.nav-logo:hover .nav-logo-text::after { transform: scaleX(1); }
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 500;
  transition: var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.3s ease; border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-toggle { display: none; flex-direction: column; cursor: pointer; width: 28px; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.7) 100%);
}
.hero-watermark {
  position: absolute; z-index: 1; font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 18rem); font-weight: 800;
  color: rgba(255,255,255,0.03); letter-spacing: 20px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 900px; margin: 0 auto; padding: 120px 0 60px;
}
.hero-badge {
  display: inline-block; padding: 8px 28px; border-radius: 50px;
  border: 1px solid var(--primary); color: var(--primary);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 2px;
  margin-bottom: 36px; text-transform: uppercase;
  backdrop-filter: blur(8px); background: rgba(204,0,0,0.08);
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.65);
  max-width: 680px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  letter-spacing: 0.5px; position: relative; overflow: hidden;
}
.btn-sm { padding: 12px 26px; font-size: 0.85rem; }
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-red-lg);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--primary); color: var(--primary);
  transform: translateY(-2px);
  background: rgba(204,0,0,0.06);
}
.btn-dark {
  border-color: rgba(0,0,0,0.2); color: var(--text);
}
.btn-dark:hover {
  border-color: var(--primary); color: var(--primary);
  background: rgba(204,0,0,0.04);
}
.btn-text {
  color: var(--primary); font-weight: 600; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s ease;
}
.btn-text:hover { gap: 12px; }

/* ---------- HERO SCROLL ---------- */
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.3); font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; display: flex; flex-direction: column;
  align-items: center; gap: 8px; animation: bounceScroll 2.5s infinite;
}
@keyframes bounceScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 22px; border-radius: 50px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--black);
  line-height: 1.2;
}
.section-divider {
  width: 50px; height: 3px; background: var(--primary);
  margin: 20px auto 0; border-radius: 3px;
}

/* ---------- ANIMATIONS ---------- */
.animate-on-scroll {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-fade-up { opacity: 0; transform: translateY(40px); animation: fadeUp 0.9s ease forwards; }
.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.3s; }
.hero-subtitle { animation-delay: 0.5s; }
.hero-buttons { animation-delay: 0.7s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- ABOUT SECTION ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.about-text { font-size: 1.05rem; line-height: 1.9; color: var(--text); margin-bottom: 20px; }
.about-mission { display: grid; gap: 16px; margin-top: 32px; }
.mission-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; background: var(--cream); border-radius: var(--radius);
  border-left: 3px solid var(--primary);
  transition: var(--transition);
}
.mission-item:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.mission-item i { font-size: 1.3rem; color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.mission-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.mission-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.pastor-card {
  background: var(--cream); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.pastor-img-wrap { position: relative; }
.pastor-img { width: 100%; height: 340px; object-fit: cover; }
.pastor-img-badge {
  position: absolute; bottom: -20px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: 0 4px 16px rgba(204,0,0,0.3);
  border: 3px solid var(--white);
}
.pastor-body { padding: 32px 28px 28px; }
.pastor-body h3 {
  font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 14px;
}
.pastor-body > p {
  font-size: 0.95rem; color: var(--text-light); font-style: italic; line-height: 1.8;
}
.pastor-name {
  font-style: normal !important; font-weight: 700;
  color: var(--primary) !important; margin-top: 18px !important; font-size: 1rem !important;
}
.pastor-title {
  font-style: normal !important; font-size: 0.83rem !important;
  color: var(--text-light) !important; margin-top: 4px !important;
}
.scripture-box {
  background: var(--black-soft); padding: 36px 32px;
  border-radius: var(--radius-lg); color: var(--white);
  text-align: center; position: relative; overflow: hidden;
}
.scripture-box::before {
  content: ''; position: absolute; top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(204,0,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.scripture-box i { font-size: 1.6rem; color: var(--primary); margin-bottom: 14px; }
.scripture-box p { font-size: 1.1rem; line-height: 1.8; font-style: italic; font-weight: 300; }
.scripture-box span { display: block; margin-top: 14px; color: var(--primary); font-weight: 600; }

/* ---------- MINISTRIES SECTION ---------- */
.ministries { background: var(--cream); }
.ministries-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ministry-card {
  background: var(--white); padding: 44px 28px 36px; border-radius: var(--radius);
  text-align: center; transition: var(--transition);
  border: 1px solid transparent;
}
.ministry-card:hover {
  transform: translateY(-10px); box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.ministry-icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: var(--primary); transition: var(--transition);
}
.ministry-card:hover .ministry-icon {
  background: var(--primary); color: var(--white);
  transform: scale(1.1); box-shadow: var(--shadow-red);
}
.ministry-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.ministry-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ---------- SERMONS SECTION ---------- */
.sermons { background: var(--white); }
.sermons-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-bottom: 56px; background: var(--cream);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-sermon-img {
  min-height: 340px; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.featured-sermon-img::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}
.play-btn {
  z-index: 1; width: 72px; height: 72px; border-radius: 50%;
  background: rgba(204,0,0,0.9); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: var(--transition); cursor: pointer;
  backdrop-filter: blur(4px);
}
.play-btn:hover { transform: scale(1.12); box-shadow: 0 0 40px rgba(204,0,0,0.4); }
.featured-sermon-content { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.sermon-badge {
  display: inline-block; padding: 5px 18px; border-radius: 50px;
  background: var(--primary); color: var(--white);
  font-size: 0.73rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 18px; align-self: flex-start;
}
.featured-sermon-content h3 {
  font-family: var(--font-serif); font-size: 1.7rem; margin-bottom: 12px;
}
.sermon-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 16px; }
.sermon-meta i { color: var(--primary); }
.featured-sermon-content p { font-size: 0.95rem; color: var(--text); line-height: 1.8; margin-bottom: 22px; }
.sermons-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; margin-bottom: 48px;
}
.sermon-card {
  background: var(--cream); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.sermon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sermon-thumb {
  height: 180px; background-size: cover; background-position: center;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.sermon-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.25); transition: var(--transition);
}
.sermon-card:hover .sermon-thumb::after { background: rgba(0,0,0,0.4); }
.sermon-play {
  z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(204,0,0,0.85); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; opacity: 0; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.sermon-card:hover .sermon-play { opacity: 1; transform: scale(1.1); }
.sermon-info { padding: 24px; }
.sermon-info h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.sermons-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- EVENTS SECTION ---------- */
.events { background: var(--cream); }
.events-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  border: 1px solid transparent;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.event-date {
  background: var(--black-soft); padding: 26px; text-align: center; color: var(--white);
}
.event-day { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.event-month { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 3px; color: var(--primary); margin-top: 4px; display: block; }
.event-info { padding: 28px; }
.event-info h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.event-info p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.event-info p i { color: var(--primary); width: 20px; }
.event-info .btn-text { margin-top: 14px; }

/* ---------- PRAYER SECTION ---------- */
.prayer { background: var(--white); }
.prayer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.prayer-intro { font-size: 1.05rem; margin-bottom: 32px; color: var(--text); }
.prayer-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prayer-form input, .prayer-form select, .prayer-form textarea,
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 20px; border: 1.5px solid #E0E0E0;
  border-radius: 10px; font-family: var(--font-sans); font-size: 0.9rem;
  transition: var(--transition); background: var(--white);
  color: var(--text);
}
.prayer-form input:focus, .prayer-form select:focus, .prayer-form textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-light); }
.form-checkbox input { width: auto; margin-top: 3px; }
.prayer-testimonies h3 {
  font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 24px;
}
.testimony-card {
  padding: 26px; background: var(--cream); border-radius: var(--radius);
  margin-bottom: 16px; transition: var(--transition);
  border-left: 3px solid var(--primary);
}
.testimony-card:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.testimony-card i { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; display: block; }
.testimony-card p { font-size: 0.9rem; font-style: italic; color: var(--text); line-height: 1.7; }
.testimony-author { display: block; margin-top: 12px; font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* ---------- GALLERY SECTION ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; grid-auto-rows: 200px;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
}
.gallery-item--large { grid-column: span 2; grid-row: span 2; }
.gallery-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover .gallery-img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 65%);
  display: flex; align-items: flex-end; padding: 20px; opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; }

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials {
  background: var(--black-soft);
  color: var(--white);
}
.testimonials .section-tag { background: rgba(204,0,0,0.15); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-divider { background: var(--primary); }
.testimonials-slider { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeIn 0.7s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-content { padding: 20px 0; }
.testimonial-quote { font-size: 2.2rem; color: var(--primary); margin-bottom: 24px; display: block; }
.testimonial-content > p {
  font-size: 1.2rem; line-height: 1.9; font-style: italic;
  margin-bottom: 36px; color: rgba(255,255,255,0.85);
  font-weight: 300;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 16px; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar i { font-size: 3.2rem; color: var(--primary); }
.testimonial-author h4 { font-size: 1rem; font-weight: 600; }
.testimonial-author span { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.testimonial-nav { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.testimonial-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25); background: transparent;
  cursor: pointer; transition: var(--transition);
}
.testimonial-dot.active, .testimonial-dot:hover {
  background: var(--primary); border-color: var(--primary);
}

/* ---------- CONTACT SECTION ---------- */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-item { display: flex; gap: 20px; margin-bottom: 28px; }
.contact-item i {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--black-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0; transition: var(--transition);
}
.contact-item:hover i { background: var(--primary); color: var(--white); }
.contact-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }
.contact-social { margin-top: 36px; }
.contact-social h4 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--black-soft); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-red); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form input, .contact-form textarea { width: 100%; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black); color: rgba(255,255,255,0.5);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 48px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo-img { height: 44px; }
.footer-logo-text {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--white); letter-spacing: 4px;
}
.footer-desc { font-size: 0.9rem; line-height: 1.8; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.footer-social a:hover { border-color: var(--primary); color: var(--primary); background: rgba(204,0,0,0.08); }
.footer-links h4, .footer-hours h4, .footer-verse h4 {
  font-family: var(--font-serif); color: var(--white); font-size: 1.1rem;
  margin-bottom: 22px;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary); padding-left: 6px; }
.footer-hours ul li { font-size: 0.9rem; margin-bottom: 14px; color: rgba(255,255,255,0.45); }
.footer-hours ul li span { display: block; color: var(--white); font-weight: 500; }
.verse-box {
  background: rgba(255,255,255,0.04); padding: 26px;
  border-radius: var(--radius); border-left: 3px solid var(--primary);
}
.verse-box i { color: var(--primary); font-size: 1.1rem; margin-bottom: 10px; display: block; }
.verse-box p { font-size: 0.95rem; font-style: italic; line-height: 1.7; color: rgba(255,255,255,0.75); }
.verse-box span { display: block; margin-top: 14px; color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.footer-bottom {
  text-align: center; padding: 28px 0; font-size: 0.85rem;
  color: rgba(255,255,255,0.25);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; opacity: 0; visibility: hidden;
  transform: translateY(24px); transition: var(--transition);
  box-shadow: var(--shadow-red);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-5px); box-shadow: var(--shadow-red-lg); }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .about-grid, .prayer-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .sermons-featured { grid-template-columns: 1fr; }
  .featured-sermon-img { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 90px 0; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--black-soft); flex-direction: column; padding: 100px 36px 36px;
    transition: right 0.45s ease; gap: 4px; z-index: 998;
    box-shadow: -10px 0 50px rgba(0,0,0,0.4);
  }
  .nav-menu.active { right: 0; }
  .nav-toggle { display: flex; z-index: 999; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .section { padding: 70px 0; }
  .event-date { padding: 20px; }
  .event-day { font-size: 1.6rem; }
  .testimonial-content > p { font-size: 1.05rem; }
  .pastor-img { height: 260px; }
  .featured-sermon-content { padding: 28px; }
  .footer-logo-img { height: 38px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .gallery-item--large { grid-column: span 2; grid-row: span 1; }
  .ministries-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .back-to-top { width: 46px; height: 46px; font-size: 1rem; bottom: 20px; right: 20px; }
  .nav-logo-text { display: none; }
  .footer-logo-text { display: none; }
}
