/* =========================================================
   UNITED C.O.G.I.C. — Design System
   Palette derived from crest: Navy, Gold, Maroon, Cream
   ========================================================= */

:root, [data-theme="light"] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

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

  /* LIGHT MODE — Cream surfaces, navy text, gold + maroon accents */
  --color-bg: #FAF7F0;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F0E4;
  --color-surface-offset: #EDE5D0;
  --color-surface-offset-2: #E4DAC0;
  --color-divider: #E0D6BF;
  --color-border: #C9BE9E;

  --color-text: #14213D;         /* Deep Navy */
  --color-text-muted: #4A5578;
  --color-text-faint: #8A94AF;
  --color-text-inverse: #FAF7F0;

  --color-primary: #14213D;      /* Navy — main brand */
  --color-primary-hover: #0B1830;
  --color-primary-active: #060F22;
  --color-primary-highlight: #D6DBE5;

  --color-gold: #A8823A;         /* Rich gold */
  --color-gold-hover: #8A6A2E;
  --color-gold-active: #6E5424;
  --color-gold-highlight: #EDE3CE;

  --color-maroon: #8B1A2B;       /* Ribbon maroon */
  --color-maroon-hover: #6E1121;
  --color-maroon-highlight: #E9CBD0;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 18px 48px rgba(20, 33, 61, 0.18);

  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
}

/* DARK MODE — deep navy backdrop with gold */
[data-theme="dark"] {
  --color-bg: #0A1225;
  --color-surface: #101B36;
  --color-surface-2: #14213D;
  --color-surface-offset: #1A2A4E;
  --color-surface-offset-2: #22375F;
  --color-divider: #1D2C4E;
  --color-border: #2E4674;

  --color-text: #F0E9D2;
  --color-text-muted: #B0BAD1;
  --color-text-faint: #6B7A9A;
  --color-text-inverse: #14213D;

  --color-primary: #C9A76B;      /* Gold takes primary role at night */
  --color-primary-hover: #D9BB84;
  --color-primary-active: #E8D0A2;
  --color-primary-highlight: #33345A;

  --color-gold: #C9A76B;
  --color-gold-hover: #D9BB84;
  --color-gold-highlight: #33345A;

  --color-maroon: #C25064;
  --color-maroon-hover: #D66478;
  --color-maroon-highlight: #3A2432;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

.container-narrow { max-width: var(--content-narrow); }
.container-default { max-width: var(--content-default); }

section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }

/* =========================================================
   HEADER / NAV
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--color-border) 60%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  min-width: 0; /* lets the brand text shrink before the header controls are pushed off-screen */
}

.nav-brand img {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.nav-brand-name, .nav-brand-tag { overflow: hidden; text-overflow: ellipsis; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nav-brand-name { font-size: 1rem; }
  .nav-brand-tag { font-size: 0.65rem; letter-spacing: 0.1em; }
  .nav-brand img { width: 36px; height: 36px; }
}
.nav-brand-tag {
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  gap: var(--space-2);
  align-items: center;
  list-style: none;
}
/* The full desktop row (brand + 7 links + actions) needs ~1076px of viewport
   at current type sizes; it fits from 1140px. 1180px leaves headroom for font
   rendering differences. Below this, the menu button + drawer is used. */
@media (min-width: 1180px) {
  .nav-links { display: flex; }
}

.nav-links a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

.mobile-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: inline-flex; align-items: center; justify-content: center;
}
@media (min-width: 1180px) { .mobile-toggle { display: none; } }

/* Compact header (menu-button layout): 44px tap targets, tighter spacing */
@media (max-width: 1179px) {
  .nav { gap: var(--space-3); }
  .theme-toggle, .mobile-toggle { width: 44px; height: 44px; }
  .nav-actions .btn { min-height: 44px; }
}
/* Phones: shrink the brand lockup so the theme toggle, Give and menu button never clip */
@media (max-width: 479px) {
  .nav-brand { gap: var(--space-2); }
  .nav-brand img { width: 32px; height: 32px; }
  .nav-brand-name { font-size: 0.95rem; }
  .nav-brand-tag { font-size: 0.58rem; letter-spacing: 0.06em; }
  .nav-actions { gap: var(--space-1); }
  .nav-actions .btn { padding-inline: var(--space-3); }
}
@media (max-width: 374px) {
  .site-header .container { padding-inline: var(--space-3); }
  .nav { gap: var(--space-2); }
  .nav-brand { gap: 0.375rem; }
  .nav-brand img { width: 28px; height: 28px; }
  .nav-brand-name { font-size: 0.82rem; }
  .nav-brand-tag { font-size: 0.5rem; letter-spacing: 0.04em; }
  .nav-actions { gap: 2px; }
  .nav-actions .btn { padding-inline: 0.6rem; }
}
@media (max-width: 339px) {
  .nav-brand-name { font-size: 0.76rem; }
  .nav-brand-tag { font-size: 0.48rem; }
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-base);
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: #C9A76B;
  color: #14213D;
}
.btn-gold:visited,
.btn-gold:hover,
.btn-gold:focus-visible,
.btn-gold:active {
  color: #14213D;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: #D9BB84;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold [data-field] { color: inherit; }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover { background: var(--color-surface-2); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #14213D 0%, #0B1830 60%, #060F22 100%);
  color: #FAF7F0;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-image, url("./assets/hero-preaching.jpg"));
  background-size: cover;
  background-position: center 25%;
  opacity: 0.28;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(6, 15, 34, 0.55) 0%,
    rgba(6, 15, 34, 0.75) 55%,
    rgba(6, 15, 34, 0.92) 100%);
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #C9A76B;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: currentColor;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #FAF7F0;
  max-width: 15ch;
  margin-bottom: var(--space-6);
}

.hero h1 .accent {
  color: #C9A76B;
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: var(--text-lg);
  color: rgba(250, 247, 240, 0.86);
  max-width: 46ch;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(201, 167, 107, 0.25);
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: var(--space-1);
}
.hero-meta-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201, 167, 107, 0.9);
  font-weight: 600;
}
.hero-meta-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: #FAF7F0;
  font-weight: 500;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-eyebrow {
  display: inline-block;
  color: var(--color-maroon);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-title .accent {
  color: var(--color-maroon);
  font-style: italic;
  font-weight: 400;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-bottom: var(--space-10);
}

/* Welcome / About preview */
.welcome {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .welcome { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-20); }
}

.welcome-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-lg);
}
.welcome-image img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.welcome-image::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Motto card */
.motto {
  /* This brand surface stays navy with cream text in both themes. In dark mode
     --color-primary turns gold, which hid the gold numerals and titles. */
  background: #14213D;
  color: #FAF7F0;
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  margin-block: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.motto::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201, 167, 107,0.20) 0%, transparent 60%);
  pointer-events: none;
}

.motto-words {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .motto-words { grid-template-columns: 1fr; text-align: center; }
}

.motto-word {
  padding: var(--space-4) 0;
}
.motto-word-num {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: #C9A76B;
  font-weight: 500;
  letter-spacing: 0.15em;
  font-style: italic;
  margin-bottom: var(--space-3);
}
.motto-word-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #C9A76B;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.motto-word-body {
  color: rgba(250, 247, 240, 0.85);
  font-size: var(--text-base);
  max-width: 30ch;
}

/* Service times card */
.services-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.service-card-day {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-gold-hover);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.service-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-weight: 700;
}
.service-card-time {
  font-size: var(--text-lg);
  color: var(--color-maroon);
  font-weight: 600;
  font-family: var(--font-display);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.service-card-note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Sermon reels — replicating vertical reel aesthetic */
.reels-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #14213D, #060F22);
  cursor: pointer;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
  text-decoration: none;
  color: white;
  display: block;
}
.reel-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-lg); }
.video-item { min-width: 0; }
.video-item .reel-card { width: 100%; }
.video-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-3); }
.video-actions a { color: var(--color-text); font-size: var(--text-sm); text-underline-offset: .2em; }
.video-play-inline { background: #C9A76B; color: #14213D; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 700; }
.video-play-inline:disabled { opacity: .65; cursor: default; }
.video-privacy { color: var(--color-text-muted); font-size: var(--text-xs); margin-top: var(--space-2); }
.video-player { margin-top: var(--space-3); }
.video-player iframe { width: 100%; min-height: 480px; border: 0; border-radius: var(--radius-md); background: var(--color-surface); }
.video-empty { color: var(--color-text-muted); grid-column: 1 / -1; }

.reel-card-image {
  position: absolute; inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0.55;
  z-index: -1;
}

.reel-card-play {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201, 167, 107, 0.95);
  color: #14213D;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform var(--transition-interactive);
  z-index: 2;
}
.reel-card-play svg { width: 18px; height: 18px; }
.reel-card:hover .reel-card-play { transform: scale(1.08); }

.reel-caption {
  position: absolute;
  left: var(--space-4); right: var(--space-4);
  top: 46%;
  transform: translateY(-50%);
  background: white;
  color: #14213D;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1;
}
.reel-caption .highlight { color: #A8823A; }

.reel-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(6,15,34,0.95), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(250,247,240,0.85);
}
.reel-meta-tag {
  color: #C9A76B;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Ministries grid */
.ministries-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ministry-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
[data-theme="dark"] .ministry-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ministry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.12);
}

.ministry-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-gold) 20%, transparent);
  color: var(--color-gold-hover);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}

.ministry-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.ministry-desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* Event cards */
.events-list {
  display: flex; flex-direction: column;
  gap: var(--space-4);
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.event-card[hidden] { display: none; }
.events-empty {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  text-align: center;
}
.events-empty[hidden] { display: none; }
.event-card:hover {
  border-color: var(--color-gold);
  transform: translateX(4px);
}

.event-date {
  min-width: 76px;
  text-align: center;
  padding: var(--space-3);
  background: #14213D;
  color: #FAF7F0;
  border-radius: var(--radius-md);
}
.event-date-day {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #C9A76B;
  display: block;
  line-height: 1;
}
.event-date-month {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.85);
  margin-top: var(--space-1);
}

.event-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.event-body p { color: var(--color-text-muted); font-size: var(--text-sm); }

.event-time {
  font-family: var(--font-display);
  color: var(--color-maroon);
  font-weight: 600;
  font-feature-settings: "tnum";
}

@media (max-width: 640px) {
  .event-card { grid-template-columns: auto 1fr; }
  .event-time { grid-column: 2; margin-top: var(--space-2); }
}

/* Pastor page */
.pastor-hero {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .pastor-hero { grid-template-columns: 5fr 7fr; gap: var(--space-16); }
}

.pastor-portrait {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pastor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pastor-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.08);
}

.pastor-info h1, .pastor-info h2 {
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: 1.05;
}
.pastor-info h1 .accent, .pastor-info h2 .accent {
  color: var(--color-maroon);
  font-style: italic;
  font-weight: 400;
}

.pastor-title {
  display: inline-block;
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.pastor-quote {
  border-left: 3px solid var(--color-gold);
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
  margin-block: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  max-width: 40ch;
}
.pastor-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Contact / footer */
.contact-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.contact-item-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-hover);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.contact-item-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: 1.4;
}
.contact-item-value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--color-gold); }
.contact-item-value a:hover { color: var(--color-maroon); }

/* Give page */
.give-hero {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}
.give-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin: var(--space-8) auto;
  max-width: 40ch;
}
.give-methods {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: var(--space-12);
}
.give-method {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.give-method:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.give-method-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.give-method-detail {
  font-family: var(--font-display);
  font-feature-settings: "tnum";
  color: var(--color-maroon);
  font-weight: 600;
  font-size: var(--text-lg);
  margin-top: var(--space-3);
}

/* Footer */
.site-footer {
  /* This brand surface stays navy even when dark mode uses gold for primary actions. */
  background: #14213D;
  color: rgba(250, 247, 240, 0.85);
  padding-block: var(--space-20) var(--space-10);
  margin-top: var(--space-20);
}
.site-footer .container { color: inherit; }
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand {
  display: flex; gap: var(--space-3); align-items: center; margin-bottom: var(--space-4);
}
.footer-brand img { width: 48px; height: 48px; }
.footer-brand-text {
  font-family: var(--font-display);
  color: #FAF7F0;
  font-size: var(--text-lg);
  font-weight: 700;
}
.footer-tag {
  color: #C9A76B;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #C9A76B;
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: rgba(250, 247, 240, 0.75); text-decoration: none; font-size: var(--text-sm); }
.footer-col a:hover,
.footer-col a:focus-visible {
  color: #C9A76B;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(201, 167, 107, 0.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(250, 247, 240, 0.6);
}

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, #14213D 0%, #0B1830 100%);
  color: #FAF7F0;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201, 167, 107,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-eyebrow {
  color: #C9A76B;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--space-4);
  display: inline-block;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: #FAF7F0;
  max-width: 20ch;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.page-hero h1 .accent {
  color: #C9A76B;
  font-style: italic;
  font-weight: 400;
}
.page-hero p {
  font-size: var(--text-lg);
  color: rgba(250, 247, 240, 0.8);
  max-width: 55ch;
}

/* Prose block */
.prose {
  max-width: 68ch;
}
.prose p { margin-bottom: var(--space-6); color: var(--color-text-muted); font-size: var(--text-base); }
.prose h2 { font-size: var(--text-xl); color: var(--color-text); margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose h2 .accent { color: var(--color-maroon); font-style: italic; font-weight: 400; }
.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-6);
  margin-block: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #8B1A2B 0%, #6E1121 100%);
  color: #FAF7F0;
  padding: clamp(var(--space-12), 8vw, var(--space-20));
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-block: var(--space-16);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 100%, rgba(201, 167, 107,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #FAF7F0;
  margin-bottom: var(--space-4);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-banner h2 .accent { color: #C9A76B; font-style: italic; font-weight: 400; }
.cta-banner p {
  font-size: var(--text-lg);
  color: rgba(250,247,240,0.85);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
}

/* Fade-in scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* About page hero — Service Times graphic as faded backdrop */
.page-hero-about { position: relative; }
.page-hero-about .page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/service-times-graphic.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.85);
  z-index: 1;
  pointer-events: none;
}
.page-hero-about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,33,61,0.75) 0%, rgba(11,24,48,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Founders section */
.founders-section {
  background: var(--color-surface);
  padding-block: var(--space-20);
}
.founders-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
}
.founders-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20,33,61,0.18);
}
.founders-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
}
.founders-badge {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 96px;
  height: 96px;
  background: #A8823A;
  color: #FAF7F0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(20,33,61,0.35);
  border: 3px solid #FAF7F0;
}
.founders-badge span {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 4px;
  font-family: var(--font-body);
}
.founders-body p { margin-bottom: var(--space-4); }
.founders-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: #A8823A;
  margin-top: var(--space-6);
}
@media (max-width: 768px) {
  .founders-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .founders-image { max-width: 400px; margin: 0 auto; }
  .founders-badge { width: 72px; height: 72px; font-size: 1.6rem; bottom: var(--space-3); right: var(--space-3); }
  .founders-badge span { font-size: 0.5rem; }
}
