/* ═══════════════════════════════════════════════════════════
   NJ MAR THOMA CHURCH — INNER PAGES SHARED STYLESHEET
   Brand tokens must stay identical to the :root block in the
   homepage (v4.html). One fixed palette, no theme switching.
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts loaded via <link> in each HTML page ─────── */
:root {
  --f-display: 'Fraunces', 'Cormorant Garamond', serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-quote: 'Cormorant Garamond', serif;

  --primary: #0d4075; --primary-deep: #0a3264; --primary-soft: #1a5590;
  --accent: #b8883a; --accent-deep: #96691f;
  --gold: #b8883a; --gold-bright: #d4a550; --gold-soft: #f3e3bd;
  --paper: #ffffff; --cream: #f2f5fa; --white: #ffffff;
  --ink: #10203a; --ink-mid: #3d4c66; --ink-muted: #5f6a85;
  --line: rgba(13,64,117,0.12); --line-soft: rgba(13,64,117,0.06);
  --surface-dark: var(--primary); --surface-alt: var(--cream);
  --heading: var(--primary);
  /* Ruby — Jubilee only */
  --ruby: #6a1526; --ruby-deep: #3f0b17; --ruby-soft: #7a1e2a;
  --ruby-bright: #8c2338; --ruby-gem: #d63e59;
  --success: #1f6b45;
  --gold-hi: #fff8e6;
  /* Third-party brand colours — only for that platform's button */
  --youtube: #ff0000; --youtube-deep: #cc0000;
  --pad-y: 96px;
  --radius: 14px; --r-sm: 10px;
  --shadow-soft: 0 1px 2px rgba(7,40,69,0.04), 0 12px 32px -12px rgba(7,40,69,0.12);
  --shadow-lift: 0 2px 4px rgba(7,40,69,0.05), 0 30px 60px -20px rgba(7,40,69,0.25);
  --gutter: 40px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { font-family: var(--f-body); color: var(--ink); background: var(--paper); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary); color: var(--gold-soft); }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--cream); } ::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 40px; }

/* ── Eyebrow label ────────────────────────────────────────── */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content:''; width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.eyebrow.gold { color: var(--gold); } .eyebrow.gold::before { background: var(--gold); }
.eyebrow.white { color: var(--gold-soft); } .eyebrow.white::before { background: var(--gold-soft); }
.eyebrow.no-line::before { display: none; }

/* ── Section headings ─────────────────────────────────────── */
.section-label { margin-bottom: 16px; }
.section-heading { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); color: var(--primary); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.section-heading em { font-style: italic; color: var(--accent); }
.section-lede { font-size: 17px; color: var(--ink-mid); line-height: 1.7; max-width: 680px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 999px; transition: all .35s; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26,46,92,0.25); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(238,106,76,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Utility bar ─────────────────────────────────────────── */
.utility-bar { background: var(--primary-deep); color: rgba(255,255,255,0.75); font-size: 12.5px; padding: 8px 0; }
.utility-inner { max-width: 1360px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.util-item { display: flex; align-items: center; gap: 8px; }
.util-item svg { width: 13px; height: 13px; opacity: .7; }
.live-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.8s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(238,106,76,0.6); } 70% { box-shadow: 0 0 0 8px transparent; } }
.countdown-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; }
.countdown-chip strong { font-family: var(--f-display); font-weight: 400; font-style: italic; font-size: 13px; letter-spacing: 0; color: var(--white); }

/* ── Nav ─────────────────────────────────────────────────── */
nav.primary { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--line-soft); transition: box-shadow .35s; }
nav.primary.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1360px; margin: 0 auto; padding: 0 40px; height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 52px; }
.brand-name { font-family: var(--f-display); font-weight: 500; font-size: 17px; color: var(--primary); }
.brand-tag { font-family: var(--f-display); font-style: italic; font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-top: 3px; }
ul.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
ul.nav-menu > li { position: relative; }
ul.nav-menu > li:has(.mega) { position: static; }
ul.nav-menu > li > a, ul.nav-menu > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); border-radius: 999px; transition: all .3s; cursor: pointer; }
ul.nav-menu > li > a:hover, ul.nav-menu > li > button:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
ul.nav-menu > li.active > a, ul.nav-menu > li.active > button { color: var(--primary); font-weight: 600; }
ul.nav-menu > li > button svg { width: 10px; height: 10px; transition: transform .3s; }
ul.nav-menu > li.open > button svg, ul.nav-menu > li:hover > button svg { transform: rotate(180deg); }

/* ── Mega menu ───────────────────────────────────────────── */
.mega { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15); padding: 42px 0 48px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s, transform .35s, visibility .35s; }
.mega::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
li.open .mega, ul.nav-menu > li:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { max-width: 1360px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1.15fr 2fr; gap: 60px; }
.mega-feature { color: var(--white); padding: 32px; border-radius: 10px; background-size: cover; background-position: center; position: relative; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.mega-feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.88), rgba(0,0,0,0.15)); }
.mega-feature > * { position: relative; z-index: 1; }
.mega-feature .mf-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 8px; }
.mega-feature h4 { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--white); margin-bottom: 10px; }
.mega-feature p { font-size: 13.5px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.mega-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 44px; }
.mega-col h5 { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mega-col a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink-mid); transition: color .25s, padding .25s; }
.mega-col a:hover { color: var(--accent); padding-left: 8px; }
.mega-col a small { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 1px; }

/* ── Simple dropdown (News & Media, Events) ──────────────── */
.dropdown { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 210px; background: var(--paper); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: 0 24px 60px -12px rgba(26,46,92,0.18), 0 4px 16px rgba(0,0,0,0.06); padding: 10px; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .3s, transform .35s cubic-bezier(.22,.68,0,1.2), visibility .3s; z-index: 200; }
li.open .dropdown, ul.nav-menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 10px 16px; font-size: 13.5px; color: var(--ink-mid); border-radius: 7px; transition: background .2s, color .2s, padding-left .2s; white-space: nowrap; }
.dropdown a:hover { background: var(--cream); color: var(--primary); padding-left: 22px; }

/* ── Nav Actions ──────────────────────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-give { padding: 11px 24px; background: var(--accent); color: var(--primary-deep); border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: all .35s; display: inline-flex; align-items: center; gap: 8px; }
.btn-give:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,0.2); }
.btn-give svg { width: 13px; height: 13px; }

/* ── Hamburger ────────────────────────────────────────────── */
.hamburger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.hamburger div { width: 22px; height: 1.5px; background: var(--primary); position: relative; transition: all .3s; }
.hamburger div::before, .hamburger div::after { content: ''; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--primary); transition: all .3s; }
.hamburger div::before { top: -7px; } .hamburger div::after { top: 7px; }
.hamburger.open div { background: transparent; }
.hamburger.open div::before { transform: rotate(45deg); top: 0; }
.hamburger.open div::after { transform: rotate(-45deg); top: 0; }

/* ── Mobile nav ───────────────────────────────────────────── */
.mobile-nav { position: fixed; inset: 82px 0 0; background: var(--paper); z-index: 99; overflow-y: auto; padding: 40px 24px 60px; transform: translateX(100%); transition: transform .5s; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; padding: 16px 4px; font-family: var(--f-display); font-size: 22px; color: var(--primary); display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: '+'; font-size: 24px; color: var(--accent); transition: transform .3s; }
.mobile-nav details[open] summary::after { transform: rotate(45deg); }
.mobile-nav .m-sublist a { display: block; padding: 8px 4px; font-size: 14px; color: var(--ink-mid); }

/* ════════════════════════════════════════════════════════════
   INNER PAGE COMPONENTS
   ════════════════════════════════════════════════════════════ */

/* ── Page Hero (replaces fullscreen video) ───────────────── */
.page-hero {
  background: var(--primary-deep);
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,45,0.92) 0%, rgba(10,20,45,0.6) 50%, rgba(10,20,45,0.35) 100%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .container { width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color .25s; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 5rem); color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.page-hero-title em { font-style: italic; color: var(--gold-soft); }
.page-hero-lede { font-size: 17px; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 600px; font-family: var(--f-display); font-weight: 300; font-style: italic; }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar { background: var(--cream); border-bottom: 1px solid var(--line); padding: 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 36px 32px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--primary); line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em; }
.stat-num em { font-style: italic; color: var(--accent); }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }

/* ── Content sections ─────────────────────────────────────── */
.section-pad { padding: var(--pad-y) 0; }
.section-pad-sm { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--primary); }
.section-navy .section-heading { color: var(--white); }
.section-navy .section-lede { color: rgba(255,255,255,0.72); }
.section-navy .eyebrow { color: var(--gold-soft); }
.section-navy .eyebrow::before { background: var(--gold-soft); }

/* ── Split section (text + image) ────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img.tall { aspect-ratio: 3/4; }
.split-content { display: flex; flex-direction: column; gap: 20px; }
.split-content .section-heading { margin-bottom: 0; }
.split-content p { font-size: 16px; color: var(--ink-mid); line-height: 1.75; }

/* ── Lead list (numbered points) ──────────────────────────── */
.lead-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.lead-list li { display: flex; gap: 20px; align-items: flex-start; }
.lead-num { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; min-width: 28px; padding-top: 2px; }
.lead-list h4 { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--primary); margin-bottom: 4px; }
.lead-list p { font-size: 14.5px; color: var(--ink-mid); line-height: 1.65; }

/* ── Parish at a glance card ──────────────────────────────── */
.glance-card { background: var(--primary); color: var(--white); border-radius: var(--radius); padding: 40px; }
.glance-card h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: var(--gold-soft); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.glance-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); gap: 16px; }
.glance-row:last-child { border-bottom: none; }
.glance-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.glance-val { font-size: 14px; color: rgba(255,255,255,0.88); text-align: right; }
.glance-val strong { color: var(--gold-soft); font-weight: 600; }

/* ── Grid 3 (cards) ───────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

/* ── Person cards (committee/officers) ────────────────────── */
.person-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; transition: box-shadow .3s, transform .3s; }
.person-card:hover { box-shadow: 0 16px 40px rgba(26,46,92,0.1); transform: translateY(-3px); }
.person-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-family: var(--f-display); font-size: 22px; color: var(--gold-soft); font-weight: 400; }
.person-name { font-family: var(--f-display); font-size: 17px; font-weight: 500; color: var(--primary); margin-bottom: 4px; }
.person-role { font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.person-desc { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* ── Ministry index cards (scard) ─────────────────────────── */
.scard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s; display: flex; flex-direction: column; }
.scard:hover { box-shadow: 0 20px 50px rgba(26,46,92,0.12); transform: translateY(-4px); }
.scard-img { aspect-ratio: 16/9; overflow: hidden; background: var(--cream); position: relative; }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.scard:hover .scard-img img { transform: scale(1.04); }
.scard-icon { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.scard-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.scard-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.scard-num { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; }
.scard h3 { font-family: var(--f-display); font-size: 20px; font-weight: 400; color: var(--primary); margin-bottom: 10px; line-height: 1.2; }
.scard p { font-size: 14px; color: var(--ink-mid); line-height: 1.65; flex: 1; }
.scard-link { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); transition: gap .25s; }
.scard-link:hover { gap: 12px; }
.scard-link svg { width: 12px; height: 12px; }

/* ── News / news-card (ministry updates) ──────────────────── */
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .3s; }
.news-card:hover { box-shadow: 0 12px 32px rgba(26,46,92,0.08); }
.news-tag { display: inline-block; padding: 4px 12px; background: var(--cream); border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.news-title { font-family: var(--f-display); font-size: 18px; font-weight: 400; color: var(--primary); line-height: 1.3; }
.news-meta { font-size: 12.5px; color: var(--ink-muted); }
.news-body { font-size: 14px; color: var(--ink-mid); line-height: 1.65; }

/* ── Schedule table ───────────────────────────────────────── */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table thead th { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); padding: 14px 20px; text-align: left; border-bottom: 2px solid var(--line); }
.schedule-table tbody tr { border-bottom: 1px solid var(--line); transition: background .2s; }
.schedule-table tbody tr:hover { background: var(--cream); }
.schedule-table td { padding: 18px 20px; font-size: 15px; color: var(--ink); vertical-align: middle; }
.schedule-table td:first-child { font-family: var(--f-display); font-weight: 500; color: var(--primary); font-size: 16px; }
.schedule-table .time-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: var(--white); border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600; }
.schedule-table .lang-tag { display: inline-block; padding: 3px 10px; background: var(--cream); border-radius: 999px; font-size: 11.5px; color: var(--ink-muted); font-weight: 500; }

/* ── Event cards ──────────────────────────────────────────── */
.event-card { display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: flex-start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, transform .3s; }
.event-card:hover { box-shadow: 0 16px 40px rgba(26,46,92,0.1); transform: translateY(-2px); }
.event-date-box { text-align: center; background: var(--primary); color: var(--white); border-radius: 10px; padding: 14px 10px; }
.event-date-day { font-family: var(--f-display); font-size: 2.4rem; font-weight: 400; line-height: 1; color: var(--gold-soft); }
.event-date-month { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; }
.event-info { display: flex; flex-direction: column; gap: 8px; }
.event-name { font-family: var(--f-display); font-size: 19px; font-weight: 400; color: var(--primary); line-height: 1.2; }
.event-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-meta svg { width: 13px; height: 13px; stroke: var(--gold); }
.event-desc { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* ── Countdown boxes ─────────────────────────────────────── */
.countdown-boxes { display: flex; gap: 10px; }
.cd-box { background: var(--primary); color: var(--white); border-radius: 8px; padding: 12px 16px; text-align: center; min-width: 64px; }
.cd-num { font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; line-height: 1; color: var(--gold-soft); }
.cd-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ── Former/history list ──────────────────────────────────── */
.timeline { list-style: none; padding-left: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.timeline li { padding-left: 36px; padding-bottom: 32px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--primary); }
.timeline-year { font-family: var(--f-display); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; }
.timeline-title { font-family: var(--f-display); font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.timeline-body { font-size: 14px; color: var(--ink-mid); line-height: 1.6; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner { background: var(--primary); padding: 64px 0; text-align: center; }
.cta-banner h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 14px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Divider ─────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); margin: 0; }
.divider-gold { height: 2px; width: 60px; background: var(--gold); margin: 0 auto; }

/* ── Quote block ─────────────────────────────────────────── */
.verse-block { background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 28px 32px; }
.verse-block p { font-family: var(--f-quote); font-style: italic; font-size: 19px; color: var(--primary); line-height: 1.6; margin-bottom: 10px; }
.verse-block cite { font-size: 12.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* ── Ministry hero image placeholder ─────────────────────── */
.hero-img-bg { background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%); }

/* ── Contact form / info ──────────────────────────────────── */
.info-card { background: var(--cream); border-radius: var(--radius); padding: 40px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 1.6; }
.info-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.info-val { font-size: 15px; color: var(--ink); font-weight: 500; }
.info-val a { color: var(--primary); transition: color .25s; }
.info-val a:hover { color: var(--accent); }

/* ── Gallery grid ─────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-item { aspect-ratio: 1; overflow: hidden; background: var(--cream); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }

/* ── Reveal animations ─────────────────────────────────────── */
.reveal, .reveal-l, .reveal-r { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.reveal { transform: translateY(30px); }
.reveal-l { transform: translateX(-30px); }
.reveal-r { transform: translateX(30px); }
.reveal.in, .reveal-l.in, .reveal-r.in,
.reveal.visible, .reveal-l.visible, .reveal-r.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer { background: var(--primary-deep); padding: 80px 0 0; }
.footer-top { text-align: center; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 60px; }
.footer-motto { font-family: var(--f-display); font-weight: 300; font-style: italic; font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); line-height: 1; margin-bottom: 12px; }
.footer-motto span { color: var(--gold-soft); }
.footer-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col.wide ul { columns: 2; column-gap: 36px; }
.footer-brand img { height: 56px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer-brand h3 { font-family: var(--f-display); font-weight: 400; font-size: 19px; color: var(--white); line-height: 1.3; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 300px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: all .3s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--primary-deep); }
.social svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.footer-col h5 { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.5); transition: color .3s; }
.footer-col a:hover { color: var(--white); }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 20px; }
.footer-bottom { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: var(--gold-soft); transition: color .3s; }
.footer-bottom a:hover { color: var(--white); }

/* ════════════════════════════════════════════════════════════
   REFINED LAYER — matches the homepage palette and surfaces
   ════════════════════════════════════════════════════════════ */
body { text-rendering: optimizeLegibility; }
.section-heading em, .page-hero-title em {
  background: linear-gradient(100deg, var(--accent-deep) 0%, var(--accent) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.page-hero-title em, .section-navy .section-heading em, .cta-banner h2 em {
  background: linear-gradient(100deg, var(--gold-soft) 0%, #fff8e6 50%, var(--gold-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-heading, .page-hero-title, .cta-banner h2, .footer-motto { text-wrap: balance; }
.eyebrow { color: var(--accent-deep); }
.eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--accent)); }
.eyebrow.white, .section-navy .eyebrow { color: var(--gold-soft); }
.live-dot { animation: pulseSoft 2s infinite; }
@keyframes pulseSoft { 0%,100% { box-shadow: 0 0 0 0 rgba(184,136,58,0.55); } 70% { box-shadow: 0 0 0 8px rgba(184,136,58,0); } }
.countdown-chip { font-size: 11px; }

.btn-primary, .btn-give, .btn-accent { box-shadow: 0 10px 24px -12px rgba(7,40,69,0.55); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); box-shadow: 0 18px 36px -14px rgba(7,40,69,0.65), 0 0 0 3px rgba(184,136,58,0.28); }
.btn-give, .btn-accent { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%); color: var(--primary-deep); box-shadow: 0 8px 20px -10px rgba(184,136,58,0.65); }
.btn-give:hover, .btn-accent:hover { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--accent-deep) 100%); color: var(--primary-deep); box-shadow: 0 14px 28px -12px rgba(184,136,58,0.75); }
.btn-outline { border-color: color-mix(in srgb, var(--primary) 35%, transparent); }

.page-hero { background-color: var(--primary-deep); filter: saturate(0.85); }
.page-hero::before { background: linear-gradient(to top, rgba(7,40,69,0.94) 0%, rgba(7,40,69,0.62) 50%, rgba(7,40,69,0.32) 100%); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold)); z-index: 1; }
.breadcrumb, .breadcrumb a { color: rgba(255,255,255,0.7); }
.page-hero-lede { color: rgba(255,255,255,0.86); }
/* Eyebrow sits on the dark hero overlay — use the light gold so it reads */
.page-hero .eyebrow, .page-hero .eyebrow.gold { color: var(--gold-soft); }
.page-hero .eyebrow::before, .page-hero .eyebrow.gold::before { background: var(--gold-soft); }

.stats-bar { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.stat-label { color: var(--ink-mid); }
.section-navy { background: radial-gradient(800px 500px at 12% 10%, rgba(184,136,58,0.14), transparent 60%), linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%); }
.section-navy .section-lede { color: rgba(255,255,255,0.8); }

.split-img, .scard, .person-card, .news-card, .event-card, .info-card, .glance-card, .verse-block { border-radius: var(--radius); }
.split-img { box-shadow: var(--shadow-lift); }
.scard, .person-card, .news-card, .event-card { border-color: var(--line-soft); box-shadow: var(--shadow-soft); }
.scard:hover, .person-card:hover, .event-card:hover, .news-card:hover { box-shadow: var(--shadow-lift); border-color: rgba(184,136,58,0.35); }
.person-avatar { background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(184,136,58,0.5); }
.person-desc, .news-meta, .info-label { color: var(--ink-mid); }
.event-date-box { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); border-radius: var(--r-sm); }
.event-date-month { font-size: 11px; color: rgba(255,255,255,0.75); }
.event-meta { color: var(--ink-mid); }
.glance-card { background: radial-gradient(500px 300px at 90% 0%, rgba(184,136,58,0.18), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-deep)); }
.glance-label { color: rgba(255,255,255,0.62); }
.info-icon { background: linear-gradient(140deg, var(--primary), var(--primary-deep)); color: var(--gold-soft); }
.cd-box { background: linear-gradient(150deg, var(--primary), var(--primary-deep)); border-radius: var(--r-sm); }
.cd-lbl { color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.14em; }
.cta-banner { background: radial-gradient(700px 400px at 50% 0%, rgba(184,136,58,0.16), transparent 65%), linear-gradient(180deg, var(--primary), var(--primary-deep)); }
.cta-banner p { color: rgba(255,255,255,0.82); }
.schedule-table .time-chip { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.schedule-table .lang-tag { color: var(--ink-mid); }

footer { border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--gold), var(--accent), var(--gold)) 1; background: radial-gradient(900px 400px at 50% 0%, rgba(184,136,58,0.10), transparent 65%), var(--primary-deep); }
.footer-sub { color: rgba(255,255,255,0.6); }
.footer-brand p, .footer-address { color: rgba(255,255,255,0.66); }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom { color: rgba(255,255,255,0.55); }
.social a { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — fluid from 320px phones to wide desktops
   ════════════════════════════════════════════════════════════ */
ul.nav-menu > li > a, ul.nav-menu > li > button { white-space: nowrap; }
img { height: auto; }
.brand { min-width: 0; flex-shrink: 1; }
.brand img, .footer-brand img { height: auto !important; max-width: 100%; }
.brand img { width: 303px; }
.footer-brand img { width: 300px; }
.page-hero { background-image: var(--hero-lg); }
@media (max-width: 768px) { .page-hero { background-image: var(--hero-sm, var(--hero-lg)); background-position: center 35%; } }
.split-img img, .scard-img img, .gallery-item img { height: 100%; }
.grid-2, .grid-3, .grid-4, .stats-inner, .split, .mega-columns { min-width: 0; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .stats-inner > *, .split > *, .r-stack > * { min-width: 0; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-num, .stat-label, .person-name, .scard h3, .event-name, .info-val, .glance-val { overflow-wrap: anywhere; }
.stat-item { padding: 36px 20px; }
.stat-item > span.stat-num, .stat-item > span.stat-label { display: block; }
.stat-item > span.stat-num { margin-bottom: 8px; }
.stat-num { font-size: clamp(1.6rem, 3.2vw, 3rem); }
.schedule-table { min-width: 560px; }
.table-scroll, :has(> .schedule-table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Compact desktop nav */
@media (max-width: 1439px) {
  .nav-inner { padding: 0 28px; gap: 20px; }
  .brand img { width: 256px; }
  ul.nav-menu { gap: 0; }
  ul.nav-menu > li > a, ul.nav-menu > li > button { padding: 9px 10px; font-size: 13px; }
  .btn-give { padding: 10px 18px; }
}
/* Tablet & below: hamburger */
@media (max-width: 900px) {
  ul.nav-menu { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 72px; }
  .mobile-nav { inset: 72px 0 0; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; row-gap: 40px; }
  .footer-col.wide ul { columns: 1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --pad-y: 72px; }
  .container, .container-narrow { padding: 0 24px; }
  .nav-inner, .utility-inner { padding: 0 24px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse { direction: ltr; }
  .r-stack-md { grid-template-columns: 1fr !important; gap: 36px !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stats-inner .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats-inner .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .glance-card, .info-card { padding: 28px; }
}
@media (max-width: 768px) {
  .mega-grid { grid-template-columns: 1fr; }
  .mega-feature { min-height: 160px; }
  .mega-columns { grid-template-columns: 1fr; }
  .page-hero { min-height: 300px; padding-bottom: 44px; }
  .page-hero-title { font-size: clamp(2rem, 8.5vw, 3rem); }
  .grid-3 { grid-template-columns: 1fr; }
  .section-heading { font-size: clamp(1.75rem, 6.5vw, 2.4rem); }
  .section-lede, .page-hero-lede { font-size: 16px; }
  .event-card { padding: 22px; }
  .cta-banner { padding: 56px 0; }
}
@media (max-width: 600px) {
  :root { --pad-y: 60px; }
  .container, .container-narrow, .nav-inner, .utility-inner { padding: 0 18px; }
  .utility-inner { justify-content: center; }
  .utility-inner > :not(:first-child) { display: none !important; }
  .brand img { width: 200px; }
  .btn-give { padding: 9px 14px; font-size: 11px; letter-spacing: 0.1em; }
  .r-stack { grid-template-columns: 1fr !important; gap: 20px !important; }
  .r-portrait { justify-items: center; text-align: center; }
  .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4:not(:has(.person-card, h3, h4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-4:not(:has(.person-card, h3, h4)) .info-card { padding: 16px 10px; }
  .stat-item { padding: 22px 10px; }
  .stat-num { font-size: clamp(1.35rem, 6.5vw, 1.9rem); }
  .stat-label { font-size: 11px; letter-spacing: 0.12em; }
  .glance-row { flex-wrap: wrap; gap: 4px 12px; }
  .glance-val { text-align: left; }
  .glance-card, .info-card { padding: 24px 20px; }
  .verse-block { padding: 22px 20px; }
  .verse-block p { font-size: 17px; }
  .event-card { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .event-date-day { font-size: 1.8rem; }
  .countdown-boxes { flex-wrap: wrap; gap: 6px; }
  .cd-box { min-width: 54px; padding: 10px 8px; }
  .footer-grid { gap: 32px 20px; }
  .btn { padding: 13px 22px; }
  .cta-group .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  :root { --pad-y: 48px; }
}
@media (max-width: 360px) {
  .nav-actions .btn-give { display: none; }
  .stats-inner { grid-template-columns: 1fr; }
  .stats-inner .stat-item { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .stats-inner .stat-item:last-child { border-bottom: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}
