/* Fonts loaded via wp_enqueue_style (functions.php) — keep this file local-cacheable. */

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — Church Archive Nigeria
═══════════════════════════════════════════════════════════ */
:root {
  --gold: #C9922A;
  --gold-light: #E8C068;
  --gold-pale: #FFF8EC;
  --dark: #0F0D0A;
  --dark-2: #1C1814;
  --mid: #3D3530;
  --muted: #6B5F52;
  --border: #E5DDD4;
  --bg: #FAF7F2;
  --white: #FFFFFF;
  --green: #1a6a2a;
  --blue: #1a3a7a;
  --red: #7a1a1a;
  --orange: #8a4a1a;
  --purple: #5a1a7a;

  /* Layout knobs — overridable by Header & Footer Builder dynamic CSS */
  --container: 1200px;
  --nav-height: 68px;
  --nav-breakpoint: 992px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); font-family: 'Lora', Georgia, serif; color: var(--mid); line-height: 1.8; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* Skip link */
.skip-link {
  position: absolute; top: -9999px; left: 16px;
  background: var(--gold); color: var(--dark);
  padding: 8px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; z-index: 9999;
  border-radius: 0 0 4px 4px; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav {
  background: var(--dark);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid rgba(201,146,42,.2);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: var(--nav-height);
}

/* Desktop nav wrapper — visible above breakpoint, hidden on mobile.
   Header & Footer Builder injects matching @media block for the user-set breakpoint. */
#nav-desktop, .nav-desktop { display: flex; align-items: center; gap: 4px; }

/* CRITICAL FIX: mobile drawer must NEVER render inline on desktop.
   v1.1.0 only hid this inside @media(max-width:768px), so on desktop the
   drawer's <ul class="nav-links"> was painting in document flow underneath
   the real nav — that was the source of the duplicate-header bug. */
#nav-menu { display: none; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-mark {
  width: 38px; height: 38px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; color: var(--dark);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  color: var(--white); letter-spacing: .5px;
}
.nav-logo-text span { color: var(--gold-light); }
.nav-links {
  display: flex; align-items: center; gap: 4px; list-style: none;
}
.nav-links li a {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(250,247,242,.55); padding: 8px 14px; border-radius: 2px;
  transition: all .2s; display: block;
}
.nav-links li a:hover,
.nav-links li a.active,
.nav-links li a[aria-current="page"],
.current-menu-item > a,
.current_page_item > a { color: var(--gold-light) !important; background: rgba(201,146,42,.1); }
.nav-cta {
  background: var(--gold) !important; color: var(--dark) !important;
  padding: 8px 18px !important; border-radius: 2px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--dark) !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none; background: transparent; border: none;
  padding: 8px; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); transition: all .3s; border-radius: 2px;
}
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 99;
}

/* ═══════════════════════════════════════════════════════════
   SHARED LAYOUT
═══════════════════════════════════════════════════════════ */
.wrapper { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.wrapper-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

.section-label {
  font-family: 'DM Sans', sans-serif; font-size: 10.5px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 900; color: var(--dark); line-height: 1.15;
}
.section-title em { color: var(--gold); font-style: italic; }

.btn-primary {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px; transition: all .2s; cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--gold-light); color: var(--dark); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--gold);
  border: 1.5px solid var(--gold); font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 12px 26px; border-radius: 2px; transition: all .2s; cursor: pointer;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }

.tag {
  display: inline-block; font-family: 'DM Sans', sans-serif;
  font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 4px; margin-right: 4px;
}
.tag-gold   { color: var(--gold);   border: 1px solid rgba(201,146,42,.3);  background: var(--gold-pale); }
.tag-green  { color: var(--green);  border: 1px solid rgba(26,106,42,.3);   background: #f0fff4; }
.tag-blue   { color: var(--blue);   border: 1px solid rgba(26,58,122,.3);   background: #f0f4ff; }
.tag-red    { color: var(--red);    border: 1px solid rgba(122,26,26,.3);   background: #fff0f0; }
.tag-orange { color: var(--orange); border: 1px solid rgba(138,74,26,.3);   background: #fff8f0; }
.tag-purple { color: var(--purple); border: 1px solid rgba(90,26,122,.3);   background: #f8f0ff; }

.divider { height: 1px; background: var(--border); margin: 60px 0; }

/* Page header banner (dark, used on most listing pages) */
.page-header { background: var(--dark); padding: 64px 0 48px; }
.page-header h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(28px,3.5vw,44px);
  font-weight: 900; color: var(--white); margin-bottom: 14px;
}
.page-header p { font-size: 15px; color: rgba(250,247,242,.5); max-width: 560px; }

/* WordPress pagination */
.pagination, .nav-links-wrap {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px;
}
.page-numbers, .pagination a, .pagination span {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  padding: 8px 16px; border: 1.5px solid var(--border);
  color: var(--mid); text-decoration: none; border-radius: 2px; transition: all .2s;
}
.page-numbers:hover, .pagination a:hover { border-color: var(--gold); color: var(--gold); }
.page-numbers.current, .pagination .current { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Alignments (WordPress core) */
.alignleft  { float: left;  margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin: 0 auto 12px; text-align: center; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }
.alignwide  { margin-left: -60px; margin-right: -60px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark); color: rgba(250,247,242,.5);
  padding: 60px 0 32px; margin-top: 80px;
  border-top: 2px solid rgba(201,146,42,.2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif; font-size: 20px; color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 10.5px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
/* Footer menus — works regardless of whether the menu is rendered via
   wp_nav_menu() (<ul><li><a>) or our inline fallback (raw <a> tags). */
.footer-col ul,
.footer-col ol,
.footer-col .menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
}
.footer-col li,
.footer-col .menu-item {
  list-style: none !important;
  padding: 0;
  margin: 0;
}
.footer-col li::before,
.footer-col li::marker {
  content: none !important;
}
.footer-col a,
.footer-col li a,
.footer-col .menu-item a {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: rgba(250,247,242,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-col a:hover,
.footer-col li a:hover,
.footer-col .menu-item a:hover { color: var(--gold-light); }

/* Some assigned menus output <ul class="sub-menu"> for dropdowns —
   in the footer we just flatten them. */
.footer-col .sub-menu { padding-left: 12px; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(201,146,42,.15); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 11px; }
.disclaimer-bar {
  background: #160f06; border-left: 4px solid var(--gold);
  padding: 16px 24px;
}
.disclaimer-bar p { font-size: 11.5px; color: rgba(250,247,242,.6); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   CHURCH CARDS (home + directory)
═══════════════════════════════════════════════════════════ */
.church-card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); padding: 28px; border-radius: 0 0 3px 3px;
  transition: .2s; display: block;
}
.church-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.church-card-name {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.church-card-lead { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.church-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.church-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Directory card */
.dir-card {
  background: var(--white); border: 1px solid var(--border);
  padding: 24px; transition: .2s; position: relative; overflow: hidden; display: block;
}
.dir-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
}
.dir-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.06); transform: translateY(-2px); }
.dir-card-denom { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.dir-card-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.dir-card-leader { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dir-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.dir-card-arrow { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }

/* News cards */
.news-card {
  background: var(--white); border: 1px solid var(--border); padding: 24px;
  transition: .2s; display: block;
}
.news-card:hover { border-color: var(--gold); }
.news-card-cat { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.news-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 10px; }
.news-card-date { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--muted); }

/* Sidebar cards (church pages) */
.sidebar-card { background: var(--white); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.sidebar-card h4 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-item { display: flex; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sidebar-item:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-item .label { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); min-width: 80px; }
.sidebar-item .value { font-size: 13px; color: var(--dark); }

.suggest-btn {
  display: block; width: 100%; padding: 14px;
  background: transparent; border: 1.5px solid var(--gold); color: var(--gold);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; text-align: center;
  transition: .2s; margin-bottom: 20px; cursor: pointer;
}
.suggest-btn:hover { background: var(--gold); color: var(--dark); }

/* Evidence / contribution cards */
.contribution-section { margin-bottom: 48px; }
.contribution-section-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.evidence-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); padding: 20px 24px; margin-bottom: 14px; border-radius: 0 3px 3px 0; }
.evidence-card.healthcare { border-left-color: var(--green); }
.evidence-card.education  { border-left-color: var(--blue); }
.evidence-card.prison     { border-left-color: var(--red); }
.evidence-card.relief     { border-left-color: var(--orange); }
.evidence-card.skills     { border-left-color: #2a4a7a; }
.evidence-card h4 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.evidence-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 10px; }
.evidence-card-source { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--gold); border-bottom: 1px dotted var(--gold); cursor: pointer; }

/* Church hero (individual pages) */
.church-hero { background: var(--dark); overflow: hidden; }
.church-hero-inner.no-image { padding: 0; }
.church-hero-inner.has-image {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  align-items: stretch;
}
.church-hero-content { padding: 64px 48px 56px; min-width: 0; }
.church-hero-side {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.church-hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Soft fade between image and the content column so the title stays legible
   even if the image has bright pixels at the seam. */
.church-hero-side::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,13,10,.4) 0%, rgba(15,13,10,0) 35%);
  z-index: 1;
  pointer-events: none;
}
.church-hero-badge-overlay {
  position: absolute;
  bottom: 16px; right: 16px;
  z-index: 2;
}

/* Mobile: image stacks above content with a darker bottom fade */
@media (max-width: 1024px) {
  .church-hero-inner.has-image {
    grid-template-columns: 1fr;
  }
  .church-hero-side {
    min-height: 220px;
    max-height: 300px;
    order: -1;
  }
  .church-hero-side::before {
    background: linear-gradient(to bottom, rgba(15,13,10,0) 50%, rgba(15,13,10,.7) 100%);
  }
  .church-hero-content { padding: 32px 24px 40px; }
}
.church-hero-badge { display: inline-block; background: var(--gold); color: var(--dark); font-family: 'DM Sans', sans-serif; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; padding: 4px 12px; margin-bottom: 20px; }
.church-hero-name { font-family: 'Playfair Display', serif; font-size: clamp(26px, 4vw, 48px); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 16px; }
.church-hero-sub { font-size: 15px; color: rgba(250,247,242,.55); margin-bottom: 28px; max-width: 520px; line-height: 1.8; }
.church-hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.church-hero-meta-item { display: flex; flex-direction: column; }
.church-hero-meta-item .label { font-family: 'DM Sans', sans-serif; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: rgba(250,247,242,.35); margin-bottom: 4px; }
.church-hero-meta-item .value { font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(250,247,242,.8); font-weight: 500; }
.church-logo-placeholder { width: 100px; height: 100px; background: rgba(201,146,42,.15); border: 1.5px solid rgba(201,146,42,.3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold); margin-bottom: 16px; }
.church-verified-badge { display: flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; font-size: 11px; color: rgba(250,247,242,.5); letter-spacing: 1px; }
.verified-dot { width: 8px; height: 8px; background: #4CAF50; border-radius: 50%; }

.church-stats { background: var(--dark-2); border-bottom: 2px solid rgba(201,146,42,.15); }
.church-stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.church-stat { padding: 24px 28px; border-right: 1px solid rgba(201,146,42,.1); }
.church-stat:last-child { border-right: none; }
.church-stat .n { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--gold-light); font-weight: 700; display: block; }
.church-stat .d { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(250,247,242,.4); margin-top: 4px; }

.church-body { max-width: 1200px; margin: 0 auto; padding: 60px 32px; display: grid; grid-template-columns: 680px 1fr; gap: 56px; align-items: start; }

.church-history { background: var(--white); border: 1px solid var(--border); padding: 32px; margin-bottom: 32px; }
.church-history h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.church-history p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 12px; }

/* Video and gallery */
.video-section { margin-bottom: 32px; }
.video-placeholder {
  position: relative;          /* contains the absolute-positioned thumbnail */
  overflow: hidden;            /* belt-and-braces */
  background: var(--dark-2);
  aspect-ratio: 16/9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid rgba(201,146,42,.2);
  cursor: pointer; margin-bottom: 10px;
  border-radius: 2px; transition: border-color .2s;
}
.video-placeholder > * { position: relative; z-index: 1; } /* play button + title above the thumbnail */
.video-placeholder:hover { border-color: var(--gold); }
.video-play { width: 56px; height: 56px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.video-play span { font-size: 20px; margin-left: 4px; }
.video-title { font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(250,247,242,.6); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.photo-placeholder { background: var(--border); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--muted); text-align: center; padding: 12px; overflow: hidden; }
.photo-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* Form styles */
.form-group { margin-bottom: 22px; }
.form-label { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; font-weight: 600; }
.form-label .req { color: var(--gold); }
.form-control { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 2px; font-family: 'Lora', serif; font-size: 14px; color: var(--dark); background: var(--bg); transition: .2s; outline: none; }
.form-control:focus { border-color: var(--gold); background: var(--white); }
.form-control::placeholder { color: var(--muted); opacity: .6; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { font-family: 'DM Sans', sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.form-section { background: var(--bg); border: 1px solid var(--border); padding: 24px; margin-bottom: 22px; border-left: 4px solid var(--gold); }
.form-section h3 { font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Blog */
.blog-card { background: var(--white); border: 1px solid var(--border); display: grid; grid-template-columns: 240px 1fr; transition: .2s; overflow: hidden; }
.blog-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.blog-card-img { background: linear-gradient(135deg, var(--dark-2) 0%, #251b12 100%); display: flex; align-items: center; justify-content: center; min-height: 180px; }
.blog-card-img span { font-family: 'Playfair Display', serif; font-size: 48px; color: var(--gold-light); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-content { padding: 28px; }
.blog-card-content .cat { font-family: 'DM Sans', sans-serif; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.blog-card-content h2 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; color: var(--dark); line-height: 1.3; margin-bottom: 10px; }
.blog-card-content p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.blog-card-meta { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--muted); }

.blog-sidebar-widget { background: var(--white); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.blog-sidebar-widget h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.blog-sidebar-widget p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.recent-post { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.recent-post:last-child { border-bottom: none; margin-bottom: 0; }
.recent-post-img { width: 60px; height: 60px; background: var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.recent-post-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-post h4 { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.35; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-tag { font-family: 'DM Sans', sans-serif; font-size: 11px; padding: 5px 12px; border: 1px solid var(--border); color: var(--muted); display: inline-block; transition: .2s; }
.tag-cloud-tag:hover { border-color: var(--gold); color: var(--gold); }

/* News page */
.news-cats { background: var(--dark-2); padding: 16px 0; border-bottom: 1px solid rgba(201,146,42,.15); }
.news-cats-inner { display: flex; gap: 8px; flex-wrap: wrap; }
.news-cat-pill { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(201,146,42,.2); color: rgba(250,247,242,.5); cursor: pointer; transition: .2s; display: inline-block; text-decoration: none; }
.news-cat-pill:hover, .news-cat-pill.active { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.news-sidebar-item { background: var(--white); border: 1px solid var(--border); border-top: none; padding: 18px 20px; transition: .2s; display: block; }
.news-sidebar-item:first-child { border-top: 1px solid var(--border); }
.news-sidebar-item:hover { border-left: 3px solid var(--gold); padding-left: 17px; }
.news-sidebar-item h4 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.35; }
.news-sidebar-item .meta { font-family: 'DM Sans', sans-serif; font-size: 10.5px; color: var(--muted); }
.news-article-card { background: var(--white); border: 1px solid var(--border); transition: .2s; display: block; }
.news-article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.article-img { background: linear-gradient(135deg, #1a140d 0%, #2d211a 100%); height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-img span { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-content { padding: 20px; }
.article-content .cat { font-family: 'DM Sans', sans-serif; font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block; }
.article-content h3 { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: 10px; }
.article-content p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.article-content .date { font-family: 'DM Sans', sans-serif; font-size: 10.5px; color: var(--muted); }

/* Submit page */
.tier-badge { display: inline-block; padding: 3px 10px; border-radius: 2px; margin-bottom: 8px; font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.tier-1 { background: var(--gold); color: var(--dark); }
.tier-2 { background: var(--border); color: var(--muted); }
.tier-3 { background: #f0f4ff; color: var(--blue); }
.submit-info-card { background: var(--white); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.submit-info-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.submit-info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.submit-info-card ul { padding-left: 20px; }
.submit-info-card ul li { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.7; list-style: disc; }

/* About */
.about-sidebar-stat { background: var(--dark); padding: 28px; margin-bottom: 16px; text-align: center; }
.about-sidebar-stat .n { font-family: 'Playfair Display', serif; font-size: 40px; color: var(--gold-light); font-weight: 700; display: block; }
.about-sidebar-stat .l { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(250,247,242,.45); margin-top: 6px; }
.method-card { background: rgba(255,255,255,.04); border: 1px solid rgba(201,146,42,.15); padding: 28px; }
.method-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); margin-bottom: 12px; }
.method-card p { font-size: 13.5px; color: rgba(250,247,242,.5); line-height: 1.8; }

/* Single post styles */
.single-hero { background: var(--dark); padding-bottom: 48px; }
.single-layout { max-width: 1200px; margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.post-content { font-size: 15.5px; line-height: 1.85; color: var(--mid); }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--dark); margin: 32px 0 16px; }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--dark); margin: 24px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--gold); border-bottom: 1px dotted var(--gold); }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 4px solid var(--gold); padding: 16px 24px; margin: 28px 0; background: var(--gold-pale); font-style: italic; }
.post-content img { margin: 24px 0; border-radius: 2px; }
.post-meta-bar { display: flex; flex-wrap: wrap; gap: 16px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: rgba(250,247,242,.5); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(201,146,42,.15); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.lightbox-inner { position: relative; z-index: 1; width: 100%; max-width: 800px; background: var(--dark); border: 1px solid rgba(201,146,42,.2); padding: 16px; border-radius: 2px; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; background: var(--gold); color: var(--dark); border: none; border-radius: 50%; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.lightbox-video { position: relative; padding-top: 56.25%; }
.lightbox-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Notice box */
.notice-box { border-left: 4px solid var(--gold); background: var(--gold-pale); padding: 16px 20px; font-size: 14px; color: var(--mid); line-height: 1.7; margin-bottom: 16px; }
.notice-success { border-left-color: var(--green); background: #f0fff4; }
.notice-error { border-left-color: var(--red); background: #fff0f0; }

/* Search bar */
.search-bar-wrap { background: var(--dark-2); padding: 32px 0; border-bottom: 1px solid rgba(201,146,42,.15); }
.search-bar { display: flex; max-width: 700px; }
.search-bar input {
  flex: 1; padding: 14px 20px; font-family: 'Lora', serif; font-size: 14px;
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(201,146,42,.3);
  border-right: none; color: var(--white); border-radius: 2px 0 0 2px; outline: none;
}
.search-bar input::placeholder { color: rgba(250,247,242,.3); }
.search-bar input:focus { border-color: rgba(201,146,42,.6); }
.search-bar button { padding: 14px 24px; background: var(--gold); color: var(--dark); border: none; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1px; cursor: pointer; border-radius: 0 2px 2px 0; transition: background .2s; }
.search-bar button:hover { background: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media(max-width:1024px) {
  .church-grid, .news-grid, .directory-grid, .news-main-grid { grid-template-columns: repeat(2,1fr); }
  .church-body { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-layout, .submit-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .methodology-grid { grid-template-columns: 1fr; }
  /* .church-hero-inner / .church-hero-side handled by their own dedicated
     responsive block (see line ~370) which preserves the featured image. */
  .news-featured { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
}
/* Default mobile-nav breakpoint — Header & Footer Builder may override
   this with a user-configured breakpoint via dynamic CSS. */
@media(max-width:992px) {
  #nav-desktop, .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
  #nav-menu {
    display: block;
    position: fixed; top: 0; right: -100%;
    width: min(320px, 88vw); height: 100vh;
    background: var(--dark); z-index: 200;
    transition: right .3s ease; overflow-y: auto;
    padding: 80px 0 40px;
    border-left: 2px solid rgba(201,146,42,.2);
  }
  #nav-menu.open { right: 0; }
  #nav-menu .nav-links {
    display: flex; flex-direction: column; gap: 0; padding: 0 24px;
  }
  #nav-menu .nav-links li a {
    padding: 14px 0; font-size: 14px;
    border-bottom: 1px solid rgba(201,146,42,.1); border-radius: 0;
    min-height: 44px; display: flex; align-items: center;
  }
  .nav-overlay { display: block; opacity: 0; pointer-events: none; transition: opacity .3s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: all; }
}
@media(max-width:640px) {
  .wrapper, .wrapper-narrow { padding: 0 16px; }
  .church-grid, .news-grid, .directory-grid, .news-main-grid { grid-template-columns: 1fr; }
  .impact-numbers { grid-template-columns: repeat(2,1fr); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .form-row { grid-template-columns: 1fr; }
  .church-stats-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { min-height: 160px; }
  .single-layout { padding: 32px 16px; }
  .church-body { padding: 40px 16px; }
}

/* Print */
@media print {
  .nav, .footer, .search-bar-wrap { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE SPECIFIC
═══════════════════════════════════════════════════════════ */
.hero {
  background: var(--dark);
  padding: 96px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 60% 50%, rgba(201,146,42,.12) 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative;
}
.hero-eyebrow {
  font-family: 'DM Sans', sans-serif; font-size: 10.5px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 20px; display: block;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(28px,4vw,52px);
  font-weight: 900; color: var(--white); line-height: 1.08; margin-bottom: 20px;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-size: 16px; color: rgba(250,247,242,.6); line-height: 1.85;
  margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  background: rgba(255,255,255,.04); border: 1px solid rgba(201,146,42,.2);
  border-radius: 4px; padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.hero-stat .n {
  font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold-light);
  font-weight: 700; display: block; line-height: 1;
}
.hero-stat .l {
  font-family: 'DM Sans', sans-serif; font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(250,247,242,.4); margin-top: 6px; display: block;
}

/* Impact strip */
.impact-strip {
  background: var(--dark); padding: 60px 0;
  position: relative; overflow: hidden;
}
.impact-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(201,146,42,.08) 0%, transparent 70%);
}
.impact-numbers {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 32px; position: relative;
}
.impact-num .n {
  font-family: 'Playfair Display', serif; font-size: 28px; color: var(--gold-light);
  font-weight: 700; display: block;
}
.impact-num .l {
  font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(250,247,242,.4); margin-top: 4px; display: block;
}
.impact-num-border { border-right: 1px solid rgba(201,146,42,.2); padding-right: 32px; }

/* Home sections */
.home-section { padding: 80px 0; }
.home-section-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px;
}
.church-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-grid   { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.directory-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* Filter bar */
.filter-bar {
  background: var(--dark-2); border-bottom: 1px solid rgba(201,146,42,.15); padding: 20px 0;
}
.filter-bar-inner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-select {
  padding: 10px 16px; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(201,146,42,.25); color: rgba(250,247,242,.7);
  font-family: 'DM Sans', sans-serif; font-size: 12.5px; border-radius: 2px;
  cursor: pointer; outline: none;
}
.filter-select option { background: var(--dark-2); color: var(--white); }
.filter-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(250,247,242,.4); margin-right: 4px;
}

/* News featured */
.news-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-bottom: 48px; }
.news-featured-main { background: var(--white); border: 1px solid var(--border); overflow: hidden; }
.news-featured-image {
  background: linear-gradient(135deg, var(--dark-2) 0%, #2a1f14 100%);
  height: 260px; display: flex; align-items: flex-end; padding: 24px; position: relative;
}
.news-featured-image .label {
  font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; display: block;
}
.news-featured-content { padding: 24px; }
.news-featured-content p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.news-main-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

@media(max-width:1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { display: none; }
  .impact-numbers { grid-template-columns: repeat(3,1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .church-grid, .news-grid, .directory-grid, .news-main-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:640px) {
  .impact-numbers { grid-template-columns: repeat(2,1fr); }
  .church-grid, .news-grid, .directory-grid, .news-main-grid { grid-template-columns: 1fr; }
  .impact-num-border { border-right: none; padding-right: 0; }
  .hero-actions { flex-direction: column; }
  .home-section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =====================================================
   HISTORY SECTION  (added in v1.1.0)
===================================================== */

/* Home page: Historical Highlights strip */
.history-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.history-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 22px;
  text-decoration: none;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.history-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,.18);
}
.history-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.history-card-year {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.history-card-emoji {
  font-size: 22px;
  opacity: .85;
}
.history-card-era {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.history-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 10px;
}
.history-card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  line-height: 1.55;
}

/* Archive: chronological timeline */
.history-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.history-timeline::before {
  content: "";
  position: absolute;
  left: 88px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border) 80%);
}
.history-timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
.history-timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  text-align: right;
  padding-right: 18px;
  position: relative;
  line-height: 1.1;
  padding-top: 4px;
}
.history-timeline-year::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg, #FAF7F2);
  box-shadow: 0 0 0 1px var(--gold);
}
.history-timeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 28px;
  position: relative;
  transition: border-color .2s;
}
.history-timeline-card:hover {
  border-color: var(--gold);
}
.history-timeline-emoji {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 24px;
  opacity: .55;
}
.history-timeline-link {
  display: block;
  text-decoration: none;
  padding-right: 40px;
}
.history-timeline-card .history-card-era {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-block;
}
.history-timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.history-timeline-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.history-timeline-excerpt {
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.history-timeline-outcome {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.history-timeline-readmore {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* Responsive: history */
@media(max-width: 960px) {
  .history-strip { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 640px) {
  .history-strip { grid-template-columns: 1fr; }
  .history-timeline::before { left: 50px; }
  .history-timeline-item { grid-template-columns: 70px 1fr; gap: 14px; }
  .history-timeline-year { font-size: 18px; padding-right: 12px; }
  .history-timeline-year::after { width: 10px; height: 10px; right: -6px; }
  .history-timeline-card { padding: 18px 20px; }
  .history-timeline-emoji { display: none; }
  .history-timeline-link { padding-right: 0; }
}

/* ═══════════════════════════════════════════════════════════
   v1.2.0 — HEADER & FOOTER BUILDER VARIANTS
═══════════════════════════════════════════════════════════ */

/* Centered logo header */
.nav-centered .nav-inner {
  flex-direction: column; gap: 12px; height: auto; padding: 18px 32px;
}
.nav-centered .nav-logo { justify-content: center; }
.nav-centered #nav-desktop { width: 100%; justify-content: center; }
.nav-centered .nav-cta-wrap { display: none; }

/* Minimal header */
.nav-minimal .nav-inner { justify-content: space-between; }
.nav-minimal #nav-desktop { display: none; }
.nav-minimal .nav-cta { display: inline-block; }

/* Top-bar style header */
.nav-topbar { background: var(--dark); }
.nav-topbar-strip {
  background: var(--dark-2);
  color: rgba(250,247,242,.65);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; letter-spacing: .5px;
  padding: 8px 32px;
  border-bottom: 1px solid rgba(201,146,42,.1);
}
.nav-topbar-strip-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

/* Sticky / transparent variants */
.nav-sticky { position: sticky; top: 0; }
.nav-transparent {
  background: transparent !important;
  position: absolute; left: 0; right: 0; top: 0;
  border-bottom: none;
}
.nav-transparent .nav-logo-text { color: var(--white); }

/* CTA button wrapper to keep header pieces aligned */
.nav-cta-wrap { display: flex; align-items: center; gap: 12px; }

/* Search icon button */
.nav-search-btn {
  background: transparent; border: 1px solid rgba(250,247,242,.15);
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(250,247,242,.7); transition: all .2s;
}
.nav-search-btn:hover { color: var(--gold-light); border-color: rgba(201,146,42,.4); }

/* Social icons row (used in headers + footers) */
.ca-socials {
  display: inline-flex; align-items: center; gap: 10px;
}
.ca-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(250,247,242,.06);
  color: rgba(250,247,242,.7); transition: all .2s;
}
.ca-socials a:hover { background: var(--gold); color: var(--dark); }
.ca-socials svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER LAYOUTS
═══════════════════════════════════════════════════════════ */

/* 3-column footer */
.footer-3col .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }

/* Mega footer (4 cols + featured spotlight) */
.footer-mega .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-mega-spotlight {
  background: rgba(201,146,42,.06);
  border: 1px solid rgba(201,146,42,.2);
  padding: 18px; border-radius: 4px; margin-top: 16px;
}

/* Minimal footer */
.footer-minimal {
  text-align: center; padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-minimal .footer-grid { display: none; }

/* Footer bottom bar split */
.footer-bottom-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding: 16px 32px; font-size: 12px; color: rgba(250,247,242,.5);
  border-top: 1px solid rgba(250,247,242,.06);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE A11Y — 44px tap targets
═══════════════════════════════════════════════════════════ */
@media(max-width:992px) {
  .btn-primary, .btn-secondary, .nav-cta {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  input[type="text"], input[type="email"], input[type="url"],
  input[type="tel"], input[type="number"], textarea, select {
    min-height: 44px; font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  }
  .nav-toggle { min-width: 44px; min-height: 44px; }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY: focus-visible
═══════════════════════════════════════════════════════════ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline-offset: 4px; }

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════ */
.ca-breadcrumb {
  font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .5px;
  color: var(--muted); padding: 12px 0; text-transform: uppercase;
}
.ca-breadcrumb a { color: var(--muted); }
.ca-breadcrumb a:hover { color: var(--gold); }
.ca-breadcrumb .sep { color: var(--border); margin: 0 10px; }
.ca-breadcrumb .current { color: var(--dark); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   ELEMENTOR YIELD HELPERS
═══════════════════════════════════════════════════════════ */
body.elementor-page #main-content > .wrapper { padding: 0; }
body.elementor-editor-active .nav,
body.elementor-editor-active .footer { display: revert; }

/* ═══════════════════════════════════════════════════════════
   v1.2.1 — RESPONSIVE GRID FIXES
   These rules previously failed because templates had inline
   style="grid-template-columns:..." overriding the @media rules.
   The inline styles have been removed; these classes now own the
   layout end-to-end, so mobile collapse works correctly.
═══════════════════════════════════════════════════════════ */

/* Blog index: article list + sidebar */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
}
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* About page main + stat sidebar */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  margin-bottom: 80px;
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
}

/* About page methodology cards */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .methodology-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* About page contact emails */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Church profile body (main + sidebar) — already has CSS @ line 495,
   but the inline padding can crowd on mobile. */
@media (max-width: 1024px) {
  .church-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; }
  .church-body > div:last-child { /* sidebar */ order: 2; }
}

/* Church profile stats bar — inline grid-template-columns is set by
   PHP based on count($stats); make it wrap gracefully on narrow screens. */
@media (max-width: 700px) {
  .church-stats-inner {
    grid-template-columns: repeat(2, 1fr) !important; /* override inline PHP */
    gap: 12px !important;
  }
}
@media (max-width: 420px) {
  .church-stats-inner {
    grid-template-columns: 1fr !important;
  }
}

/* Submit form layout (template-submit also uses split column) */
.submit-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
@media (max-width: 1024px) {
  .submit-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* Front-page sections that use 2-column layouts (just in case) */
@media (max-width: 1024px) {
  .home-hero-inner,
  .impact-grid,
  .featured-grid,
  .news-main-grid,
  .news-featured {
    grid-template-columns: 1fr !important;
  }
}

/* GLOBAL OVERFLOW GUARD
   Belt-and-braces: prevent any rogue wide element from creating
   horizontal scroll on mobile. Without this, a single oversized
   image or grid can make the whole document — header included —
   wider than the viewport. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }

/* Long URLs in content (sources, references) shouldn't blow the page out */
.post-content a, .source-link, .blog-card-content a {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════
   v1.2.1 — MOBILE DRAWER CTA + SIZING
═══════════════════════════════════════════════════════════ */

/* The Submit-a-Church CTA block injected at the bottom of the
   mobile drawer by every header layout. */
#nav-menu .nav-drawer-cta {
  margin: 24px;
  padding: 14px 18px;
  background: var(--gold);
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  text-align: center; border-radius: 4px;
  display: block; min-height: 44px;
  line-height: 1.2;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#nav-menu .nav-drawer-cta:hover { background: var(--gold-light); }

/* The drawer itself: ensure it never exceeds viewport */
#nav-menu {
  max-width: 100vw;
  box-sizing: border-box;
}
#nav-menu > * { max-width: 100%; }

/* Pad the nav-inner less aggressively on small screens so logo +
   hamburger fit comfortably. */
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo-text { font-size: 14px; }
  .nav-logo-mark { width: 32px; height: 32px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   v1.2.1 — DENOMINATION TAXONOMY ARCHIVE
═══════════════════════════════════════════════════════════ */

.tax-page-header {
  background: var(--dark);
  padding: 72px 0 56px;
  border-bottom: 2px solid rgba(201,146,42,.15);
}
.tax-page-header .section-label { color: var(--gold); }
.tax-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin: 14px 0 12px;
  line-height: 1.15;
}
.tax-page-header p {
  font-size: 15px;
  color: rgba(250,247,242,.6);
  max-width: 640px;
  line-height: 1.7;
}

/* Denomination index (list of all denominations as cards) */
.denom-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 56px 0 80px;
}
.denom-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 24px 26px;
  text-decoration: none;
  color: var(--dark);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block;
}
.denom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  border-left-color: var(--gold-light);
}
.denom-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dark);
}
.denom-card .count {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.denom-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 10px;
}
