/* ============================================================
   CHRIST LIFE FOR THE WORLD MINISTRY — SHARED DESIGN SYSTEM
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Color Palette */
  --ocean:      #0a1628;
  --ocean-mid:  #0d1e38;
  --ocean-light:#142540;
  --ocean-soft: #1a2f50;
  --red:        #c0392b;
  --red-bright: #e74c3c;
  --red-light:  rgba(192,57,43,0.15);
  --green:      #1a7a4a;
  --green-bright:#22a85f;
  --green-light: rgba(26,122,74,0.15);
  --white:      #ffffff;
  --silver:     #f4f6f9;
  --silver-mid: #e8ecf1;
  --charcoal:   #3d4a5c;
  --charcoal-light: #5a6a7e;
  --text-muted: rgba(255,255,255,0.65);
  --text-dim:   rgba(255,255,255,0.45);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Manrope', sans-serif;

  /* Spacing */
  --max-w: 1280px;
  --section-y: 120px;
  --section-y-sm: 70px;
  --gutter: 24px;

  /* Borders & Radii */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  28px;
  --r-xl:  40px;

  /* Shadows */
  --shadow-card: 0 8px 40px rgba(10,22,40,0.35);
  --shadow-hover: 0 20px 60px rgba(10,22,40,0.5);
  --shadow-glow-red: 0 0 40px rgba(192,57,43,0.3);
  --shadow-glow-green: 0 0 30px rgba(26,122,74,0.3);

  /* Transitions */
  --t: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 0.2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--silver);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Sacred Divider ── */
.sacred-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 0 auto 24px;
  max-width: 200px;
}
.sacred-divider::before,
.sacred-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.sacred-divider::after { background: linear-gradient(90deg, var(--red), transparent); }
.sacred-divider span { color: var(--red); font-size: 12px; }

/* ── Section Label ── */
.section-label {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-bright);
  display: block;
  margin-bottom: 16px;
}
.section-label.light { color: var(--green-bright); }
.section-label.dark  { color: var(--charcoal-light); }

/* ── Headings ── */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; letter-spacing: 0.02em; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }

.display-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.card-heading {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: var(--t);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0; transition: var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 30px rgba(192,57,43,0.4);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-red);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 30px rgba(26,122,74,0.35);
}
.btn-green:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-green);
}
.btn-outline-dark {
  background: transparent;
  color: var(--ocean);
  border: 2px solid var(--ocean);
}
.btn-outline-dark:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 12px 26px; font-size: 11px; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Navigation ── */
#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--t);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 80px;
}
#header.scrolled .nav-inner {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
#header:not(.scrolled) .nav-inner {
  background: transparent;
}
#header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.7) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0; transition: var(--t);
}
#header:not(.scrolled)::before { opacity: 1; }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192,57,43,0.6);
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1.3;
  max-width: 180px;
  text-transform: uppercase;
}

.navbar ul {
  display: flex; align-items: center; gap: 8px;
}
.navbar a {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--t-fast);
  position: relative;
}
.navbar a::after {
  content: ''; position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-fast);
}
.navbar a:hover, .navbar a.active {
  color: var(--white);
}
.navbar a:hover::after, .navbar a.active::after { transform: scaleX(1); }

/* Dropdown */
.navbar .dropdown { position: relative; }
.navbar .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--ocean-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm);
  padding: 8px;
  min-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: var(--t);
  box-shadow: var(--shadow-card);
}
.navbar .dropdown:hover .dropdown-menu {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.navbar .dropdown-menu a {
  display: block; padding: 10px 16px;
  border-radius: 6px; font-size: 11.5px;
}
.navbar .dropdown-menu a:hover { background: rgba(255,255,255,0.06); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile Nav */
.mobile-nav-toggle {
  display: none; color: var(--white); font-size: 22px; cursor: pointer;
  padding: 8px;
}
#mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: var(--ocean);
  padding: 100px 32px 40px;
  flex-direction: column;
}
#mobile-nav.open { display: flex; }
#mobile-nav .close-btn {
  position: absolute; top: 24px; right: 24px;
  color: var(--white); font-size: 24px; cursor: pointer;
}
#mobile-nav ul { display: flex; flex-direction: column; gap: 0; }
#mobile-nav ul li a {
  display: block; padding: 18px 0;
  font-family: var(--font-heading);
  font-size: 22px; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.05em;
}
#mobile-nav ul li a:hover { color: var(--red-bright); }
#mobile-nav .mobile-cta { margin-top: 32px; }

/* ── Hero (shared) ── */
.hero-section {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,0.88) 0%,
    rgba(10,22,40,0.65) 50%,
    rgba(10,22,40,0.4) 100%
  );
}
.hero-content-wrap {
  position: relative; z-index: 2;
  padding: 120px var(--gutter) var(--section-y);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
@keyframes subtle-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }

/* ── Page Hero (inner pages) ── */
.page-hero {
  position: relative; overflow: hidden;
  height: 480px;
  display: flex; align-items: flex-end;
  padding-bottom: 80px;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: subtle-zoom 20s ease-in-out infinite alternate;
}
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,22,40,0.4) 0%,
    rgba(10,22,40,0.85) 100%
  );
}
.page-hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
.page-hero-badge {
  display: inline-block;
  background: var(--red-light);
  border: 1px solid rgba(192,57,43,0.4);
  color: #ff8a7a;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  backdrop-filter: blur(8px);
  margin-bottom: 20px;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}

/* ── Cards (Base) ── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,22,40,0.08);
  transition: var(--t);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-dark {
  background: var(--ocean-mid);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Scripture Quote ── */
.scripture-quote {
  position: relative; padding: 60px 80px;
  background: var(--ocean);
  text-align: center; overflow: hidden;
}
.scripture-quote::before {
  content: '"';
  position: absolute; top: -20px; left: 40px;
  font-family: var(--font-display);
  font-size: 200px; color: var(--red);
  opacity: 0.1; line-height: 1;
  pointer-events: none;
}
.scripture-quote p {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 16px;
  position: relative; z-index: 1;
}
.scripture-quote cite {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green-bright);
}

/* ── Floating Action Buttons ── */
.floating-buttons {
  position: fixed; bottom: 32px; right: 24px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 500;
}
.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: var(--t);
  cursor: pointer;
}
.float-btn:hover { transform: scale(1.1) translateY(-2px); }
.back-to-top { background: var(--ocean-mid); border: 1px solid rgba(255,255,255,0.1); }
.telegram-btn { background: #229ED9; }

/* ── Footer ── */
.site-footer {
  background: var(--ocean);
  color: var(--white);
  padding: 80px var(--gutter) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px; max-width: var(--max-w); margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.8; max-width: 300px;
}
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 16px;
  transition: var(--t-fast);
}
.footer-social-btn:hover { background: var(--red); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 24px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 14px; color: var(--text-muted);
  transition: var(--t-fast);
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: var(--text-dim); }
.footer-bottom a { color: var(--text-muted); transition: var(--t-fast); }
.footer-bottom a:hover { color: var(--red-bright); }

/* ── Animate on scroll ── */
.anim { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-y: 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-y: 60px; --section-y-sm: 50px; }
  .navbar, .nav-cta .btn { display: none; }
  .mobile-nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { height: 380px; padding-bottom: 50px; }
  .scripture-quote { padding: 50px 32px; }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .btn { padding: 14px 28px; font-size: 12px; }
  .page-hero-title { font-size: 32px; }
}

/* ── Mobile Nav Fix ── */
@media (max-width: 768px) {
  .navbar, .nav-cta { display: none; }
  .nav-inner { height: 70px; padding: 0 16px; }
  .nav-logo img { width: 40px; height: 40px; flex-shrink: 0; }
  .nav-logo-text { font-size: 10px; max-width: 140px; letter-spacing: 0.05em; line-height: 1.25; }
}
@media (max-width: 480px) {
  .nav-logo-text { max-width: 115px; font-size: 9.5px; }
  .nav-logo img { width: 36px; height: 36px; }
}

/* Logo image fallback */
.nav-logo img {
  background: var(--ocean-mid);
  object-fit: cover;
}
