/*
Theme Name: Mt. Olive MBC
Theme URI: https://mt-olivembc.org
Author: Mount Olive Missionary Baptist Church
Author URI: https://mt-olivembc.org
Description: Warm, welcoming WordPress theme for Mount Olive Missionary Baptist Church. Crimson + gold + warm-brown design system with light and dark modes. Built from the Mt. Olive design system.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mt-olive-mbc
*/

/* ============================================================
   MT. OLIVE MISSIONARY BAPTIST CHURCH — DESIGN SYSTEM
   ------------------------------------------------------------
   This file is the single source of truth for the look of the
   site. Colors, fonts, spacing, and components all live here.

   ★ NEVER hard-code a color in a template. Always use a CSS
     variable (var(--brand-primary), etc.) so a change here
     propagates everywhere — including dark mode.

   Sections:
     1. Raw color palette
     2. Semantic tokens (brand / bg / text / border / shadow / radii)
     3. Spacing scale
     4. Typography tokens + applied styles
     5. Base reset
     6. Dark mode token overrides
     7. Layout helpers
     8. Components (buttons, header, hero, cards, verse, forms,
        modal, tabs, footer, notices)
   ============================================================ */

/* Fonts are also enqueued via functions.php; @import kept as a
   fallback so the stylesheet is correct if opened standalone. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   1. COLOR TOKENS — RAW PALETTE
   ============================================================ */
:root {
  /* Primary — Crimson Red (from logo cross) */
  --color-crimson-950:  #4A0E09;
  --color-crimson-900:  #7A1E13;
  --color-crimson-800:  #8E2418;
  --color-crimson-700:  #A52B1C;   /* Brand primary */
  --color-crimson-600:  #C04030;
  --color-crimson-500:  #D95040;
  --color-crimson-400:  #E87060;
  --color-crimson-300:  #F09080;
  --color-crimson-200:  #F5B8AE;
  --color-crimson-100:  #FAE0DC;
  --color-crimson-50:   #FDF5F4;

  /* Gold — Warm Accent */
  --color-gold-900:     #5C3D08;
  --color-gold-800:     #7A5210;
  --color-gold-700:     #9E7312;
  --color-gold-600:     #C8961A;   /* Brand gold */
  --color-gold-500:     #E6B52C;
  --color-gold-400:     #F0C84A;
  --color-gold-300:     #F5D878;
  --color-gold-200:     #FAE9AA;
  --color-gold-100:     #FDF5D6;
  --color-gold-50:      #FFFDF0;

  /* Neutrals — Warm Brown-Tinted */
  --color-brown-950:    #1A0F0A;
  --color-brown-900:    #2D2118;   /* Primary text */
  --color-brown-800:    #4A3327;
  --color-brown-700:    #62463A;
  --color-brown-600:    #7A5C4A;   /* Secondary text */
  --color-brown-500:    #957065;
  --color-brown-400:    #B08C80;
  --color-brown-300:    #C5B0A8;
  --color-brown-200:    #DDD0C8;   /* Dove silver */
  --color-brown-100:    #EDE8E4;   /* Warm sand / borders */
  --color-brown-50:     #F7F4F1;   /* Warm beige */

  /* White & Cream */
  --color-cream:        #FAF8F4;   /* Page background */
  --color-warm-white:   #FDFCFA;
  --color-true-white:   #FFFFFF;

  /* Fixed-dark surfaces (used in BOTH light & dark mode:
     hero, verse strip, give CTA, footer) */
  --color-ink-hero:     #140C08;
  --color-ink-deep:     #0D0806;
  --color-ink-verse:    #2D2118;
  --color-ink-footer:   #2D2118;
}

/* ============================================================
   2. SEMANTIC COLOR TOKENS
   ============================================================ */
:root {
  /* Brand */
  --brand-primary:          var(--color-crimson-700);
  --brand-primary-hover:    var(--color-crimson-900);
  --brand-primary-active:   var(--color-crimson-950);
  --brand-primary-light:    var(--color-crimson-100);
  --brand-primary-subtle:   var(--color-crimson-50);

  --brand-accent:           var(--color-gold-600);
  --brand-accent-hover:     var(--color-gold-700);
  --brand-accent-active:    var(--color-gold-800);
  --brand-accent-light:     var(--color-gold-100);
  --brand-accent-subtle:    var(--color-gold-50);

  /* Backgrounds — these flip in dark mode (section 6) */
  --bg-page:                var(--color-cream);
  --bg-surface:             var(--color-warm-white);
  --bg-raised:              var(--color-true-white);
  --bg-muted:               var(--color-brown-50);
  --bg-subtle:              var(--color-brown-100);
  --bg-inverse:             var(--color-brown-900);
  --bg-header:              var(--color-cream);
  --bg-announce:            var(--color-gold-100);
  --bg-footer:              var(--color-ink-footer);

  /* Foregrounds / Text — flip in dark mode */
  --fg-primary:             var(--color-brown-900);
  --fg-secondary:           var(--color-brown-600);
  --fg-tertiary:            var(--color-brown-400);
  --fg-placeholder:         var(--color-brown-300);
  --fg-inverse:             var(--color-warm-white);
  --fg-on-brand:            var(--color-warm-white);
  --fg-link:                var(--color-crimson-700);
  --fg-link-hover:          var(--color-gold-600);

  /* Borders — flip in dark mode */
  --border-subtle:          var(--color-brown-100);
  --border-default:         var(--color-brown-200);
  --border-strong:          var(--color-brown-300);
  --border-brand:           var(--color-crimson-700);
  --border-accent:          var(--color-gold-600);

  /* States */
  --state-focus:            var(--color-gold-500);
  --state-error:            #C0392B;
  --state-success:          #27654A;
  --state-warning:          var(--color-gold-600);

  /* Shadows — warm-tinted, never cold gray */
  --shadow-sm:   0 1px 4px rgba(45,33,24,0.08);
  --shadow-md:   0 4px 16px rgba(45,33,24,0.12);
  --shadow-lg:   0 8px 32px rgba(45,33,24,0.18);
  --shadow-xl:   0 16px 56px rgba(45,33,24,0.24);

  /* Radii */
  --radius-xs:   2px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Layout */
  --content-max: 1200px;
  --shell-max:   1280px;
}

/* ============================================================
   3. SPACING TOKENS (base-8 scale)
   ============================================================ */
:root {
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-7:    28px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-32:   128px;
}

/* ============================================================
   4. TYPOGRAPHY TOKENS
   ============================================================ */
:root {
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Lora', Georgia, 'Times New Roman', serif;
  --font-ui:      'Raleway', 'Helvetica Neue', Arial, sans-serif;

  --weight-light:       300;
  --weight-regular:     400;
  --weight-medium:      500;
  --weight-semibold:    600;
  --weight-bold:        700;
  --weight-extrabold:   800;

  --text-display-2xl:  clamp(3rem,    6vw, 5rem);
  --text-display-xl:   clamp(2.25rem, 5vw, 3.75rem);
  --text-display-lg:   clamp(1.875rem,4vw, 3rem);
  --text-display-md:   clamp(1.5rem,  3vw, 2.25rem);
  --text-display-sm:   clamp(1.25rem, 2.5vw,1.75rem);
  --text-display-xs:   clamp(1.125rem,2vw, 1.375rem);

  --text-body-xl:   1.25rem;
  --text-body-lg:   1.125rem;
  --text-body-md:   1rem;
  --text-body-sm:   0.9375rem;
  --text-body-xs:   0.875rem;

  --text-ui-lg:     1rem;
  --text-ui-md:     0.875rem;
  --text-ui-sm:     0.8125rem;
  --text-ui-xs:     0.75rem;

  --leading-tight:    1.2;
  --leading-snug:     1.35;
  --leading-normal:   1.5;
  --leading-relaxed:  1.7;
  --leading-loose:    2;

  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.1em;
  --tracking-widest:  0.15em;
}

/* ── Applied heading / text styles ───────────────────────── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-primary);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--text-display-md);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-primary);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--fg-primary);
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--text-display-xs);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--fg-primary);
}
p, .body {
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--fg-primary);
}
.lead {
  font-family: var(--font-body);
  font-size: var(--text-body-xl);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--fg-secondary);
}
.label, label {
  font-family: var(--font-ui);
  font-size: var(--text-ui-md);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-secondary);
}
/* Gold uppercase eyebrow above section headings */
.eyebrow, .overline {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brand-accent);
}
.caption {
  font-family: var(--font-body);
  font-size: var(--text-body-xs);
  line-height: var(--leading-normal);
  color: var(--fg-tertiary);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body-md);
  line-height: var(--leading-relaxed);
  color: var(--fg-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 300ms ease, color 300ms ease;
}

a {
  color: var(--fg-link);
  text-decoration: none;
  transition: color 200ms ease;
}
a:hover { color: var(--fg-link-hover); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--state-focus); outline-offset: 2px; }

/* ============================================================
   6. DARK MODE — token overrides
   Toggling [data-theme="dark"] on <html> flips every component
   that uses the semantic tokens above. Fixed-dark surfaces
   (hero/verse/give CTA/footer) only deepen slightly.
   ============================================================ */
html[data-theme="dark"] {
  --bg-page:        var(--color-ink-deep);   /* #0D0806 */
  --bg-surface:     #1A1008;
  --bg-raised:      #221510;
  --bg-muted:       var(--color-ink-hero);   /* #140C08 */
  --bg-subtle:      #1A1008;
  --bg-inverse:     var(--color-cream);
  --bg-header:      var(--color-ink-deep);
  --bg-announce:    #1A1008;
  --bg-footer:      #080402;

  --fg-primary:     var(--color-cream);
  --fg-secondary:   var(--color-brown-300);
  --fg-tertiary:    var(--color-brown-600);
  --fg-placeholder: var(--color-brown-700);
  --fg-link:        var(--color-gold-500);
  --fg-link-hover:  var(--color-gold-400);

  --border-subtle:  #3A2518;
  --border-default: #4A3327;
  --border-strong:  var(--color-brown-700);
  --border-brand:   var(--color-crimson-600);

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:   0 16px 56px rgba(0,0,0,0.7);
}

/* ============================================================
   7. LAYOUT HELPERS
   ============================================================ */
.container { max-width: var(--content-max); margin: 0 auto; padding-left: var(--space-10); padding-right: var(--space-10); }
.shell     { max-width: var(--shell-max);   margin: 0 auto; padding-left: var(--space-10); padding-right: var(--space-10); }
.section   { padding: var(--space-20) 0; }
.section--lg { padding: var(--space-24) 0; }
.section--cream  { background: var(--bg-page); }
.section--surface{ background: var(--bg-surface); }
.section--muted  { background: var(--bg-muted); }
.section--ink    { background: var(--color-ink-deep); color: var(--color-cream); }
.text-center { text-align: center; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--space-12); }
.section-head h2 { color: var(--fg-primary); }
.stack-sm > * + * { margin-top: var(--space-3); }
.stack > * + *    { margin-top: var(--space-5); }
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .container, .shell { padding-left: var(--space-5); padding-right: var(--space-5); }
  .section { padding: var(--space-16) 0; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ============================================================
   8. COMPONENTS
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-ui-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 8px 16px; font-size: var(--text-ui-xs); }
.btn--lg { padding: 16px 40px; font-size: var(--text-ui-md); }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--brand-primary); color: var(--fg-on-brand); box-shadow: 0 2px 8px rgba(165,43,28,0.24); }
.btn--primary:hover { background: var(--brand-primary-hover); color: var(--fg-on-brand); box-shadow: 0 4px 20px rgba(165,43,28,0.45); }

.btn--gold { background: var(--brand-accent); color: var(--color-brown-900); box-shadow: 0 2px 8px rgba(200,150,26,0.3); }
.btn--gold:hover { background: var(--brand-accent-hover); color: var(--color-brown-900); box-shadow: 0 4px 16px rgba(200,150,26,0.45); }

.btn--outline { background: transparent; color: var(--brand-primary); border-color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary); color: var(--fg-on-brand); }

.btn--ghost { background: transparent; color: var(--fg-primary); border-color: var(--border-default); }
.btn--ghost:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

/* On fixed-dark sections (hero, give CTA) light-on-dark ghost */
.btn--on-dark { background: transparent; color: var(--color-cream); border-color: rgba(255,255,255,0.25); }
.btn--on-dark:hover { border-color: rgba(255,255,255,0.6); color: var(--color-cream); }

/* ── Announcement / Zoom bar ─────────────────────────────── */
.announce-bar {
  background: var(--bg-announce);
  border-bottom: 1px solid var(--color-gold-200);
  padding: 7px var(--space-10);
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-ui-xs);
  font-weight: var(--weight-semibold);
  color: var(--color-gold-800);
  text-align: center; flex-wrap: wrap;
}
html[data-theme="dark"] .announce-bar { border-bottom-color: #3A2518; color: var(--color-gold-600); }
.announce-bar .btn { padding: 5px 14px; }

/* ── Site header / nav ───────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bg-header); border-bottom: 1px solid var(--border-subtle); box-shadow: 0 1px 8px rgba(45,33,24,0.06); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: 88px; }
.brand { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.brand img { height: 72px; width: 72px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 1.0625rem; font-weight: var(--weight-semibold); color: var(--fg-primary); line-height: 1.2; }
.brand__sub  { display: block; font-family: var(--font-ui); font-size: 0.5625rem; font-weight: var(--weight-bold); letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-brown-600); margin-top: 1px; }

.nav { display: flex; gap: 2px; }
.nav-link { font-family: var(--font-ui); font-size: var(--text-ui-xs); font-weight: var(--weight-bold); letter-spacing: 0.07em; text-transform: uppercase; padding: 7px 10px; border-radius: var(--radius-sm); border: none; background: transparent; color: var(--color-brown-800); cursor: pointer; transition: all 180ms ease; border-bottom: 2px solid transparent; }
html[data-theme="dark"] .nav-link { color: var(--color-brown-300); }
.nav-link:hover { color: var(--brand-primary); }
.nav-link.is-active { background: var(--brand-primary-subtle); color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
html[data-theme="dark"] .nav-link.is-active { background: rgba(200,150,26,0.1); color: var(--color-gold-500); border-bottom-color: var(--color-gold-500); }

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

/* Dark-mode toggle button */
.theme-toggle { width: 38px; height: 38px; border-radius: var(--radius-full); border: 1px solid var(--border-default); background: var(--bg-muted); color: var(--fg-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 150ms ease, border-color 180ms ease; flex-shrink: 0; }
.theme-toggle:hover { transform: scale(1.08); border-color: var(--brand-accent); color: var(--brand-accent); }
/* Sun/moon icon swap — applies to any dark-mode toggle (nav or floating FAB) */
[data-theme-toggle] .icon-moon { display: none; }
[data-theme-toggle] .icon-sun  { display: block; }
html[data-theme="dark"] [data-theme-toggle] .icon-moon { display: block; }
html[data-theme="dark"] [data-theme-toggle] .icon-sun  { display: none; }

/* Hamburger + mobile menu */
.hamburger { display: none; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--bg-muted); border: 1px solid var(--border-subtle); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { width: 18px; height: 2px; background: var(--color-brown-800); border-radius: 2px; transition: all 200ms ease; }
.hamburger span:nth-child(2) { width: 14px; }
html[data-theme="dark"] .hamburger span { background: var(--color-brown-300); }
.mobile-menu { display: none; background: var(--bg-header); border-top: 1px solid var(--border-subtle); padding: var(--space-2) 0 var(--space-4); box-shadow: var(--shadow-lg); }
.mobile-menu.is-open { display: block; }
.mobile-menu .nav-link { display: block; width: 100%; text-align: left; padding: 12px 24px; font-size: var(--text-ui-md); border-radius: 0; border-bottom: none; border-left: 3px solid transparent; }
.mobile-menu .nav-link.is-active { border-left-color: var(--brand-primary); border-bottom: none; }
.mobile-ctas { display: flex; gap: var(--space-3); margin: var(--space-3) var(--space-6) var(--space-1); }

@media (max-width: 1024px) {
  .nav, .nav-ctas .btn { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero (fixed dark) ───────────────────────────────────── */
.hero { position: relative; min-height: 85vh; background: var(--color-ink-hero); display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(ellipse 65% 55% at 50% 46%, rgba(200,150,26,0.14) 0%, rgba(165,43,28,0.10) 40%, transparent 68%); pointer-events: none; }
.hero__fade { position: absolute; bottom: 0; left: 0; right: 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--color-ink-hero)); pointer-events: none; }
.hero__cross { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%); opacity: 0.07; width: min(55%, 520px); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; padding: 100px var(--space-8) var(--space-20); max-width: 780px; }
.hero__logo { height: 180px; margin: 0 auto var(--space-8); filter: drop-shadow(0 4px 24px rgba(200,150,26,0.3)); }
.hero__eyebrow { color: var(--brand-accent); letter-spacing: 0.22em; margin-bottom: var(--space-5); }
.hero__title { font-family: var(--font-display); font-size: clamp(2.5rem,5.5vw,4.25rem); font-weight: var(--weight-regular); color: var(--color-cream); line-height: 1.1; margin-bottom: var(--space-6); letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--color-gold-500); }
.hero__lede { font-family: var(--font-body); font-size: var(--text-body-lg); color: var(--color-brown-300); line-height: 1.75; max-width: 520px; margin: 0 auto var(--space-12); }
.hero__cta { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Service times strip */
.service-times { display: flex; justify-content: center; margin-top: var(--space-14, 56px); border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-7); flex-wrap: wrap; }
.service-time { padding: 0 var(--space-7); text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.service-time:last-child { border-right: none; }
.service-time__label { font-family: var(--font-ui); font-size: 0.625rem; font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--brand-accent); margin-bottom: var(--space-1); }
.service-time__time { font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--weight-medium); color: var(--color-cream); }

/* ── Verse of the Day (fixed dark) ───────────────────────── */
.verse { background: var(--color-ink-verse); padding: var(--space-10); position: relative; overflow: hidden; }
html[data-theme="dark"] .verse { background: #1A1008; }
.verse__cross { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); opacity: 0.06; width: 160px; pointer-events: none; }
.verse__inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-8); position: relative; z-index: 1; }
.verse__icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--radius-full); background: rgba(200,150,26,0.15); border: 1px solid rgba(200,150,26,0.3); display: flex; align-items: center; justify-content: center; color: var(--brand-accent); }
.verse__text { font-family: var(--font-display); font-size: clamp(1rem,2vw,1.375rem); font-style: italic; font-weight: var(--weight-regular); color: var(--color-cream); line-height: 1.6; margin: 0; }
.verse__ref { display: block; font-family: var(--font-ui); font-size: var(--text-ui-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wider); color: var(--brand-accent); margin-top: var(--space-2); font-style: normal; }
@media (max-width: 600px) { .verse__inner { flex-direction: column; text-align: center; gap: var(--space-4); } }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease; overflow: hidden; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Ministry card — top accent rule */
.ministry-card { padding: 28px 24px; border-top: 3px solid var(--brand-primary); }
.ministry-card__icon { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--brand-primary-light); margin-bottom: var(--space-3); display: flex; align-items: center; justify-content: center; color: var(--brand-primary); }
.ministry-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--weight-semibold); color: var(--fg-primary); margin-bottom: var(--space-2); }
.ministry-card__desc { font-family: var(--font-body); font-size: var(--text-body-xs); color: var(--fg-secondary); line-height: 1.6; }

/* Event card */
.event-card { cursor: pointer; }
.event-card__media { height: 140px; position: relative; overflow: hidden; background: linear-gradient(140deg,#4A0E09,#A52B1C); background-size: cover; background-position: center; }
.event-card__cross { position: absolute; right: -16px; bottom: -16px; opacity: 0.12; width: 90px; }
.event-card__date { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.42); backdrop-filter: blur(6px); border-radius: var(--radius-md); padding: 7px 11px; text-align: center; }
.event-card__month { font-family: var(--font-ui); font-size: 0.5rem; font-weight: var(--weight-extrabold); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.event-card__day { font-family: var(--font-display); font-size: 1.625rem; font-weight: var(--weight-semibold); color: var(--color-cream); line-height: 1; }
.event-card__tag { position: absolute; bottom: 10px; left: 12px; background: var(--brand-accent); border-radius: var(--radius-sm); padding: 3px 9px; font-family: var(--font-ui); font-size: 0.5rem; font-weight: var(--weight-extrabold); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-brown-900); }
.event-card__body { padding: 14px 16px 18px; }
.event-card__title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: var(--weight-semibold); color: var(--fg-primary); line-height: 1.25; margin-bottom: var(--space-1); }
.event-card__meta { font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--fg-secondary); }
.event-card__meta--loc { color: var(--fg-tertiary); }
.event-card__more { font-family: var(--font-ui); font-size: 0.625rem; font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-primary); margin-top: var(--space-3); }

/* Callout (left rule) */
.callout { background: var(--bg-muted); border-left: 4px solid var(--brand-accent); border-radius: var(--radius-md); padding: var(--space-6); }
.callout--brand { border-left-color: var(--brand-primary); }

/* ── Welcome / generic prose strip ───────────────────────── */
.prose { max-width: 680px; margin: 0 auto; }
.prose p { margin-bottom: var(--space-4); }

/* ── Give CTA (fixed dark gradient) ──────────────────────── */
.give-cta { background: linear-gradient(135deg, #1A0F0A 0%, #2D2118 50%, #4A1A10 100%); padding: var(--space-20) var(--space-10); text-align: center; position: relative; overflow: hidden; }
.give-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.give-cta h2 { color: var(--color-cream); }
.give-cta p { color: var(--color-brown-300); }

/* ── Forms ───────────────────────────────────────────────── */
.form { max-width: 560px; }
.form-field { margin-bottom: var(--space-5); }
.form-field label, .form-label { display: block; margin-bottom: var(--space-2); color: var(--fg-secondary); }
.form-input, .form-textarea, .form-select {
  width: 100%; font-family: var(--font-body); font-size: var(--text-body-md); color: var(--fg-primary);
  background: var(--bg-raised); border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-placeholder); }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(230,181,44,0.25); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-check { display: flex; align-items: flex-start; gap: var(--space-2); font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--fg-secondary); }
/* Honeypot — visually hidden, off-screen; bots fill it, humans don't */
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Fund / amount selectors (Give page) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--space-3); }
.choice {
  font-family: var(--font-ui); font-size: var(--text-ui-sm); font-weight: var(--weight-semibold);
  padding: 14px 16px; border-radius: var(--radius-md); border: 2px solid var(--border-default);
  background: var(--bg-raised); color: var(--fg-primary); cursor: pointer; text-align: center;
  transition: all 180ms ease;
}
.choice:hover { border-color: var(--brand-accent); }
.choice.is-selected { border-color: var(--brand-primary); background: var(--brand-primary-subtle); color: var(--brand-primary); }

/* ── Notices (form success / error) ──────────────────────── */
.notice { font-family: var(--font-ui); font-size: var(--text-ui-md); font-weight: var(--weight-semibold); padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: var(--space-6); border-left: 4px solid; }
.notice--success { background: rgba(39,101,74,0.1); border-left-color: var(--state-success); color: var(--state-success); }
.notice--error   { background: rgba(192,57,43,0.1); border-left-color: var(--state-error); color: var(--state-error); }

/* ── Modal (event details, etc.) ─────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: var(--space-6); background: rgba(13,8,6,0.6); animation: mo-fade 200ms ease; }
.modal-overlay.is-open { display: flex; }
.modal-card { position: relative; background: var(--bg-surface); border-radius: var(--radius-xl); overflow: hidden; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: mo-slide 240ms ease; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: var(--radius-full); border: none; background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
@keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Tabs (About page) ───────────────────────────────────── */
.tabs { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-10); border-bottom: 1px solid var(--border-subtle); }
.tab { font-family: var(--font-ui); font-size: var(--text-ui-sm); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; padding: 12px 20px; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--fg-secondary); cursor: pointer; transition: all 180ms ease; }
.tab:hover { color: var(--brand-primary); }
.tab.is-active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: mo-fade 300ms ease; }

/* ── Page hero / header band (interior pages) ────────────── */
.page-band { background: var(--color-ink-hero); color: var(--color-cream); padding: var(--space-20) 0 var(--space-16); text-align: center; position: relative; overflow: hidden; }
.page-band.has-image { background-color: var(--color-ink-hero); }
.page-band.has-image .page-band__cross { display: none; }
.page-band__cross { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0.06; width: min(40%,360px); pointer-events: none; }
.page-band h1 { color: var(--color-cream); position: relative; z-index: 1; }
.page-band .lead { color: var(--color-brown-300); position: relative; z-index: 1; max-width: 600px; margin: var(--space-4) auto 0; }
.page-band .eyebrow { position: relative; z-index: 1; margin-bottom: var(--space-4); }

/* ── Site footer ─────────────────────────────────────────── */
.site-footer { background: var(--bg-footer); color: var(--color-brown-200); font-family: var(--font-ui); }
.site-footer__inner { max-width: var(--shell-max); margin: 0 auto; padding: var(--space-16) var(--space-10) var(--space-10); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-12); margin-bottom: var(--space-12); }
.footer-col h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--weight-semibold); color: var(--color-cream); margin-bottom: var(--space-4); }
.footer-brand__logo { height: 112px; opacity: 1; }
.footer-brand p { font-family: var(--font-body); font-size: var(--text-body-xs); color: var(--color-brown-500); line-height: 1.7; max-width: 260px; }
.footer-link { display: block; font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--color-brown-400); margin-bottom: var(--space-2); letter-spacing: 0.03em; }
.footer-link:hover { color: var(--brand-accent); }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer-social a { width: 34px; height: 34px; border-radius: var(--radius-md); border: 1px solid var(--color-brown-800); display: flex; align-items: center; justify-content: center; color: var(--color-brown-400); font-weight: var(--weight-bold); font-size: var(--text-ui-sm); transition: border-color 180ms ease, color 180ms ease; }
.footer-social a:hover { color: var(--brand-accent); border-color: var(--brand-accent); }
.footer-social a svg { width: 18px; height: 18px; }
.footer-eyebrow { font-family: var(--font-ui); font-size: var(--text-ui-xs); font-weight: var(--weight-extrabold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-accent); margin-bottom: var(--space-2); }
.footer-times { display: flex; justify-content: space-between; gap: var(--space-3); font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--color-brown-400); margin-bottom: var(--space-2); }
.footer-times span:last-child { color: var(--color-brown-500); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--color-brown-800); padding-top: var(--space-7); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom, .footer-bottom a { font-size: var(--text-ui-xs); color: var(--color-brown-600); letter-spacing: 0.04em; }
.footer-bottom__links { display: flex; gap: var(--space-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* ── Newsletter signup ───────────────────────────────────── */
/* Honeypot: visually hidden but not display:none (bots skip those). */
.mo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.newsletter-form__row { display: flex; gap: var(--space-3); align-items: stretch; }
.newsletter-form__input { flex: 1 1 auto; }
.newsletter-form__btn { flex: 0 0 auto; white-space: nowrap; }
.newsletter-form .cf-turnstile { margin-top: var(--space-3); }
@media (max-width: 480px) { .newsletter-form__row { flex-direction: column; } }

/* Home-page band: keep the form to a comfortable centered width. */
.newsletter-form--section { max-width: 520px; margin: 0 auto; }

/* Footer band: sits above the 4-column grid, on the dark footer. */
.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; padding-bottom: var(--space-12); margin-bottom: var(--space-12); border-bottom: 1px solid var(--color-brown-800); }
.footer-newsletter__text { flex: 1 1 280px; }
.footer-newsletter__text h3 { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--weight-semibold); color: var(--color-cream); margin-bottom: var(--space-2); }
.footer-newsletter__text p { font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--color-brown-400); margin: 0; }
.footer-newsletter .newsletter-form { flex: 1 1 360px; max-width: 440px; }
.footer-newsletter .newsletter-form__input { background: var(--color-warm-white); }
@media (max-width: 640px) { .footer-newsletter { flex-direction: column; align-items: stretch; } }

/* ── Floating dark-mode toggle (fixed bottom-right, per design system) ──── */
.theme-fab { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 52px; height: 52px; border-radius: var(--radius-full); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); background: var(--brand-primary); color: var(--color-cream); transition: transform 150ms ease, background-color 200ms ease; }
.theme-fab:hover { transform: scale(1.08); background: var(--brand-primary-hover); }
.theme-fab:active { transform: scale(0.96); }
html[data-theme="dark"] .theme-fab { background: var(--brand-accent); color: var(--color-brown-900); }

/* ============================================================
   9. MINISTRIES — leadership accordion, member cards, auxiliaries
   ============================================================ */

/* ── Accordion (native <details>) — click a header to expand ─ */
.accordion { display: flex; flex-direction: column; gap: var(--space-4); max-width: 980px; margin: 0 auto; }
.accordion__item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.accordion__item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5) var(--space-6); font-family: var(--font-display);
  font-size: var(--text-display-sm); font-weight: var(--weight-semibold); color: var(--fg-primary);
}
.accordion__item > summary::-webkit-details-marker { display: none; }
.accordion__item > summary:hover { color: var(--brand-primary); }
.accordion__head-meta { font-family: var(--font-ui); font-size: var(--text-ui-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--fg-tertiary); }
/* Chevron that rotates when open */
.accordion__chevron { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand-accent); transition: transform 240ms ease; }
.accordion__item[open] > summary .accordion__chevron { transform: rotate(180deg); }
.accordion__panel { padding: 0 var(--space-6) var(--space-6); animation: mo-fade 240ms ease; }

/* ── Member cards (ministers / deacons / deaconesses) ──────── */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4); padding-top: var(--space-2); }
.member-card { background: var(--bg-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); text-align: center; box-shadow: var(--shadow-sm); }
.member-card__avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--member-accent, var(--brand-primary)); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); box-shadow: var(--shadow-md); color: rgba(255,255,255,0.85); overflow: hidden; }
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
/* Clickable member cards open the photo lightbox */
.member-card.is-clickable { cursor: pointer; transition: transform 200ms ease, box-shadow 200ms ease; }
.member-card.is-clickable:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member-card.is-clickable:focus-visible { outline: 2px solid var(--state-focus); outline-offset: 2px; }

/* Leader lightbox */
.leader-modal { max-width: 460px; }
.leader-modal__photo { width: 100%; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.leader-modal__photo img { width: 100%; max-height: 70vh; object-fit: contain; display: block; }
.leader-modal__photo.is-empty { aspect-ratio: 4 / 3; }
.leader-modal__photo .leader-modal__placeholder { color: var(--fg-tertiary); }
.leader-modal__photo .leader-modal__placeholder svg { width: 72px; height: 72px; }
.leader-modal__body { padding: var(--space-6) var(--space-8) var(--space-8); text-align: center; }
.leader-modal__name { margin-bottom: var(--space-1); }
.leader-modal__body .overline { margin-bottom: var(--space-2); }
.leader-modal__note { font-family: var(--font-body); color: var(--fg-secondary); margin-bottom: var(--space-4); }
.leader-modal__body .prose { text-align: left; }
.member-card__name { font-family: var(--font-display); font-size: var(--text-body-md); font-weight: var(--weight-semibold); color: var(--fg-primary); line-height: 1.2; margin-bottom: var(--space-1); }
.member-card__role { font-family: var(--font-ui); font-size: 0.625rem; font-weight: var(--weight-bold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--member-accent, var(--brand-primary)); margin-bottom: 3px; }
.member-card__note { font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--fg-secondary); }

/* Featured pastor — front and center, ahead of the other ministers. */
.leader-featured { display: flex; justify-content: center; padding-top: var(--space-2); margin-bottom: var(--space-5); }
.member-card--featured { max-width: 360px; width: 100%; padding: var(--space-7) var(--space-6); border-width: 2px; border-color: var(--brand-accent); box-shadow: var(--shadow-md); }
.member-card--featured .member-card__avatar { width: 104px; height: 104px; }
.member-card--featured .member-card__name { font-size: var(--text-display-xs); }
.member-card--featured .member-card__role { font-size: 0.6875rem; }
/* Leadership group accents */
.is-ministers   { --member-accent: var(--color-crimson-700); }
.is-deacons     { --member-accent: var(--color-gold-700); }
.is-deaconesses { --member-accent: var(--color-brown-800); }
.is-ministers   > summary,
.accordion__item.is-ministers   > summary:hover { color: var(--color-crimson-700); }
.is-deacons     > summary:hover { color: var(--color-gold-700); }
.is-deaconesses > summary:hover { color: var(--color-brown-800); }

/* ── Auxiliaries — gradient-banner dropdown cards ──────────── */
.aux-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 760px) { .aux-list { grid-template-columns: 1fr; } }
.aux { --aux-accent: var(--brand-primary); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); align-self: start; }
.aux > summary { list-style: none; cursor: pointer; display: block; padding: 0; }
.aux > summary::-webkit-details-marker { display: none; }
.aux { --aux-accent: var(--brand-primary); }
.aux__banner { position: relative; min-height: 260px; padding: var(--space-6); display: flex; flex-direction: column; justify-content: flex-end; color: var(--color-cream); overflow: hidden; background: linear-gradient(140deg, #2D0E09, #7A1E13); }
.aux__banner.has-image { background-color: #2D0E09; }
.aux__banner-cross { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); opacity: 0.1; width: 120px; color: var(--color-cream); pointer-events: none; }
.aux__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--weight-semibold); line-height: 1.15; position: relative; z-index: 1; }
.aux__tagline { font-family: var(--font-ui); font-size: var(--text-ui-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 3px; position: relative; z-index: 1; }
.aux__bar { background: var(--bg-surface); padding: var(--space-4) var(--space-6); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.aux__excerpt { font-family: var(--font-body); font-size: var(--text-body-xs); color: var(--fg-secondary); line-height: 1.5; }
.aux__cta { flex-shrink: 0; font-family: var(--font-ui); font-size: var(--text-ui-xs); font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--aux-accent); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--space-1); }
.aux__cta-chevron { width: 16px; height: 16px; transition: transform 240ms ease; }
.aux[open] .aux__excerpt { display: none; }
.aux[open] .aux__cta-chevron { transform: rotate(180deg); }
.aux[open] .aux__cta .aux__cta-open { display: none; }
.aux__cta .aux__cta-close { display: none; }
.aux[open] .aux__cta .aux__cta-close { display: inline; }
.aux__detail { background: var(--bg-surface); padding: 0 var(--space-6) var(--space-7); animation: mo-fade 240ms ease; }
.aux__detail .eyebrow { margin: var(--space-6) 0 var(--space-3); }
.aux__committee { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-3); }
@media (max-width: 480px) { .aux__committee { grid-template-columns: 1fr; } }
.aux__committee li { background: var(--bg-muted); border-radius: var(--radius-md); padding: 10px 14px; font-family: var(--font-body); font-size: var(--text-body-xs); color: var(--fg-secondary); }
.aux__events { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.aux__events li { display: flex; gap: var(--space-3); align-items: baseline; border-bottom: 1px solid var(--border-subtle); padding-bottom: var(--space-2); }
.aux__events li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--aux-accent); transform: translateY(-2px); }
.aux__event-name { font-family: var(--font-display); font-size: var(--text-body-md); font-weight: var(--weight-semibold); color: var(--fg-primary); }
.aux__event-freq { font-family: var(--font-body); font-size: var(--text-ui-sm); color: var(--fg-tertiary); margin-left: auto; padding-left: var(--space-3); white-space: nowrap; }
.aux__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.aux__gallery span { aspect-ratio: 1; border-radius: var(--radius-md); background: var(--bg-muted); border: 1px dashed var(--border-default); display: flex; align-items: center; justify-content: center; color: var(--fg-tertiary); }
.aux__gallery-photo { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; display: block; box-shadow: var(--shadow-sm); transition: transform 180ms ease; }
.aux__gallery-photo:hover { transform: scale(1.03); }
.aux__gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aux__gallery-note { font-family: var(--font-body); font-size: var(--text-ui-xs); font-style: italic; color: var(--fg-tertiary); text-align: center; margin-top: var(--space-2); }
/* Auxiliary banner gradients + accents (decorative brand art, per the mockup) */
.aux-banner--mens       { background: linear-gradient(140deg, #2D0E09, #7A1E13); }
.aux--mens              { --aux-accent: var(--color-crimson-900); }
.aux-banner--womens     { background: linear-gradient(140deg, #3A2000, #9E7312); }
.aux--womens            { --aux-accent: var(--color-gold-700); }
.aux-banner--foodbank   { background: linear-gradient(140deg, #0D1F08, #2D4A20); }
.aux--foodbank          { --aux-accent: #2D4A20; }
.aux-banner--pastorsaid { background: linear-gradient(140deg, #4A0E09, #A52B1C); }
.aux--pastorsaid        { --aux-accent: var(--color-crimson-700); }

/* ── Event modal — banner, meta row, actions (Add to Calendar) */
.modal-banner { position: relative; min-height: 200px; padding: var(--space-6); display: flex; flex-direction: column; justify-content: flex-end; color: var(--color-cream); overflow: hidden; background: linear-gradient(140deg, var(--color-crimson-950), var(--color-crimson-700)); }
.modal-banner.has-image { background-color: #160C07; }
.modal-banner.has-image .modal-banner__cross { display: none; }
.modal-banner__cross { position: absolute; right: -20px; bottom: -20px; opacity: 0.1; width: 180px; color: var(--color-cream); pointer-events: none; }
.modal-banner__tag { display: inline-block; align-self: flex-start; background: var(--brand-accent); border-radius: var(--radius-sm); padding: 4px 12px; font-family: var(--font-ui); font-size: 0.625rem; font-weight: var(--weight-extrabold); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-brown-900); margin-bottom: var(--space-2); position: relative; z-index: 1; }
.modal-banner__title { font-family: var(--font-display); font-size: var(--text-display-sm); font-weight: var(--weight-semibold); line-height: 1.15; position: relative; z-index: 1; }
.modal-body { padding: var(--space-7) var(--space-8) var(--space-8); }
.event-meta { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-5); }
.event-meta__item { display: flex; gap: var(--space-2); align-items: center; }
.event-meta__icon { color: var(--brand-accent); flex-shrink: 0; }
.event-meta__label { font-family: var(--font-ui); font-size: 0.5625rem; font-weight: var(--weight-bold); letter-spacing: var(--tracking-wider); text-transform: uppercase; color: var(--fg-tertiary); }
.event-meta__value { font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--fg-primary); }
.event-desc { border-top: 1px solid var(--border-subtle); padding-top: var(--space-5); margin-bottom: var(--space-6); }
.event-desc p { margin-bottom: var(--space-3); color: var(--fg-secondary); }
.modal-actions { display: flex; gap: var(--space-3); }
.modal-actions .btn { flex: 1; }

/* ── About: pastor tab ───────────────────────────────────── */
.pastor-grid { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-16); }
@media (max-width: 768px) {
	.pastor-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ── Prayer wall ─────────────────────────────────────────── */
.prayer-card { position: relative; transition: transform 200ms ease, box-shadow 200ms ease; animation: prayer-rise 480ms ease both; animation-delay: calc(var(--prayer-i, 0) * 70ms); }
.prayer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(20,12,8,0.12)); }
.prayer-card__tag { white-space: nowrap; }
@keyframes prayer-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
	.prayer-card { animation: none; }
	.prayer-card:hover { transform: none; }
}

/* ── Accessibility helper ────────────────────────────────── */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
