/* ═══════════════════════════════════════════════════════════════════════════
   PEACEMAKERS MOVEMENT — Global Stylesheet
   Design system: Deep earth palette, ancient-modern type, olive & gold accents
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS IMPORT ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Inter:wght@300;400;500;600&family=Cinzel:wght@400;600&display=swap');

/* ── CSS CUSTOM PROPERTIES — LIGHT MODE ─────────────────────────────────── */
:root {
  /* Brand Palette */
  --clr-parchment:    #F7F3EC;
  --clr-parchment-2:  #EDE7D9;
  --clr-gold:         #B8963E;
  --clr-gold-light:   #D4AF5A;
  --clr-olive:        #4A5E3A;
  --clr-olive-light:  #6B7F56;
  --clr-navy:         #1C2B3A;
  --clr-navy-mid:     #2D4156;
  --clr-rust:         #8B3A2A;
  --clr-rust-light:   #A84B38;
  --clr-sand:         #C9B99A;
  --clr-sand-light:   #DDD0BB;

  /* Semantic tokens — Light */
  --bg-primary:       var(--clr-parchment);
  --bg-secondary:     var(--clr-parchment-2);
  --bg-card:          #FFFFFF;
  --bg-nav:           rgba(247,243,236,0.96);
  --bg-overlay:       rgba(28,43,58,0.08);
  --text-primary:     #1A1A1A;
  --text-secondary:   #4A4A4A;
  --text-muted:       #7A7A7A;
  --text-inverse:     #F7F3EC;
  --accent-primary:   var(--clr-gold);
  --accent-hover:     var(--clr-gold-light);
  --accent-secondary: var(--clr-olive);
  --accent-danger:    var(--clr-rust);
  --border-color:     #DDD0BB;
  --border-focus:     var(--clr-gold);
  --shadow-sm:        0 1px 4px rgba(28,43,58,0.08);
  --shadow-md:        0 4px 16px rgba(28,43,58,0.12);
  --shadow-lg:        0 12px 40px rgba(28,43,58,0.18);
  --shadow-gold:      0 0 0 3px rgba(184,150,62,0.25);

  /* Typography */
  --font-display:     'Cinzel', 'Georgia', serif;
  --font-heading:     'Playfair Display', 'Georgia', serif;
  --font-body:        'Inter', -apple-system, sans-serif;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  5rem;
  --space-4xl:  8rem;

  /* Layout */
  --max-width:        1200px;
  --nav-height:       72px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Transitions */
  --transition-fast:  0.15s ease;
  --transition-mid:   0.3s ease;
  --transition-slow:  0.5s ease;
}

/* ── CSS CUSTOM PROPERTIES — DARK MODE ──────────────────────────────────── */
[data-theme="dark"] {
  --bg-primary:       #0F1A24;
  --bg-secondary:     #162231;
  --bg-card:          #1C2B3A;
  --bg-nav:           rgba(15,26,36,0.97);
  --bg-overlay:       rgba(0,0,0,0.3);
  --text-primary:     #EDE7D9;
  --text-secondary:   #C9B99A;
  --text-muted:       #8A9BA8;
  --text-inverse:     #0F1A24;
  --accent-primary:   #D4AF5A;
  --accent-hover:     #E8C97A;
  --accent-secondary: #8FA87A;
  --accent-danger:    #C96B58;
  --border-color:     #2D4156;
  --border-focus:     #D4AF5A;
  --shadow-sm:        0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:        0 12px 40px rgba(0,0,0,0.5);
  --shadow-gold:      0 0 0 3px rgba(212,175,90,0.3);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-mid), color var(--transition-mid);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: 2px; }

ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── TYPOGRAPHY SCALE ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--text-primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--text-secondary); margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

.display-title {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-primary);
  display: block;
  margin-bottom: var(--space-sm);
}
blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
}
blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
  color: var(--text-muted);
}

/* ── LAYOUT UTILITIES ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1400px; }

.section { padding-block: var(--space-4xl); }
.section--sm { padding-block: var(--space-2xl); }
.section--dark { background: var(--bg-secondary); }
.section--navy {
  background: var(--clr-navy);
  color: var(--text-inverse);
}
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--clr-parchment); }
.section--navy p   { color: var(--clr-sand); }

.grid { display: grid; gap: var(--space-xl); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex       { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: var(--space-3xl); }
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p  { font-size: 1.1rem; }

.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  margin: var(--space-lg) auto;
  border-radius: 2px;
}

/* ── NAVIGATION ──────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-mid), box-shadow var(--transition-mid);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: var(--space-sm);
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding-block: var(--space-xs);
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: var(--space-md); }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--border-radius-sm);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 3px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

.btn--primary {
  background: var(--accent-primary);
  color: var(--clr-navy);
  border-color: var(--accent-primary);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--clr-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}
.btn--secondary:hover {
  background: var(--accent-primary);
  color: var(--clr-navy);
}

.btn--ghost {
  background: transparent;
  color: var(--text-inverse);
  border-color: rgba(247,243,236,0.5);
}
.btn--ghost:hover {
  background: rgba(247,243,236,0.1);
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}

.btn--olive {
  background: var(--clr-olive);
  color: var(--clr-parchment);
  border-color: var(--clr-olive);
}
.btn--olive:hover {
  background: var(--clr-olive-light);
  border-color: var(--clr-olive-light);
  color: var(--clr-parchment);
  transform: translateY(-1px);
}

.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn--full { width: 100%; }

.btn-arrow::after { content: ' →'; }
.btn-loading { pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: var(--space-sm);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-xl);
  transition: box-shadow var(--transition-mid), transform var(--transition-mid);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card--flat { border: none; background: var(--bg-secondary); }
.card--gold { border-color: var(--clr-gold); }

.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}
.card-icon--olive { background: linear-gradient(135deg, var(--clr-olive), var(--clr-olive-light)); }
.card-icon--navy  { background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-mid)); }
.card-icon--rust  { background: linear-gradient(135deg, var(--clr-rust), var(--clr-rust-light)); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  background: linear-gradient(160deg, var(--clr-navy) 0%, var(--clr-navy-mid) 50%, #1A3A2A 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(184,150,62,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74,94,58,0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139,58,42,0.1) 0%, transparent 40%);
}

/* VIDEO/IMAGE HERO — instructions for designer */
/* 
  To add a hero background image or video:
  1. Place image at /images/hero-bg.jpg (recommended: 1920×1080, optimized)
  2. Uncomment and update the background-image in .hero-media
  3. For video: use <video> tag with autoplay muted loop playsinline
  4. Suggested sources: Unsplash.com, Pexels.com (search: "diverse community prayer")
*/
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  /* background-image: url('../images/hero-bg.jpg'); */
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,43,58,0.6), rgba(28,43,58,0.85));
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 800px;
  padding-block: var(--space-4xl);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: rgba(184,150,62,0.15);
  border: 1px solid rgba(184,150,62,0.4);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  margin-bottom: var(--space-xl);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--clr-parchment);
  line-height: 1.15;
  margin-bottom: var(--space-xl);
}
.hero h1 em {
  font-style: italic;
  color: var(--clr-gold-light);
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-sand);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
  line-height: 1.75;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--space-xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(247,243,236,0.15);
}
.hero-stat { }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--clr-gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--clr-sand);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* ── EXPRESSIONS TABS ────────────────────────────────────────────────────── */
.expressions-tabs {
  display: flex; gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  border-bottom: 2px solid var(--border-color);
}
.expression-tab {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none; border-top: none; border-left: none; border-right: none;
}
.expression-tab:hover { color: var(--text-primary); }
.expression-tab.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}
.expression-panel { display: none; animation: fadeIn 0.3s ease; }
.expression-panel.active { display: block; }

/* ── STEPS ───────────────────────────────────────────────────────────────── */
.steps-list { display: grid; gap: var(--space-xl); }
.step {
  display: flex; gap: var(--space-lg);
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  left: 24px; top: 56px;
  width: 2px;
  height: calc(100% - 24px + var(--space-xl));
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--clr-navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-content { padding-top: var(--space-sm); }
.step-content h4 { margin-bottom: var(--space-sm); }

/* ── FORMS ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}
.form-label .required { color: var(--accent-danger); margin-left: 2px; }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: var(--shadow-gold);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8963E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-error {
  font-size: 0.8rem;
  color: var(--accent-danger);
  margin-top: var(--space-xs);
  display: none;
}
.form-error.visible { display: block; }
.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Checkbox */
.checkbox-group { display: flex; flex-direction: column; gap: var(--space-sm); }
.checkbox-label {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--bg-card);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--transition-fast);
  position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: var(--clr-navy);
  font-weight: 700;
}

/* Honeypot fields — hidden from users, visible to bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Form success/error states */
.form-status {
  padding: var(--space-lg);
  border-radius: var(--border-radius-md);
  display: none;
  text-align: center;
}
.form-status.success {
  display: block;
  background: rgba(74,94,58,0.1);
  border: 1px solid var(--clr-olive-light);
  color: var(--clr-olive);
}
.form-status.error {
  display: block;
  background: rgba(139,58,42,0.1);
  border: 1px solid var(--clr-rust);
  color: var(--clr-rust);
}
[data-theme="dark"] .form-status.success { color: #8FA87A; }
[data-theme="dark"] .form-status.error   { color: #C96B58; }

/* ── SPHERES GRID ────────────────────────────────────────────────────────── */
.spheres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.sphere-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-mid);
  position: relative;
  overflow: hidden;
}
.sphere-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-olive));
  transform: scaleX(0);
  transition: transform var(--transition-mid);
}
.sphere-card:hover::before { transform: scaleX(1); }
.sphere-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sphere-emoji { font-size: 2rem; margin-bottom: var(--space-md); }
.sphere-card h4 { color: var(--accent-primary); margin-bottom: var(--space-sm); }

/* ── OPERATION SHALOM STEPS ──────────────────────────────────────────────── */
.shalom-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.shalom-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: all var(--transition-mid);
}
.shalom-step:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.shalom-step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-primary);
  opacity: 0.4;
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  line-height: 1;
}
.shalom-step-icon { font-size: 1.75rem; margin-bottom: var(--space-md); }
.shalom-step h4 { color: var(--text-primary); margin-bottom: var(--space-sm); }

/* ── TESTIMONIAL / QUOTE ─────────────────────────────────────────────────── */
.quote-block {
  background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-mid));
  border-radius: var(--border-radius-xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.quote-block::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 12rem;
  color: rgba(184,150,62,0.1);
  position: absolute;
  top: -2rem; left: var(--space-xl);
  line-height: 1;
}
.quote-block blockquote {
  border: none;
  padding: 0;
  color: var(--clr-parchment);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}
.quote-block cite { color: var(--clr-gold-light); }

/* ── STATS BAR ───────────────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.stat-item {
  background: var(--bg-card);
  padding: var(--space-xl);
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent-primary);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  letter-spacing: 0.05em;
}

/* ── STORY CARDS ─────────────────────────────────────────────────────────── */
.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-mid);
}
.story-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.story-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-secondary);
  /* 
    IMAGE PLACEHOLDER — Replace with real photography
    Recommended: Unsplash.com, Pexels.com
    Search: "diverse community gathering", "prayer group", "neighborhood outreach"
    Size: 800×450px, optimized <200KB
  */
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  min-height: 200px;
}
.story-card-body { padding: var(--space-xl); }
.story-card-meta {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.story-tag {
  display: inline-block;
  background: rgba(184,150,62,0.12);
  color: var(--accent-primary);
  border-radius: 100px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-navy);
  color: var(--clr-sand);
  padding-top: var(--space-4xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(247,243,236,0.1);
}
.footer-brand p {
  color: var(--clr-sand-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-parchment);
  margin-bottom: var(--space-lg);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  color: var(--clr-sand-light);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--clr-gold-light); }
.footer-bottom {
  padding-block: var(--space-xl);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--clr-sand);
}
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { color: var(--clr-sand); text-decoration: none; }
.footer-legal a:hover { color: var(--clr-gold-light); }

/* Social icons */
.social-links { display: flex; gap: var(--space-sm); }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,236,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-sand);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.social-link:hover {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-navy);
}

/* Newsletter in footer */
.footer-newsletter { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.footer-newsletter .form-input {
  flex: 1;
  padding: 0.6rem 0.875rem;
  background: rgba(247,243,236,0.07);
  border-color: rgba(247,243,236,0.2);
  color: var(--clr-parchment);
  font-size: 0.85rem;
}
.footer-newsletter .form-input::placeholder { color: var(--clr-sand); }
.footer-newsletter .form-input:focus { border-color: var(--clr-gold); }
.footer-newsletter .btn { white-space: nowrap; }

/* ── BREADCRUMB ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb-sep { color: var(--border-color); }

/* ── PAGE HERO (sub-pages) ───────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(160deg, var(--clr-navy) 0%, var(--clr-navy-mid) 100%);
  text-align: center;
}
.page-hero h1 { color: var(--clr-parchment); margin-bottom: var(--space-md); }
.page-hero p  { color: var(--clr-sand); font-size: 1.1rem; }

/* ── PILL TAGS ───────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pill--gold   { background: rgba(184,150,62,0.12); color: var(--clr-gold); }
.pill--olive  { background: rgba(74,94,58,0.12);   color: var(--clr-olive-light); }
.pill--navy   { background: rgba(28,43,58,0.12);   color: var(--clr-navy-mid); }
[data-theme="dark"] .pill--olive { color: #8FA87A; }
[data-theme="dark"] .pill--navy  { background: rgba(212,175,90,0.1); color: var(--clr-gold-light); }

/* ── ACCORDION ───────────────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%; text-align: left;
  padding: var(--space-lg) var(--space-xl);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition-fast);
}
.accordion-trigger:hover { background: var(--bg-secondary); }
.accordion-trigger[aria-expanded="true"] { color: var(--accent-primary); }
.accordion-icon { transition: transform var(--transition-fast); font-size: 0.75rem; }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-content {
  display: none;
  padding: 0 var(--space-xl) var(--space-lg);
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.accordion-content.open { display: block; }

/* ── BACK TO TOP ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--clr-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: all var(--transition-mid);
  z-index: 900;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ── COOKIE BANNER ───────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: var(--clr-navy);
  border-top: 1px solid rgba(184,150,62,0.3);
  padding: var(--space-lg) var(--space-xl);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-text { color: var(--clr-sand-light); font-size: 0.85rem; max-width: 700px; }
.cookie-text a { color: var(--clr-gold-light); }
.cookie-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ── PRINT ───────────────────────────────────────────────────────────────── */
@media print {
  .site-nav, .back-to-top, .cookie-banner, .theme-toggle { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .container   { padding-inline: var(--space-lg); }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links, .btn.nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a { font-size: 1rem; padding: var(--space-sm) 0; }
  .nav-links.open .btn { display: flex; margin-top: var(--space-sm); width: 100%; }
  .footer-grid  { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .form-row     { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .expressions-tabs { overflow-x: auto; }
  .expression-tab   { white-space: nowrap; }
  .section { padding-block: var(--space-3xl); }
  .container { padding-inline: var(--space-md); }
  .back-to-top { bottom: var(--space-md); right: var(--space-md); }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  .hero-stat-num { font-size: 1.5rem; }
  .shalom-steps  { grid-template-columns: 1fr; }
  .stats-bar     { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }
}
