﻿:root {
  --green: #002f2b;                 /* rgb(0 47 43) — primary */
  --green-2: #008c83;
  --green-3: #00513d;
  --green-bg: rgb(0 47 43 / 96%);
  --gold: #d2a24e;                  /* antique gold — accent */
  --gold-2: #b07f3a;
  --cream: #f7f5ee;
  --cream-2: #efece0;
  --ink: #1e2b26;
  --muted: #5c6b64;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 100, 75, 0.12);
  --shadow-lg: 0 24px 60px rgba(0, 100, 75, 0.22);
  --glow: 0 0 18px rgba(210, 162, 78, 0.28);
  --glow-lg: 0 0 30px rgba(210, 162, 78, 0.33);
  --header-h: 104px;
  /* One shared green fill so every green button reads identically,
     whatever its size (stops are close so corners never diverge). */
  --btn-green: linear-gradient(160deg, #01443e, var(--green));
  --btn-green-hover: linear-gradient(160deg, #01564f, #01403a);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button:focus, a:focus, .btn:focus { outline: none; }

.container { width: min(1200px, 92%); margin-inline: auto; }
.narrow { width: min(720px, 92%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn .pdf-icon { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; text-align: center; }
.btn-gold, .btn-primary { background: var(--btn-green); color: var(--white); box-shadow: 0 8px 20px rgba(0, 47, 43, 0.2); }
.btn-gold:hover, .btn-primary:hover { background: var(--btn-green-hover); color: var(--white); box-shadow: 0 12px 26px rgba(0, 47, 43, 0.28); }
.btn-gold:active, .btn-primary:active { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 47, 43, 0.2); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline-gold:hover { background: var(--gold); color: var(--green); }
.btn-outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--green); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ---------- Header / Nav tabs ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  pointer-events: none;
  padding-top: 1.25rem;
  transition: padding 0.3s ease;
}
.site-header.scrolled { padding-top: 0.75rem; }
/* Floating rounded bar that wraps the centred logo */
.nav-pill {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.20)),
    var(--nav-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 0;
  border-radius: 999px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(0, 0, 0, 0.30);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled .nav-pill {
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(0, 0, 0, 0.30);
}
.nav-pill .nav-tabs-left { justify-self: start; }
.nav-pill .nav-right { justify-self: end; }
/* Circular logo card — pops out of the bar for a 3D effect */
.brand,
.bnav-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04) 44%, rgba(0, 0, 0, 0.30) 100%),
    linear-gradient(160deg, #51456d, #262041 72%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.50),
    0 3px 0 rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.30),
    inset 0 -14px 22px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(210, 162, 78, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Glossy dome highlight */
.brand::after,
.bnav-logo::after {
  content: "";
  position: absolute;
  left: 15%; right: 15%; top: 6%;
  height: 36%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.brand:hover,
.bnav-logo:hover {
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.55), 0 3px 0 rgba(0, 0, 0, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.30), inset 0 -14px 22px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(210, 162, 78, 0.45);
}
.brand { width: 92px; height: 92px; margin-block: -16px; }
.brand:hover { transform: translateY(-2px) scale(1.03); }
.brand-logo { position: relative; z-index: 1; height: 64px; width: auto; object-fit: contain; flex-shrink: 0; }
.bnav-logo { width: 52px; height: 52px; margin-block: -4px; flex: 0 0 auto; transform: translateY(-12px); }
.bnav-logo:hover { transform: translateY(-15px) scale(1.06); }
.bnav-logo-img { position: relative; z-index: 1; height: 30px; width: auto; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 700; color: var(--cream); font-size: 0.88rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-tabs { display: flex; gap: 0.2rem; list-style: none; flex-wrap: wrap; }
.nav-tab {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #cdd5e6;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-tab:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-tab.active { color: var(--green); background: linear-gradient(135deg, var(--gold), var(--gold-2)); font-weight: 600; }
.nav-item { margin: 0; }
.nav-dropdown { position: relative; }
.nav-tab { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-tab-ico {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.nav-chevron { width: 15px; height: 15px; fill: currentColor; transition: transform 0.2s; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 120;
  min-width: 220px; background: var(--white); border: 1px solid rgba(210, 162, 78, 0.35);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 22px rgba(210, 162, 78, 0.15);
  padding: 0.45rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block; padding: 0.6rem 1rem; border-radius: 9px;
  color: var(--green); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--green); }
.nav-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  color: #aab6cc;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-subtab:hover, .nav-subtab.active { color: var(--gold-2); border-color: var(--gold-2); }
.nav-auth { display: flex; align-items: center; gap: 0.7rem; }
.nav-user { color: var(--cream); font-size: 0.85rem; }

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0.6rem;
  right: 0.6rem;
  bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  z-index: 110;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.22)),
    var(--nav-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.50),
    0 2px 0 rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 20px rgba(0, 0, 0, 0.35);
  padding: 0.3rem 0.4rem;
  gap: 0;
}
.bnav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.3rem 0.1rem;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.bnav-item svg,
.bnav-ico { width: 20px; height: 20px; flex-shrink: 0; }
.bnav-ico {
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}
.bnav-item.active .bnav-ico { transform: translateY(-1px); }
.bnav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnav-item:hover, .bnav-item:active { color: var(--gold); }
.bnav-item.active { color: var(--gold); }
.bnav-auth { flex: 1 1 0; min-width: 0; display: flex; }
.bnav-auth form { flex: 1; display: flex; margin: 0; }
.bnav-auth .bnav-item { width: 100%; }

/* Side groups flanking the centred logo — items share the space evenly */
.bnav-side { display: flex; align-items: center; gap: 0; min-width: 0; }
.bnav-side .bnav-item { flex: 1 1 0; }
.bnav-side .bnav-auth { flex: 1 1 0; }

/* Centred home logo — a raised 3D disc that pops out of the dock */
.bnav-home {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.3rem 0.1rem;
  min-width: 46px;
  text-decoration: none;
}
/* Invisible spacer the same size as a nav icon so the label lines up
   with every sibling label, whatever the logo's size. */
.bnav-home::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.bnav-home .bnav-logo {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  flex: 0 0 auto;
  transform: translate(-50%, -14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bnav-home:hover .bnav-logo { transform: translate(-50%, -17px) scale(1.06); }
.bnav-home .bnav-logo-img { position: relative; z-index: 1; height: 24px; width: auto; object-fit: contain; }
.bnav-home-label {
  font-size: 0.56rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}
.bnav-home.active .bnav-home-label,
.bnav-home:hover .bnav-home-label { color: var(--gold); }

/* ---------- Mobile "About" bottom sheet ---------- */
body.sheet-open { overflow: hidden; }
.nav-sheet { position: fixed; inset: 0; z-index: 200; }
.nav-sheet[hidden] { display: none; }
.nav-sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-sheet.open .nav-sheet-backdrop { opacity: 1; }
.nav-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface, #2d2845);
  border-top: 1px solid rgba(210, 162, 78, 0.25);
  border-radius: 20px 20px 0 0;
  padding: 0.7rem 1rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
  max-height: 72vh; overflow-y: auto;
  transform: translateY(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-sheet.open .nav-sheet-panel { transform: translateY(0); }
.nav-sheet-handle { width: 44px; height: 4px; border-radius: 999px; background: rgba(244, 239, 228, 0.28); margin: 0.15rem auto 0.75rem; }
.nav-sheet-title { font-family: var(--serif); color: var(--cream); font-size: 1.05rem; margin-bottom: 0.35rem; }
.nav-sheet-list { list-style: none; display: grid; gap: 0.1rem; }
.nav-sheet-list a {
  display: block; padding: 0.7rem; border-radius: 10px;
  color: var(--ink); font-size: 0.95rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-sheet-list a:hover, .nav-sheet-list a:active { background: rgba(210, 162, 78, 0.14); color: var(--gold); }

/* ---------- Flash messages ---------- */
.flash { margin-top: 5rem; display: grid; gap: 0.5rem; }
.flash-item { padding: 0.85rem 1.2rem; border-radius: 10px; font-weight: 500; }
.flash-item.success { background: #e5f6e7; color: #1f6f2f; border: 1px solid #bfe6c5; }
.flash-item.error { background: #fdecec; color: #a03030; border: 1px solid #f3c2c2; }
.flash-item.info { background: #e8effd; color: #23457a; border: 1px solid #c3d6f7; }

/* ---------- Hero slider ---------- */
/* Transparent so the fixed page backdrop (body::before) shows through the
   letterbox bars around the object-fit: contain slide images. */
.hero-slider { position: relative; height: min(88vh, 900px); min-height: 520px; background: transparent; overflow: hidden; }
.hero-track { position: relative; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-h));
  object-fit: contain;
  cursor: zoom-in;
}
.hero-title { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); color: var(--white); text-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.hero-caption { color: var(--cream); font-size: clamp(1rem, 2vw, 1.25rem); margin: 0.8rem auto 0; max-width: 640px; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0, 100, 75, 0.55); color: var(--cream);
  border: 1px solid rgba(255,255,255,0.25); font-size: 1.4rem; cursor: pointer;
  transition: background 0.2s;
}
.slider-arrow:hover { background: var(--gold); color: var(--green); box-shadow: var(--glow); }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; justify-content: center; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.35); border: none; cursor: pointer; transition: all 0.2s; }
.dot.active { background: var(--gold); transform: scale(1.2); box-shadow: var(--glow); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-tint { background: var(--cream-2); }
.section-green { background: linear-gradient(160deg, var(--green-bg), var(--green-3)); }
.section-title { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--green); margin-bottom: 0.4rem; }
.section-title.light { color: var(--white); }
.section-title.center { text-align: center; }
.section-sub { color: var(--muted); margin-bottom: 2.6rem; }
.section-sub.light { color: #c6cede; }
.section-sub.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--gold); font-weight: 600; }
.center { text-align: center; }
.cta-block { margin-top: 2.2rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); }

/* Strip (service times) */
.strip { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--green); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: 1.1rem 0; flex-wrap: wrap; text-align: center; }
.strip-label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; }
.strip-text { font-weight: 500; text-align: center; margin: 0 auto; max-width: 720px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1.4rem; }
.stat-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 2rem 1rem; box-shadow: var(--shadow); border-bottom: 3px solid var(--gold); }
.stat-value { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold); }
.stat-label { color: var(--muted); font-weight: 500; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1.6rem; }
.card-grid-centered { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px)); justify-content: center; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; background: #dde3ee; overflow: hidden; }
.card-media img { width: 100%; height: auto; object-fit: cover; cursor: zoom-in; transition: transform 0.4s ease; }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.card-title { font-family: var(--serif); font-size: 1.3rem; color: var(--green); }
.card-title-link { color: var(--green); text-decoration: none; transition: color 0.2s; }
.card-title-link:hover { color: var(--gold-2); text-decoration: underline; }
.btn-download { margin-top: 0.4rem; }
.card-scripture { font-style: italic; color: var(--gold); font-weight: 600; }
.card-text { color: var(--muted); font-size: 0.95rem; }
.card-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* Fit image utility */
.fit-img { width: 100%; height: auto; object-fit: cover; }

/* PNG transparency: never crop the subject, keep frames clear behind transparency */
img[src$=".png" i] { object-fit: contain !important; }
.card-media:has(img[src$=".png" i]) { background: transparent; }
.leader-media:has(img[src$=".png" i]) { background: transparent; }
.list-media:has(img[src$=".png" i]) { background: transparent; }
.mosaic-item:has(img[src$=".png" i]) { background: transparent; }
.thumb:has(img[src$=".png" i]) { background: transparent; }

/* Announcements home strip */

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: stretch; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-media { display: flex; align-items: center; justify-content: center; background: transparent; border-radius: var(--radius); overflow: hidden; min-height: 300px; max-height: 460px; }
.split-media img { width: 100%; height: 100%; object-fit: contain; }
.split-body { display: flex; flex-direction: column; justify-content: center; }
.split-body .section-title { margin-top: 0.4rem; margin-bottom: 0.8rem; }
.split-body p { color: var(--muted); margin-bottom: 1rem; }

/* Testimonies */
.testimony-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 360px)); justify-content: center; gap: 1.5rem; }
.testimony-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.testimony-card p { color: var(--muted); font-style: italic; margin-bottom: 0.8rem; }
.testimony-card cite { color: var(--green); font-weight: 600; font-style: normal; }

/* Gallery strip */
.gallery-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 0.9rem; }
.thumb { background: #dde3ee; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.thumb:hover img { transform: scale(1.06); }

/* Page hero */
.page-hero { background: linear-gradient(160deg, var(--green-bg), var(--green-3)); padding: calc(var(--header-h) + 1.5rem) 0 2rem; text-align: center; }
.page-title { font-family: var(--serif); color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); }
.page-sub { color: #c6cede; margin-top: 0.3rem; font-size: 0.88rem; }

/* Tabs (blackboard) */
.tabbar { display: flex; gap: 0.4rem; border-bottom: 2px solid #dcd3bd; margin-bottom: 2.4rem; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 0.8rem 1.5rem;
  font-family: var(--serif); font-size: 1.1rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--green); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--gold); font-weight: 600; }
.tabpanel.hidden { display: none; }

/* List items */
.list-stack { display: grid; gap: 1.2rem; }
.list-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; display: flex; gap: 1.4rem; align-items: flex-start; }
.list-date { text-align: center; background: var(--cream-2); border-radius: 10px; padding: 0.6rem 0.9rem; flex-shrink: 0; }
.date-day { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--green); line-height: 1.1; }
.date-month { display: block; font-size: 0.72rem; text-transform: uppercase; color: var(--gold); letter-spacing: 0.08em; }
.list-body { flex: 1; }
.list-title { font-family: var(--serif); color: var(--green); font-size: 1.2rem; margin-bottom: 0.3rem; }
.list-text { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.list-media { width: 120px; flex-shrink: 0; background: #dde3ee; border-radius: 10px; overflow: hidden; }
.list-item:has(.list-media-featured) { flex-direction: column; align-items: center; text-align: center; }
.list-item:has(.list-media-featured) .list-body { display: none; }
.list-media-featured { width: 100%; max-width: 520px; }
.list-media img { width: 100%; height: auto; object-fit: cover; cursor: zoom-in; }
.list-actions { display: flex; gap: 0.5rem; flex-shrink: 0; align-items: center; }

/* Share row */
.share-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.4rem; }
.share-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
/* Devotion cards: platform buttons stay in the DOM but are hidden until the
   Share trigger is pressed, so the card reads as one quiet action first. */
.share-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.share-toggle::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform 0.2s; }
.share-toggle:hover, .share-toggle[aria-expanded="true"] { color: var(--gold); text-decoration-color: var(--gold); }
.share-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.share-row.is-collapsed .share-btn[data-share="whatsapp"],
.share-row.is-collapsed .share-btn[data-share="facebook"],
.share-row.is-collapsed .share-btn[data-share="x"] { display: none; }
.share-row.is-collapsed.is-open .share-btn[data-share="whatsapp"],
.share-row.is-collapsed.is-open .share-btn[data-share="facebook"],
.share-row.is-collapsed.is-open .share-btn[data-share="x"] { display: inline-flex; animation: share-pop 0.22s ease both; }
@keyframes share-pop { from { opacity: 0; transform: translateY(4px) scale(0.9); } to { opacity: 1; transform: none; } }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #dcd3bd;
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover, .share-btn.copied { background: var(--gold); color: var(--green); border-color: var(--gold); box-shadow: var(--glow); }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* Empty state */
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }

/* About */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.vm-card { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.vm-text { color: var(--muted); margin: 0.8rem 0; }
.vm-scripture { font-style: italic; color: var(--gold); font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-left: 4px solid var(--gold); transition: transform 0.3s; }
.value-card:hover { transform: translateY(-4px); }
.value-title { font-family: var(--serif); color: var(--green); font-size: 1.2rem; margin-bottom: 0.3rem; }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 16px rgba(210, 162, 78, 0.15), var(--glow);
}
.value-icon svg { width: 22px; height: 22px; fill: currentColor; }
.value-scripture { font-style: italic; color: var(--gold); font-size: 0.9rem; }
.value-text { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.value-label { font-weight: 700; color: var(--green); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.9rem; }
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 400px)); gap: 1.8rem; justify-content: center; }
.leader-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; }
.leader-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.leader-media { background: #dde3ee; }
.leader-media img { width: 100%; height: auto; object-fit: cover; cursor: zoom-in; }
.leader-body { padding: 1.5rem; text-align: center; }
.leader-name { font-family: var(--serif); color: var(--green); font-size: 1.35rem; }
.leader-role { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0.2rem 0 0.6rem; }
.leader-bio { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.4rem; margin-bottom: 3rem; }
.method-card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 0.3rem; align-items: center; border-bottom: 3px solid var(--gold); transition: transform 0.3s; }
.method-card:hover { transform: translateY(-4px); }
.method-icon { font-size: 2rem; display: inline-flex; }
.method-icon svg { width: 34px; height: 34px; fill: var(--white); }
.method-label { font-family: var(--serif); color: var(--green); font-size: 1.15rem; font-weight: 600; }
.method-value { color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: start; }
.contact-solo { max-width: 680px; margin-inline: auto; }
.form-card, .info-card { background: var(--white); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.info-block { margin-top: 1.2rem; }
.info-block h4 { font-family: var(--serif); color: var(--green); margin-bottom: 0.3rem; }
.info-block p { color: var(--muted); }
.social-list { list-style: none; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.social-list li { width: auto; }
.social-list a { color: var(--gold); font-weight: 500; border-bottom: 1px solid transparent; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.social-list a:hover { border-bottom-color: var(--gold); }
.social-list svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Contact page: primary bg + transparent cards */
.contact-page { background: linear-gradient(160deg, var(--green-bg), var(--green-3)); }
.contact-page .method-card,
.contact-page .form-card,
.contact-page .info-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.contact-page .method-label { color: var(--white); }
.contact-page .method-value { color: rgba(255, 255, 255, 0.82); }
.contact-page .section-title { color: var(--white); }
.contact-page .form-field label { color: var(--white); }
.contact-page .info-block h4 { color: var(--white); }
.contact-page .info-block p { color: rgba(255, 255, 255, 0.82); }
.contact-page .social-list a { color: var(--gold); }
.contact-page .input {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.contact-page .input::placeholder { color: rgba(255, 255, 255, 0.5); }
.contact-page .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 78, 0.25); }

/* Forms */
.form-stack { display: grid; gap: 1.1rem; }
.form-field label { display: block; font-weight: 500; color: var(--green); margin-bottom: 0.35rem; font-size: 0.92rem; }
.input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 10px;
  border: 1.5px solid #dcd3bd; background: var(--cream);
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210,162,78,0.18); }
textarea.input { resize: vertical; }
.form-error { color: #a03030; font-size: 0.85rem; margin-top: 0.3rem; }
.form-help { color: var(--muted); font-size: 0.8rem; }
.mt-2 { margin-top: 1.2rem; }

/* Django as_p markup inside form stacks */
.form-stack p { display: grid; gap: 0.35rem; }
.form-stack p label { font-weight: 500; color: var(--green); font-size: 0.92rem; }
.form-stack p .errorlist { list-style: none; color: #a03030; font-size: 0.85rem; }
.form-stack p .helptext { color: var(--muted); font-size: 0.8rem; }
.form-stack p .input::placeholder { color: #8a8f9c; }

/* Dark sections: keep as_p labels, inputs and placeholders readable */
.section-green .form-stack p label { color: var(--white); }
.section-green .form-stack p .errorlist { color: #ffb0b0; }
.section-green .form-stack p .helptext { color: #c6cede; }
.section-green .form-stack .input {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.section-green .form-stack .input::placeholder { color: rgba(255, 255, 255, 0.55); }
.section-green .form-stack .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 78, 0.25); }

/* Gallery tabs + mosaic */
.gallery-tabs { display: flex; gap: 0.5rem; justify-content: center; margin: 2.5rem auto 0; }
.gallery-tab { padding: 0.6rem 1.6rem; border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px; font-weight: 600; transition: all 0.2s; }
.gallery-tab.active, .gallery-tab:hover { background: var(--gold); color: var(--green); box-shadow: var(--glow); }
.gallery-view.hidden { display: none; }
.grid-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 1rem; }
.mosaic-item { position: relative; background: #dde3ee; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.8rem; background: linear-gradient(transparent, rgba(12, 9, 27, 0.9)); color: var(--cream); font-size: 0.85rem; }

/* Devotions archive — small storage thumbnails, full image on click */
.grid-devotion { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.dev-item { position: relative; margin: 0; background: #272235; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; cursor: zoom-in; }
.dev-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.dev-item:hover img { transform: scale(1.06); }
.dev-caption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 0.15rem; padding: 1.4rem 0.6rem 0.55rem; background: linear-gradient(transparent, rgba(12, 9, 27, 0.92)); pointer-events: none; }
.dev-date { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.dev-title { font-size: 0.82rem; line-height: 1.3; color: var(--cream); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 640px) {
  .grid-devotion { grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 0.7rem; }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(32,0,48,0.7); display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-dialog { background: var(--white); border-radius: var(--radius); padding: 2rem; width: min(520px, 100%); max-height: 92vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.8rem; color: var(--muted); cursor: pointer; }
.modal-event { color: var(--gold); font-weight: 600; margin-bottom: 1rem; }

/* Notice */
.notice { background: #fdf6e3; border: 1px solid var(--gold); color: var(--green); border-radius: 10px; padding: 1.4rem; margin-bottom: 1.5rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(32,0,48,0.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox-caption { color: var(--cream); margin-top: 1rem; font-size: 0.95rem; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: var(--cream); font-size: 2.6rem; cursor: pointer; line-height: 1; }

/* Footer */
/* Translucent veil instead of an opaque fill so the fixed page backdrop
   (body::before) shows through and blends into the footer. The scrim is
   strongest at the top edge so it meets the content above with no visible
   seam, and eases off downward so the artwork reads behind the columns. */
.site-footer {
  color: #c6cede;
  margin-top: 4rem;
  background: linear-gradient(180deg, rgba(6, 4, 16, 0.94) 0%, rgba(6, 4, 16, 0.82) 45%, rgba(6, 4, 16, 0.9) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; padding: 4rem 0 2.5rem; }
.footer-logo { height: 256px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--serif); color: #ff9500; font-style: italic; }
.footer-location { margin-top: 0.5rem; color: #ffffff; font-size: 0.9rem; }
.footer-col h4 { font-family: var(--serif); color: var(--white); margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a, .footer-contact a { color: #c6cede; transition: color 0.2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-2); }
.footer-service-times { color: #c6cede; font-size: 0.95rem; line-height: 1.9; }
.footer-social { list-style: none; display: flex; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.footer-social a:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.15); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
.footer-social svg { width: 20px; height: 20px; }
.newsletter-form { display: grid; gap: 0.7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.4rem 0; font-size: 0.85rem; text-align: center; color: #ffffff; }

/* Brand icon colors */
.soc-whatsapp { fill: #25d366; }
.soc-facebook { fill: #1877f2; }
.soc-instagram { fill: #e4405f; }
.soc-youtube { fill: #ff0000; }
.soc-x { fill: #000000; }
.soc-email { fill: #ea4335; }
.soc-phone { fill: var(--cream); }
.soc-pin { fill: var(--cream); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.55rem; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.2rem; }
.newsletter-field { position: relative; }
.newsletter-field .input { padding-left: 2.5rem; }
.newsletter-field .mail-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: #8f9bb3; pointer-events: none;
}

/* Gold action strip below hero */
.action-strip { background: linear-gradient(135deg, var(--gold), var(--gold-2)); padding: 2rem 0; }
.action-strip-inner { display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; align-items: center; text-align: center; }
.strip-msg { display: grid; gap: 0.15rem; max-width: 720px; margin-inline: auto; }
.strip-msg strong { font-family: var(--serif); font-size: 1.45rem; color: var(--green); line-height: 1.25; }
.strip-msg p { font-size: 1.02rem; color: #3a2600; font-weight: 500; }
.strip-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.action-strip .btn { background: var(--btn-green); color: var(--cream); }
.action-strip .btn:hover { background: var(--btn-green-hover); color: var(--white); }

/* Pill buttons (blackboard + nav) */
.pill-btn { display: inline-block; padding: 0.6rem 1.5rem; border-radius: 999px; background: var(--white); color: var(--green); border: 1.5px solid var(--gold); font-weight: 600; transition: all 0.2s; }
.pill-btn:hover { background: var(--gold); color: var(--green); }
.pillbar { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.pillbar .pill-btn.active, .pill-btn.active { background: var(--gold); color: var(--green); box-shadow: var(--glow); }
/* Blackboard tabs: an icon with its label alongside. Long labels swap to a
   short form on narrow screens so the sticky pill bar stays compact. */
.pillbar .pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.55rem 1.05rem;
  font-size: 0.92rem; font-weight: 600; white-space: nowrap;
}
.pillbar .pill-btn svg { width: 22px; height: 22px; fill: currentColor; display: block; flex-shrink: 0; }
.pillbar .pill-label { display: inline-block; line-height: 1.1; }
.pillbar .pill-label-short { display: none; }
.tabpanel.hidden { display: none; }

/* Video frames (sermons) */
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--green-bg); border-radius: 12px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-preview { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--green-bg); border-radius: 12px; overflow: hidden; }
.video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-preview:hover img { transform: scale(1.05); }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 100, 75, 0.35); transition: background 0.3s ease; }
.video-play svg { width: 56px; height: 56px; fill: #fff; background: rgba(210, 162, 78, 0.45); border-radius: 50%; padding: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); transition: transform 0.3s ease; }
.video-preview:hover .video-play { background: rgba(0, 100, 75, 0.15); }
.video-preview:hover .video-play svg { transform: scale(1.12); }

/* Auth pages */
.auth-page {
  position: relative;
  background:
    linear-gradient(160deg, rgba(6, 4, 16, 0.84), rgba(6, 4, 16, 0.62)),
    url("../images/site-bg3.0b539cfb461d.jpg") center / cover no-repeat;
}
.auth-wrap { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 160px); padding: 3rem 0; }
.auth-card {
  position: relative;
  background: transparent;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 2.8rem 2.6rem;
  width: min(460px, 100%);
}
.auth-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: transparent;
  pointer-events: none;
}
.auth-card > * { position: relative; }
.auth-logo { display: block; height: 96px; width: auto; object-fit: contain; margin: 0 auto 1.2rem; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }
.auth-title { font-family: var(--serif); color: var(--white); font-size: 1.9rem; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.auth-sub { color: rgba(255, 255, 255, 0.82); text-align: center; margin: 0.4rem 0 1.6rem; }
.auth-foot { text-align: center; margin-top: 1.2rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.auth-foot a { color: var(--gold); font-weight: 600; }
.auth-page .form-field label { color: var(--white); }
.auth-page .input {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.auth-page .input::placeholder { color: rgba(255, 255, 255, 0.5); }
.auth-page .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 78, 0.25); }

/* About: founder message */
.chapter-head { text-align: center; display: grid; justify-items: center; gap: 0.3rem; margin-bottom: 2.6rem; }
.chapter-badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(210,162,78,0.18);
  margin-bottom: 0.5rem;
}
.chapter-badge svg { width: 26px; height: 26px; fill: currentColor; }
.chapter-head .eyebrow { font-size: 0.85rem; }
.chapter-rule { width: 96px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin-top: 0.45rem; }
.chapter-body { max-width: 860px; margin-inline: auto; }

.founder-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.6rem 2.8rem; border-top: 4px solid var(--gold); text-align: center; }
.founder-card .eyebrow { color: var(--gold); }
.founder-card .prose { text-align: left; max-width: 700px; margin: 1rem auto 0; }
.founder-card .vm-scripture { margin-top: 0.8rem; }
.founder-byline { color: var(--green); font-family: var(--serif); font-size: 1.05rem; line-height: 1.7; margin-top: 0.6rem; }
.founder-tagline { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; margin-top: 1.4rem; text-align: center; }
.founder-signature { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--cream); text-align: center; }
.founder-signature p { color: var(--green); line-height: 1.7; }
.founder-signature p:first-line { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.founder-signature strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--green); }
.founder-signature span { color: var(--gold); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; }
.recap-block { max-width: 720px; margin: 1.6rem auto 0; display: grid; gap: 0.7rem; }
.recap-line { color: #eef1f7; font-size: 1.05rem; line-height: 1.7; }
.recap-label { color: var(--gold-2); font-weight: 700; letter-spacing: 0.04em; }
.recap-tagline { margin-top: 0.9rem; }

/* About: sub sections */
.sub-section { margin-top: 2.8rem; }
.sub-title { font-family: var(--serif); color: var(--green); font-size: 1.4rem; margin-bottom: 1.2rem; }
.sub-title.center { text-align: center; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; align-items: stretch; }
.story-card { background: var(--white); border-radius: var(--radius); padding: 1.7rem 1.8rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold); transition: transform 0.3s; }
.story-card:hover { transform: translateY(-4px); }
.story-title { font-family: var(--serif); color: var(--green); font-size: 1.2rem; margin-bottom: 0.6rem; }
.story-card .prose { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.story-card .prose p { margin-bottom: 0.8rem; }
.story-card .prose p:last-child { margin-bottom: 0; }
.story-img { grid-column: 1 / -1; max-width: 720px; max-height: 460px; justify-self: center; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: transparent; display: flex; align-items: center; justify-content: center; }
.story-img:has(img[src$=".png" i]) { background: transparent; }
.story-img img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }

/* About: declarations + culture */
.declaration { background: linear-gradient(135deg, var(--green-bg), var(--green-3)); color: var(--cream); border-radius: var(--radius); padding: 2rem 2.2rem; margin-top: 2.6rem; text-align: center; }
.declaration h4 { font-family: var(--serif); color: var(--gold-2); font-size: 1.2rem; letter-spacing: 0.04em; }
.declaration p { margin-top: 0.8rem; color: #eef1f7; font-size: 1.02rem; line-height: 1.75; }
.culture-box { background: #fdf8ec; border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.8rem 2rem; margin-top: 2.4rem; text-align: center; }
.culture-box .sub-title { margin-bottom: 0.6rem; }
.culture-box p { color: var(--green); line-height: 1.8; }
.culture-intro { font-style: italic; color: var(--green); margin: 0 auto 1.6rem; max-width: 640px; }
.culture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 1.8rem; align-items: start; }
.culture-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
.culture-item .value-icon { margin: 0 auto 0.2rem; }
.culture-title { font-family: var(--serif); color: var(--green); font-size: 1.05rem; }
.culture-item p { color: var(--green); font-size: 0.93rem; line-height: 1.6; }

/* About: vision practice */
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 1rem; max-width: 980px; margin: 0 auto; }
.practice-chip { display: flex; align-items: center; gap: 0.7rem; background: var(--white); border-radius: 14px; padding: 0.75rem 1.1rem; box-shadow: var(--shadow); border-left: 4px solid var(--gold); transition: transform 0.3s; }
.practice-chip:hover { transform: translateY(-3px); }
.practice-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow); }
.practice-icon svg { width: 19px; height: 19px; fill: currentColor; }
.practice-chip > span:last-child { color: var(--green); font-weight: 600; font-size: 0.92rem; line-height: 1.4; }
.center-text { text-align: center; }
.center-text p { text-align: center; }

/* About: pathway */
.pathway { display: grid; gap: 1rem; }
.pathway-step { display: flex; align-items: flex-start; gap: 1.1rem; background: var(--white); border-radius: 14px; padding: 1.2rem 1.5rem; box-shadow: var(--shadow); }
.pathway-num { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.pathway-step h4 { font-family: var(--serif); color: var(--green); }
.pathway-step p { color: var(--muted); font-size: 0.92rem; }

/* About: mission in action chips */
.action-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.action-chip { display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem; background: var(--btn-green); color: var(--cream); padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow); text-align: center; }
.action-chip svg { width: 18px; height: 18px; fill: var(--gold-2); flex-shrink: 0; }
.action-chip-main { display: inline-flex; align-items: center; gap: 0.55rem; }
.action-chip-desc { font-weight: 400; font-size: 0.82rem; color: var(--gold-2); line-height: 1.4; }

/* VM lead text */
.vm-text.lead { font-size: 1.25rem; font-family: var(--serif); color: var(--green); line-height: 1.6; margin: 0.5rem auto 0.4rem; max-width: 860px; text-align: center; }
.vm-scripture { font-family: var(--serif); font-style: italic; color: var(--gold); margin-top: 0.4rem; text-align: center; }
.section.center .vm-text.lead { margin-inline: auto; }

/* About: sub-page navigation + overview index */
.about-subnav-bar { background: var(--cream-2); padding-top: 1.1rem; }
.about-subnav { margin-bottom: 0; }
.about-subnav .tab-btn { font-size: 1rem; padding: 0.7rem 1.1rem; }
.about-subnav-bar + .section { padding-top: 3rem; }
.about-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.2rem; }
.about-index__card { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; }
.about-index__kicker { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; font-weight: 700; }
.about-index__more { color: var(--gold); font-weight: 600; font-size: 0.88rem; margin-top: auto; padding-top: 0.6rem; }

@media (max-width: 700px) {
  .about-subnav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .about-subnav::-webkit-scrollbar { display: none; }
  .about-subnav .tab-btn { flex: 0 0 auto; white-space: nowrap; font-size: 0.92rem; padding: 0.6rem 0.85rem; }
}

/* About: chapter anchors */
html { scroll-behavior: smooth; }
#ch-leadership, #ch-founder, #ch-story, #ch-vision, #ch-mission { scroll-margin-top: calc(var(--header-h) + 14px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: none; }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), var(--glow);
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.25s ease;
}
.to-top svg { width: 26px; height: 26px; fill: currentColor; }
.to-top.show { opacity: 1; transform: translateY(0); visibility: visible; }
.to-top:hover { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), var(--glow-lg); transform: translateY(-2px); }

/* ============================================================
   DARK + GOLD THEME
   Flips the light/cream site to a near-black plum canvas with
   gold accents. Layout, class names and responsive rules are
   untouched — only the palette and light surfaces change.
   ============================================================ */
:root {
  --green: #14111e;                 /* dark plum (on-gold text + dark base) */
  --green-2: #24304f;
  --green-3: var(--base);
  --green-bg: var(--base);
  --gold: #d2a24e;
  --gold-2: #b07f3a;
  --cream: #f4efe4;
  --cream-2: var(--base);           /* alt section surface (was light) */
  --ink: #ece6d9;
  --muted: #c3b9a8;
  --base: #0c091b;                  /* page canvas */
  --surface: #2d2845;               /* cards (kept distinct from the base) */
  --surface-2: #38325a;
  --nav-surface: #362939;           /* nav bar */
  --line: rgba(210, 162, 78, 0.24);
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --btn-green: linear-gradient(160deg, #e7c47c, var(--gold));
  --btn-green-hover: linear-gradient(160deg, #f0d79b, #c8963f);
}

body { background: var(--base); color: var(--ink); }

/* Breathing room above the first section heading */
main > .section:first-child { padding-top: calc(var(--header-h) + 2rem); }

/* Surfaces that were white cards */
.stat-card, .card, .vm-card, .value-card, .leader-card, .story-card,
.testimony-card, .method-card, .form-card, .info-card, .founder-card,
.practice-chip, .pathway-step, .list-item, .modal-dialog, .pill-btn,
.share-btn, .nav-dropdown-menu, .culture-box, .notice {
  background: var(--surface);
}

/* Home page cards use a warmer, denser tone */
body.page-home .card,
body.page-home .stat-card,
body.page-home .vm-card,
body.page-home .testimony-card { background: var(--nav-surface); }

/* Image placeholders */
.card-media, .thumb, .mosaic-item, .leader-media, .list-media { background: #272235; }

/* Headings that were dark-on-light -> light */
.section-title, .card-title, .card-title-link, .list-title, .vm-text.lead,
.sub-title, .story-title, .value-title, .leader-name, .method-label,
.info-block h4, .founder-byline, .founder-signature p, .founder-signature strong,
.culture-title, .pathway-step h4, .practice-chip > span:last-child,
.nav-dropdown-menu a, .pill-btn { color: var(--cream); }

/* Accent / secondary text */
.date-day,
.value-label { color: var(--gold); }
.culture-item p, .culture-box p, .culture-intro { color: var(--muted); }
.tab-btn:hover, .tab-btn.active { color: var(--gold); }
.share-btn { color: var(--gold); border-color: var(--line); }
.notice { border-color: var(--gold); color: var(--cream); }
.founder-signature { border-top-color: var(--line); }
.tabbar { border-bottom-color: var(--line); }

/* Warm nav + footer tones */
.nav-tab { color: #cfc7b8; }
.nav-subtab { color: #b3a894; }
.footer-tagline { color: var(--gold); }
.soc-x { fill: var(--cream); }

/* Buttons */
.btn-gold, .btn-primary { color: var(--green); box-shadow: 0 10px 24px rgba(210, 162, 78, 0.25); }
.btn-gold:hover, .btn-primary:hover { color: var(--green); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); }
.action-strip .btn { background: var(--green); color: var(--gold); border-color: var(--green); }
.action-strip .btn:hover { background: #000; color: var(--gold); }

/* "Mission in action" chips: cool plum gradient surfaces */
.action-chip {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 1rem 1.3rem;
  border-radius: 16px;
  gap: 0.4rem;
}
.action-chip svg { fill: var(--gold); }
.action-chip-main { color: var(--cream); }
.action-chip-desc { color: var(--muted); }

/* Inputs */
.input { background: #272235; border-color: var(--line); color: var(--ink); }
.input::placeholder { color: #6f6a60; }

/* Overlays that used brand green */
.slider-arrow { background: rgba(12, 9, 27, 0.62); }
.video-play { background: rgba(12, 9, 27, 0.45); }

/* Flash messages */
.flash-item.success { background: rgba(46, 160, 80, 0.14); color: #a6e3b6; border-color: rgba(46, 160, 80, 0.34); }
.flash-item.error { background: rgba(200, 70, 70, 0.14); color: #ffb6b6; border-color: rgba(200, 70, 70, 0.34); }
.flash-item.info { background: rgba(80, 130, 230, 0.14); color: #c2d3ff; border-color: rgba(80, 130, 230, 0.34); }

/* Form errors */
.form-error, .form-stack p .errorlist { color: #ff9b9b; }

/* Responsive */
@media (max-width: 960px) {
  .split, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  /* Desktop pill is hidden entirely; the bottom dock is the only nav */
  .nav-pill { display: none; }
  :root { --header-h: 20px; }
  .bottom-nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  body { padding-bottom: 104px; }
  .to-top { bottom: 104px; right: 16px; width: 44px; height: 44px; }
  .to-top svg { width: 24px; height: 24px; }
  .hero-slider { height: 72vh; }
  .list-item { flex-wrap: wrap; }
  .list-media { width: 100%; }
  main > .section:first-child { padding-top: 4.5rem; }
  /* Devotions: on small screens show a single card, not the full set */
  #devotions .card-grid .card:nth-child(n + 2) { display: none; }
}

/* Blackboard: the pill tabs become a sticky top nav on small screens only.
   Five labelled tabs can never fit a phone width, so the bar scrolls
   horizontally with snap points and the active tab is kept in view. */
@media (max-width: 960px) {
  body.page-blackboard .pillbar {
    position: sticky;
    top: 0;
    z-index: 60;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    width: auto;
    margin-inline: -4.348%;
    margin-bottom: 1.6rem;
    padding: 0.7rem max(4vw, env(safe-area-inset-right)) 0.7rem max(4vw, env(safe-area-inset-left));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4vw;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: rgba(12, 9, 27, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(231, 196, 124, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
    scrollbar-width: none;
  }
  body.page-blackboard .pillbar::-webkit-scrollbar { display: none; }
  body.page-blackboard .pillbar .pill-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 46px;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    scroll-snap-align: start;
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (max-width: 640px) {
  body.page-blackboard .pillbar { gap: 0.35rem; }
  body.page-blackboard .pillbar .pill-btn {
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }
  body.page-blackboard .pillbar .pill-btn svg { width: 18px; height: 18px; }
  .pillbar .pill-label-full { display: none; }
  .pillbar .pill-label-short { display: inline; }
  .bnav-item { font-size: 0.55rem; }
  .bnav-item svg,
  .bnav-ico { width: 19px; height: 19px; }
  .hero-slider { height: 58vh; min-height: 280px; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .slider-arrow.prev { left: 8px; }
  .slider-arrow.next { right: 8px; }
  .slider-dots { bottom: 14px; }
  .dot { width: 10px; height: 10px; }
  .section { padding: 3rem 0; }
  .page-hero { padding: calc(var(--header-h) + 1rem) 0 1.5rem; }
  .btn { padding: 0.7rem 1.3rem; font-size: 0.9rem; }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .stat-value { font-size: 2.1rem; }
  .card-grid, .testimony-grid, .values-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
  .list-item { padding: 1rem; gap: 0.9rem; }
  .list-date { padding: 0.45rem 0.6rem; }
  .date-day { font-size: 1.2rem; }
  /* Mobile footer: stacked, centred, compact */
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; padding: 2.5rem 0 1.5rem; }
  .footer-logo { height: 150px; margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-contact li { justify-content: center; }
  .auth-card { padding: 2rem 1.4rem; }
  .action-strip { padding: 1.4rem 0; }
  .founder-card { padding: 2rem 1.3rem; }
  .vm-card, .form-card, .info-card { padding: 1.6rem; }
  .mosaic-item { aspect-ratio: 4 / 3; }
  .gallery-tabs { flex-wrap: wrap; }
  .to-top { bottom: 104px; right: 16px; width: 44px; height: 44px; }
  .to-top svg { width: 24px; height: 24px; }
}

.ajax-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(160deg, var(--green-bg), var(--green-3));
  color: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: min(440px, 92vw);
  text-align: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ajax-popup.error {
  border-color: #e05555;
}
.ajax-popup.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

/* ============================================================
   BUTTON POLISH
   One shared gold treatment so every primary button reads the
   same across pages, plus readable placeholders.
   ============================================================ */
.btn-gold, .btn-primary,
.action-strip .btn-gold, .action-strip .btn-primary {
  background: var(--btn-green);
  color: var(--green);
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(210, 162, 78, 0.25);
}
.btn-gold:hover, .btn-primary:hover,
.action-strip .btn-gold:hover, .action-strip .btn-primary:hover {
  background: var(--btn-green-hover);
  color: var(--green);
  box-shadow: 0 14px 30px rgba(210, 162, 78, 0.32);
}
.btn-gold:active, .btn-primary:active,
.action-strip .btn-gold:active, .action-strip .btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(210, 162, 78, 0.25);
}

/* Readable placeholder text everywhere on the dark theme */
.input::placeholder,
.form-stack p .input::placeholder,
.contact-page .input::placeholder {
  color: rgba(236, 230, 217, 0.62);
}
.auth-page .input::placeholder,
.section-green .form-stack .input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

/* --- Registration choice cards ----------------------------- */
.auth-card--form { width: min(900px, 100%); text-align: left; }
.register-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.6rem 0 1.2rem; }
.register-option {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.6rem 1.4rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(210, 162, 78, 0.3);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.register-option:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.register-option-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: rgba(210, 162, 78, 0.16); color: var(--gold);
}
.register-option-icon svg { width: 24px; height: 24px; fill: currentColor; }
.register-option h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--white); }
.register-option p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; line-height: 1.5; }
.register-option-cta { margin-top: 0.4rem; font-weight: 600; color: var(--gold); }
.register-option--church { border-color: rgba(155, 92, 255, 0.5); }
.register-option--church .register-option-icon { background: rgba(119, 0, 246, 0.22); color: #cbb0ff; }
.register-option--church .register-option-cta { color: #cbb0ff; }

/* --- Church membership form -------------------------------- */
.church-form { text-align: left; }
.form-section { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(210, 162, 78, 0.2); }
.form-section-title { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; margin-bottom: 0.2rem; }
.form-section-note { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; margin-bottom: 0.9rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-grid .form-field--multi,
.form-grid .form-field--check,
.form-grid .form-field--choice,
.form-grid .form-field:has(textarea) { grid-column: 1 / -1; }
.form-field--multi .field-label { display: block; font-weight: 500; color: var(--white); margin-bottom: 0.45rem; font-size: 0.92rem; }
.optional { color: rgba(255, 255, 255, 0.5); font-weight: 400; font-size: 0.82rem; }
/* Radio and multi-checkbox groups. The question (legend) always sits above
   the options, and every option is a pill that turns gold when selected.
   Django renders both widgets as a <div> holding one <div> per option (not a
   <ul>), so the rules target that structure directly. */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend {
  padding: 0; margin-bottom: 0.7rem;
  font-weight: 500; color: var(--white); font-size: 0.92rem;
}
.choice-group > div {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.choice-group > div > div { margin: 0; padding: 0; }
.choice-group > div label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.95rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; font-weight: 400;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.choice-group > div label:hover { background: rgba(255, 255, 255, 0.1); }
.choice-group > div label:has(> input:checked) {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green); font-weight: 600;
}
.choice-group > div input { accent-color: var(--gold); width: 15px; height: 15px; flex-shrink: 0; margin: 0; }

/* Single yes/no checkboxes: the tick and its label share one line with a
   comfortable gap. The .form-field prefix outranks the generic
   `.form-field label` rule, which would otherwise force display:block and
   leave the text touching the box. */
.form-field .check-line {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 0; color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem; font-weight: 400; cursor: pointer;
}
.form-field .check-line input { accent-color: var(--gold); width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.form-field .check-line span { line-height: 1.4; }
.form-field--check { padding: 0.1rem 0; }
.form-field--check + .form-field--check { margin-top: 0.1rem; }
.church-form .form-field[hidden] { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.6rem; }
.form-errors { background: rgba(160, 48, 48, 0.22); border: 1px solid rgba(255, 120, 120, 0.5); color: #ffd0d0; border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }

@media (max-width: 720px) {
  .register-options { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FLAT SURFACES + FORM POLISH
   Outline borders (the thin lines around boxes) are removed
   across strips, cards, nav pills and form fields. Depth comes
   from fills and soft shadows instead. Labels sit inside the
   fields as placeholders, so hidden labels keep them accessible.
   ============================================================ */

/* Accessible, visually hidden labels + required marker */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.req { color: var(--gold); font-weight: 600; }

/* --- Outline borders removed --- */
.site-header { border-bottom: 0; }
.nav-dropdown-menu { border: 0; }
.nav-subtab,
.nav-subtab:hover,
.nav-subtab.active { border: 0; }
.slider-arrow { border: 0; }
.share-btn { border: 0; }
.gallery-tab { border: 0; background: rgba(210, 162, 78, 0.12); }
.auth-card { border: 0; }
.action-chip { border: 0; }
.notice { border: 0; }
.culture-box { border: 0; }
.form-section { border-top: 0; }
.form-errors { border: 0; }
.contact-page .method-card,
.contact-page .form-card,
.contact-page .info-card { border: 0; }
.flash-item { border: 0; }
.ajax-popup { border: 0; }
.footer-social a { border: 0; }
.input,
.section-green .form-stack .input,
.auth-page .input,
.contact-page .input { border-color: transparent; }

/* --- Registration choice: one compact card, two clean rows --- */
.auth-card--choice {
  width: min(440px, 100%);
  padding: 2.1rem 1.9rem;
}
.auth-card--choice .auth-logo { height: 74px; margin-bottom: 0.9rem; }
.auth-card--choice .auth-title { font-size: 1.55rem; }
.auth-card--choice .auth-sub { margin: 0.25rem 0 1.1rem; font-size: 0.93rem; }
.auth-card--choice .auth-foot { margin-top: 1rem; font-size: 0.85rem; }

.register-options {
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 0.5rem;
  margin: 1.1rem 0 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.register-option {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: transparent;
  border: 0;
}
.register-option:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.register-option-icon { width: 40px; height: 40px; border-radius: 11px; }
.register-option-icon svg { width: 20px; height: 20px; }
.register-option-text {
  flex: 1;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--white);
}
.register-option-cta { margin-top: 0; font-size: 0.86rem; }
.register-option--church { border: 0; }

/* --- Dropdowns: keep the option list readable on dark surfaces --- */
.input { color-scheme: dark; }
select.input option,
select.input optgroup {
  background-color: #241f35;
  color: #ffffff;
}
select.input:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d2a24e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  background-size: 15px 15px;
  padding-right: 2.8rem;
}
select.input[multiple] {
  padding: 0.4rem;
  min-height: 152px;
}
select.input[multiple] option {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  margin-bottom: 2px;
}
select.input[multiple] option:checked {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)) !important;
  color: var(--green) !important;
}

/* ============================================================
   PREMIUM CHURCH MEMBERSHIP FORM
   A solid elevated panel, numbered section badges and clean
   field controls. No outline borders, depth comes from fills
   and shadows.
   ============================================================ */
.auth-card--form {
  width: min(920px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: left;
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(210, 162, 78, 0.10), transparent 42%),
    linear-gradient(180deg, #241f35 0%, #1c1827 100%);
  border: 0;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.auth-card--form::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(260px, 62%);
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.auth-card--form .auth-logo { height: 66px; margin-bottom: 0.5rem; }
.auth-card--form .auth-title { font-size: 1.75rem; letter-spacing: 0.015em; }

/* Section headers with an automatic number badge */
.church-form { counter-reset: church-section; }
.church-form .form-section {
  margin-top: 2rem;
  padding-top: 0;
  border-top: 0;
  counter-increment: church-section;
}
.church-form .form-section:first-of-type { margin-top: 1rem; }
.church-form .form-section-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 1.05rem;
}
.church-form .form-section-title::before {
  content: counter(church-section, decimal-leading-zero);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 18px rgba(210, 162, 78, 0.26);
}

/* Field grid + controls */
.church-form .form-grid { gap: 1.05rem 1.1rem; }
.church-form .input {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 1.05rem;
  border: 0;
  border-radius: 13px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.96rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.church-form textarea.input { min-height: 96px; line-height: 1.55; }
.church-form .input::placeholder { color: rgba(255, 255, 255, 0.42); }
.church-form .input:hover { background-color: rgba(255, 255, 255, 0.075); }
.church-form .input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(210, 162, 78, 0.30);
}
.church-form .form-help { color: rgba(255, 255, 255, 0.6); }

/* Actions */
.church-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.church-form .form-actions .btn {
  min-height: 50px;
  padding: 0.85rem 1.7rem;
  border-radius: 13px;
}
.church-form .form-actions .btn-gold { flex: 1 1 240px; }

/* ============================================================
   Site backdrop
   A fixed velvet backdrop shared by every page. It lives on a
   fixed pseudo-element rather than background-attachment so it
   behaves on iOS Safari, with a light veil for text contrast.
   ============================================================ */
html {
  background-color: var(--base);
}

body {
  background-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* New backdrop artwork is mid-toned (median luminance ~37/255), so unlike the
     old velvet it needs to be veiled rather than lifted — a dark base shows
     through and keeps text contrast while the scene reads on screen. */
  background-color: #060410;
  background-image: url("../images/site-bg3.0b539cfb461d.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(1.02) saturate(1.05);
  opacity: 0.42;
  pointer-events: none;
}

/* Main (home) page only: swap in the supplied background image. */
body.page-home::before {
  background-image: url("../images/site-bg-main.6e6ea3de31c3.jpg");
}

/* Let the backdrop continue behind the alternating sections and the
   page heroes rather than stopping at a hard edge. */
.section-tint {
  background: rgba(12, 9, 27, 0.72);
}

.section-green {
  background: linear-gradient(160deg, rgba(12, 9, 27, 0.86), rgba(12, 9, 27, 0.6));
}

.page-hero {
  background: linear-gradient(160deg, rgba(12, 9, 27, 0.78), rgba(12, 9, 27, 0.38));
}


/* ---------- Signed-in account menu (public header) ---------- */
.nav-account { position: relative; }
.nav-account > summary { list-style: none; }
.nav-account > summary::-webkit-details-marker { display: none; }
.nav-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem 0.25rem 0.3rem;
  border: 1px solid rgba(247, 245, 238, 0.28);
  border-radius: 999px;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-account-toggle:hover,
.nav-account[open] .nav-account-toggle {
  border-color: var(--gold);
  background: rgba(210, 162, 78, 0.12);
}
.nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  object-fit: cover;
}
.nav-avatar-img { display: block; }
.nav-avatar-lg { width: 42px; height: 42px; font-size: 0.85rem; }
.nav-account-name {
  max-width: 9rem;
  overflow: hidden;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nav-account-chevron {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.nav-account[open] .nav-account-chevron { transform: rotate(180deg); }
.nav-account-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 130;
  width: min(260px, calc(100vw - 2rem));
  padding: 0.4rem;
  border: 1px solid rgba(210, 162, 78, 0.35);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(0, 31, 28, 0.22);
  color: var(--ink);
}
.nav-account-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(0, 47, 43, 0.1);
  margin-bottom: 0.3rem;
}
.nav-account-id { display: flex; min-width: 0; flex-direction: column; }
.nav-account-id strong {
  overflow: hidden;
  color: var(--green);
  font-size: 0.86rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-id small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.nav-account-link:hover { background: rgba(210, 162, 78, 0.16); color: var(--green); }
.nav-account-button { color: #9b3232; }
.nav-account-button:hover { background: rgba(155, 50, 50, 0.1); color: #9b3232; }
.nav-account-logout { margin: 0.3rem 0 0; border-top: 1px solid rgba(0, 47, 43, 0.1); padding-top: 0.3rem; }
.nav-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
}
.bnav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--green);
  font-size: 0.58rem;
  font-weight: 700;
}
@media (max-width: 960px) {
  .nav-account-name { display: none; }
}
