/* =========================================================
   RCCG City of David, Utako — Public Site Stylesheet
   A clean, editorial, whitespace-forward design.
   ========================================================= */

:root {
  --color-ink: #1c2333;
  --color-ink-soft: #4a5163;
  --color-paper: #fbf9f4;
  --color-paper-alt: #f3efe4;
  --color-line: #e7e2d6;
  --color-accent: #c62a20;
  --color-accent-dark: #9c2018;
  --color-accent-light: #e2483b;
  --color-green: #078c40;
  --color-navy: #241a5c;
  --color-navy-deep: #180f45;
  --color-navy-light: #382a7a;
  --color-gold: #c9a24d;
  --color-gold-soft: #e4c988;
  --color-gold-deep: #9c7a2e;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 12px 32px -18px rgba(24, 15, 69, 0.32);
  --shadow-lift: 0 24px 60px -24px rgba(24, 15, 69, 0.4);
  --shadow-gold: 0 14px 34px -16px rgba(156, 122, 46, 0.55);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  background-image: radial-gradient(circle at 12% 0%, rgba(36, 26, 92, 0.045), transparent 40%),
                     radial-gradient(circle at 100% 30%, rgba(198, 42, 32, 0.035), transparent 45%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-gold-soft); color: var(--color-navy-deep); }

:focus-visible { outline: 2px solid var(--color-gold-deep); outline-offset: 2px; }

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

a { color: var(--color-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-soft));
  border-radius: 2px;
}
.hero .eyebrow::before,
.hero-slide-content .eyebrow::before {
  background: linear-gradient(90deg, var(--color-gold-soft), rgba(255, 255, 255, 0.25));
}

.lede {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 60ch;
}

.pre-line { white-space: pre-line; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), background 0.35s ease, border-color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(155deg, var(--color-navy-light) 0%, var(--color-navy) 55%, var(--color-navy-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(24, 15, 69, 0.55);
}
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background: var(--color-navy); color: #fff; box-shadow: var(--shadow-soft); }
.btn-gold {
  background: linear-gradient(155deg, var(--color-accent-light) 0%, var(--color-accent) 55%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -14px rgba(156, 32, 24, 0.6);
}
.btn-gold:hover { box-shadow: var(--shadow-lift); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ---------- Flash messages ---------- */
.flash {
  margin: 20px 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.flash-success { background: #e7f4ea; color: #1e5c33; border: 1px solid #bfe3c8; }
.flash-error { background: #fbeaea; color: #7c2222; border: 1px solid #f0c3c3; }

/* ---------- Header ---------- */
.topbar {
  background: var(--color-navy);
  color: #dfe4f0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(201, 162, 77, 0.25);
}
.topbar-inner {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 8px 24px;
}

.site-header {
  background: rgba(251, 249, 244, 0.92);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--color-line);
  transition: box-shadow 0.35s var(--ease-premium), background 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 16px 40px -20px rgba(24, 15, 69, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
  transition: padding 0.3s ease;
}
.site-header.is-scrolled .nav-inner { padding: 9px 24px; }
.site-header.is-scrolled .brand-logo { height: 34px; }
.site-header.is-scrolled .brand-mark { width: 34px; height: 34px; font-size: 0.8rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--color-navy-light), var(--color-navy) 60%, var(--color-navy-deep));
  box-shadow: 0 4px 14px -6px rgba(24, 15, 69, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
}
.brand-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  transition: height 0.3s ease;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--color-navy);
  line-height: 1.2;
}
.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 14px;
}

.primary-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-link {
  color: var(--color-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-link:hover { background: var(--color-paper-alt); text-decoration: none; }
.nav-link.is-active {
  color: var(--color-navy);
  background: var(--color-paper-alt);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-gold-deep);
}

/* ---------- Nav dropdown ("Community": Events, Announcements, House Fellowship) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.nav-caret { font-size: 0.7em; transition: transform 0.25s var(--ease-premium); }
.nav-dropdown.is-active > .nav-dropdown-toggle {
  color: var(--color-navy);
  background: var(--color-paper-alt);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-gold-deep);
}
.nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (min-width: 881px) {
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease-premium), transform 0.25s var(--ease-premium), visibility 0.25s;
    z-index: 50;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown:hover .nav-caret,
  .nav-dropdown:focus-within .nav-caret,
  .nav-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
  }
  .nav-dropdown-menu .nav-link { white-space: nowrap; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--color-navy);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--color-navy) 0%, #3a2a8c 55%, var(--color-navy) 100%);
  color: #fff;
  padding: 120px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(198,42,32,0.22), transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(201,162,77,0.14), transparent 42%),
                     radial-gradient(circle at 50% 100%, rgba(7,140,64,0.12), transparent 40%);
}
.hero.has-photo {
  background-size: cover;
  background-position: center;
}
.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15,10,46,0.94) 0%, rgba(15,10,46,0.86) 30%, rgba(15,10,46,0.55) 62%, rgba(15,10,46,0.4) 100%),
    linear-gradient(180deg, rgba(15,10,46,0.15) 0%, rgba(15,10,46,0.1) 55%, rgba(15,10,46,0.55) 100%);
}
.hero.has-photo::after { display: none; }
.hero-inner { position: relative; max-width: 680px; z-index: 2; }
.hero h1 { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.hero .lede { color: #dfe2f5; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero .eyebrow { color: #f0a99f; }

/* ---------- Hero: rotating slider ---------- */
.hero.has-slider {
  background: var(--color-navy-deep);
  /* In slider mode, every slide's content is position:absolute (so it can
     stack for the crossfade), which takes it out of normal flow — nothing
     is left to give the section its height. Without an explicit minimum
     the section would collapse to just its top/bottom padding. */
  min-height: 640px;
}
@media (max-width: 640px) {
  .hero.has-slider { min-height: 560px; }
}
.hero.has-slider::after { display: none; }
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  display: flex;
  align-items: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active .hero-slide-bg {
  animation: heroKenBurns 9s ease-in-out forwards;
}
/* The darkening overlay lives INSIDE each slide (between the photo and the
   text), not as a section-level ::before — a section-level overlay would
   sit in a different stacking context than this text (which is nested
   inside the absolutely-positioned, opacity-animated .hero-slide) and
   would incorrectly paint on top of the text instead of just the photo. */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(15,10,46,0.94) 0%, rgba(15,10,46,0.86) 30%, rgba(15,10,46,0.55) 62%, rgba(15,10,46,0.4) 100%),
    linear-gradient(180deg, rgba(15,10,46,0.15) 0%, rgba(15,10,46,0.1) 55%, rgba(15,10,46,0.55) 100%);
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}
.hero-slide-content h1 { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.hero-slide-content .lede { color: #dfe2f5; font-size: 1.2rem; }
.hero-slide-content .eyebrow { color: #f0a99f; }
.hero-slide-content .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease-premium);
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.08); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: #fff; transform: scale(1.3); }
@media (max-width: 640px) {
  /* On narrow screens the slide text can run tall enough to sit under the
     arrows; swipe + the dots are enough to navigate, so hide the arrows
     rather than have them overlap the heading/text. */
  .hero-arrow { display: none; }
  .hero-dots { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s linear; }
  .hero-slide.is-active { animation: none; }
}

/* ---------- Announcements / news ticker ---------- */
.news-ticker {
  display: flex;
  align-items: stretch;
  background: var(--color-navy);
  overflow: hidden;
}
.news-ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  white-space: nowrap;
}
.news-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.news-ticker-track {
  display: flex;
  width: max-content;
  animation: news-ticker-scroll 30s linear infinite;
}
.news-ticker:hover .news-ticker-track,
.news-ticker-track:focus-within {
  animation-play-state: paused;
}
.news-ticker-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.news-ticker-item {
  color: #fff;
  font-size: 0.9rem;
  padding: 12px 4px;
  white-space: nowrap;
}
.news-ticker-item:hover { text-decoration: underline; }
.news-ticker-sep {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 16px;
}
@keyframes news-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .news-ticker-label { padding: 10px 14px; font-size: 0.72rem; }
  .news-ticker-item { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track { animation: none; }
  .news-ticker-viewport { overflow-x: auto; }
  .news-ticker-set[aria-hidden="true"] { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section-alt { background: var(--color-paper-alt); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
  display: flex;
  flex-direction: column;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-soft), var(--color-gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-premium);
  z-index: 2;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.card:hover::before { transform: scaleX(1); }
.card-media { aspect-ratio: 4/3; background: var(--color-paper-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media.placeholder { display: flex; align-items: center; justify-content: center; color: var(--color-accent-dark); font-family: var(--font-display); font-size: 1.4rem; }
.card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-meta { font-size: 0.82rem; color: var(--color-accent-dark); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.card-body p { color: var(--color-ink-soft); margin: 0; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Homepage About banner (full-bleed photo + overlay) ---------- */
.about-banner {
  position: relative;
  background: linear-gradient(150deg, var(--color-navy) 0%, #3a2a8c 55%, var(--color-navy) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 110px 0;
  overflow: hidden;
}
.about-banner.has-photo { background-color: var(--color-navy-deep); }
.about-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(15,10,46,0.92) 0%, rgba(15,10,46,0.8) 35%, rgba(15,10,46,0.5) 70%, rgba(15,10,46,0.35) 100%),
    linear-gradient(180deg, rgba(15,10,46,0.2) 0%, rgba(15,10,46,0.1) 50%, rgba(15,10,46,0.5) 100%);
}
.about-banner-inner { position: relative; z-index: 1; max-width: 640px; }
.about-banner-inner h2 { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.about-banner-inner .lede { color: #dfe2f5; }
.about-banner-inner .eyebrow { color: #f0a99f; }
.about-banner-inner .eyebrow::before { background: linear-gradient(90deg, var(--color-gold-soft), rgba(255,255,255,0.25)); }
@media (max-width: 640px) { .about-banner { padding: 76px 0; } }

/* ---------- About / two-column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Pastor's Message split (homepage) ---------- */
.pastor-photo .card-media.placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--color-navy-light), var(--color-navy));
  color: #fff;
  font-size: 3rem;
}
.pastor-message-block { position: relative; }
.pastor-message-block::before {
  content: "\201C";
  position: absolute;
  top: -36px;
  left: -6px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-gold-soft);
  opacity: 0.6;
  pointer-events: none;
}
.pastor-quote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin: 0;
}
@media (max-width: 800px) {
  .pastor-split { grid-template-columns: 1fr; }
  .pastor-message-block::before { top: -26px; font-size: 4.5rem; }
}

.pastor-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  padding: 36px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.pastor-card::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--color-gold-soft);
  opacity: 0.5;
  pointer-events: none;
}
.pastor-card .card-media.placeholder {
  border-radius: 999px;
  width: 96px;
  height: 96px;
  aspect-ratio: auto;
  margin-bottom: 18px;
  background: linear-gradient(155deg, var(--color-navy-light), var(--color-navy));
  color: #fff;
}
.pastor-card .card-media.pastor-avatar {
  border-radius: 999px;
  width: 96px;
  height: 96px;
  aspect-ratio: auto;
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px -8px rgba(24, 15, 69, 0.4);
}
.pastor-card .card-media.pastor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  outline: 1px solid rgba(201, 162, 77, 0.35);
  outline-offset: 8px;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.7s var(--ease-premium);
}
.about-photo:hover img { transform: scale(1.05); }

/* ---------- About "Our Story" editorial drop cap ---------- */
.about-story p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 0.8;
  float: left;
  margin: 8px 10px 0 0;
  color: var(--color-gold-deep);
}

/* ---------- Service Times cards (label + prominent time) ---------- */
.service-card .card-body { gap: 6px; }
.service-time {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-dark);
  margin-top: 2px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-paper-alt);
  position: relative;
  box-shadow: 0 2px 10px -6px rgba(24,15,69,0.2);
  transition: box-shadow 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}
.gallery-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-premium); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .placeholder { display:flex; align-items:center; justify-content:center; height:100%; color: var(--color-accent-dark); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ---------- Lightbox (built by main.js) ---------- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.lightbox-caption { color: #f1f1f6; font-size: 0.95rem; text-align: center; max-width: 640px; }
.lightbox-counter { color: rgba(255,255,255,0.6); font-size: 0.8rem; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ---------- Announcements list ---------- */
.announcement {
  border-left: 3px solid var(--color-accent);
  padding: 20px 26px;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--color-line);
  border-left-width: 3px;
  border-left-color: var(--color-accent);
  margin-bottom: 18px;
  transition: box-shadow 0.3s var(--ease-premium), transform 0.3s var(--ease-premium);
}
.announcement:hover { box-shadow: var(--shadow-soft); transform: translateX(3px); }
.announcement time { font-size: 0.82rem; color: var(--color-ink-soft); }
.announcement-link { margin-top: 6px; }

/* ---------- Magazine (flip-through viewer) ---------- */
.magazine-picker {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.magazine-picker .form-row { gap: 6px; }
.magazine-picker select { min-width: 150px; }
.magazine-download { margin-left: auto; }
@media (max-width: 640px) { .magazine-download { margin-left: 0; } }

.magazine-issue-title { text-align: center; margin-bottom: 24px; }

.magazine-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--color-navy-light) 0%, var(--color-navy-deep) 100%);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.magazine-stage:fullscreen {
  background: var(--color-navy-deep);
  border-radius: 0;
  min-height: 100vh;
}
.magazine-loading,
.magazine-error {
  color: #dfe2f5;
  font-size: 0.95rem;
  text-align: center;
  max-width: 420px;
}
.magazine-error a { color: var(--color-gold-soft); text-decoration: underline; }
.magazine-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(223, 226, 245, 0.25);
  border-top-color: var(--color-gold-soft);
  animation: magazine-spin 0.9s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .magazine-spinner { animation: none; } }
@keyframes magazine-spin { to { transform: rotate(360deg); } }
.magazine-flipbook[hidden] { display: none; }

.magazine-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.magazine-page-indicator {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  text-align: center;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row input,
.form-row textarea,
.form-row select {
  font: inherit;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 162, 77, 0.25);
}
.form-hint { font-size: 0.82rem; color: var(--color-ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(155deg, var(--color-navy-light) 0%, var(--color-navy) 50%, var(--color-navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(201,162,77,0.25), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(198,42,32,0.2), transparent 45%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9d0e2; max-width: 52ch; margin: 0 auto 26px; }

/* ---------- CTA strip (homepage) — same treatment as .cta-band, but
   full-bleed edge to edge instead of a boxed rounded card, with only the
   text/button constrained to the container width. ---------- */
.cta-strip {
  position: relative;
  background: linear-gradient(155deg, var(--color-navy-light) 0%, var(--color-navy) 50%, var(--color-navy-deep) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 84px 0;
  text-align: center;
  overflow: hidden;
}
.cta-strip.has-photo { background-color: var(--color-navy-deep); }
.cta-strip::before {
  /* A heavy tinted layer sits over the photo (when set) so it reads as a
     subtle texture behind the text rather than competing with it — the
     soft gold/red glows on top keep the same premium accent as elsewhere. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(201,162,77,0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(198,42,32,0.18), transparent 45%),
    linear-gradient(155deg, rgba(24,15,69,0.93) 0%, rgba(36,26,92,0.88) 50%, rgba(24,15,69,0.93) 100%);
  pointer-events: none;
}
.cta-strip-inner { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #c9d0e2; max-width: 52ch; margin: 0 auto 26px; }
@media (max-width: 640px) { .cta-strip { padding: 64px 0; } }

/* ---------- Map ---------- */
.map-section {
  line-height: 0;
  background: var(--color-paper-alt);
  border-top: 1px solid var(--color-line);
}
.map-section iframe { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #c9d0e2;
  padding: 64px 0 0;
  margin-top: 40px;
  border-top: 1px solid rgba(201, 162, 77, 0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  margin: 0 0 14px;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-soft), var(--color-gold-deep));
}
.footer-col p, .footer-col a { color: #c9d0e2; font-size: 0.92rem; }
.footer-brand { display: block; margin-bottom: 10px; color: #fff; }
.social-links { display: flex; flex-direction: column; gap: 6px; }
.social-links a { transition: color 0.2s ease; }
.social-links a:hover { color: var(--color-gold-soft); }
.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  text-align: center;
  color: #97a0b8;
}

/* ---------- Page header (interior pages) ---------- */
.page-head {
  position: relative;
  padding: 112px 0 68px;
  background: linear-gradient(150deg, var(--color-navy) 0%, #3a2a8c 55%, var(--color-navy) 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.page-head.has-photo { background-color: var(--color-navy-deep); }
.page-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-soft), var(--color-gold-deep));
}
.page-head::after {
  /* A heavy tinted layer sits over the photo (when set) so it reads as a
     subtle texture behind the title rather than competing with it — same
     treatment as the homepage hero banners and CTA strip. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(198,42,32,0.22), transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(201,162,77,0.15), transparent 42%),
    linear-gradient(150deg, rgba(24,15,69,0.93) 0%, rgba(36,26,92,0.88) 55%, rgba(24,15,69,0.93) 100%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.page-head .lede { color: #dfe2f5; }
.page-head .eyebrow { color: #f0a99f; }
.page-head .eyebrow::before { background: linear-gradient(90deg, var(--color-gold-soft), rgba(255,255,255,0.25)); }
@media (max-width: 640px) { .page-head { padding: 96px 0 56px; } }

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--color-ink-soft);
  background: #fff;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}

/* ---------- Scroll reveal (progressive enhancement, JS-added class) ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-premium), transform 0.8s var(--ease-premium);
}
.will-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
    gap: 2px;
  }
  .primary-nav.is-open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  .nav-link { padding: 12px 14px; border-radius: 8px; }

  /* Dropdown becomes a tap-to-expand accordion inside the mobile menu,
     instead of the hover flyout used on desktop. */
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    display: none;
    padding-left: 14px;
    border-left: 2px solid var(--color-line);
    margin: 2px 0 4px 14px;
  }
  .nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
  .nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
}

/* Below the tablet/phone nav breakpoint, drop the church name next to the
   logo so the header stays uncrowded on small phones — the logo mark and
   menu button alone are enough for the compact header. */
@media (max-width: 560px) {
  .site-header .brand-name { display: none; }
}
