/* styles.css — Mercy Seat Ministries
   Palette: deep covenant navy + gold (the mercy seat) on warm ivory.
   Type: Cormorant Garamond (display) over Inter (text). */

:root {
  --navy-900: #081627;
  --navy-800: #0b1f3a;
  --navy-700: #122a4d;
  --navy-600: #1b3a66;
  --gold-600: #b88a2f;
  --gold-500: #c9a14a;
  --gold-400: #d8bd76;
  --ivory: #faf7f0;
  --cream: #f3eee2;
  --paper: #ffffff;
  --ink: #1c2531;
  --ink-soft: #4a5568;
  --line: rgba(11, 31, 58, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 20px 50px -24px rgba(8, 22, 39, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(8, 22, 39, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy-800);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--gold-600);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--navy-700);
}

img,
svg,
iframe {
  max-width: 100%;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.18em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-900);
  border: 1.5px solid var(--gold-500);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--gold-400);
  color: var(--navy-900);
  box-shadow: 0 16px 34px -16px rgba(184, 138, 47, 0.7);
}
.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 1.05rem 2.1rem;
  font-size: 1.05rem;
}
.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
}
.btn-light:hover {
  background: var(--cream);
  color: var(--navy-800);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  box-shadow: none;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.btn .icon {
  width: 1em;
  height: 1em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--navy-700);
}
.link-arrow:hover {
  color: var(--gold-600);
}
.link-arrow .icon {
  transition: transform 0.2s;
}
.link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(250, 247, 240, 0.96);
}

/* The header gets a little extra width so the full flat nav fits on desktop. */
.site-header .container {
  max-width: 1320px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
  flex: none;
}
.brand-mark .icon {
  width: 22px;
  height: 22px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--navy-800);
}
.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 0.15rem;
}
.site-nav a {
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.site-nav a:hover {
  background: rgba(11, 31, 58, 0.06);
  color: var(--navy-800);
}
.site-nav a.active {
  color: var(--navy-800);
}
.site-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  width: 18px;
  margin: 2px auto 0;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Dropdown nav group (e.g. Resources). */
.nav-group {
  position: relative;
}
.nav-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-group-toggle .icon {
  width: 0.9em;
  height: 0.9em;
  transition: transform 0.2s;
}
.nav-group:hover .nav-group-toggle,
.nav-group:focus-within .nav-group-toggle {
  background: rgba(11, 31, 58, 0.06);
  color: var(--navy-800);
}
.nav-group:hover .nav-group-toggle .icon,
.nav-group:focus-within .nav-group-toggle .icon {
  transform: rotate(180deg);
}
.nav-group-toggle.active {
  color: var(--navy-800);
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 120;
}
/* Invisible bridge so the menu doesn't close in the gap. */
.nav-submenu::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}
.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-submenu a {
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-submenu a:hover {
  background: var(--cream);
  color: var(--navy-800);
}
.nav-submenu a.active {
  color: var(--gold-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  border-top: 1px solid var(--line);
  background: var(--ivory);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  padding: 1.05rem 0.6rem;
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:active,
.mobile-nav a:hover {
  color: var(--gold-600);
}
.mobile-nav a.active {
  color: var(--gold-600);
}
.mobile-nav a.btn {
  margin-top: 1rem;
  padding: 1.05rem 1.25rem;
  font-size: 1.1rem;
  border-bottom: 0;
  justify-content: center;
  color: var(--navy-900);
}
/* In the mobile menu the dropdown is shown inline (no hover needed). */
.mobile-nav .nav-group-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.8rem 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: default;
}
.mobile-nav .nav-group-toggle .icon {
  display: none;
}
.mobile-nav .nav-submenu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  background: none;
  border: 0;
  box-shadow: none;
  min-width: 0;
}
.mobile-nav .nav-submenu::before {
  display: none;
}
.mobile-nav .nav-submenu a {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(86vh, 760px);
  color: #fff;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(201, 161, 74, 0.28), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 60%, #050f1c 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(216, 189, 118, 0.16), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(27, 58, 102, 0.6), transparent 45%);
  opacity: 0.9;
}
.hero-content {
  position: relative;
  max-width: 760px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Promotional announcement pill at the top of the hero. */
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  margin-bottom: 1.75rem;
  padding: 0.4rem 0.95rem 0.4rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 189, 118, 0.45);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.hero-promo:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-1px);
}
.hero-promo-tag {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.hero-promo-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-promo-label .icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  color: var(--gold-400);
}
.hero-promo-arrow {
  display: inline-flex;
  flex: none;
}
.hero-promo-arrow .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.hero-promo:hover .hero-promo-arrow .icon {
  transform: translateX(4px);
}

.hero .eyebrow {
  color: var(--gold-400);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
}
.eyebrow-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow-rule::before {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), rgba(216, 189, 118, 0));
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-title em {
  color: var(--gold-400);
  font-style: italic;
}
.hero-lead {
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  line-height: 1.6;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* A row of trust/info facts beneath the hero CTAs. */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.25rem;
  margin: 2.75rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.hero-facts .icon {
  width: 1.25em;
  height: 1.25em;
  color: var(--gold-400);
  flex: none;
}

/* ── Scripture banner ────────────────────────────────────── */
.scripture {
  background: var(--navy-800);
  color: #fff;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.scripture-text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto 0.75rem;
  color: #fff;
}
.scripture-ref {
  color: var(--gold-400);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
}

/* ── Sections ────────────────────────────────────────────── */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-tint {
  background: var(--cream);
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}
.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

.mission-quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--navy-700);
  border-left: 3px solid var(--gold-500);
  padding-left: 1.1rem;
  margin: 1.5rem 0;
}

/* ── Verse cards ─────────────────────────────────────────── */
.verse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.verse-card {
  position: relative;
  margin: 0;
  padding: 2.5rem 1.75rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.verse-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.verse-card::before {
  content: "\201C";
  position: absolute;
  top: 0.45rem;
  left: 1.1rem;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold-400);
}
.verse-text {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--navy-800);
  margin: 0 0 1.1rem;
}
.verse-ref {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.welcome-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.welcome-pillars {
  display: grid;
  gap: 1rem;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

/* ── Pillars ─────────────────────────────────────────────── */
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, var(--cream), #fff);
  border: 1px solid var(--line);
  color: var(--gold-600);
}
.pillar-icon .icon {
  width: 26px;
  height: 26px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pillar-lg {
  padding: 2rem;
}
.pillar-lg .pillar-icon {
  width: 60px;
  height: 60px;
}

/* ── Service cards ───────────────────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-day {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.service-name {
  font-size: 1.45rem;
  margin: 0.5rem 0 0.75rem;
}
.service-time {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}
.service-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(201, 161, 74, 0.25), transparent 55%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.4rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  max-width: 42ch;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Page hero (interior) ────────────────────────────────── */
.page-hero {
  background:
    radial-gradient(800px 400px at 75% -20%, rgba(201, 161, 74, 0.22), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
}
.page-hero .eyebrow {
  color: var(--gold-400);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 16ch;
}
.page-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0;
}
.error-hero {
  text-align: center;
}
.error-hero h1,
.error-hero .page-hero-lead {
  margin-left: auto;
  margin-right: auto;
}
.error-hero .btn {
  margin-top: 1.5rem;
}

/* ── Ways to attend ──────────────────────────────────────── */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.way-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.way-card .pillar-icon {
  margin: 0 auto 1rem;
}
.way-card h3 {
  font-size: 1.35rem;
}
.way-card p {
  color: var(--ink-soft);
}
.way-card .btn {
  margin-top: 0.5rem;
}
.way-phones {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.way-phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-800);
}
.way-phone:hover {
  color: var(--gold-600);
}

/* ── Leader card ─────────────────────────────────────────── */
.leader-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--cream);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
}
.leader-avatar {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
}
.leader-avatar .icon {
  width: 52px;
  height: 52px;
}
.leader-card h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.leader-card .btn {
  margin-top: 1rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-row {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--gold-600);
}
.contact-icon .icon {
  width: 24px;
  height: 24px;
}
.contact-row h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.contact-row p {
  margin: 0;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 420px;
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.footer-mission {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  max-width: 36ch;
}
.footer-col h3 {
  color: var(--gold-400);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col p {
  font-size: 0.95rem;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-col a:hover {
  color: var(--gold-400);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover {
  color: var(--navy-900);
  background: var(--gold-400);
  border-color: var(--gold-400);
}
.footer-social .icon {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
  margin: 0;
}

/* ── Reveal-on-scroll ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Prayer Wall ─────────────────────────────────────────── */
.prayer-stats-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cream), #fff);
  border: 1px solid var(--line);
  color: var(--gold-600);
  margin-bottom: 0.4rem;
}
.stat-icon .icon {
  width: 22px;
  height: 22px;
}
.stat-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--navy-800);
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.prayer-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.prayer-form-card {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.prayer-form-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}
.prayer-form-card form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.prayer-form-card label {
  display: grid;
  gap: 0.4rem;
}
.prayer-form-card label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.prayer-form-card label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}
.prayer-form-card input,
.prayer-form-card select,
.prayer-form-card textarea {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  resize: vertical;
}
.prayer-form-card input:focus,
.prayer-form-card select:focus,
.prayer-form-card textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.prayer-form-card .btn {
  width: 100%;
  justify-content: center;
}
.prayer-verse {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--navy-700);
  line-height: 1.45;
}
.prayer-verse cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
}

.feed-head {
  text-align: left;
  margin: 0 0 1.5rem;
  max-width: none;
}
.feed-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}
.feed-head .section-lead {
  margin-top: 0.35rem;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.prayer-card,
.testimony-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.prayer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.prayer-time {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.prayer-body {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.1rem;
  flex: 1;
}
.prayer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.prayer-who {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.prayer-who .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--gold-600);
}
.pray-form {
  margin: 0;
}
.pray-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  background: var(--paper);
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pray-btn:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}
.pray-btn:active {
  transform: scale(0.96);
}
.pray-btn .icon {
  width: 1.05em;
  height: 1.05em;
}
.pray-count {
  font-variant-numeric: tabular-nums;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.85rem;
}
.pray-btn.prayed {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
  cursor: default;
}
.pray-btn.prayed .pray-count {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pray-btn.prayed .pray-label::before {
  content: "✓ ";
}

.answer-form {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}
.answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.answer-btn:hover {
  color: var(--gold-600);
}
.answer-btn .icon {
  width: 1.05em;
  height: 1.05em;
}

.testimony-card {
  border-top: 4px solid var(--gold-500);
  background: linear-gradient(180deg, #fff, var(--cream));
}
.answered-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a7a4a;
  background: rgba(26, 122, 74, 0.1);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.85rem;
}
.answered-badge .icon {
  width: 1.05em;
  height: 1.05em;
}

.empty-note {
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ── Admin: login ────────────────────────────────────────── */
.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(201, 161, 74, 0.18), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.admin-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border-radius: 18px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--gold-400);
}
.admin-mark .icon {
  width: 28px;
  height: 28px;
}
.admin-card h1 {
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}
.admin-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1.75rem;
}
.admin-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}
.admin-form label {
  display: grid;
  gap: 0.4rem;
}
.admin-form label span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
}
.admin-form input {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.admin-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.admin-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.admin-alert {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #8a1c1c;
  background: rgba(160, 30, 30, 0.08);
  border: 1px solid rgba(160, 30, 30, 0.2);
}
.admin-alert code {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ── Admin: dashboard ────────────────────────────────────── */
.admin-shell {
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 5rem;
  min-height: 100vh;
  font-size: 1.05rem;
  background:
    radial-gradient(900px 460px at 100% -5%, rgba(201, 161, 74, 0.1), transparent 60%),
    radial-gradient(700px 380px at -5% 8%, rgba(11, 31, 58, 0.05), transparent 55%),
    var(--cream);
}
.admin-shell .container {
  max-width: 1240px;
}

/* Sticky floating app header so actions are always within reach. */
.admin-bar {
  position: sticky;
  top: clamp(0.5rem, 2vw, 1rem);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem 1rem 1.4rem;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 40px -26px rgba(8, 22, 39, 0.5);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.admin-brand .admin-mark {
  width: 60px;
  height: 60px;
  margin: 0;
  flex: none;
  border-radius: 16px;
  box-shadow: 0 10px 22px -12px rgba(8, 22, 39, 0.6);
}
.admin-brand .admin-mark .icon {
  width: 30px;
  height: 30px;
}
.admin-brand .eyebrow {
  margin-bottom: 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}
.admin-bar h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
}
.admin-date {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.admin-bar-actions form {
  margin: 0;
}
.admin-bar-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-800);
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--paper);
  color: var(--navy-800);
  border-color: var(--gold-500);
}
.admin-stats {
  margin-bottom: 2.75rem;
}
.admin-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 1.5rem;
  padding-top: 0.5rem;
}
.admin-section-head h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}
.admin-section-head .section-lead {
  font-size: 1.02rem;
  margin: 0;
}
/* Bigger, dashboard-style stat tiles (scoped so the public wall is untouched). */
.admin-stats {
  gap: 1.5rem;
}
.admin-stats .stat-tile {
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
  padding: 1.6rem 1.5rem;
  border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-stats .stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.admin-stats .stat-icon {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 14px;
}
.admin-stats .stat-icon .icon {
  width: 28px;
  height: 28px;
}
.admin-stats .stat-text {
  align-items: flex-start;
  gap: 0.15rem;
}
.admin-stats .stat-value {
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}
.admin-stats .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.admin-list {
  display: grid;
  gap: 1.1rem;
}
.admin-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.admin-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.admin-row-main {
  min-width: 0;
}
.admin-row-main .prayer-body {
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--navy-800);
  margin: 0.65rem 0;
}
.admin-row .prayer-top {
  margin-bottom: 0;
}
.admin-row .chip {
  font-size: 0.74rem;
  padding: 0.3rem 0.7rem;
}
.admin-row .prayer-time {
  font-size: 0.9rem;
}
.admin-row-meta {
  font-size: 0.98rem;
}
.admin-row-meta .prayer-who,
.admin-row-meta .pray-tally {
  font-size: 0.98rem;
}

/* Disclosure to mark a request answered with a praise report. */
.answer-details {
  border-top: 1px dashed var(--line);
  padding-top: 0.9rem;
}
.answer-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--navy-800);
  background: var(--paper);
  border: 1.5px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}
.answer-summary::-webkit-details-marker {
  display: none;
}
.answer-summary:hover {
  background: var(--gold-500);
  color: var(--navy-900);
}
.answer-summary .icon {
  width: 1.05em;
  height: 1.05em;
}
.answer-details[open] .answer-summary {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
  margin-bottom: 1rem;
}
.answer-form-full {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  animation: answerReveal 0.25s ease;
}
@keyframes answerReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.answer-field {
  display: grid;
  gap: 0.4rem;
}
.answer-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}
.answer-field em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}
.answer-form-full textarea {
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  resize: vertical;
}
.answer-form-full textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.answer-form-full .btn {
  width: fit-content;
}

/* Answered praise report (testimony) display. */
.testimony-outcome {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--navy-800);
  margin: 0 0 0.6rem;
}
.testimony-origin {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.testimony-origin .icon {
  width: 1em;
  height: 1em;
  color: var(--gold-600);
  flex: none;
  transform: translateY(0.15em);
}
.admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}
.pray-tally {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-600);
}
.pray-tally .icon {
  width: 1.05em;
  height: 1.05em;
}
.admin-row-top {
  border-color: var(--gold-400);
  box-shadow: 0 12px 30px -18px rgba(184, 138, 47, 0.6);
}
.top-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.top-ribbon .icon {
  width: 1em;
  height: 1em;
}

/* Inspirational verse banner for the pastor. */
.admin-verse {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2.75rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(700px 300px at 90% -50%, rgba(201, 161, 74, 0.4), transparent 60%),
    linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 26px 60px -30px rgba(8, 22, 39, 0.7);
}
.admin-verse-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(216, 189, 118, 0.4);
  color: var(--gold-400);
}
.admin-verse-icon .icon {
  width: 30px;
  height: 30px;
}
.admin-verse-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.42;
  margin: 0 0 0.6rem;
  color: #fff;
  /* Reserve room so typing/erasing doesn't jump the layout. */
  min-height: 3.6em;
}
/* Blinking caret shown only while text is being typed or erased. */
.admin-verse.is-typing .admin-verse-typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--gold-400);
  animation: caret 0.8s step-end infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.admin-verse-ref {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  min-height: 1.2em;
}

.stat-tile-gold {
  background: linear-gradient(160deg, #fff, var(--cream));
  border-color: var(--gold-400);
}
.stat-tile-gold .stat-icon {
  background: linear-gradient(145deg, var(--gold-400), var(--gold-500));
  border-color: transparent;
  color: var(--navy-900);
}

.admin-impact {
  margin: -1.25rem 0 2.75rem;
  padding: 1.15rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: 12px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.admin-impact strong {
  color: var(--navy-800);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
  vertical-align: middle;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: 999px;
}

.admin-answered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}
.admin-answered {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff, var(--cream));
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.admin-answered:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.admin-answered .prayer-body {
  font-size: 1.02rem;
  margin: 0.6rem 0 0.85rem;
  flex: 1;
}
.admin-answered .testimony-outcome {
  font-size: 1.25rem;
}

/* ── Contact: pastor photo ───────────────────────────────── */
.pastor-card {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.pastor-photo {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pastor-words h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.pastor-words p {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ── Giving ───────────────────────────────────────────────── */
.give-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.75rem;
  align-items: start;
}
.give-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.give-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.6rem;
}
.give-card p {
  color: var(--ink-soft);
}
.give-card-feature {
  border-top: 4px solid var(--gold-500);
}
.give-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold-400);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}
.give-badge-paypal {
  color: #fff;
  background: #0070ba;
}
.give-badge-givelify {
  color: #fff;
  background: #1aa886;
}
.give-paypal,
.give-givelify {
  margin-top: 0.5rem;
}
.give-more {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--ink-soft);
}
.give-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink);
}
.give-steps li {
  margin-bottom: 0.5rem;
}
.give-zelle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-800);
  background: var(--ivory);
  border: 1.5px solid var(--gold-500);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  word-break: break-all;
}
.give-zelle:hover {
  background: var(--cream);
  color: var(--navy-900);
}
.give-zelle .icon {
  color: var(--gold-600);
  flex: none;
}
.give-card .pillar-icon {
  margin-bottom: 1rem;
}

/* ── Sunday School (public) ──────────────────────────────── */
.lesson-list {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lesson-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold-400);
  color: var(--ink);
}
.lesson-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cream), #fff);
  border: 1px solid var(--line);
  color: var(--gold-600);
}
.lesson-icon .icon {
  width: 24px;
  height: 24px;
}
.lesson-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.lesson-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.2;
}
.lesson-date {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.lesson-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-600);
}
.lesson-cta .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}
.lesson-row:hover .lesson-cta .icon {
  transform: translateX(4px);
}

/* ── Admin: tabs ─────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.admin-tab:hover {
  color: var(--navy-800);
}
.admin-tab.active {
  color: var(--navy-800);
  border-bottom-color: var(--gold-500);
}

/* ── Admin: lesson upload ────────────────────────────────── */
.upload-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.75rem;
}
.upload-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.upload-form {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.upload-form label {
  display: grid;
  gap: 0.4rem;
}
.upload-form label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
}
.upload-form .upload-file,
.upload-form .btn {
  grid-column: 1 / -1;
}
.upload-form input[type="text"],
.upload-form input[type="date"] {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.upload-form input[type="file"] {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.6rem;
  background: var(--ivory);
  border: 1px dashed var(--gold-500);
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
}
.upload-form input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.upload-form .btn {
  width: fit-content;
}

/* ── Admin: contact editor ───────────────────────────────── */
.contact-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.25rem;
}
.contact-edit-form label {
  display: grid;
  gap: 0.4rem;
}
.contact-edit-form label.full {
  grid-column: 1 / -1;
}
.contact-edit-form label span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-800);
}
.contact-edit-form label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}
.contact-edit-form input,
.contact-edit-form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  resize: vertical;
}
.contact-edit-form input:focus,
.contact-edit-form textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.contact-edit-form .btn.full {
  width: fit-content;
}
.admin-saved {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a7a4a;
  background: rgba(26, 122, 74, 0.1);
  border: 1px solid rgba(26, 122, 74, 0.25);
}
.admin-saved .icon {
  width: 1.05em;
  height: 1.05em;
}

/* ── Admin: lesson list ──────────────────────────────────── */
.admin-lesson-list {
  display: grid;
  gap: 0.85rem;
}
.admin-lesson {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.admin-lesson-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.admin-lesson .lesson-title {
  font-size: 1.15rem;
}
.admin-lesson .lesson-title:hover {
  color: var(--gold-600);
}
.admin-lesson-delete {
  margin: 0;
  flex: none;
}
.admin-delete-btn {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #8a1c1c;
  background: rgba(160, 30, 30, 0.07);
  border: 1px solid rgba(160, 30, 30, 0.2);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-delete-btn:hover {
  background: rgba(160, 30, 30, 0.14);
}

/* ── Daily Devotionals ───────────────────────────────────── */
.devo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.devo-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.devo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-400);
  color: var(--ink);
}
.devo-card h2 {
  font-size: 1.5rem;
  margin: 0.25rem 0 0.5rem;
}
.devo-card p {
  color: var(--ink-soft);
  flex: 1;
}
.devo-card .link-arrow {
  margin-top: 0.5rem;
}

/* ── Social Media ────────────────────────────────────────── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
a.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.social-card h2 {
  font-size: 1.5rem;
  margin: 0.85rem 0 0.4rem;
}
.social-card p {
  color: var(--ink-soft);
  flex: 1;
}
.social-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
}
.social-card-icon .icon {
  width: 28px;
  height: 28px;
}
.social-fb .social-card-icon {
  background: #1877f2;
}
.social-ig .social-card-icon {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-soon {
  opacity: 0.9;
}
.social-coming {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}
.social-card .link-arrow {
  margin-top: 0.5rem;
}

/* ── Responsive ──────────────────────────────────────────── */
/* Switch to the mobile menu before the wider nav can overflow. */
@media (max-width: 1300px) {
  .site-nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (max-width: 900px) {
  .welcome-grid,
  .contact-grid,
  .prayer-layout,
  .pastor-card,
  .give-grid,
  .upload-form,
  .contact-edit-form {
    grid-template-columns: 1fr;
  }
  .pastor-card {
    text-align: center;
    justify-items: center;
  }
  .prayer-form-card {
    position: static;
  }
  .lesson-row {
    flex-wrap: wrap;
  }
  .lesson-cta {
    width: 100%;
    justify-content: flex-end;
  }
  .answer-summary {
    width: 100%;
    justify-content: center;
  }
  .admin-verse {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .leader-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .hero-actions,
  .cta-actions {
    width: 100%;
  }
  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-promo-more {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
