/* ───────────────────────────────────────────────────────────
   Iglesia Bautista de el Valle — Church Website hi-fi
   Mobile-first; widens at 900px.
   ─────────────────────────────────────────────────────────── */

:root {
  /* paper / ink */
  --cream-50: #FCF9F1;
  --cream-100: #FAF5E8;
  --cream-200: #F2EAD4;
  --cream-300: #E8DDBE;
  --ink:       #1E160C;
  --ink-700:   #3A2C1B;
  --ink-500:   #6C5A41;
  --ink-300:   #A89B82;
  --hairline:  rgba(30, 22, 12, 0.12);
  --hairline-strong: rgba(30, 22, 12, 0.22);

  /* brand accents */
  --gold:        #E6B13A;
  --gold-deep:   #C8932A;
  --gold-soft:   #F4DE93;
  --terra:       #B05B2C;
  --terra-soft:  #E9C9B0;

  /* radii / shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(30,22,12,.06), 0 2px 6px rgba(30,22,12,.04);
  --shadow-md: 0 2px 6px rgba(30,22,12,.08), 0 12px 28px rgba(30,22,12,.06);
  --shadow-warm: 0 12px 36px rgba(176, 91, 44, .18);

  /* type scale */
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-inscription: 'Cinzel', 'Trajan Pro', 'Cormorant Garamond', serif;
  --font-body: 'Spectral', 'Lora', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream-100);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* a hint of warm grain in the background */
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(230,177,58,0.08), transparent 50%),
    radial-gradient(ellipse at -10% 30%, rgba(176,91,44,0.04), transparent 40%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* page shell */
.page {
  max-width: 1200px;
  margin: 0 auto;
}
.section { padding: 56px 22px; }
.section.pad-tight { padding: 36px 22px; }
.section.pad-loose { padding: 72px 22px; }

/* type */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.italic-script { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.eyebrow {
  font-family: var(--font-inscription);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
}
.muted { color: var(--ink-500); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.012em; line-height: 1.02; }
h1 { font-size: clamp(40px, 10vw, 64px); font-weight: 600; }
h2 { font-size: clamp(30px, 6.5vw, 44px); font-weight: 600; }
h3 { font-size: clamp(24px, 5vw, 32px); }
h4 { font-size: 22px; font-weight: 600; }
p  { margin: 0; line-height: 1.6; }
.lead { font-size: 17.5px; color: var(--ink-700); line-height: 1.6; text-wrap: pretty; font-family: var(--font-body); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-inscription);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terra);
  padding: 0;
  border: 0;
}
.kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--terra);
  display: inline-block;
}

/* ───── Header ───── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 249, 241, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand-mark .sun { fill: var(--gold); stroke: currentColor; }
.brand-mark .ink-part { fill: currentColor; }
.brand-mark .horizon { stroke: currentColor; }
.footer .brand-mark { color: var(--cream-50); }
.footer .brand-mark .sun { stroke: rgba(252,249,241,0.35); }
.brand-name {
  display: flex; flex-direction: column; line-height: 1.1;
  font-family: var(--font-inscription);
  letter-spacing: 0.08em;
  min-width: 0;
}
.brand-name b { font-weight: 600; font-size: 11.5px; white-space: nowrap; text-transform: uppercase; color: var(--ink); }
.brand-name span { font-size: 10.5px; font-weight: 500; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 1px; white-space: nowrap; }
@media (min-width: 720px) {
  .brand-name b { font-size: 13px; }
  .brand-name span { font-size: 11px; }
}

.nav-desktop { display: none; }
.nav-desktop a { padding: 8px 12px; font-family: var(--font-inscription); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-700); border-radius: 999px; }
.nav-desktop a:hover { background: var(--cream-200); color: var(--ink); }
.nav-desktop a.cta {
  background: var(--ink); color: var(--cream-50);
  margin-left: 4px;
}
.nav-desktop a.cta:hover { background: var(--terra); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px; padding: 3px;
  background: var(--cream-50);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
}
.lang button {
  border: 0; background: transparent; padding: 4px 9px; border-radius: 999px;
  color: var(--ink-500); cursor: pointer; font-family: inherit; font-size: 11px; letter-spacing: 0.1em;
}
.lang button.on { background: var(--ink); color: var(--cream-50); }

.menu-btn {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--cream-50);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink);
  border-radius: 1px;
}
.menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; }
.menu-btn span::before { top: 14px; }
.menu-btn span::after { bottom: 14px; }

/* drawer menu */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(30,22,12,0.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
  z-index: 60;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--cream-50);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 70;
  display: flex; flex-direction: column;
  padding: 22px;
  box-shadow: -8px 0 24px rgba(30,22,12,0.10);
}
.drawer.open { transform: translateX(0); }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer .drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--hairline);
}
.drawer .close {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--hairline-strong);
  background: transparent; font-size: 18px;
}
.drawer nav { margin-top: 18px; display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--font-display); font-size: 24px; padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline;
}
.drawer nav a .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-300); }
.drawer .drawer-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--ink-500); }

/* ───── Buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font-inscription); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--cream-50); }
.btn-primary:hover { background: var(--terra); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream-50); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--cream-200); }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ───── Cards / surfaces ───── */
.card {
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card.warm { background: var(--cream-200); border-color: rgba(30,22,12,0.10); }
.card.gold { background: var(--gold-soft); border-color: rgba(30,22,12,0.16); }
.card.ink  { background: var(--ink); color: var(--cream-50); border-color: var(--ink); }
.card.ink .muted, .card.ink .eyebrow { color: rgba(252,249,241,0.65); }

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

/* ───── Stripes for placeholder images ───── */
.ph {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(30,22,12,0.07) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, var(--cream-300), var(--cream-200));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-align: center;
}
.ph.warm  { background: repeating-linear-gradient(135deg, rgba(176,91,44,0.10) 0 10px, transparent 10px 20px), linear-gradient(180deg, var(--terra-soft), var(--cream-200)); }
.ph.gold  { background: repeating-linear-gradient(135deg, rgba(230,177,58,0.30) 0 10px, transparent 10px 20px), linear-gradient(180deg, var(--gold-soft), var(--cream-200)); }
.ph.ink   { background: repeating-linear-gradient(135deg, rgba(252,249,241,0.06) 0 10px, transparent 10px 20px), var(--ink); color: rgba(252,249,241,0.7); }
.ph-label { background: rgba(252,249,241,0.85); padding: 4px 10px; border-radius: 999px; }
.ph.ink .ph-label { background: rgba(30,22,12,0.6); color: rgba(252,249,241,0.85); }

/* ───── HERO ───── */
.hero {
  padding: 28px 22px 8px;
  position: relative;
}
.hero-photo {
  height: 320px;
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.hero-photo .ph {
  position: absolute; inset: 0; border-radius: 0;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,12,0) 30%, rgba(30,22,12,0.45) 100%);
}
/* Base hero badge — used in both hero-text (inline) and hero-photo (absolute) */
.hero-badge {
  background: rgba(252,249,241,0.92);
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-inscription); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.hero-photo .hero-badge {
  position: absolute; top: 16px; left: 16px;
  z-index: 2;
}
.hero-photo .hero-sun {
  position: absolute; top: -50px; right: -40px;
  width: 220px; height: 220px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-deep));
  filter: blur(2px); opacity: 0.55; z-index: 1;
}
.hero-headline {
  margin-top: 24px;
  margin-bottom: 0;
  padding-bottom: 0.7em;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-headline em {
  font-style: italic; font-weight: 500; color: var(--terra);
  font-family: var(--font-display);
  white-space: nowrap;
}
.hero-sub {
  margin-top: 16px;
  font-size: 16.5px; line-height: 1.5; color: var(--ink-700);
  max-width: 540px;
  text-wrap: pretty;
}
.hero-ctas {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-500);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

/* ───── Service times card ───── */
.times {
  display: grid; gap: 14px;
}
.time-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.time-row:first-of-type { border-top: 0; padding-top: 0; }
.time-row:last-of-type { padding-bottom: 0; }
.time-row .day {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--cream-200);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--hairline);
  gap: 2px;
}
.time-row .day .d {
  font-family: var(--font-inscription); font-size: 9.5px;
  color: var(--ink-500); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.time-row .day .h {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  line-height: 1; letter-spacing: 0.01em; color: var(--ink);
}
.time-row { grid-template-columns: 64px 1fr auto; }
.time-row .title { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.time-row .es { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; font-family: var(--font-body); }
.time-row .when { font-family: var(--font-inscription); font-size: 10.5px; font-weight: 600; color: var(--ink-700); letter-spacing: 0.16em; text-align: right; text-transform: uppercase; }
.time-row.sunday .day {
  background: var(--cream-200); border-color: var(--hairline);
  box-shadow: none;
}
.time-row.sunday .day .d { color: var(--ink-500); }
.time-row.sunday .day .h { color: var(--ink); }

.address-row {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline);
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
}
.address-row .ad { font-size: 14px; }
.address-row .ad b { font-family: var(--font-display); font-size: 18px; display: block; font-weight: 500; }

/* ───── Pastor welcome ───── */
.pastor {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
.pastor .portrait {
  height: 320px; border-radius: var(--r-lg); overflow: hidden;
  position: relative;
}
.pastor .portrait::after {
  content: ""; position: absolute; left: -30px; bottom: -30px;
  width: 140px; height: 140px; border-radius: 999px; background: var(--gold);
  z-index: -1;
}
.pastor blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic;
  font-size: clamp(22px, 5vw, 30px); line-height: 1.2; color: var(--ink);
  position: relative; padding-left: 0;
}
.pastor blockquote::before {
  content: "“"; font-family: var(--font-display);
  font-size: 80px; line-height: 0.6;
  color: var(--gold); display: block; margin-bottom: -10px;
}
.pastor .sig { margin-top: 14px; }
.pastor .sig b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 500; }
.pastor .sig span { font-size: 13px; color: var(--ink-500); }

/* ───── Step list (what to expect) ───── */
.steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
  padding: 22px; border-radius: var(--r-md); background: var(--cream-50);
  border: 1px solid var(--hairline);
  position: relative;
}
.step .num {
  width: 56px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: transparent; color: var(--terra);
  font-family: var(--font-inscription); font-size: 28px; font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-top: 4px;
}
.step .num::after {
  content: ""; display: block; width: 28px; height: 1px; background: var(--terra);
  margin-top: 4px;
}
.step h4 { font-size: 21px; }
.step p { font-size: 14.5px; color: var(--ink-500); margin-top: 6px; line-height: 1.55; }

/* ───── Events ───── */
.events {
  display: grid; gap: 14px;
}
.event {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  padding: 16px; border-radius: var(--r-md);
  background: var(--cream-50); border: 1px solid var(--hairline);
  align-items: stretch;
  transition: transform .15s, box-shadow .15s;
}
.event:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.event .date {
  background: var(--cream-200); border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 6px;
}
.event .date .m { font-family: var(--font-mono); font-size: 11px; color: var(--terra); letter-spacing: 0.12em; }
.event .date .d { font-family: var(--font-display); font-size: 32px; line-height: 1; }
.event .date .w { font-family: var(--font-mono); font-size: 10px; color: var(--ink-500); margin-top: 4px; letter-spacing: 0.12em; }
.event h4 { font-family: var(--font-display); font-size: 22px; }
.event .es { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.event p { font-size: 14px; margin-top: 8px; color: var(--ink-700); }
.event .meta { margin-top: 10px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-500); letter-spacing: 0.06em; }

/* ───── Ministries ───── */
.min-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.min {
  padding: 18px; border-radius: var(--r-md);
  background: var(--cream-50); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 10px; min-height: 130px;
  transition: background .2s, transform .15s;
}
.min:hover { background: var(--cream-200); }
.min .ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--ink);
}
.min h4 { font-size: 18px; line-height: 1.1; }
.min .es { font-size: 12px; color: var(--ink-500); }
.min .meta { margin-top: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); letter-spacing: 0.08em; }
.min.feature {
  grid-column: span 2;
  background: var(--ink); color: var(--cream-50);
  position: relative; overflow: hidden;
}
.min.feature .ico { background: var(--gold); border-color: var(--gold-deep); }
.min.feature .meta { color: rgba(252,249,241,0.65); }
.min.feature::after {
  content: ""; position: absolute; right: -50px; bottom: -60px;
  width: 180px; height: 180px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), transparent 65%);
  opacity: .5;
}

/* ───── Sermon feature ───── */
.sermon-feature {
  background: var(--ink); color: var(--cream-50);
  border-radius: var(--r-xl); overflow: hidden;
  position: relative;
}
.sermon-thumb {
  height: 220px; position: relative;
}
.sermon-thumb .ph { position: absolute; inset: 0; border-radius: 0; }
.sermon-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,22,12,0.10), rgba(30,22,12,0.55));
}
.sermon-thumb .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(30,22,12,0.4);
  z-index: 2;
}
.sermon-body { padding: 22px; }
.sermon-body h3 { color: var(--cream-50); font-size: 28px; }
.sermon-body .meta { margin-top: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: rgba(252,249,241,0.7); }
.sermon-list { margin-top: 18px; display: grid; gap: 0; }
.sermon-list .item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(252,249,241,0.12);
}
.sermon-list .item .t { font-family: var(--font-display); font-size: 17px; }
.sermon-list .item .d { font-family: var(--font-mono); font-size: 11px; color: rgba(252,249,241,0.65); letter-spacing: 0.1em; }
.sermon-list .item .arrow { color: var(--gold); }

/* ───── Giving ───── */
.giving {
  background: linear-gradient(180deg, var(--gold-soft), var(--cream-200));
  border-radius: var(--r-xl);
  padding: 28px 22px;
  position: relative; overflow: hidden;
}
.giving::before {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 240px; height: 240px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), transparent 70%);
  opacity: 0.55;
}
.giving > * { position: relative; z-index: 1; }
.giving .amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.giving .amt {
  padding: 12px 0; border-radius: var(--r-sm);
  background: var(--cream-50); border: 1px solid var(--hairline);
  text-align: center; font-family: var(--font-display); font-size: 19px;
  cursor: pointer; transition: background .2s, color .2s;
}
.giving .amt.on { background: var(--ink); color: var(--cream-50); border-color: var(--ink); }
.giving .amt:hover:not(.on) { background: var(--cream-300); }
.giving .fund {
  margin-top: 12px;
  display: flex; gap: 10px;
}
.giving .fund select {
  flex: 1; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--cream-50); border: 1px solid var(--hairline);
  font-family: inherit; font-size: 14px; color: var(--ink);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ───── Merch ───── */
.merch {
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative; overflow: hidden;
}
.merch-head {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center;
}
.merch-logo {
  width: 88px; height: 88px; border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  overflow: hidden; background: var(--cream-200);
}
.merch-logo img { width: 100%; height: 100%; object-fit: cover; }
.merch-products {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.merch-products .prod {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
}

/* ───── Prayer ───── */
.prayer {
  background: var(--ink); color: var(--cream-50);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  position: relative; overflow: hidden;
}
.prayer::after {
  content: ""; position: absolute; right: -60px; bottom: -100px;
  width: 240px; height: 240px; border-radius: 999px;
  border: 1px dashed rgba(252,249,241,0.18);
}
.prayer .scripture {
  font-family: var(--font-display); font-style: italic;
  margin-top: 12px; color: rgba(252,249,241,0.85);
  font-size: 17px;
}
.prayer .btn-gold { margin-top: 18px; }

/* ───── Contact + map ───── */
.contact {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.contact .map {
  border-radius: var(--r-lg); overflow: hidden;
  height: 260px; position: relative;
  background:
    /* faux map dots */
    radial-gradient(circle at 20% 30%, rgba(176,91,44,0.18) 0 6px, transparent 6.5px),
    radial-gradient(circle at 70% 60%, rgba(176,91,44,0.18) 0 5px, transparent 5.5px),
    /* faux streets */
    linear-gradient(120deg, transparent 49.5%, rgba(30,22,12,0.08) 50%, transparent 50.5%),
    linear-gradient(60deg, transparent 49.5%, rgba(30,22,12,0.08) 50%, transparent 50.5%),
    linear-gradient(180deg, var(--cream-200), var(--cream-300));
  background-size: auto, auto, 80px 80px, 120px 120px, auto;
  border: 1px solid var(--hairline);
}
.contact .map::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 24px; height: 24px;
  background: var(--terra);
  border: 3px solid var(--cream-50);
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%,-100%) rotate(-45deg);
  box-shadow: 0 6px 14px rgba(30,22,12,0.25);
}
.contact .map .pin-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, 30px);
  background: var(--cream-50);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; padding: 6px 12px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}
.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.contact-info .row .ic {
  width: 36px; height: 36px; border-radius: 999px; background: var(--cream-200);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-info .row b { font-family: var(--font-display); font-size: 17px; font-weight: 500; display: block; margin-bottom: 2px; }
.contact-info .row span { font-size: 14px; color: var(--ink-500); }

/* ───── Footer ───── */
.footer {
  background: var(--ink); color: var(--cream-200);
  padding: 48px 22px 28px;
  margin-top: 8px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer .brand-name b { color: var(--cream-50); }
.footer .brand-name span { color: rgba(252,249,241,0.55); }
.footer h5 { font-family: var(--font-inscription); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(252,249,241,0.55); font-weight: 600; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(252,249,241,0.85); }
.footer ul a:hover { color: var(--gold); }
.footer .col p { font-size: 14px; color: rgba(252,249,241,0.65); line-height: 1.55; }
.footer .row-social { display: flex; gap: 10px; margin-top: 14px; }
.footer .row-social a {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid rgba(252,249,241,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.footer .row-social a:hover { background: rgba(252,249,241,0.08); }
.footer .legal {
  border-top: 1px solid rgba(252,249,241,0.12);
  padding-top: 18px; margin-top: 8px;
  font-size: 12px; color: rgba(252,249,241,0.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer .legal a:hover { color: var(--gold); }

/* ───── Section headers ───── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { line-height: 1; }
.sec-head .more { font-family: var(--font-inscription); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); }
.sec-head .more:hover { color: var(--gold-deep); }

/* ───── Responsive — desktop ───── */
@media (min-width: 720px) {
  .section { padding: 80px 32px; }
  .section.pad-tight { padding: 56px 32px; }
  .section.pad-loose { padding: 104px 32px; }
  .hero { padding: 36px 32px; }
  .hero-photo { height: 460px; }
  .pastor { grid-template-columns: 1fr 1.3fr; align-items: center; gap: 36px; }
  .pastor .portrait { height: 420px; }
  .events { grid-template-columns: 1fr 1fr; }
  .min-grid { grid-template-columns: repeat(3, 1fr); }
  .min.feature { grid-column: span 3; }
  .merch-products { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1.4fr 1fr; }
  .contact .map { height: 380px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1000px) {
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .menu-btn { display: none; }
  .section { padding: 96px 40px; }
  .hero { padding: 56px 40px 24px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
  .hero-photo { height: 540px; order: 2; }
  .hero-text { order: 1; min-width: 0; }
  .hero-headline { font-size: 56px; }
  h1 { font-size: 64px; }
  h2 { font-size: 44px; }
}

@media (min-width: 1200px) {
  .hero-headline { font-size: 62px; }
  h1 { font-size: 68px; }
}

/* ───── Bilingual swapping ───── */
.lang-en [lang="es"], .lang-es [lang="en"] { display: none; }

/* ───── Mini reveal animation (translate only, no opacity hide so SSR/screenshots show content) ───── */
@keyframes rise {
  from { transform: translateY(14px); }
  to   { transform: none; }
}
[data-rise].seen { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }


/* ──────────────────────────────────────────────────────────
   PRODUCTION ADDITIONS
   New components for Live banner, Beliefs, Leadership, FAQ,
   Visit form, Newsletter, Modals, Toast, Skip link, etc.
   ────────────────────────────────────────────────────────── */

/* a11y skip link */
.skip {
  position: absolute; left: 8px; top: -100px;
  background: var(--ink); color: var(--cream-50);
  padding: 10px 14px; border-radius: 999px;
  font-family: var(--font-inscription); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; z-index: 999;
  transition: top .2s ease;
}
.skip:focus { top: 8px; outline: 2px solid var(--gold); outline-offset: 2px; }

/* universal focus */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 3px; }

/* Live banner — appears just under header during service window */
.live-banner {
  background: linear-gradient(90deg, var(--terra), #8a3f15);
  color: var(--cream-50);
  padding: 10px 22px;
  font-family: var(--font-inscription); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  display: none;
  align-items: center; justify-content: center; gap: 14px;
  position: sticky; top: 64px; z-index: 49;
  border-bottom: 1px solid rgba(252,249,241,0.18);
}
.live-banner.on { display: flex; }
.live-banner .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #ff5b5b;
  box-shadow: 0 0 0 0 rgba(255,91,91, 0.5);
  animation: pulse 1.6s infinite;
}
.live-banner a {
  background: var(--cream-50); color: var(--ink); padding: 4px 12px;
  border-radius: 999px; letter-spacing: 0.14em;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,91,91, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255,91,91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255,91,91, 0); }
}

/* Active nav (scrollspy) */
.nav-desktop a.active { background: var(--cream-200); color: var(--ink); }
.nav-desktop a.cta.active { background: var(--terra); color: var(--cream-50); }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* ──────────────── Beliefs section ──────────────── */
.beliefs {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
.belief {
  padding: 22px; border-radius: var(--r-md);
  background: var(--cream-50); border: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 10px;
}
.belief .num {
  font-family: var(--font-inscription);
  font-size: 11px; letter-spacing: 0.22em; font-weight: 600;
  color: var(--terra);
}
.belief h4 { font-size: 22px; line-height: 1.1; }
.belief p { font-size: 14.5px; color: var(--ink-700); margin-top: 2px; line-height: 1.6; }
.belief .ref {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
}
@media (min-width: 720px) {
  .beliefs { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .beliefs { grid-template-columns: repeat(3, 1fr); }
}

/* ──────────────── Leadership ──────────────── */
.leaders {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
.leader {
  background: var(--cream-50); border: 1px solid var(--hairline);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.leader:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.leader .portrait {
  height: 220px; position: relative;
}
.leader .portrait .ph { position: absolute; inset: 0; border-radius: 0; }
.leader .info { padding: 18px 20px 22px; }
.leader .role {
  font-family: var(--font-inscription); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra); font-weight: 600;
}
.leader h4 { margin-top: 6px; font-size: 22px; }
.leader p { font-size: 13.5px; color: var(--ink-500); margin-top: 8px; line-height: 1.55; }
@media (min-width: 720px) {
  .leaders { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .leaders { grid-template-columns: repeat(4, 1fr); }
}

/* ──────────────── FAQ ──────────────── */
.faq {
  display: grid; gap: 0;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 50px 22px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; line-height: 1;
  transition: transform .25s ease, background .2s;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--ink); color: var(--cream-50);
}
.faq .a {
  padding: 0 50px 22px 0;
  color: var(--ink-700);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 720px;
}

/* ──────────────── Forms (visit, prayer, contact) ──────────────── */
.form-shell {
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 28px 22px;
  display: grid; gap: 14px;
}
.form-shell.warm { background: var(--cream-200); }
.form-shell .row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-shell .row.split { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-inscription);
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-700);
  font-weight: 600;
}
.field label .req { color: var(--terra); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--cream-50);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(230,177,58,0.25);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.18);
}
.field .err {
  font-family: var(--font-mono); font-size: 11px; color: #c0392b;
  letter-spacing: 0.04em; display: none;
}
.field.invalid .err { display: block; }
.field .hint {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-500);
  letter-spacing: 0.02em;
}

.checks {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}
.checks label {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--hairline-strong);
  background: var(--cream-50);
  font-family: var(--font-body); font-size: 14px;
  letter-spacing: 0; text-transform: none;
  cursor: pointer; color: var(--ink);
  font-weight: 400;
}
.checks input { accent-color: var(--ink); width: 16px; height: 16px; }
.checks label:has(input:checked) {
  background: var(--ink); color: var(--cream-50); border-color: var(--ink);
}

.form-success {
  display: none;
  padding: 28px 22px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--gold-soft), var(--cream-200));
  border: 1px solid var(--gold-deep);
  text-align: center;
  flex-direction: column; align-items: center; gap: 12px;
}
.form-success.on { display: flex; }
.form-success .seal {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--ink); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.form-success h3 { font-family: var(--font-display); font-size: 26px; }
.form-success p { font-size: 15px; max-width: 460px; color: var(--ink-700); }
.form.is-submitted { display: none; }

/* ──────────────── Newsletter (footer) ──────────────── */
.newsletter {
  display: flex; gap: 8px;
  background: rgba(252,249,241,0.06);
  border: 1px solid rgba(252,249,241,0.18);
  border-radius: 999px;
  padding: 5px;
  max-width: 320px;
}
.newsletter input {
  flex: 1; min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream-50);
  padding: 8px 12px;
}
.newsletter input::placeholder { color: rgba(252,249,241,0.5); }
.newsletter button {
  background: var(--gold); color: var(--ink);
  border: 0; padding: 9px 16px; border-radius: 999px;
  font-family: var(--font-inscription); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.newsletter button:hover { background: var(--gold-deep); }
.newsletter.success input { display: none; }
.newsletter.success button { background: rgba(252,249,241,0.1); color: var(--cream-50); cursor: default; }

/* ──────────────── Modal (sermon, prayer, contact) ──────────────── */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(30,22,12,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 22px;
  opacity: 0; transition: opacity .25s ease;
}
.modal-mask.open { display: flex; opacity: 1; }
.modal {
  background: var(--cream-50);
  border-radius: var(--r-xl);
  width: 100%; max-width: 640px;
  max-height: 92vh;
  overflow: auto;
  position: relative;
  transform: translateY(8px) scale(.99);
  transition: transform .25s ease;
  box-shadow: 0 30px 60px rgba(30,22,12,0.35);
}
.modal-mask.open .modal { transform: none; }
.modal.wide { max-width: 880px; }
.modal-head {
  padding: 22px 22px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.modal-head .kicker { margin-top: 0; }
.modal-head h3 { font-size: clamp(24px, 4vw, 32px); margin-top: 8px; line-height: 1.15; }
.modal-body { padding: 18px 22px 26px; }
.modal .close {
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  font-size: 18px; line-height: 1;
  flex-shrink: 0;
}
.modal .close:hover { background: var(--cream-200); }

.modal .video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(252,249,241,0.7);
  font-family: var(--font-mono);
  font-size: 13px;
}
.modal .video-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(252,249,241,0.04) 0 10px, transparent 10px 20px);
}

/* ──────────────── Toast ──────────────── */
.toast-tray {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--cream-50);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-inscription);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600;
  box-shadow: 0 16px 36px rgba(30,22,12,0.35);
  display: flex; gap: 10px; align-items: center;
  animation: toastIn .25s ease both;
}
.toast .ic { color: var(--gold); }
.toast.gold { background: var(--gold); color: var(--ink); }
.toast.gold .ic { color: var(--terra); }
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ──────────────── Verse of the day ──────────────── */
.verse-strip {
  background: var(--ink);
  color: var(--cream-50);
  padding: 26px 22px;
  text-align: center;
  border-top: 1px solid rgba(252,249,241,0.10);
  border-bottom: 1px solid rgba(252,249,241,0.10);
}
.verse-strip .v {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 3.6vw, 28px);
  line-height: 1.3;
  max-width: 760px;
  margin: 0 auto;
  text-wrap: balance;
}
.verse-strip .ref {
  margin-top: 10px;
  font-family: var(--font-inscription);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ──────────────── Sermon clickable rows ──────────────── */
.sermon-list .item { cursor: pointer; transition: background .15s, padding-left .15s; }
.sermon-list .item:hover { background: rgba(252,249,241,0.04); padding-left: 8px; }
.sermon-thumb { cursor: pointer; }

/* ──────────────── Visit form section ──────────────── */
.visit-form-section { background: var(--cream-100); }
.visit-form-wrap { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .visit-form-wrap { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 36px; }
}
.visit-form-side {
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--cream-50);
}
.visit-form-side h4 { font-size: 20px; margin-bottom: 10px; }
.visit-form-side p { font-size: 14px; color: var(--ink-700); line-height: 1.55; }
.visit-form-side .what-we-give {
  margin-top: 16px; display: grid; gap: 10px;
}
.visit-form-side .what-we-give .it {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: 14px; color: var(--ink-700);
}
.visit-form-side .what-we-give .it span:first-child {
  color: var(--terra); font-family: var(--font-display); font-weight: 600;
}

/* ──────────────── Real Google Maps iframe ──────────────── */
.contact .map-iframe {
  border-radius: var(--r-lg); overflow: hidden;
  height: 260px;
  background: var(--cream-200);
  position: relative;
  border: 1px solid var(--hairline);
}
.contact .map-iframe iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: saturate(0.85) contrast(0.95);
}
@media (min-width: 720px) { .contact .map-iframe { height: 380px; } }

/* ──────────────── Inline-page text (privacy/terms/404) ──────────────── */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 22px;
}
.text-page h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 18px; }
.text-page h2 { font-size: clamp(22px, 4vw, 28px); margin: 36px 0 8px; }
.text-page p { margin-top: 12px; font-size: 16px; color: var(--ink-700); line-height: 1.6; }
.text-page ul { margin: 12px 0 0 18px; padding: 0; color: var(--ink-700); font-size: 16px; line-height: 1.7; }
.text-page .updated {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-500); text-transform: uppercase;
}
.text-page .back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-inscription); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--terra);
  margin-bottom: 24px;
}

/* ──────────────── 404 ──────────────── */
.notfound {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 22px; text-align: center; gap: 18px;
}
.notfound .code {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(80px, 22vw, 180px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.notfound h1 { font-size: clamp(32px, 6vw, 48px); }
.notfound p { max-width: 480px; font-size: 16px; color: var(--ink-700); }

/* ──────────────── Hide elements until ready (no FOUC) ──────────────── */
[data-hidden-until-ready] { visibility: hidden; }
[data-hidden-until-ready].ready { visibility: visible; }

/* ──────────────── Small fixes ──────────────── */
.fund select option { background: var(--cream-50); color: var(--ink); }
.events .event { cursor: default; }

/* print styles — clean print of any page */
@media print {
  .header, .live-banner, .drawer, .drawer-mask, .modal-mask, .toast-tray, .footer .row-social, .menu-btn, .nav-desktop a.cta { display: none !important; }
  .footer { background: white; color: black; }
  body { background: white; }
}


/* ──────────────────────────────────────────────────────────
   SECTION SEPARATION POLISH
   Ornamental dividers, stronger color alternation, sub-page
   hero + breadcrumbs
   ────────────────────────────────────────────────────────── */

/* Section ornament — a horizon line with a small sun glyph in the middle */
.section-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 12px 22px;
  max-width: 1200px; margin: 0 auto;
}
.section-ornament::before,
.section-ornament::after {
  content: ""; flex: 1; height: 1px; max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
}
.section-ornament .glyph {
  width: 30px; height: 30px; display: inline-flex;
  color: var(--gold-deep);
}
.section-ornament .glyph svg { width: 100%; height: 100%; }
.section-ornament .label {
  font-family: var(--font-inscription);
  font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; font-weight: 600;
  color: var(--ink-500);
}

/* Stronger band-based color alternation */
.band-ink {
  background: var(--ink);
  color: var(--cream-50);
}
.band-ink .kicker {
  color: var(--gold);
}
.band-ink .kicker::before {
  background: var(--gold);
}
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: var(--cream-50); }
.band-ink .lead { color: rgba(252,249,241,0.78); }
.band-ink .muted { color: rgba(252,249,241,0.55); }

/* Slightly raise vertical rhythm to make sections feel distinct */
.section { padding: 64px 22px; }
.section.pad-tight { padding: 44px 22px; }
@media (min-width: 720px) {
  .section { padding: 96px 32px; }
  .section.pad-tight { padding: 68px 32px; }
}
@media (min-width: 1000px) {
  .section { padding: 120px 40px; }
  .section.pad-tight { padding: 80px 40px; }
}

/* Sub-page hero (about, visit, ministries, sermons, events) */
.subhero {
  padding: 60px 22px 44px;
  background: var(--cream-100);
  border-bottom: 1px solid var(--hairline);
  position: relative; overflow: hidden;
}
.subhero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 320px; height: 320px; border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--gold), transparent 70%);
  opacity: 0.55; z-index: 0;
}
.subhero-inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}
.subhero .crumbs {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; color: var(--ink-500);
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.subhero .crumbs a:hover { color: var(--terra); }
.subhero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 820px;
}
.subhero h1 em { font-style: italic; color: var(--terra); font-weight: 500; }
.subhero .lead {
  margin-top: 18px; max-width: 640px;
  font-size: 17px; color: var(--ink-700);
}
@media (min-width: 720px) {
  .subhero { padding: 96px 32px 72px; }
}
@media (min-width: 1000px) {
  .subhero { padding: 132px 40px 88px; }
}

/* Update header active state for sub-page */
.nav-desktop a.cur {
  background: var(--ink); color: var(--cream-50);
}

/* Sermon archive list (sermons.html) */
.sermon-archive {
  display: grid; gap: 12px;
}
.archive-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: padding-left .15s, background .15s;
}
.archive-row:hover { padding-left: 8px; background: var(--cream-200); }
.archive-row:hover { padding-right: 8px; }
.archive-row .t { font-family: var(--font-display); font-size: clamp(20px, 3.4vw, 26px); line-height: 1.15; }
.archive-row .d { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-500); margin-top: 6px; }
.archive-row .play-mini {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--cream-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 14px;
  border: 1px solid var(--hairline-strong);
  transition: background .15s, color .15s;
}
.archive-row:hover .play-mini { background: var(--gold); color: var(--ink); border-color: var(--gold-deep); }

/* CTA box on homepage that links to a sub-page */
.cta-box {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  padding: 28px 22px;
  border-radius: var(--r-xl);
  background: var(--cream-200);
  border: 1px solid var(--hairline);
}
.cta-box .body {
  display: flex; flex-direction: column; gap: 12px;
}
.cta-box h3 { font-size: clamp(24px, 5vw, 32px); line-height: 1.15; }
.cta-box p { color: var(--ink-700); font-size: 15px; max-width: 520px; }
.cta-box .actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 760px) {
  .cta-box { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 36px; gap: 28px; }
}

/* Tighter section-header spacing on inner pages */
.page-block .sec-head h2 { font-size: clamp(26px, 5vw, 36px); }

/* Refresh the verse-strip as a stronger punctuation */
.verse-strip { padding: 56px 22px; }
@media (min-width: 720px) { .verse-strip { padding: 72px 32px; } }


/* ──────────────────────────────────────────────────────────
   FINAL POLISH
   Refines typography, hierarchy, hover states, and the
   little details that make the design feel finished.
   ────────────────────────────────────────────────────────── */

/* Subtle paper grain — sits at the bottom of body's stacking context */
body { isolation: isolate; }
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
/* (no need to manually z-index everything — isolation on body confines the grain) */

/* ─── Typography refinement ─── */
h1, h2, h3, h4 { line-height: 1.04; letter-spacing: -0.018em; }
.hero-headline { line-height: 1.06; letter-spacing: -0.022em; }
.hero-headline em {
  letter-spacing: -0.01em;
  font-weight: 500;
}
em { font-feature-settings: "liga", "calt", "swsh"; }

/* Slightly softer body color for warmer feel */
:root {
  --ink-700: #34281A;
}

/* ─── Header polish ─── */
.header { border-bottom-color: rgba(30,22,12,0.08); }
.header-inner { padding-top: 16px; padding-bottom: 16px; }
.nav-desktop a {
  position: relative;
  letter-spacing: 0.14em;
  transition: color .2s, background .2s;
}
.nav-desktop a:not(.cta)::after {
  content: ""; position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.nav-desktop a:not(.cta):hover::after { transform: scaleX(1); }
.nav-desktop a:not(.cta):hover { background: transparent; }
.nav-desktop a.cta {
  letter-spacing: 0.12em;
  padding: 10px 18px;
  background: var(--ink); color: var(--cream-50);
  white-space: nowrap;
}
.nav-desktop a.cta:hover {
  background: var(--terra);
  transform: translateY(-1px);
}

/* Brand mark refinement */
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand:hover .brand-mark { transform: rotate(-2deg); transition: transform .3s ease; }

/* ─── Hero polish ─── */
.hero { padding-top: 72px; padding-bottom: 24px; }
@media (min-width: 1000px) {
  .hero { padding-top: 80px; padding-bottom: 40px; gap: 64px; }
}
.hero-badge {
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  padding: 7px 14px;
  letter-spacing: 0.22em;
  box-shadow: 0 1px 0 rgba(30,22,12,0.04);
}
.hero-sub.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 540px;
  margin-top: 22px;
}
@media (min-width: 720px) {
  .hero-sub.lead { font-size: 19.5px; }
}
.hero-meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink-500);
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  align-items: center;
}
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta b a { color: inherit; }
.hero-meta b a:hover { color: var(--terra); }

/* Hero photo more refined: thin gold frame outside, subtle vignette */
.hero-photo {
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 2px rgba(30,22,12,0.04),
    0 24px 56px -16px rgba(30,22,12,0.22);
}
.hero-photo::before {
  content: ""; position: absolute; inset: 8px; border-radius: calc(var(--r-xl) - 8px);
  border: 1px solid rgba(252,249,241,0.4);
  pointer-events: none; z-index: 3;
}
.hero-photo .hero-sun { opacity: 0.7; filter: blur(0px); }

/* ─── Verse strip — more impactful ─── */
.verse-strip {
  position: relative;
  padding-top: 80px; padding-bottom: 80px;
  border-top: 0; border-bottom: 0;
}
.verse-strip::before {
  content: "“";
  position: absolute; left: 50%; top: 28px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 96px; line-height: 0.7;
  color: var(--gold);
  opacity: 0.55;
}
.verse-strip .v {
  font-size: clamp(22px, 3.8vw, 32px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.32;
  text-wrap: balance;
  position: relative;
}
.verse-strip .ref {
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
}
.verse-strip .ref::before {
  content: ""; display: inline-block;
  width: 18px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 12px;
}
.verse-strip .ref::after {
  content: ""; display: inline-block;
  width: 18px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-left: 12px;
}

/* ─── Section ornament refinement ─── */
.section-ornament {
  padding: 28px 22px;
}
.section-ornament::before,
.section-ornament::after { max-width: 180px; opacity: 0.7; }
.section-ornament .glyph { width: 24px; height: 12px; }
.section-ornament .label {
  font-size: 9.5px; letter-spacing: 0.36em; color: var(--ink-300);
  font-weight: 600;
}

/* ─── Kicker polish ─── */
.kicker {
  font-size: 10.5px; letter-spacing: 0.28em;
}
.kicker::before { width: 26px; }

/* ─── Service times — Sunday gets special treatment ─── */
.card { padding: 28px; box-shadow: 0 1px 0 rgba(30,22,12,0.03), 0 24px 56px -32px rgba(30,22,12,0.18); }
.time-row { padding: 18px 0; gap: 18px; }
.time-row.sunday {
  margin: -8px -8px 6px;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--gold-soft), rgba(244,222,147,0.4));
  border: 1px solid rgba(200,147,42,0.3);
  border-radius: var(--r-md);
  position: relative;
}
.time-row.sunday::before {
  content: "THIS SUNDAY";
  position: absolute; top: -10px; left: 16px;
  background: var(--ink); color: var(--gold);
  font-family: var(--font-inscription);
  font-size: 9.5px; letter-spacing: 0.28em; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.time-row.sunday + .time-row { border-top: 0; }
.time-row.sunday .day {
  background: var(--ink); border-color: var(--ink); color: var(--gold);
}
.time-row.sunday .day .d { color: var(--gold); }
.time-row.sunday .day .h { color: var(--gold); }
.time-row .title { font-weight: 500; }

/* ─── Pastor section polish ─── */
.pastor blockquote {
  font-size: clamp(24px, 4.8vw, 30px);
  line-height: 1.26;
  text-wrap: pretty;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  margin-left: 4px;
}
.pastor blockquote::before { display: none; }
.pastor .portrait {
  position: relative;
}
.pastor .portrait::before {
  content: ""; position: absolute;
  top: 14px; left: 14px; right: -14px; bottom: -14px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-lg);
  z-index: -1;
}
.pastor .sig b { font-size: 22px; }
.pastor .sig span { letter-spacing: 0.01em; }

/* ─── Visit dark band steps — refined Roman numerals ─── */
.band-ink .step .num {
  font-size: 32px;
  font-family: var(--font-inscription);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 0 24px rgba(230,177,58,0.4);
}
.band-ink .step h4 { font-size: 22px; }
.band-ink .step:hover { background: rgba(252,249,241,0.08); transform: translateY(-2px); }
.band-ink .step { transition: background .2s, transform .2s; }

/* ─── Sermon feature polish ─── */
.sermon-feature {
  border: 1px solid var(--ink);
  box-shadow: 0 24px 56px -24px rgba(30,22,12,0.4);
}
.sermon-thumb { height: 280px; }
@media (min-width: 1000px) { .sermon-thumb { height: 380px; } }
.sermon-thumb .play {
  width: 84px; height: 84px;
  background: var(--gold);
  box-shadow: 0 12px 32px rgba(30,22,12,0.5), 0 0 0 8px rgba(230,177,58,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sermon-thumb:hover .play {
  transform: translate(-50%,-50%) scale(1.06);
  box-shadow: 0 16px 36px rgba(30,22,12,0.55), 0 0 0 12px rgba(230,177,58,0.2);
}
.sermon-body { padding: 32px 28px; }
.sermon-body .meta::before {
  content: ""; display: inline-block;
  width: 16px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: 12px;
}
.sermon-body h3 { font-size: clamp(28px, 4.8vw, 36px); }
.sermon-list .item { padding: 14px 0; }

/* ─── Giving polish ─── */
.giving { padding: 36px 28px; }
.giving::after {
  content: ""; position: absolute; left: -40px; bottom: -40px;
  width: 160px; height: 160px; border-radius: 999px;
  border: 1px dashed rgba(30,22,12,0.16);
  z-index: 0;
}
.giving .amounts { gap: 10px; }
.giving .amt {
  padding: 14px 0;
  border: 1px solid rgba(30,22,12,0.16);
  font-weight: 600;
  transition: all .15s;
}
.giving .amt:hover:not(.on) { border-color: var(--ink); }
.giving .amt.on {
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(30,22,12,0.25);
  transform: translateY(-1px);
}
.giving .fund select {
  padding: 14px 38px 14px 14px;
}

/* ─── Prayer polish ─── */
.prayer { padding: 40px 28px; }
.prayer h2 { line-height: 1.1; max-width: 540px; }
.prayer .scripture {
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  margin-left: 4px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.4;
}

/* ─── Min-grid icons — unified circle treatment ─── */
.min { padding: 22px; min-height: 150px; transition: background .2s, transform .15s, box-shadow .2s; }
.min:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.min .ico {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--cream-100);
  border: 1px solid var(--hairline-strong);
  color: var(--terra);
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
}
.min:hover .ico { background: var(--gold); border-color: var(--gold-deep); color: var(--ink); }
.min.feature .ico {
  background: var(--gold); border-color: var(--gold-deep); color: var(--ink);
}
.min h4 { font-size: 19px; }
.min .meta {
  font-family: var(--font-inscription);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ─── Event card polish ─── */
.event { padding: 20px; transition: all .15s; }
.event .date { padding: 12px 8px; }
.event .date .d { font-size: 36px; }
.event h4 { font-size: 22px; line-height: 1.12; }
.event:hover .date { background: var(--gold-soft); border-radius: var(--r-sm); }

/* ─── Footer polish ─── */
.footer { padding-top: 72px; padding-bottom: 32px; }
.footer-inner { gap: 40px; }
.footer h5 {
  font-size: 10.5px; letter-spacing: 0.28em;
  color: rgba(252,249,241,0.5);
}
.footer .row-social a {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all .15s;
}
.footer .row-social a:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.footer .legal { font-size: 11.5px; letter-spacing: 0.04em; }
.footer .legal a { transition: color .15s; }
.footer .legal a:hover { color: var(--gold); }

/* ─── Subhero polish ─── */
.subhero h1 em { font-weight: 500; }
.subhero .lead { font-size: 18px; line-height: 1.55; }
.subhero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 30%, var(--hairline-strong) 70%, transparent);
}

/* ─── Modals polish ─── */
.modal { border: 1px solid var(--hairline); }
.modal-head { padding: 26px 28px 0; }
.modal-body { padding: 22px 28px 30px; }
.modal-head h3 { line-height: 1.15; }

/* ─── Inputs polish ─── */
.field input,
.field select,
.field textarea {
  font-size: 15px;
  background: var(--cream-50);
}
.field input:hover, .field select:hover, .field textarea:hover {
  border-color: var(--ink-500);
}

/* ─── Live banner sticky behind header ─── */
.live-banner {
  top: 65px;
  padding: 11px 22px;
  border-bottom: 1px solid rgba(252,249,241,0.18);
  border-top: 1px solid rgba(252,249,241,0.18);
}

/* ─── Sub-page header active state — keep visible ─── */
.nav-desktop a.cur:not(.cta) {
  color: var(--ink);
  background: transparent;
}
.nav-desktop a.cur:not(.cta)::after {
  transform: scaleX(1);
  background: var(--ink);
}

/* ─── Smooth page-load fade (very subtle, no opacity at-rest) ─── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lift {
    from { transform: translateY(6px); }
    to { transform: none; }
  }
  .hero-text > * { animation: lift .6s ease both; }
  .hero-photo { animation: lift .7s ease .1s both; }
}

/* ─── Better link underline on body text ─── */
.text-page a, .contact-info a, .hero-meta a, .pastor a:not(.btn), main p a:not(.btn) {
  color: var(--terra);
  background-image: linear-gradient(transparent calc(100% - 1px), currentColor calc(100% - 1px));
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color .2s;
}
.text-page a:hover, .contact-info a:hover, .hero-meta a:hover, main p a:hover {
  color: var(--gold-deep);
}

/* ─── Address-row tweak ─── */
.address-row { margin-top: 22px; padding-top: 22px; }
.address-row .ad b { font-size: 19px; }

/* ─── CTA box polish ─── */
.cta-box {
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--cream-200), var(--cream-100));
  box-shadow: 0 1px 2px rgba(30,22,12,0.04), 0 24px 48px -28px rgba(30,22,12,0.15);
}
.cta-box h3 { line-height: 1.12; }

/* ─── Drawer polish ─── */
.drawer { padding: 26px; }
.drawer nav a {
  font-size: 26px;
  line-height: 1.12;
  padding: 12px 0;
  letter-spacing: -0.005em;
  transition: padding-left .15s ease, color .15s;
}
.drawer nav a:hover { padding-left: 6px; color: var(--terra); }
.drawer nav a .num { color: var(--ink-300); }

/* ─── Buttons — gentle elevation ─── */
.btn { box-shadow: 0 1px 2px rgba(30,22,12,0.04); }
.btn-primary:hover, .btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30,22,12,0.18);
}
.btn-outline:hover { transform: translateY(-1px); }

/* ─── Section ornament label spacing ─── */
.section-ornament .label { font-size: 10px; letter-spacing: 0.38em; }

/* ─── Small fix: hero-meta phone wrap ─── */
.hero-meta span:has(b) { white-space: nowrap; }

/* ─── Sermon archive row polish ─── */
.archive-row { padding: 24px 4px; }
.archive-row .t { font-weight: 500; }

/* ─── FAQ summary hover ─── */
.faq summary { transition: color .15s; }
.faq summary:hover { color: var(--terra); }
.faq details[open] summary { color: var(--ink); }

/* ─── Hide grain texture on dark bands so it doesn't muddy them ─── */
.band-ink, .prayer, .verse-strip, .sermon-feature, .footer {
  isolation: isolate;
}
.band-ink::before, .prayer::before, .verse-strip::before {
  /* preserve existing pseudo-elements that aren't decorations */
}

/* ─── Tighter step list ─── */
.steps { gap: 14px; }
.step { padding: 24px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ─── Slightly more breathing room in the giving block on desktop ─── */
@media (min-width: 720px) {
  .giving { padding: 48px 40px; }
  .prayer { padding: 52px 40px; }
  .merch { padding: 36px; }
}


/* ─── Cookie notice ─── */
#cookie-notice {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 540px; margin: 0 auto;
  background: var(--ink); color: var(--cream-50);
  border-radius: 999px;
  padding: 10px 14px 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; z-index: 150;
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 16px 36px rgba(30,22,12,0.25);
  transform: translateY(20px); opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
}
#cookie-notice.in { opacity: 1; transform: none; }
#cookie-notice.out { opacity: 0; transform: translateY(20px); }
#cookie-notice a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
#cookie-notice button {
  background: var(--gold); color: var(--ink); border: 0;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--font-inscription); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600;
  flex-shrink: 0;
}
#cookie-notice button:hover { background: var(--gold-deep); }
@media (max-width: 520px) {
  #cookie-notice { border-radius: var(--r-md); padding: 14px 16px; flex-wrap: wrap; }
  #cookie-notice button { width: 100%; }
}


/* ──────────────────────────────────────────────────────────
   NEW COMPONENTS: calendar buttons, sermon filter, gallery,
   lightbox, news, back-to-top, get-involved
   ────────────────────────────────────────────────────────── */

/* ─── Event add-to-calendar buttons ─── */
.event { position: relative; }
.event .cal {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px;
}
.event .cal a, .event .cal button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--cream-50);
  font-family: var(--font-inscription);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
}
.event .cal a:hover, .event .cal button:hover {
  background: var(--ink); color: var(--cream-50); border-color: var(--ink);
}

/* ─── Sermon search & filter ─── */
.sermon-tools {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 22px;
}
.sermon-search {
  flex: 1; min-width: 200px;
  display: flex; align-items: center; gap: 8px;
  background: var(--cream-50);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 6px 14px;
}
.sermon-search input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  padding: 8px 0;
  font-family: var(--font-body); font-size: 14px;
  color: var(--ink);
}
.sermon-search .icon { color: var(--ink-500); font-size: 14px; }

.filter-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.filter-pill {
  padding: 8px 14px; border-radius: 999px;
  background: var(--cream-50);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-inscription);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.on { background: var(--ink); color: var(--cream-50); border-color: var(--ink); }

.archive-row.hide { display: none; }
.no-results {
  padding: 40px 22px;
  text-align: center;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  display: none;
}
.no-results.on { display: block; }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid .item {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform .15s, box-shadow .2s;
}
.gallery-grid .item:nth-child(7n+1) { aspect-ratio: 1 / 1; }
.gallery-grid .item:nth-child(5n+3) { aspect-ratio: 4 / 5; }
.gallery-grid .item:nth-child(11n+7) { aspect-ratio: 4 / 3; }
.gallery-grid .item .ph {
  position: absolute; inset: 0; border-radius: 0;
}
.gallery-grid .item:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.gallery-grid .item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30,22,12,0.4));
  opacity: 0; transition: opacity .2s;
}
.gallery-grid .item:hover::after { opacity: 1; }
.gallery-grid .item .cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--font-inscription);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--cream-50);
  text-transform: uppercase;
  opacity: 0; transition: opacity .2s;
  z-index: 2;
}
.gallery-grid .item:hover .cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(30,22,12,0.92);
  display: none;
  z-index: 110;
  align-items: center; justify-content: center;
  padding: 22px;
}
.lightbox.open { display: flex; }
.lightbox .lb-content {
  max-width: 90vw; max-height: 86vh;
  position: relative;
}
.lightbox .lb-content > .ph {
  width: 80vw; height: 80vh; max-width: 1100px;
  border-radius: var(--r-lg);
}
.lightbox .lb-cap {
  position: absolute; bottom: -36px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-inscription);
  font-size: 11px; letter-spacing: 0.18em;
  color: rgba(252,249,241,0.7);
  text-transform: uppercase;
}
.lightbox .lb-close {
  position: absolute; top: -42px; right: 0;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(252,249,241,0.3);
  background: transparent;
  color: var(--cream-50);
  font-size: 18px;
}
.lightbox .lb-close:hover { background: rgba(252,249,241,0.1); }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 999px;
  background: rgba(252,249,241,0.1);
  border: 1px solid rgba(252,249,241,0.2);
  color: var(--cream-50);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-nav.prev { left: -64px; }
.lightbox .lb-nav.next { right: -64px; }
.lightbox .lb-nav:hover { background: rgba(252,249,241,0.2); }
@media (max-width: 800px) {
  .lightbox .lb-nav.prev { left: 8px; }
  .lightbox .lb-nav.next { right: 8px; }
  .lightbox .lb-close { top: 8px; right: 8px; }
}

/* ─── News / posts ─── */
.posts {
  display: grid; gap: 24px;
  grid-template-columns: 1fr;
}
.post {
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transition: transform .15s, box-shadow .2s;
}
.post:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post .thumb { aspect-ratio: 16 / 9; position: relative; }
.post .thumb .ph { position: absolute; inset: 0; border-radius: 0; }
.post .body { padding: 22px 24px 26px; }
.post .meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-500);
}
.post h3 { font-size: clamp(22px, 4vw, 28px); margin-top: 8px; }
.post p { font-size: 14.5px; color: var(--ink-700); line-height: 1.55; margin-top: 10px; }
.post .read {
  display: inline-flex; gap: 6px; margin-top: 14px;
  font-family: var(--font-inscription);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra);
}
.post .read:hover { color: var(--gold-deep); }
@media (min-width: 720px) {
  .post { grid-template-columns: 1.2fr 1fr; }
  .post.flip { grid-template-columns: 1fr 1.2fr; direction: rtl; }
  .post.flip > * { direction: ltr; }
}

/* ─── Back to top ─── */
#back-top {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 12px 24px rgba(30,22,12,0.3);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s, transform .2s, background .2s;
}
#back-top.show { opacity: 1; pointer-events: auto; transform: none; }
#back-top:hover { background: var(--terra); }
@media (max-width: 520px) { #back-top { bottom: 80px; } }

/* ─── Get involved roles selector ─── */
.role-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .role-grid { grid-template-columns: repeat(3, 1fr); }
}
.role-grid label {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--cream-50);
  cursor: pointer;
  transition: all .15s;
}
.role-grid label:has(input:checked) {
  background: var(--ink); color: var(--cream-50); border-color: var(--ink);
}
.role-grid label:has(input:checked) .role-sub { color: rgba(252,249,241,0.65); }
.role-grid input { position: absolute; opacity: 0; pointer-events: none; }
.role-grid .role-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  line-height: 1.15;
}
.role-grid .role-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.45;
}

/* Form path-chooser (volunteer / membership / baptism) */
.form-path {
  display: flex; gap: 8px; margin-bottom: 22px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.form-path button {
  background: transparent; border: 0;
  padding: 12px 4px;
  margin: 0 6px 0 0;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500;
  color: var(--ink-500);
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.form-path button:hover { color: var(--ink); }
.form-path button.on {
  color: var(--ink);
}
.form-path button.on::after {
  content: ""; position: absolute;
  left: 4px; right: 4px; bottom: -1px;
  height: 2px; background: var(--terra);
}
.form-section { display: none; }
.form-section.on { display: grid; gap: 14px; }

/* ─── Page label tags (sermon series chips inline) ─── */
.tag {
  display: inline-block;
  font-family: var(--font-inscription);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cream-200);
  color: var(--ink-700);
  margin-right: 4px;
}
.archive-row .tag { margin-left: 12px; vertical-align: middle; }


/* ─── Archive row with YouTube thumbnail ─── */
.archive-row.has-thumb {
  grid-template-columns: 140px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 4px;
}
.archive-row.has-thumb .row-thumb {
  display: block;
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.archive-row.has-thumb .row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.archive-row.has-thumb:hover .row-thumb img { transform: scale(1.05); }
.archive-row.has-thumb .row-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30,22,12,0.5));
}
.archive-row.has-thumb .row-play {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(30,22,12,0.4);
  opacity: 0; transition: opacity .2s;
  z-index: 1;
}
.archive-row.has-thumb:hover .row-play { opacity: 1; }
.archive-row.has-thumb .row-body { min-width: 0; }
.archive-row.has-thumb .t {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  /* Allow up to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.archive-row.has-thumb .d {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}
.archive-row.has-thumb .play-mini { flex-shrink: 0; }
.archive-row.has-thumb:hover { background: var(--cream-200); padding-left: 8px; padding-right: 8px; }
@media (max-width: 600px) {
  .archive-row.has-thumb { grid-template-columns: 100px 1fr; gap: 12px; }
  .archive-row.has-thumb .row-thumb { width: 100px; }
  .archive-row.has-thumb .play-mini { display: none; }
}

/* When a video thumbnail loads in the homepage feature, hide the placeholder label and stripes */
.sermon-thumb img { display: block; }
.sermon-thumb .ph .ph-label { display: none; }


/* Fix: sermon-thumb became an <a> so it needs explicit block display */
.sermon-thumb { display: block; text-decoration: none; }
.sermon-thumb .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-row { display: grid; text-decoration: none; }


/* Make verse-of-day strip much thinner */
.verse-strip { padding: 24px 22px !important; }
.verse-strip::before { display: none !important; }
.verse-strip .v {
  font-size: clamp(15px, 2vw, 18px) !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}
.verse-strip .ref { margin-top: 8px !important; font-size: 9.5px !important; letter-spacing: 0.28em !important; }
@media (min-width: 720px) { .verse-strip { padding: 28px 32px !important; } }


/* Verse strip: thin pill with larger inside text */
.verse-strip {
  padding: 18px 28px !important;
  max-width: 920px;
  margin: 28px auto;
  border-radius: 999px;
  border: 1px solid rgba(252,249,241,0.18);
}
.verse-strip .v {
  font-size: clamp(18px, 2.4vw, 22px) !important;
  line-height: 1.3 !important;
}
.verse-strip .ref {
  margin-top: 6px !important;
  font-size: 10px !important;
}
@media (max-width: 720px) {
  .verse-strip { margin: 20px 16px; border-radius: 22px; padding: 18px 22px !important; }
}


/* ─── Real merch product cards ─── */
.merch-products { gap: 14px; }
.prod-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  transition: transform .15s ease, box-shadow .2s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.prod-img {
  aspect-ratio: 4 / 5;
  background: var(--cream-200);
  overflow: hidden;
}
.prod-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.prod-card:hover .prod-img img { transform: scale(1.04); }
.prod-info {
  padding: 12px 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.prod-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.prod-price {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}

/* Inside dark merch band */
.band-ink .prod-card { background: rgba(252,249,241,0.04); border-color: rgba(252,249,241,0.18); }
.band-ink .prod-name { color: var(--cream-50); }
.band-ink .prod-price { color: rgba(252,249,241,0.55); }
