/* Hungarian Christian Church — Editorial, warm, modern */

/* ── Tokens (palettes are overridden by data-palette attribute) ──────── */
:root {
  /* Default: Warm parchment & wine (parchment) */
  --bg: #f3ecdc;
  --bg-2: #ebe1cb;
  --paper: #fbf6ea;
  --ink: #1f140e;
  --ink-2: #3a2a20;
  --muted: #7a6856;
  --line: rgba(31, 20, 14, 0.12);
  --line-2: rgba(31, 20, 14, 0.06);
  --accent: #8a2a18;
  --accent-2: #c2410c;
  --accent-soft: rgba(138, 42, 24, 0.08);
  --shadow-sm: 0 1px 2px rgba(31,20,14,0.06), 0 1px 0 rgba(255,255,255,0.4) inset;
  --shadow-md: 0 6px 24px -8px rgba(31,20,14,0.18), 0 2px 6px rgba(31,20,14,0.06);
  --shadow-lg: 0 24px 60px -20px rgba(31,20,14,0.28), 0 8px 20px -8px rgba(31,20,14,0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --pad-y: 120px;
  --serif: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-palette="stone"] {
  --bg: #f0eee8;
  --bg-2: #e6e3da;
  --paper: #f7f5ef;
  --ink: #16202a;
  --ink-2: #2c3a48;
  --muted: #6a7484;
  --line: rgba(22, 32, 42, 0.12);
  --line-2: rgba(22, 32, 42, 0.06);
  --accent: #1e6091;
  --accent-2: #2a7ab8;
  --accent-soft: rgba(30, 96, 145, 0.08);
}
[data-palette="sage"] {
  --bg: #f5f2e8;
  --bg-2: #ebe7d8;
  --paper: #fbf9f0;
  --ink: #1a2418;
  --ink-2: #2e3a2a;
  --muted: #6f7868;
  --line: rgba(26, 36, 24, 0.12);
  --line-2: rgba(26, 36, 24, 0.06);
  --accent: #b8521e;
  --accent-2: #d97735;
  --accent-soft: rgba(184, 82, 30, 0.08);
}
[data-palette="dusk"] {
  --bg: #181210;
  --bg-2: #221915;
  --paper: #241a14;
  --ink: #f3e8d8;
  --ink-2: #d4c2a6;
  --muted: #968774;
  --line: rgba(243, 232, 216, 0.12);
  --line-2: rgba(243, 232, 216, 0.06);
  --accent: #d4925c;
  --accent-2: #f0b378;
  --accent-soft: rgba(212, 146, 92, 0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.3);
}

[data-density="cozy"] { --pad-y: 80px; }
[data-density="comfy"] { --pad-y: 120px; }
[data-density="airy"]  { --pad-y: 168px; }

/* ── Base ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--pad-y) 0; position: relative; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 18px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ── Kicker eyebrow ──────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker-mark {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ── Reveal animation ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.6,.2,1); }
.reveal-in { opacity: 1; transform: none; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-welcome { font-family: var(--serif); font-style: italic; color: oklch(0.85 0.04 60); }
.topbar-dot { opacity: 0.4; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; opacity: 0.85; }
.topbar-link:hover { opacity: 1; color: var(--accent-2); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  position: relative;
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}
.lang-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.lang-btn.on { opacity: 1; color: var(--ink); }
.lang-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--paper);
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.2,.6,.2,1);
  z-index: 1;
}
.lang-thumb.right { transform: translateX(100%); }

/* ── Header ──────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 236, 220, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
}
[data-palette="stone"] .header { background: rgba(240, 238, 232, 0.85); }
[data-palette="sage"] .header { background: rgba(245, 242, 232, 0.85); }
[data-palette="dusk"] .header { background: rgba(24, 18, 16, 0.78); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--accent-soft); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 18px; font-size: 14px; }

.mobile-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.mobile-menu { display: none; padding: 8px 32px 20px; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-2); }
.mobile-link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.mobile-cta { color: var(--accent); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 880px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg > .photo-ph { position: absolute; inset: 0; height: 100%; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,20,14,0.55) 0%, rgba(31,20,14,0.3) 35%, rgba(31,20,14,0.7) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(31,20,14,0.2) 50%, transparent 100%);
}
[data-palette="dusk"] .hero-bg-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.8) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.hero-bg-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 0.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: end;
  position: relative;
  z-index: 1;
  color: var(--paper);
  width: 100%;
}
.hero-left { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.88 0.06 60);
}
.hero-eyebrow-mark {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(194,65,12,0.18);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
  color: var(--paper);
}
.hero-title-1 { display: block; }
.hero-title-2 { display: block; font-style: italic; color: oklch(0.92 0.06 60); }
.hero-lead {
  max-width: 540px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  margin: 32px 0 0;
  color: oklch(0.94 0.02 60);
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-ctas .btn-ghost { color: var(--paper); border-color: rgba(255,255,255,0.3); }
.hero-ctas .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--paper); }
.hero-verse {
  margin-top: 56px;
  padding-left: 18px;
  border-left: 2px solid var(--accent-2);
  max-width: 520px;
  display: block;
}
.hero-verse-mark {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--accent-2);
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}
.hero-verse-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: oklch(0.95 0.03 60);
  line-height: 1.5;
}
.hero-verse-ref {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: oklch(0.85 0.04 60);
}

.next-service-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.ns-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.ns-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent-2); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-2); } 50% { box-shadow: 0 0 0 6px transparent; } }
.ns-when { margin-top: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.ns-day { font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.ns-time { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--accent); margin-top: 6px; }
.ns-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.ns-actions { margin-top: 20px; }
.ns-action {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.ns-action:hover { gap: 12px; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  display: flex;
  justify-content: center;
}
.hero-scroll-cue span {
  width: 3px; height: 8px; background: var(--paper);
  border-radius: 999px;
  margin-top: 6px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(10px); opacity: 1; } }

/* ── About ───────────────────────────────────────────────────────────── */
.about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-portrait-col { position: sticky; top: 100px; }
.about-portrait-caption {
  margin-top: 20px;
  display: flex; flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.about-portrait-name { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.about-portrait-role { font-size: 13px; color: var(--muted); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

.about-body { padding-top: 16px; }
.about-governance {
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Services ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-card {
  padding: 36px 28px 32px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.service-card:last-child { border-right: 0; padding-right: 0; }
.service-card:not(:first-child) { padding-left: 32px; }
.service-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 24px;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.service-when {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  margin-top: 8px;
}
.service-desc { margin-top: 16px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* ── Events ──────────────────────────────────────────────────────────── */
.events { background: var(--bg-2); }
.events-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.events-lead { margin-top: 14px; }
.events-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
}

.calendar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  height: fit-content;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-nav {
  background: transparent; border: 1px solid var(--line);
  width: 32px; height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cal-nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal-title { display: flex; flex-direction: column; align-items: center; }
.cal-month { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.cal-year { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.cal-week-d {
  text-align: center; font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--muted); padding: 6px 0;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  background: transparent; border: 0;
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 13px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.cal-day:disabled { cursor: default; color: transparent; }
.cal-day.empty { background: transparent; }
.cal-day:not(:disabled):hover { background: var(--accent-soft); color: var(--accent); }
.cal-day.has-ev { color: var(--ink); font-weight: 600; }
.cal-day.has-ev::after {
  content: ""; position: absolute; inset: 4px;
  border: 1.2px solid var(--accent);
  border-radius: 8px;
  opacity: 0.35;
}
.cal-day.has-ev .cal-day-dot {
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.cal-day.selected { background: var(--ink); color: var(--paper); }
.cal-day.selected::after { border-color: var(--paper); opacity: 0.4; }
.cal-day.selected .cal-day-dot { background: var(--paper); }
.cal-legend {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em;
}
.cal-legend-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.events-list { display: flex; flex-direction: column; gap: 16px; }
.event-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.event-card.featured {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--paper);
  border-color: var(--accent);
}
.event-date {
  border-right: 1px solid var(--line);
  padding-right: 24px;
  text-align: right;
}
.event-day-n {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.event-month {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.event-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.event-card.featured .event-tag { border-color: var(--accent); color: var(--accent); }
.event-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 12px 0 0;
  color: var(--ink);
}
.event-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.event-meta-dot { opacity: 0.5; }
.event-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.event-actions { margin-top: 16px; display: flex; gap: 20px; }
.event-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.event-link:hover { gap: 10px; }
.event-link.subtle { color: var(--muted); }
.event-link.subtle:hover { color: var(--ink); }

.link-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s;
}
.link-inline:hover { gap: 10px; }
.link-inline.subtle { color: var(--muted); }
.link-inline.subtle:hover { color: var(--ink); }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-cell { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-cell.h-2 { grid-row: span 2; }
.gallery-btn {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-btn .photo-ph { width: 100%; height: 100%; transition: transform 0.5s ease; }
.gallery-btn:hover .photo-ph { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-btn:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-label {
  font-family: var(--serif);
  color: white;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.photo-ph { position: relative; background: var(--bg-2); }
.photo-ph-label {
  position: absolute; bottom: 8px; left: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.4);
  padding: 3px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-btn:hover .photo-ph-label { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 10, 6, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 80px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 44px; height: 44px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.15); }
.lightbox-img {
  max-width: 900px; width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.lightbox-img .photo-ph { aspect-ratio: 4 / 3; }
.lightbox-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.lightbox-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; opacity: 0.7; }

/* ── Social ──────────────────────────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feed {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.feed-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.feed-brand { display: flex; align-items: center; gap: 14px; }
.feed-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.feed-icon.fb { background: #1877F2; }
.feed-icon.x { background: #0f0f0f; }
.feed-name { font-family: var(--serif); font-size: 17px; }
.feed-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feed-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.feed-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feed-body { display: flex; flex-direction: column; }

.post { padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.post:last-child { border-bottom: 0; }
.post-meta { display: flex; align-items: center; gap: 12px; }
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, oklch(0.72 0.06 28), oklch(0.42 0.08 28));
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.post-avatar.dark { background: linear-gradient(135deg, oklch(0.25 0.04 28), oklch(0.12 0.02 28)); }
.post-author { font-size: 14px; font-weight: 600; color: var(--ink); }
.post-handle { font-weight: 400; color: var(--muted); margin-left: 4px; }
.post-when { font-size: 12px; color: var(--muted); margin-top: 1px; }
.post-text { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; }
.post-x .post-text { font-size: 15px; }
.post-photo {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.post-stats {
  display: flex; gap: 22px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--muted);
}
.post-stats span { display: inline-flex; align-items: center; gap: 6px; }

/* ── Donate ──────────────────────────────────────────────────────────── */
.donate { background: var(--bg-2); }
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.donate-note {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.donate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.donate-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.donate-paypal-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 22px;
  color: #003087;
}
[data-palette="dusk"] .donate-paypal-badge { color: var(--accent); }
.donate-secure {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.donate-row { margin-bottom: 20px; }
.donate-label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.freq-toggle {
  position: relative;
  display: inline-flex;
  width: 100%;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
}
.freq-btn {
  flex: 1;
  position: relative; z-index: 2;
  background: transparent; border: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.2s;
}
.freq-btn.on { color: var(--paper); }
.freq-thumb {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(.2,.6,.2,1);
  z-index: 1;
}
.freq-thumb.right { transform: translateX(100%); }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.amount-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.amount-btn:hover { border-color: var(--ink); }
.amount-btn.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.custom-amount {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: var(--paper);
  transition: border-color 0.15s;
}
.custom-amount:focus-within { border-color: var(--ink); }
.ca-sign { font-family: var(--serif); font-size: 20px; color: var(--muted); }
.custom-amount input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 14px 12px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.donate-btn {
  width: 100%;
  margin-top: 12px;
  padding: 18px 24px;
  font-size: 15px;
  justify-content: center;
}
.donate-btn > span { flex: 1; text-align: center; }

/* ── RSS / Sermons ───────────────────────────────────────────────────── */
.rss-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: start;
}
.subscribe { margin-top: 32px; }
.subscribe-form {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.subscribe-form input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
}
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form .btn { padding: 12px 20px; }

.subscribe-extra { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.subscribe-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.subscribe-chip:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.sermons-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sermons-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.sermons-title { font-family: var(--serif); font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.sermons-list { display: flex; flex-direction: column; }
.sermon-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
  transition: padding 0.2s;
}
.sermon-row:last-child { border-bottom: 0; }
.sermon-row:hover { padding-left: 8px; }
.sermon-play {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  padding-left: 3px;
  transition: background 0.15s, color 0.15s;
}
.sermon-row:hover .sermon-play { background: var(--accent); color: var(--paper); }
.sermon-title { font-family: var(--serif); font-size: 17px; line-height: 1.2; color: var(--ink); }
.sermon-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.sermon-meta .dot { opacity: 0.5; }
.sermon-length {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-label { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-value {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-actions { margin-top: 8px; display: flex; gap: 20px; align-items: center; }

.contact-map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.map-stub { position: relative; width: 100%; height: 100%; }
.map-pin-tag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -180%);
  background: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: oklch(0.85 0.04 60);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand-dark { color: var(--paper); }
.brand-dark .brand-sub { color: oklch(0.7 0.04 60); }
.brand-dark .brand-mark { color: var(--accent-2); }
.footer-tagline {
  margin: 20px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 42ch;
  color: oklch(0.8 0.04 60);
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.7 0.04 60);
  margin-bottom: 8px;
}
.footer-col a { font-size: 14.5px; color: oklch(0.85 0.04 60); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-address { font-size: 14px; line-height: 1.6; color: oklch(0.8 0.04 60); margin-top: 8px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper);
  transition: background 0.15s;
}
.footer-socials a:hover { background: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12.5px;
  color: oklch(0.65 0.03 60);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  :root { --pad-y: 80px; }
  .nav, .header-cta .btn { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-menu { display: flex; }
  .topbar-left { font-size: 11px; }
  .topbar-left .topbar-link:nth-child(n+4) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait-col { position: static; }
  .about-portrait { max-width: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .service-card:not(:first-child) { padding-left: 0; }
  .service-card:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--line); }
  .events-grid { grid-template-columns: 1fr; }
  .calendar-card { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr; }
  .donate-grid { grid-template-columns: 1fr; gap: 40px; }
  .rss-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { min-height: 600px; padding: 60px 0; }
  .hero-title { font-size: clamp(48px, 14vw, 72px); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-cell.h-2 { grid-row: span 1; }
  .event-card { grid-template-columns: 1fr; gap: 16px; }
  .event-date { display: flex; gap: 14px; align-items: baseline; border-right: 0; padding-right: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); text-align: left; }
  .event-day-n { font-size: 36px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding-right: 0 !important; padding-left: 0 !important; border-right: 0 !important; }
  .header-inner { height: 64px; }
  .brand-sub { display: none; }
}
