/*
Theme Name: Bargersville church of Christ
Theme URI: https://bargersvillechristians.com
Author: Built with Claude Code
Description: A custom, mobile-first theme for the Bargersville church of Christ. Modern, warm, and photo-driven, built to host injected Congregate modules.
Version: 0.2.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bargersville-cc
*/

/* ============================================================
   DESIGN TOKENS — warm, modern, photo-driven
   ============================================================ */
:root {
  /* Color */
  --bg:        #ffffff;
  --bg-warm:   #faf6f1; /* warm off-white section */
  --bg-tint:   #f4ede4; /* soft warm tint */
  --ink:       #1b1714; /* headings / strong text */
  --ink-2:     #4b443d; /* body text */
  --ink-3:     #877d72; /* muted / captions */
  --line:      #ece4d9; /* hairlines */
  --brand:     #c24a26; /* terracotta — primary CTA */
  --brand-700: #a23c1d; /* hover */
  --brand-100: #f8e7df; /* tint */
  --gold:      #d8964b; /* warm amber accent */
  --espresso:  #211a15; /* dark sections / footer */
  --espresso-2:#2c241d;

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Fluid scale */
  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.50rem, 1.32rem + 0.85vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.62rem + 1.55vw, 2.95rem);
  --step-4:  clamp(2.45rem, 1.90rem + 2.70vw, 4.10rem);
  --step-5:  clamp(2.90rem, 2.05rem + 4.10vw, 5.40rem);

  /* Spacing */
  --sp-1: .375rem; --sp-2: .625rem; --sp-3: 1rem; --sp-4: 1.5rem;
  --sp-5: 2.25rem; --sp-6: 3.5rem; --sp-7: 5.5rem; --sp-8: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27,23,20,.06), 0 2px 8px rgba(27,23,20,.05);
  --shadow:    0 6px 16px rgba(27,23,20,.08), 0 18px 40px rgba(27,23,20,.08);
  --shadow-lg: 0 12px 28px rgba(27,23,20,.12), 0 30px 60px rgba(27,23,20,.12);
  --header-h:  72px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
strong { font-weight: 700; color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { line-height: 1.7; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--warm { background: var(--bg-warm); }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--espresso); color: rgba(255,255,255,.82); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.stack > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-4); }

.eyebrow { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.section--dark .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }

.section-head { max-width: 56ch; margin-bottom: var(--sp-5); }
.section-head .eyebrow { display: block; margin-bottom: var(--sp-2); }
.section-head p { margin-top: var(--sp-3); color: var(--ink-2); font-size: var(--step-1); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display);
  font-weight: 700; font-size: var(--step-0); line-height: 1; padding: .95em 1.6em;
  border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer;
  transition: transform .06s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(194,74,38,.28); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--on-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(4px); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn__icon { width: 1.15em; height: 1.15em; }

/* ============================================================
   HEADER + NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  min-height: var(--header-h); }

/* transparent-over-hero on the front page until scrolled */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-header--overlay .brand__name { color: #fff; }
.site-header--overlay .brand__sub { color: rgba(255,255,255,.8); }
.site-header--overlay .brand__mark { color: #fff; }
.site-header--overlay .nav-toggle { border-color: rgba(255,255,255,.5); }
.site-header--overlay .nav-toggle span { background: #fff; }
.site-header.is-scrolled { position: fixed; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line); }
.site-header.is-scrolled .brand__name { color: var(--ink); }
.site-header.is-scrolled .brand__sub { color: var(--ink-3); }
.site-header.is-scrolled .brand__mark { color: var(--brand); }
.site-header.is-scrolled .primary-nav a { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.site-header.is-scrolled .nav-toggle { border-color: var(--line); }
/* spacer so fixed overlay header doesn't cover content on inner pages */
body:not(.is-front) .site-header { position: sticky; }
/* Offset the fixed/sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand__mark { width: 30px; height: 40px; flex: none; color: var(--brand); transition: color .25s; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.brand__sub { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-top: 4px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 11px; background: transparent; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { position: fixed; inset: 0 0 0 auto; width: min(84vw, 380px); background: #fff;
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; z-index: 60;
  padding: var(--sp-6) var(--sp-4) var(--sp-4); overflow-y: auto; }
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.primary-nav a { display: block; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600;
  color: var(--ink); padding: .6rem 0; border-bottom: 1px solid var(--line); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--brand); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(27,23,20,.45); opacity: 0; visibility: hidden;
  transition: opacity .25s; z-index: 55; }
.nav-backdrop.is-open { opacity: 1; visibility: visible; }
.nav-close { position: absolute; top: var(--sp-3); right: var(--sp-3); width: 42px; height: 42px;
  border: 1.5px solid var(--line); background: transparent; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink); }

/* ============================================================
   HERO — full-bleed photo + warm overlay
   ============================================================ */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,11,.35) 0%, rgba(20,15,11,.15) 35%, rgba(20,15,11,.78) 100%),
              linear-gradient(90deg, rgba(33,20,12,.55) 0%, rgba(33,20,12,0) 60%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-7); }
.hero__eyebrow { color: #fff; opacity: .9; margin-bottom: var(--sp-3); display: inline-flex; align-items: center; gap: .5rem; }
.hero__title { color: #fff; font-size: var(--step-5); font-weight: 800; max-width: 16ch; }
.hero__lede { color: rgba(255,255,255,.92); font-size: var(--step-1); max-width: 46ch; margin-top: var(--sp-4); }
.hero__actions { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* service-times strip overlapping hero bottom */
.infobar { position: relative; z-index: 3; margin-top: calc(var(--sp-6) * -1); }
.infobar__card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr; }
.infobar__item { display: flex; gap: .9rem; align-items: flex-start; padding: var(--sp-4); border-bottom: 1px solid var(--line); }
.infobar__item:last-child { border-bottom: 0; }
.infobar__icon { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.infobar__label { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--step-0); }
.infobar__meta { color: var(--ink-3); font-size: var(--step--1); margin-top: 2px; }
.infobar__meta strong { color: var(--ink-2); }

/* ============================================================
   SPLIT (image + text)
   ============================================================ */
.split { display: grid; gap: var(--sp-5); align-items: center; grid-template-columns: 1fr; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 3/4; }

/* ============================================================
   NEXT-STEPS CARDS (image-topped)
   ============================================================ */
.cards { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ncard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-tint); }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ncard:hover .ncard__media img { transform: scale(1.05); }
.ncard__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ncard h3 { font-size: var(--step-1); }
.ncard p { color: var(--ink-2); font-size: var(--step-0); }
.ncard__link { margin-top: auto; font-family: var(--font-display); font-weight: 700; color: var(--brand);
  font-size: var(--step--1); letter-spacing: .04em; text-transform: uppercase; }
.ncard__link::after { content: " →"; }

/* feature row of plain icon points */
.points { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; margin-top: var(--sp-5); }
.point { display: flex; gap: .9rem; }
.point__icon { width: 30px; height: 30px; color: var(--brand); flex: none; }
.point h4 { font-size: var(--step-0); }
.point p { font-size: var(--step--1); color: var(--ink-2); margin-top: .15rem; }

/* ============================================================
   SERMONS / VIDEO
   ============================================================ */
.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; overflow: hidden; color: #fff; text-align: center; }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(33,26,21,.78); }
.cta-band__inner { position: relative; z-index: 1; padding-block: var(--sp-7); }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.85); margin: var(--sp-3) auto 0; max-width: 46ch; }
.cta-band .hero__actions { justify-content: center; }

/* ============================================================
   PAGE / PROSE
   ============================================================ */
.page-hero { background: var(--bg-warm); border-bottom: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-5); }
.page-hero .eyebrow { display: block; margin-bottom: var(--sp-2); }
.prose { max-width: 72ch; color: var(--ink-2); }
.prose > * + * { margin-top: var(--sp-3); }
.prose h2 { margin-top: var(--sp-5); font-size: var(--step-2); }
.prose h3 { margin-top: var(--sp-4); font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35rem; }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: var(--sp-3);
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--ink); }
.prose img { border-radius: var(--radius); margin-block: var(--sp-4); box-shadow: var(--shadow-sm); }

/* ============================================================
   INNER PAGE COMPONENTS (info cards, map, feature list, FAQ)
   ============================================================ */
.page-hero .lead { margin-top: var(--sp-3); font-size: var(--step-1); color: var(--ink-2); }
.info-cards { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: var(--step-1); display: flex; align-items: center; gap: .55rem; margin-bottom: .5rem; }
.info-card .ic { width: 24px; height: 24px; color: var(--brand); flex: none; }
.info-card p, .info-card div { color: var(--ink-2); }
.info-card a { font-weight: 600; }
.map { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.feature-list { display: grid; gap: var(--sp-4); }
.feature-list > div { padding-left: var(--sp-3); border-left: 3px solid var(--brand); }
.feature-list h3 { font-size: var(--step-1); }
.feature-list p { color: var(--ink-2); margin-top: .3rem; }
.ref { color: var(--brand); }
a.ref { text-decoration: none; }
a.ref:hover, a.ref:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.feature-list .refs { display: block; width: fit-content; margin-top: .6rem; font-family: var(--font-display);
  font-style: normal; font-weight: 700; font-size: var(--step--1); letter-spacing: .04em; }

/* ============================================================
   VERSE POPUP (in-page scripture modal)
   ============================================================ */
body.verse-modal-open { overflow: hidden; }
.verse-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--sp-4); }
.verse-modal[hidden] { display: none; }
.verse-modal__scrim { position: absolute; inset: 0; background: rgba(27,23,20,.55); }
.verse-modal__card { position: relative; z-index: 1; width: min(92vw, 540px); max-height: 85vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius); border-top: 4px solid var(--brand);
  box-shadow: var(--shadow-lg); padding: var(--sp-6) var(--sp-5) var(--sp-5); animation: verse-pop .18s ease-out; }
@keyframes verse-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.verse-modal__close { position: absolute; top: .4rem; right: .7rem; background: none; border: 0;
  font-size: 1.9rem; line-height: 1; color: var(--ink-2); cursor: pointer; padding: .2rem .5rem; border-radius: var(--radius-sm); }
.verse-modal__close:hover, .verse-modal__close:focus-visible { color: var(--brand); }
.verse-modal__ref { font-family: var(--font-display); font-weight: 700; color: var(--brand);
  letter-spacing: .03em; font-size: var(--step-1); margin: 0 0 var(--sp-3); padding-right: 2rem; }
.verse-modal__body p { font-size: var(--step-1); line-height: 1.65; color: var(--ink); margin: 0 0 var(--sp-3); }
.verse-modal__body p:last-child { margin-bottom: 0; }
.verse-modal__loading, .verse-modal__fallback { color: var(--ink-2); font-style: italic; }
.verse-modal__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.verse-modal__more { font-weight: 600; }
.verse-modal__attr { margin: var(--sp-2) 0 0; font-size: var(--step--1); color: var(--ink-3); line-height: 1.5; }
.verse-modal__attr:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .verse-modal__card { animation: none; } }
.faq { display: grid; gap: var(--sp-3); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3) var(--sp-4); }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.4em; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { margin-bottom: var(--sp-2); }
.faq p { color: var(--ink-2); }
/* Contact page + form */
.contact-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
.contact-info dl { display: grid; gap: var(--sp-4); margin: 0; }
.contact-info dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .35rem; }
.contact-info dd { margin: 0; color: var(--ink-2); line-height: 1.7; }
.form-field { margin-bottom: var(--sp-4); }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; font-family: var(--font-body); font-size: var(--step-0);
  color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7em .9em; }
.form-field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23877d72' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.4em; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-field textarea { min-height: 160px; resize: vertical; }
.form-note { font-weight: 400; color: var(--ink-3); font-size: var(--step--1); }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); margin-bottom: var(--sp-4); line-height: 1.5; }
.alert--success { background: #e8f3ea; border: 1px solid #b6d8be; color: #2c5733; }
.alert--error { background: #fbeae6; border: 1px solid #f0c4b8; color: #8a3d24; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); } }

.agegrid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.agecard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4); font-family: var(--font-display); font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow-sm); }
.agecard::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
@media (min-width: 640px) {
  .agegrid { grid-template-columns: repeat(3, 1fr); }  /* tablet: 3 across */
}
@media (min-width: 760px) {
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .feature-list--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-6); }
}
@media (min-width: 900px) {
  .agegrid { grid-template-columns: repeat(4, 1fr); }  /* desktop: 4 across */
}

/* ============================================================
   CONGREGATE MODULE THEMING
   Injected inside .congregate-container — style only, no HTML control.
   ============================================================ */
.congregate-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4);
  font-family: var(--font-body); color: var(--ink-2); }
.congregate-container h1, .congregate-container h2, .congregate-container h3, .congregate-container h4 {
  font-family: var(--font-display); color: var(--ink); }
.congregate-container a { color: var(--brand); }
.congregate-container a:hover { color: var(--brand-700); }
.congregate-container .btn,
.congregate-container button:not(.nav-toggle):not(.nav-close),
.congregate-container input[type="submit"] {
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-pill);
  padding: .75em 1.4em; font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.congregate-container input[type="text"], .congregate-container input[type="search"],
.congregate-container input[type="email"], .congregate-container select, .congregate-container textarea {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65em .9em; }
.congregate-container input:focus, .congregate-container select:focus, .congregate-container textarea:focus {
  outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.congregate-container .card, .congregate-container .panel, .congregate-container .list-group-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* --- Congregate "Recent Sermons" widgets (list + carousel) --- */
.cong-widget-container { font-family: var(--font-body) !important; color: var(--ink-2); max-width: var(--container); margin-inline: auto; }
.cong-widget-title, .cong-event-list-title-widget {
  font-family: var(--font-display) !important; font-weight: 800 !important; font-size: var(--step-2) !important;
  color: var(--ink) !important; letter-spacing: -0.01em; border-bottom: 2px solid var(--line);
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-2); }

/* list rows: title + speaker stack on the left, chevron parked on the right */
.cong-articles-widget-item {
  position: relative; display: block; padding: var(--sp-3) 2.4rem var(--sp-3) 0;
  border-bottom: 1px solid var(--line); }
.cong-articles-widget-item a { color: var(--ink) !important; font-family: var(--font-display) !important;
  font-weight: 700 !important; text-decoration: none; }
.cong-articles-widget-item a:hover { color: var(--brand) !important; }
.cong-widget-icon-viewmore { position: absolute !important; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--brand) !important; margin: 0 !important; }

/* carousel: hide the empty placeholder thumbnails, show clean text cards */
.cong-carousel-thumb-link, img.cong-carousel-thumb { display: none !important; }
.cong-carousel-wrapper { margin-top: var(--sp-5); }
.cong-carousel-slide { padding: 8px; box-sizing: border-box; }
.cong-carousel-meta { background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4) !important; box-shadow: var(--shadow-sm); height: 100%; }
.cong-carousel-meta p { margin: 0 !important; }
.cong-carousel-title { font-family: var(--font-display) !important; font-weight: 700 !important;
  color: var(--ink) !important; font-size: var(--step-1) !important; line-height: 1.25; margin-bottom: .3rem !important; }
.cong-carousel-speaker { color: var(--ink-2) !important; font-weight: 600 !important; }
.cong-carousel-date { color: var(--ink-3) !important; font-size: var(--step--1) !important; margin-top: .15rem !important; }
.cong-carousel-wrapper .cong-carousel-dot.is-active::after,
.cong-carousel-wrapper .cong-carousel-dot:hover::after { background: var(--brand) !important; }

/* --- Congregate Sermons ARCHIVE module (search + list + pagination): compact + themed --- */
.congregate-container { font-size: 0.95rem; }
.cong-articles-archive-top { margin-bottom: var(--sp-3) !important; }
.cong-search-input { max-width: 100%; }
.cong-search-count-text { color: var(--ink-3) !important; font-size: var(--step--1) !important; }
.cong-data-row { padding-block: .6rem !important; border-bottom: 1px solid var(--line); align-items: center; }
.cong-sermon-thumb-wrapper img, .cong-sermon-thumb { border-radius: var(--radius-sm); max-width: 120px; height: auto; }
img.cong-sermon-thumb[src*="no-thumbnail"] { opacity: .45; }
.cong-sermon-title-media a, .cong-title-link { font-family: var(--font-display) !important; font-weight: 700 !important;
  color: var(--ink) !important; font-size: var(--step-0) !important; }
.cong-sermon-title-media a:hover, .cong-title-link:hover { color: var(--brand) !important; }
.cong-article-author-name { color: var(--ink-3) !important; font-size: var(--step--1) !important; }
.cong-pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; align-items: center; margin-top: var(--sp-4); padding: 0; }
.cong-pagination a, .cong-pagination span { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink) !important; text-decoration: none; font-size: var(--step--1); }
.cong-current-page { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--espresso); color: rgba(255,255,255,.72); padding-block: var(--sp-7) var(--sp-4); }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; text-align: center; }
.footer-brand .brand { justify-content: center; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255,255,255,.6); }
.footer-brand .brand__mark { color: var(--gold); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 38ch; margin: var(--sp-3) auto 0; }
.footer-col h4 { font-family: var(--font-display); font-size: var(--step--1); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; margin-bottom: var(--sp-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.footer-social { display: flex; gap: .6rem; margin-top: var(--sp-4); justify-content: center; }
.footer-social a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-pill); color: #fff; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: center; text-align: center;
  font-size: var(--step--1); color: rgba(255,255,255,.5); }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .infobar__card { grid-template-columns: repeat(3, 1fr); }
  .infobar__item { border-bottom: 0; border-right: 1px solid var(--line); }
  .infobar__item:last-child { border-right: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .split--reverse .split__media { order: 2; }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  /* desktop nav inline */
  .nav-toggle, .nav-close { display: none; }
  /* Home lives in the mobile drawer only; the logo is the home link here. */
  .menu-item-home { display: none; }
  .primary-nav { position: static; width: auto; transform: none; box-shadow: none; background: transparent;
    padding: 0; overflow: visible; }
  .primary-nav ul { flex-direction: row; gap: var(--sp-4); align-items: center; }
  .primary-nav a { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600;
    border: 0; padding: .4rem 0; position: relative; }
  .primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s; opacity: .8; }
  .primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
  /* white nav links over the hero — desktop inline nav only (the mobile drawer is a white panel) */
  .site-header--overlay .primary-nav a { color: #fff; }
  .primary-nav .menu-item-cta a { background: var(--brand); color: #fff !important; padding: .6rem 1.2rem;
    border-radius: var(--radius-pill); }
  .primary-nav .menu-item-cta a::after { display: none; }
  .site-header--overlay .primary-nav .menu-item-cta a,
  .site-header.is-scrolled .primary-nav .menu-item-cta a { color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
