/* =========================================================
   New Life Assembly of God & Retreat Center — Design System
   ========================================================= */

:root {
  /* --- Color palette ---
     Warm cream/neutral is the dominant ground. Gold is the primary brand
     accent (faith, warmth, the cross). Forest green is a supporting
     secondary color only — used sparingly so the site reads as a church
     first, not a nature/retreat brand. */
  --color-forest-900: #1e3323;
  --color-forest-800: #244027;
  --color-forest-700: #2f5233;
  --color-forest-600: #3c6640;
  --color-sage-500: #6e8f68;
  --color-sage-300: #a7c1a0;
  --color-sage-100: #e6eee2;
  --color-gold-800: #8a5c1f;
  --color-gold-700: #a06d1f;
  --color-gold-600: #b6862f;
  --color-gold-500: #c99a3a;
  --color-gold-300: #dfc07a;
  --color-gold-200: #ecd8a8;
  --color-gold-100: #f6ead0;
  --color-cream-50: #faf6ef;
  --color-cream-100: #f4ecdd;
  --color-cream-200: #ece0c9;
  --color-sand-300: #ddcda6;
  --color-ink-900: #24261f;
  --color-ink-700: #4a4c40;
  --color-ink-500: #6f7264;
  --color-white: #ffffff;
  --color-border: rgba(36, 38, 31, 0.1);

  /* --- Typography ---
     Poppins: a warm, confident geometric sans for headlines — friendly and
     contemporary rather than editorial/outdoorsy. Inter carries body copy
     for maximum readability. */
  --font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-900: clamp(2.5rem, 1.9rem + 2.6vw, 4.25rem);
  --fs-800: clamp(2rem, 1.6rem + 1.8vw, 3.15rem);
  --fs-700: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --fs-600: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: 0.875rem;

  /* --- Spacing scale --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* --- Shape / elevation --- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(30, 51, 35, 0.06), 0 1px 1px rgba(30, 51, 35, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(30, 51, 35, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(30, 51, 35, 0.28);

  --content-max: 1200px;
  --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--color-ink-900);
  background: var(--color-cream-50);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-forest-900);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-900); font-weight: 700; }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-600); }
p { margin: 0 0 var(--space-sm); color: var(--color-ink-700); }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-lg); }
}

section { padding-block: var(--space-2xl); }
.section-tight { padding-block: var(--space-xl); }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-800);
  margin-bottom: var(--space-2xs);
}

.lede {
  font-size: var(--fs-500);
  color: var(--color-ink-700);
}

/* Official mission statement — both lines stay one connected unit */
.mission-statement {
  margin: 0 0 var(--space-md);
}
.mission-statement .mission-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-800);
  margin: 0 0 var(--space-2xs);
}
.mission-statement .mission-lines {
  display: flex;
  flex-direction: column;
  gap: 0.12em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-700);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-forest-900);
}
.mission-statement .mission-lines > span {
  display: block;
}
.mission-statement-hero {
  margin-top: var(--space-sm);
  margin-bottom: 0;
}
.mission-statement-hero .mission-lines {
  font-size: var(--fs-600);
  font-weight: 600;
  color: var(--color-forest-800);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-400);
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-gold-500);
  color: var(--color-forest-900);
}
.btn-primary:hover { background: var(--color-gold-600); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-forest-700);
  color: var(--color-forest-700);
}
.btn-outline-dark:hover { background: var(--color-sage-100); }

/* Visible focus states everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-forest-900);
  color: var(--color-white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself,
   because backdrop-filter (like transform/filter) makes an element a
   containing block for its position:fixed descendants. .primary-nav
   (the mobile nav drawer) is fixed and nested inside .site-header, so
   putting backdrop-filter directly on .site-header silently broke its
   off-canvas translateX(100%) math, doubling the page's scroll width. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-forest-900);
  line-height: 1.1;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 56vw);
  object-fit: contain;
}
@media (min-width: 400px) {
  .brand-logo {
    height: 52px;
    max-width: min(240px, 58vw);
  }
}
@media (min-width: 900px) {
  .brand-logo {
    height: 60px;
    max-width: 280px;
  }
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-sage-500);
  margin-top: 2px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.primary-nav {
  position: fixed;
  top: 84px;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(100vw, 100%);
  max-width: 100vw;
  background: var(--color-cream-50);
  padding: var(--space-lg) var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition), visibility var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
  visibility: hidden;
  pointer-events: none;
  z-index: 40;
  -webkit-overflow-scrolling: touch;
}
.primary-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.primary-nav a {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  color: var(--color-forest-900);
  padding: 0.85em 0;
  min-height: 44px;
  border-bottom: 1px solid var(--color-border);
}
.primary-nav .nav-cta { margin-top: var(--space-md); }
.primary-nav .nav-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

/* Desktop nav needs room for the brand lockup + 7 links + CTA on one
   line. Below this width we intentionally show the mobile menu instead
   of letting labels wrap or the row overflow. */
@media (min-width: 1300px) {
  .nav-toggle { display: none; }
  .brand { flex-shrink: 0; }
  .primary-nav {
    position: static;
    inset: auto;
    width: auto;
    max-width: none;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
  }
  .primary-nav ul li { flex-shrink: 0; }
  .primary-nav a {
    font-family: var(--font-body);
    font-size: var(--fs-400);
    font-weight: 600;
    border-bottom: none;
    padding: 0;
    position: relative;
    white-space: nowrap;
  }
  .primary-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--color-gold-500);
    transform: scaleX(0);
    transition: transform var(--transition);
  }
  .primary-nav a:hover::after,
  .primary-nav a:focus-visible::after { transform: scaleX(1); }
  .primary-nav .nav-cta {
    margin-top: 0;
    flex-shrink: 0;
  }
  .primary-nav .nav-cta .btn {
    padding: 0.7em 1.4em;
    white-space: nowrap;
  }
}

body.nav-open { overflow: hidden; }
/* Prevent off-canvas mobile nav from expanding document scroll width */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
}

/* =========================================================
   Hero — warm, light, church-first (not a nature backdrop)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-cream-100) 0%, var(--color-cream-50) 100%);
  color: var(--color-ink-900);
  padding-block: var(--space-2xl) var(--space-xl);
}
.hero-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-2xl); }
}
.hero-inner { max-width: 34rem; }
.hero h1 { color: var(--color-forest-900); }
.hero .lede { color: var(--color-ink-700); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero-facts {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-lg);
}
.hero-fact { display: flex; gap: var(--space-sm); align-items: flex-start; }
.hero-fact svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--color-gold-600); margin-top: 3px; }
.hero-fact h3 { color: var(--color-forest-900); font-size: var(--fs-500); margin-bottom: 0.15em; }
.hero-fact p { color: var(--color-ink-500); margin: 0; font-size: var(--fs-300); }

@media (min-width: 700px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}

/* --- Eyebrow with small cross accent (reinforces "this is a church") --- */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: var(--space-2xs);
}
.eyebrow-row .eyebrow { margin-bottom: 0; min-width: 0; }
.cross-icon { width: 14px; height: 14px; color: var(--color-gold-600); flex-shrink: 0; }

/* =========================================================
   Service invitation strip
   ========================================================= */
.invite-strip {
  background: var(--color-gold-500);
  color: var(--color-forest-900);
  padding-block: var(--space-md);
}
.invite-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
.invite-strip p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  color: var(--color-forest-900);
}

/* =========================================================
   Cards / grids
   ========================================================= */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-sage-100);
  color: var(--color-forest-700);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 24px; height: 24px; }

.step-card { position: relative; }
.step-number {
  font-family: var(--font-display);
  font-size: var(--fs-700);
  color: var(--color-sage-300);
  margin-bottom: var(--space-2xs);
}

/* --- Section variants --- */
.section-alt { background: var(--color-cream-100); }

/* Retreat Center: intentionally lighter/quieter than the church sections
   above it — supporting story, not the lead identity. */
.section-soft { background: var(--color-cream-100); }
.section-compact { padding-block: var(--space-xl); }

.split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  .split.reverse > *:first-child { order: 2; }
}
.split-narrow {
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split-narrow { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-xl); }
}

/* --- Photo placeholder slot ---
   Stands in for real photography. Swap by replacing the element's
   contents with an <img>; keep the aspect-ratio and radius. */
.photo-slot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: var(--slot-ratio, 4 / 3);
  background: var(--color-cream-200);
  border: 1.5px dashed var(--color-sand-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  color: var(--color-ink-500);
  box-shadow: var(--shadow-sm);
}
.photo-slot svg { width: 34px; height: 34px; opacity: 0.6; }
.photo-slot span {
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding-inline: var(--space-md);
}
.photo-slot.photo-slot-hero { --slot-ratio: 5 / 6; }
@media (min-width: 900px) {
  .photo-slot.photo-slot-hero { --slot-ratio: 4 / 5; }
}
.photo-slot.photo-slot-wide { --slot-ratio: 16 / 10; }

/* Filled photo slot: real image replaces placeholder icon/label */
.photo-slot-filled {
  border: none;
  background: var(--color-cream-200);
  box-shadow: var(--shadow-md);
  padding: 0;
}
.photo-slot-filled > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}
@media (max-width: 899px) {
  .photo-slot-hero.photo-slot-filled > img {
    object-position: center 10%;
  }
}

/* --- Compact amenity list (Retreat Center) --- */
.amenity-list {
  list-style: none;
  margin: var(--space-md) 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-300);
  font-weight: 600;
  color: var(--color-forest-800);
}
.amenity-item svg { width: 18px; height: 18px; color: var(--color-sage-500); flex-shrink: 0; }

/* --- Placeholder notice (for unverified content areas) --- */
.placeholder-card {
  border: 1.5px dashed var(--color-sage-500);
  background: var(--color-sage-100);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}
.placeholder-card p { color: var(--color-forest-800); }
.placeholder-card .eyebrow { color: var(--color-forest-700); }

/* =========================================================
   Location / contact
   ========================================================= */
.contact-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.contact-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-list li { display: flex; gap: var(--space-sm); align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-gold-600); margin-top: 2px; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-forest-900);
  color: var(--color-cream-50);
  padding-block: var(--space-2xl) var(--space-lg);
}
.footer-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(250, 246, 239, 0.28);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.site-footer .brand-name { color: var(--color-white); }
.site-footer .brand-sub { color: var(--color-sage-300); }
.site-footer .brand-logo {
  height: 56px;
  max-width: 260px;
  border-radius: var(--radius-sm);
  /* Lighten dark green wordmark for dark footer without redesigning the logo */
  filter: brightness(0) invert(1);
}
.site-footer p {
  color: var(--color-cream-50);
}
.footer-col h3 {
  color: var(--color-white);
  font-size: var(--fs-400);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xs); }
.footer-col li { color: var(--color-cream-100); }
.footer-col a {
  text-decoration: none;
  color: var(--color-cream-50);
}
.footer-col a:hover,
.footer-col a:focus-visible {
  text-decoration: underline;
  color: var(--color-gold-300);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  font-size: var(--fs-300);
  color: var(--color-cream-100);
}
.footer-bottom p {
  margin: 0;
  color: var(--color-cream-100);
}
.footer-credit {
  margin: 0;
  color: var(--color-cream-100);
}
.footer-credit a {
  color: var(--color-cream-50);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--color-gold-300);
}
.social-links { display: flex; gap: var(--space-sm); }
.social-links a {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 246, 239, 0.65);
  color: var(--color-cream-50);
}
.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--color-gold-300);
  color: var(--color-gold-300);
  outline: none;
}
.social-links svg { width: 18px; height: 18px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-800); }
}

/* =========================================================
   Interior page header (About, Beliefs, Retreat Center, etc.)
   ========================================================= */
.page-hero {
  background: linear-gradient(180deg, var(--color-cream-100) 0%, var(--color-cream-50) 100%);
  padding-block: var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.page-hero .lede { max-width: 42rem; }
.breadcrumb {
  font-size: var(--fs-300);
  color: var(--color-ink-500);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--color-forest-800); text-decoration: underline; text-underline-offset: 2px; }

/* --- Real recovered photography (as opposed to .photo-slot placeholders) --- */
.real-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Homepage Our Story photo frame */
.story-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: var(--color-cream-200);
}
.story-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.homepage-retreat-photo > img {
  object-position: center 58%;
}
.homepage-thanksgiving-photo > img {
  object-position: center 40%;
}
.homepage-ministries-photo > img {
  object-position: center 42%;
}
.property-section-photo > img {
  object-position: center 45%;
}
.about-who-photo > img {
  object-position: center 42%;
}
.avatar-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-cream-50);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
}
.photo-note {
  font-size: var(--fs-300);
  color: var(--color-ink-500);
  margin-top: var(--space-2xs);
}

/* --- Pastoral / leadership cards --- */
.person-card { text-align: center; }
.person-card h3 { margin-bottom: 0.15em; }
.person-card .role {
  display: block;
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--color-gold-800);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2xs);
}

/* Matching pastoral photo cards — kept modest due to source resolution */
.pastoral-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  max-width: 34rem;
  margin-inline: auto;
}
.pastoral-photo-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream-200);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.pastoral-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pastoral-photo-1 { object-position: center 28%; }
.pastoral-photo-2 { object-position: center 32%; }
.pastoral-photo-3 { object-position: center 30%; }
@media (max-width: 699px) {
  .pastoral-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    max-width: 22rem;
  }
}

/* --- Statement of Faith list --- */
.faith-list {
  list-style: none;
  counter-reset: faith;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.faith-list li {
  counter-increment: faith;
  display: flex;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.faith-list li:last-child { border-bottom: none; padding-bottom: 0; }
.faith-list li::before {
  content: counter(faith);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-sage-100);
  color: var(--color-forest-800);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-300);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faith-list p { margin: 0; }

/* --- Simple rule/info list (Retreat Center policies, etc.) --- */
.info-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.info-list li { color: var(--color-ink-700); }

/* --- Verification callout: for links/info that need an owner check,
   not missing content --- */
.verify-note {
  border: 1.5px dashed var(--color-gold-500);
  background: var(--color-gold-100);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--fs-300);
  color: var(--color-forest-900);
}
.verify-note strong { color: var(--color-gold-800); }

/* --- Resource / link list (Messages page streaming platforms) --- */
.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.resource-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.resource-item h3 { margin: 0 0 0.15em; }
.resource-item p { margin: 0; font-size: var(--fs-300); }


/* =========================================================
   Retreat Center Use Policy
   ========================================================= */
.policy-steps {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .policy-steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
}
.policy-step {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
}
.policy-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-600);
  color: var(--color-gold-600);
  line-height: 1;
  flex-shrink: 0;
}
.policy-step h3 {
  margin: 0 0 0.25em;
  font-size: var(--fs-500);
}
.policy-step p {
  margin: 0;
  font-size: var(--fs-300);
}
.policy-actions {
  display: grid;
  gap: var(--space-md);
}
@media (min-width: 900px) {
  .policy-actions { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}
.policy-doc-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.policy-doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-gold-100);
  color: var(--color-gold-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.policy-doc-icon svg { width: 26px; height: 26px; }
.policy-doc-copy { flex: 1 1 180px; min-width: 0; }
.policy-doc-copy h3 { margin: 0 0 0.2em; font-size: var(--fs-500); }
.policy-doc-copy p { margin: 0; font-size: var(--fs-300); word-break: break-word; }
.policy-doc-card .btn { flex-shrink: 0; }
.policy-return {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
}
.policy-return p { margin: 0; }
.policy-return .btn { align-self: flex-start; }

/* =========================================================
   Retreat Center photo collage + lightbox
   ========================================================= */
.retreat-gallery-section {
  background: var(--color-cream-50);
}
.retreat-collage {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: 1fr;
}
.retreat-collage-item {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream-200);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  box-shadow: var(--shadow-sm);
}
.retreat-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 280ms ease;
}
.retreat-collage-item:hover img,
.retreat-collage-item:focus-visible img {
  transform: scale(1.03);
}
.retreat-collage-item:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 3px;
}
.retreat-collage-item[data-lightbox-index="1"] img { object-position: center 60%; }
.retreat-collage-item[data-lightbox-index="2"] img { object-position: center 55%; }
.retreat-collage-item[data-lightbox-index="6"] img { object-position: center 40%; }
.retreat-collage-item[data-lightbox-index="7"] img { object-position: center 45%; }

/* Tablet: two columns, hero/wide full-width */
@media (min-width: 700px) {
  .retreat-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .retreat-collage-hero,
  .retreat-collage-wide {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }
}

/* Desktop: editorial mosaic */
@media (min-width: 1024px) {
  .retreat-collage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "hero hero hero hero fire fire"
      "hero hero hero hero lounge lounge"
      "dining dining rec rec kitchen kitchen"
      "gym gym gym gym volley volley"
      "bunk1 bunk1 bunk1 bunk2 bunk2 bunk2";
    gap: var(--space-md);
  }
  .retreat-collage-hero { grid-area: hero; aspect-ratio: auto; height: 100%; min-height: 0; }
  .retreat-collage-item:nth-child(2) { grid-area: fire; }
  .retreat-collage-item:nth-child(3) { grid-area: lounge; }
  .retreat-collage-item:nth-child(4) { grid-area: dining; }
  .retreat-collage-item:nth-child(5) { grid-area: rec; }
  .retreat-collage-item:nth-child(6) { grid-area: kitchen; }
  .retreat-collage-wide { grid-area: gym; aspect-ratio: 16 / 9; }
  .retreat-collage-item:nth-child(8) { grid-area: volley; }
  .retreat-collage-item:nth-child(9) { grid-area: bunk1; }
  .retreat-collage-item:nth-child(10) { grid-area: bunk2; }
}

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 51, 35, 0.82);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-figure {
  margin: 0;
  width: 100%;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--color-cream-100);
}
.lightbox-figure figcaption {
  color: rgba(250, 246, 239, 0.9);
  margin-top: var(--space-sm);
  font-size: var(--fs-300);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(250, 246, 239, 0.92);
  color: var(--color-forest-900);
  cursor: pointer;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  z-index: 2;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}
.lightbox-prev { left: 0.25rem; }
.lightbox-next { right: 0.25rem; }
@media (max-width: 699px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-dialog { padding-inline: 2.5rem; }
}
body.lightbox-open { overflow: hidden; }

/* =========================================================
   Events calendar (year → month → events)
   ========================================================= */
.events-featured-section {
  background: var(--color-cream-50);
}
.events-featured-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .events-featured-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}
.event-feature-card,
.event-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.event-feature-media,
.event-card-media {
  position: relative;
  overflow: hidden;
  background: var(--color-cream-200);
}
.event-feature-media-landscape,
.event-card-media-landscape {
  aspect-ratio: 16 / 11;
}
.event-feature-media-portrait,
.event-card-media-portrait {
  aspect-ratio: 4 / 5;
}
.event-feature-media img,
.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-feature-media-landscape img,
.event-card-media-landscape img {
  object-position: center 40%;
}
.event-feature-media-portrait img,
.event-card-media-portrait img {
  object-position: center 30%;
}
.event-feature-body,
.event-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  flex: 1;
}
.event-feature-body h3,
.event-card-body h4 {
  margin: 0;
  color: var(--color-forest-900);
}
.event-feature-body p,
.event-card-body p {
  margin: 0;
}
.event-feature-body .btn,
.event-card-body .btn {
  margin-top: var(--space-sm);
  align-self: flex-start;
}
.event-date-label {
  margin: 0;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-800);
}

.events-year-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.events-year-head h2 { margin-bottom: 0; }
.events-month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.events-month-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-forest-800);
}
.events-month-nav a:hover {
  background: var(--color-gold-100);
  border-color: var(--color-gold-200);
}

.events-month {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  scroll-margin-top: 6rem;
}
.events-month-header {
  margin-bottom: var(--space-md);
}
.events-month-header h3 {
  margin-bottom: var(--space-2xs);
}
.events-month-header p {
  margin: 0;
  max-width: 40rem;
}

.sunday-schedule-note {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  font-size: var(--fs-300);
  color: var(--color-ink-700);
}
.sunday-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.sunday-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: var(--space-sm);
  align-items: start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.sunday-item:last-child { border-bottom: 0; }
.sunday-item time {
  font-weight: 700;
  color: var(--color-forest-800);
  font-size: var(--fs-300);
}
.sunday-item h4 {
  margin: 0 0 0.15em;
  font-size: var(--fs-400);
  font-family: var(--font-body);
  font-weight: 700;
}
.sunday-item p {
  margin: 0;
  font-size: var(--fs-300);
  color: var(--color-ink-500);
}
@media (max-width: 560px) {
  .sunday-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.event-card-featured {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .event-card-featured {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
  .event-card-featured .event-card-media-portrait {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .event-card-featured .event-card-media-landscape {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.homepage-event-feature {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .homepage-event-feature {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
  }
}
.homepage-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Event detail enrichment (Thanksgiving / Christmas) */
.event-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: var(--color-gold-100);
  border: 1px solid var(--color-gold-200);
  color: var(--color-gold-800);
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.event-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  scroll-margin-top: 6rem;
}
.event-detail-hero {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .event-detail-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
  .event-detail-hero-christmas {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.event-detail-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-cream-200);
  aspect-ratio: 16 / 11;
}
.event-detail-media-portrait {
  aspect-ratio: 4 / 5;
}
.event-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-detail-media:not(.event-detail-media-portrait) img {
  object-position: center 40%;
}
.event-detail-media-portrait img {
  object-position: center 30%;
}
.event-detail-intro h4 {
  margin: 0 0 var(--space-2xs);
}
.event-detail-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .event-detail-grid {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}
.event-copy-block h5 {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-500);
}
.event-copy-block p {
  margin: 0 0 var(--space-md);
}
.scripture-quote {
  margin: 0;
  padding: var(--space-md);
  border-left: 4px solid var(--color-gold-500);
  background: var(--color-cream-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.scripture-quote p {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--fs-500);
  color: var(--color-forest-900);
  line-height: 1.35;
}
.scripture-quote cite {
  font-style: normal;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-ink-500);
}
.registration-callout {
  background: var(--color-forest-900);
  color: var(--color-cream-50);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.registration-label {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-300);
}
/* Override global `p { color: ink-700 }` on dark panels */
.registration-callout p {
  margin: 0 0 var(--space-sm);
  color: var(--color-cream-50);
}
.registration-phone {
  margin: 0 !important;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(250, 246, 239, 0.18);
  color: var(--color-cream-50);
}
.registration-phone-label {
  display: block;
  font-size: var(--fs-300);
  font-weight: 700;
  margin-bottom: 0.2em;
  color: var(--color-cream-100);
}
.registration-phone-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-600);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}
a.registration-phone-value:hover {
  text-decoration: underline;
  color: var(--color-gold-300);
}
.testimony-callout {
  background: linear-gradient(180deg, var(--color-forest-800) 0%, var(--color-forest-900) 100%);
  color: var(--color-cream-50);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}
.testimony-callout .eyebrow {
  color: var(--color-gold-300);
}
.testimony-callout h5 {
  margin: 0 0 var(--space-md);
  color: var(--color-white);
  font-size: var(--fs-600);
}
.testimony-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-bottom: var(--space-md);
}
.testimony-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-gold-300);
}
.testimony-stat-label {
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream-100);
}
/* Override global `p { color: ink-700 }` inherited onto dark testimony copy */
.testimony-callout > p {
  margin: 0 0 var(--space-md);
  max-width: 42rem;
  color: var(--color-cream-50);
}
.scripture-quote-on-dark {
  background: rgba(250, 246, 239, 0.12);
  border-left-color: var(--color-gold-300);
}
.scripture-quote.scripture-quote-on-dark p {
  color: var(--color-white);
}
.scripture-quote.scripture-quote-on-dark cite {
  color: var(--color-cream-100);
}

/* Contact page photo + scripture */
.contact-scripture {
  max-width: 36rem;
  margin: var(--space-md) 0;
}
.contact-intro-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-intro-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
  }
}
.contact-page-photo > img {
  object-position: center 42%;
}

/* Live stream multilingual callout */
.live-stream-card {
  margin-top: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}
.live-stream-copy h3 {
  margin: 0 0 var(--space-2xs);
}
.live-stream-copy p {
  margin: 0 0 var(--space-sm);
}
.live-translation-label {
  margin: var(--space-sm) 0 var(--space-2xs) !important;
  font-size: var(--fs-300);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-800);
}
.live-lang-badges {
  list-style: none;
  margin: 0 0 var(--space-sm);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.live-lang-badges li {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  color: var(--color-forest-800);
  font-size: var(--fs-300);
  font-weight: 700;
}
.live-translation-note {
  margin: 0 !important;
  font-size: var(--fs-300);
  color: var(--color-ink-500);
}
.live-stream-card .btn {
  align-self: flex-start;
}

/* Messages page photography */
.messages-live-grid,
.messages-ondemand-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .messages-live-grid,
  .messages-ondemand-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-2xl);
  }
  .messages-ondemand-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.messages-live-photo,
.messages-ondemand-photo {
  aspect-ratio: 4 / 5;
  max-width: 28rem;
  margin-inline: auto;
  width: 100%;
}
@media (min-width: 900px) {
  .messages-live-photo,
  .messages-ondemand-photo {
    max-width: none;
  }
}
.messages-live-photo > img {
  object-position: center 28%;
}
.messages-ondemand-photo > img {
  object-position: center 35%;
}

/* About page section nav + Statement of Faith accordion */
.about-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-top: var(--space-lg);
}
.about-page-nav a {
  display: inline-flex;
  padding: 0.45em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-forest-800);
  text-decoration: none;
  font-size: var(--fs-300);
  font-weight: 700;
}
.about-page-nav a:hover,
.about-page-nav a:focus-visible {
  background: var(--color-gold-100);
  border-color: var(--color-gold-200);
}
#who-we-are,
#leadership,
#beliefs,
#retreat,
#mission {
  scroll-margin-top: 6rem;
}
.faith-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-top: var(--space-lg);
}
.faith-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.faith-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-forest-900);
}
.faith-item summary::-webkit-details-marker { display: none; }
.faith-item summary::after {
  content: "+";
  float: right;
  color: var(--color-gold-600);
  font-weight: 700;
}
.faith-item[open] summary::after { content: "–"; }
.faith-item summary:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 2px;
}
.faith-item p {
  margin: 0;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-ink-700);
}

/* Mobile polish pass */
@media (max-width: 699px) {
  .site-header .container {
    min-height: 72px;
  }
  .primary-nav {
    top: 72px;
  }

  .btn {
    min-height: 48px;
    padding: 0.85em 1.25em;
  }

  .resource-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  .resource-item .btn {
    width: 100%;
    justify-content: center;
  }

  .homepage-event-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .homepage-event-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .live-lang-badges li {
    min-height: 44px;
    padding: 0.65em 1em;
  }

  .about-page-nav a,
  .events-month-nav a {
    min-height: 44px;
    align-items: center;
  }

  .social-links a {
    width: 44px;
    height: 44px;
  }

  /* Keep portrait message photos from dominating the phone screen */
  .messages-live-photo,
  .messages-ondemand-photo {
    aspect-ratio: 3 / 4;
    max-height: 70vh;
  }

  /* Featured event portrait (Christmas) should not become a tall tower */
  .event-feature-media-portrait {
    aspect-ratio: 4 / 5;
    max-height: 60vh;
  }
  .event-detail-media-portrait {
    aspect-ratio: 3 / 4;
    max-height: 65vh;
  }

  .policy-doc-card .btn,
  .policy-return .btn {
    width: 100%;
    justify-content: center;
  }

  .policy-doc-copy p {
    overflow-wrap: anywhere;
  }

  .faith-item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
  }
  .faith-item summary::after {
    float: none;
    flex-shrink: 0;
  }

  .contact-list a {
    overflow-wrap: anywhere;
  }

  /* Give page CTAs: more comfortable on narrow phones */
  .give-options .btn,
  .card .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    height: 44px;
    max-width: min(200px, 54vw);
  }
  h1, .mission-statement .mission-lines {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }
}

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  z-index: 60;
  right: calc(1.1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 246, 239, 0.35);
  border-radius: 999px;
  background: var(--color-forest-800);
  color: var(--color-cream-50);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease, background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  display: block;
}
.back-to-top:hover {
  background: var(--color-forest-700);
  border-color: var(--color-gold-300);
  color: var(--color-white);
}
.back-to-top:focus-visible {
  outline: 3px solid var(--color-gold-500);
  outline-offset: 3px;
}
.back-to-top:active {
  transform: translateY(1px);
}
body.nav-open .back-to-top,
body.lightbox-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 699px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    right: calc(0.9rem + env(safe-area-inset-right, 0px));
    bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
    transform: none;
  }
  .back-to-top.is-visible {
    transform: none;
  }
}

/* Keep in-page anchors clear of the sticky header */
main [id] {
  scroll-margin-top: 5.75rem;
}

/* Give page */
.give-intro-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .give-intro-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-2xl);
  }
}
.give-hero-photo {
  aspect-ratio: 4 / 5;
  max-width: 28rem;
  width: 100%;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .give-hero-photo {
    max-width: none;
  }
}
.give-hero-photo > img {
  object-position: center 32%;
}
.give-missions {
  max-width: 46rem;
}
.give-missions-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.give-missions-card > p {
  margin: 0 0 var(--space-md);
}
.give-pillars {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}
.give-pillars li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--color-cream-100);
  border: 1px solid var(--color-border);
  color: var(--color-forest-800);
  font-size: var(--fs-300);
  font-weight: 700;
}
@media (max-width: 699px) {
  .give-hero-photo {
    aspect-ratio: 3 / 4;
    max-height: 70vh;
  }
}
