/* ================================================================
   TCPC — Tamil Christian Prayer Church
   Main Stylesheet  |  Royal Blue + Divine Gold
   Design System v2.0
   ================================================================ */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary — Royal Blue (matches logo) */
  --primary:       #1D4ED8;
  --primary-dark:  #1E3A8A;
  --primary-light: #3B82F6;
  --primary-50:    #EFF6FF;
  --primary-100:   #DBEAFE;
  --primary-glow:  rgba(29, 78, 216, 0.22);

  /* Gold — Divine Accent */
  --gold:          #F59E0B;
  --gold-dark:     #D97706;
  --gold-light:    #FCD34D;
  --gold-50:       #FFFBEB;

  /* Rose — Cross Red (from logo cross) */
  --rose:          #E11D48;
  --rose-light:    #FB7185;

  /* Surfaces */
  --white:         #FFFFFF;
  --bg:            #F8FAFC;
  --bg-blue:       #EFF6FF;
  --border:        #E2E8F0;
  --border-light:  #F1F5F9;

  /* Dark */
  --dark:          #0F172A;
  --navy:          #1E3A8A;

  /* Text */
  --text-heading:  #0F172A;
  --text-body:     #334155;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 14px rgba(0,0,0,0.09);
  --shadow-lg:   0 10px 32px rgba(0,0,0,0.11);
  --shadow-xl:   0 20px 50px rgba(0,0,0,0.13);
  --shadow-blue: 0 8px 28px rgba(29,78,216,0.28);
  --shadow-gold: 0 8px 28px rgba(245,158,11,0.32);

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.55s ease;

  /* Layout */
  --container: 1200px;
  --nav-h:     72px;
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem,   5vw,   3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { line-height: 1.8; }

.tamil {
  font-family: 'Tiro Tamil', 'Noto Sans Tamil', 'Arima', serif;
  line-height: 1.9;
}

/* Section label (eyebrow text) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}
.section-label::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title { margin-bottom: var(--sp-4); }
.section-title em { font-style: italic; color: var(--primary); }

/* ── 4. Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
section { padding: var(--sp-20) 0; }

/* ── 5. Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-normal);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}
.nav-logo-img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-tamil {
  font-family: 'Tiro Tamil', 'Noto Sans Tamil', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.nav-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Hide Tamil name on very small screens to save space */
@media (max-width: 400px) {
  .nav-logo-tamil { display: none; }
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

/* Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav-social { display: flex; gap: var(--sp-1); }
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--t-fast);
}
.nav-social a:hover { color: var(--primary); background: var(--primary-50); }

.btn-give {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: var(--r-full);
  transition: all var(--t-normal);
  box-shadow: var(--shadow-blue);
  letter-spacing: 0.02em;
}
.btn-give:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(29,78,216,0.38);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-left: auto;
  padding: var(--sp-2);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--t-normal);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  z-index: 999;
  padding: var(--sp-6);
  overflow-y: auto;
  flex-direction: column;
  gap: var(--sp-1);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mobile-menu a:hover { color: var(--primary); background: var(--primary-50); }
.mobile-menu a i { width: 18px; text-align: center; color: var(--primary); }
.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) 0;
}
.mobile-menu .btn-give {
  margin-top: var(--sp-2);
  justify-content: center;
  padding: 0.875rem;
  font-size: 0.95rem;
}

/* ── 6. Hero Carousel ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 56.25vw; /* 16:9 — matches 1920×1080 standard */
  min-height: 320px;
  max-height: 1080px;
  overflow: hidden;
  margin-top: var(--nav-h);
  background: var(--primary-dark);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Subtle bottom gradient so dots/buttons are legible */
.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(15,23,42,0.45), transparent);
  pointer-events: none;
}

/* Fallback when no slides are configured */
.hero-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  text-align: center;
  color: var(--white);
  padding: var(--sp-8);
}
.hero-fallback-inner { max-width: 680px; }
.hero-fallback-logo {
  width: 110px; height: 110px;
  border-radius: 50%;
  margin: 0 auto var(--sp-8);
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow: 0 0 0 8px rgba(255,255,255,0.08);
}
.hero-fallback h1 { color: var(--white); margin-bottom: var(--sp-4); font-size: clamp(1.5rem, 4vw, 2.5rem); }
.hero-fallback .hero-fallback-tamil {
  font-family: 'Tiro Tamil', 'Noto Sans Tamil', serif;
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  color: var(--gold-light);
  margin-bottom: var(--sp-3);
  line-height: 1.6;
}
.hero-fallback p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: var(--sp-8); }
.hero-fallback-btns { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-normal);
  z-index: 10;
  cursor: pointer;
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-50%) scale(1.06);
}
.hero-arrow-prev { left: var(--sp-6); }
.hero-arrow-next { right: var(--sp-6); }

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--t-normal);
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hero-dot.active {
  background: var(--white);
  width: 28px;
  border-radius: 4px;
}

/* Hero CTA buttons (bottom overlay) */
.hero-cta {
  position: absolute;
  bottom: var(--sp-14);
  right: var(--sp-8);
  display: flex;
  gap: var(--sp-3);
  z-index: 10;
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  transition: all var(--t-normal);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.btn-hero-white:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all var(--t-normal);
  white-space: nowrap;
}
.btn-hero-glass:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

/* ── 7. Service Strip ─────────────────────────────────────────── */
.service-strip {
  background: var(--primary-dark);
  padding: var(--sp-5) 0;
  position: relative;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}
.service-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.service-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5);
  background: rgba(255,255,255,0.09);
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,0.14);
}
.service-pill-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.service-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  line-height: 1;
}
.service-pill-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.strip-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.18);
}

.strip-location {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}
.strip-location i { color: var(--gold); }

.btn-watch-online {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--rose);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  transition: all var(--t-normal);
  flex-shrink: 0;
}
.btn-watch-online .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse-live 1.4s infinite;
}
.btn-watch-online:hover {
  background: #c0143a;
  transform: translateY(-1px);
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ── 8. Sermons Section ───────────────────────────────────────── */
.sermons-section {
  background: var(--white);
  padding: var(--sp-20) 0;
}
.sermons-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.sermons-header .section-label { justify-content: center; }
.sermons-header .section-label::before { display: none; }
.sermons-header .section-label::after {
  content: '';
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.sermons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.sermons-grid.single {
  grid-template-columns: minmax(0, 580px);
  justify-content: center;
}

.sermon-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--t-normal);
  opacity: 0;
  transform: translateY(18px);
}
.sermon-card.visible { opacity: 1; transform: none; }
.sermon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-100);
}

.sermon-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--primary-dark);
}
.sermon-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.sermon-card:hover .sermon-thumb img { transform: scale(1.04); }

.sermon-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.3);
  transition: background var(--t-normal);
}
.sermon-card:hover .sermon-play-overlay { background: rgba(15,23,42,0.48); }

.sermon-play-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.15rem;
  padding-left: 3px;
  transition: all var(--t-normal);
  box-shadow: var(--shadow-lg);
}
.sermon-card:hover .sermon-play-btn {
  background: var(--gold);
  color: var(--dark);
  transform: scale(1.1);
}

.sermon-lang-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  color: var(--white);
}
.badge-english { background: var(--primary); }
.badge-tamil   { background: var(--rose); }
.badge-special { background: var(--gold); color: var(--dark); }

.sermon-body { padding: var(--sp-5); }
.sermon-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.sermon-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}
.sermon-watch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.38rem 0.9rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  letter-spacing: 0.03em;
}
.sermon-watch:hover { background: var(--primary); color: var(--white); }

.sermons-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.sermons-empty i { font-size: 2.5rem; color: var(--primary-100); margin-bottom: var(--sp-4); display: block; }

/* ── 9. Welcome Section ───────────────────────────────────────── */
.welcome-section {
  background: var(--bg-blue);
  padding: var(--sp-20) 0;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Image collage */
.welcome-img-wrap {
  position: relative;
  padding-bottom: 60px; /* room for pastor card */
}
.welcome-img-wrap::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  right: 14px; bottom: 74px;
  border: 3px solid var(--gold);
  border-radius: var(--r-lg);
  z-index: 0;
}
.welcome-img-main {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  display: block;
}
/* Pastor card overlapping bottom-right */
.welcome-img-pastor {
  position: absolute;
  bottom: 0;
  right: -24px;
  z-index: 3;
  width: 180px;
  height: 180px;
  border-radius: var(--r-lg);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background: var(--primary-dark);
}
.welcome-img-pastor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.welcome-badge {
  position: absolute;
  top: var(--sp-6);
  right: calc(-1 * var(--sp-6));
  z-index: 4;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.welcome-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.welcome-badge-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.welcome-founded-tag {
  position: absolute;
  bottom: 10px;
  left: 0;
  z-index: 3;
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

/* Stats row */
.welcome-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 12px rgba(29,78,216,0.08);
}
.welcome-stat { text-align: center; flex: 1; }
.welcome-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.welcome-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}
.welcome-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.welcome-intro {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: var(--sp-3);
  line-height: 1.85;
}
.welcome-intro-tamil {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.welcome-feature {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
}
.welcome-feature-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.welcome-btns { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-full);
  transition: all var(--t-normal);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(29,78,216,0.38);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-full);
  border: 2px solid var(--primary);
  transition: all var(--t-normal);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ── 10. Upcoming Events ──────────────────────────────────────── */
.upcoming-section { background: var(--white); }
.upcoming-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.upcoming-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--primary-100);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.upcoming-link:hover { background: var(--primary-50); border-color: var(--primary); }

.events-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.event-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  cursor: default;
}
.event-item:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
  transform: translateX(4px);
}

.event-date-box {
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-1);
  line-height: 1.1;
}
.event-day { font-size: 1.35rem; font-weight: 700; }
.event-mon { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }

.event-info { min-width: 0; }
.event-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.event-time-label {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.event-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.type-regular, .type-sunday   { background: #DBEAFE; color: #1E40AF; }
.type-special                  { background: #FEF3C7; color: #92400E; }
.type-prayer, .type-biblestudy { background: #E9D5FF; color: #6B21A8; }
.type-youth                    { background: #DCFCE7; color: #166534; }
.type-allnight                 { background: #FFE4E6; color: #9F1239; }
.type-communion                { background: #F3E8FF; color: #7E22CE; }

.events-placeholder {
  text-align: center;
  padding: var(--sp-12);
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 1px dashed var(--border);
}
.events-placeholder i { font-size: 2rem; margin-bottom: var(--sp-3); display: block; color: var(--primary-100); }

/* ── 11. Quick Access ─────────────────────────────────────────── */
.quicklinks-section {
  background: var(--primary-dark);
  padding: var(--sp-20) 0;
}
.quicklinks-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.quicklinks-header .section-label {
  color: var(--gold-light);
  justify-content: center;
}
.quicklinks-header .section-label::before,
.quicklinks-header .section-label::after {
  background: rgba(255,255,255,0.3);
}
.quicklinks-header .section-label::after {
  content: '';
  width: 26px; height: 2px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
}
.quicklinks-header h2 { color: var(--white); }

.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.quicklink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8) var(--sp-5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  color: var(--white);
  text-align: center;
  transition: all var(--t-normal);
}
.quicklink-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: var(--gold);
  transform: translateY(-5px);
}
.quicklink-icon {
  width: 58px; height: 58px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  transition: all var(--t-normal);
}
.quicklink-card:hover .quicklink-icon {
  background: var(--gold);
  color: var(--dark);
}
.quicklink-label {
  font-size: 0.88rem;
  font-weight: 700;
}
.quicklink-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ── 12. Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: var(--sp-20) 0 var(--sp-8);
  color: rgba(255,255,255,0.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--sp-8);
}

/* Brand column */
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.footer-logo img {
  width: 48px; height: 48px;
  border-radius: 50%;
}
.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.footer-logo-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}
.footer-socials { display: flex; gap: var(--sp-2); }
.footer-social {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  transition: all var(--t-fast);
}
.footer-social:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }
.footer-social.wa:hover { background: #25D366; border-color: #25D366; }

/* Other columns */
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--gold); }
.footer-links a i { width: 14px; text-align: center; }

.footer-hours { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-hour { font-size: 0.84rem; }
.footer-hour-day { color: var(--gold); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }

.footer-contact { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-contact-item {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.84rem;
  align-items: flex-start;
}
.footer-contact-item i { color: var(--gold); margin-top: 3px; flex-shrink: 0; width: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--gold); }

/* ── 13. WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 900;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.42);
  transition: all var(--t-normal);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

/* ── 14. Scroll Animations ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ── 15. Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .welcome-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .welcome-img-pastor { right: var(--sp-4); width: 140px; height: 140px; }
  .welcome-badge { right: var(--sp-4); }
  .welcome-stats { gap: var(--sp-4); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}

@media (max-width: 900px) {
  .quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-social { display: none; }
  .nav-toggle { display: flex; }
  .btn-give { display: none; }

  .hero { height: 56.25vw; min-height: 220px; }
  .hero-arrow { display: none; }
  .hero-cta { bottom: var(--sp-10); right: var(--sp-4); gap: var(--sp-2); }

  .service-strip-inner { gap: var(--sp-3); }
  .strip-divider, .strip-location { display: none; }
  .service-pill { padding: var(--sp-2) var(--sp-3); }
  .service-pill-label { display: none; }

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

  .upcoming-header { flex-direction: column; align-items: flex-start; }
  .event-item { grid-template-columns: 54px 1fr; }
  .event-badge { display: none; }

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

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: var(--sp-12) 0; }
  .container { padding: 0 var(--sp-4); }
  .hero { height: 56.25vw; min-height: 220px; }
  .hero-cta { flex-direction: column; align-items: flex-end; }
  .service-strip { padding: var(--sp-4) 0; }
  .service-strip-inner { gap: var(--sp-2); justify-content: flex-start; overflow-x: auto; padding: 0 var(--sp-4); scrollbar-width: none; }
  .service-strip-inner::-webkit-scrollbar { display: none; }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .quicklink-card { padding: var(--sp-6) var(--sp-3); }
}
