/* ============================================================
   LAMBUTH MEMORIAL CHURCH
   Design system: premium boutique church
   Charcoal / warm white / beige / muted gold
   Serif editorial headlines + clean sans body
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --charcoal:      #1a1917;
  --charcoal-soft: #24221f;
  --ink:           #201e1b;
  --white-warm:    #faf7f1;
  --beige:         #efe8dc;
  --beige-deep:    #e3d9c8;
  --gold:          #b08d49;  /* bright gold: button fills + accents on dark backgrounds */
  --gold-soft:     #c8a86b;  /* light gold: accents on dark backgrounds */
  --gold-ink:      #735c30;  /* deep gold: small gold TEXT on light backgrounds (meets WCAG AA) */
  --text:          #2b2824;
  --text-muted:    #6b645b;
  --text-muted-strong: #5f584f; /* muted text on beige/beige-deep strips (meets WCAG AA) */
  --text-on-dark:  #ece7dd;
  --text-on-dark-muted: #a7a094;
  --line:          rgba(26, 25, 23, 0.12);
  --line-dark:     rgba(236, 231, 221, 0.14);

  /* Type */
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 780px;
  --radius: 4px;
  --header-h: 86px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
}

p { margin: 0 0 var(--space-3); }

/* ---------- Typography scale ---------- */
.display {
  font-size: clamp(2.75rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--space-2);
  display: inline-block;
}
.eyebrow--on-dark { color: var(--gold-soft); }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-muted);
}
.text-muted { color: var(--text-muted); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }

.section--dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white-warm); }
.section--dark .lede,
.section--dark .text-muted { color: var(--text-on-dark-muted); }

.section--beige { background: var(--beige); }

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--gold { background: var(--gold); color: #1a1917; }
.btn--gold:hover { background: var(--gold-soft); }

.btn--dark { background: var(--charcoal); color: var(--white-warm); }
.btn--dark:hover { background: var(--charcoal-soft); }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }

.btn--light {
  background: var(--white-warm);
  color: var(--ink);
  border-color: transparent;
}
.btn--light:hover { background: var(--beige); }

.btn--outline-light {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.btn--outline-light:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.btn-row.center { justify-content: center; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 247, 241, 0.94);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand__logo {
  height: 74px;
  width: auto;
  display: block;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.brand:hover .brand__logo { opacity: 0.85; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--gold); }
.nav .btn { text-transform: uppercase; }
.nav .btn::after { display: none; }

/* Desktop defaults: Contact link is mobile-only; CTA reads "Visit Us" */
.nav__mobile-link { display: none; }
.nav__cta-desktop { display: inline; }
.nav__cta-mobile { display: none; }

/* Primary CTA in the navigation ("Visit Us") */
.nav .btn--dark {
  background: var(--gold);
  color: #1a1917;
  border: 1px solid var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;           /* tighter, more refined than the base 0.14em */
  padding: 0.82rem 2.15rem;         /* a little more horizontal breathing room */
  border-radius: var(--radius);
  box-shadow: 0 2px 12px -5px rgba(176, 141, 73, 0.55);
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
    color 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.nav .btn--dark:hover {
  background: var(--charcoal);       /* elegant gold -> charcoal invert */
  color: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px -12px rgba(26, 25, 23, 0.6);
}
.nav .btn--dark:active {
  transform: translateY(0) scale(0.99);
}
/* Keep it legible on the Contact page, where it also carries .is-active */
.nav .btn--dark.is-active { color: #1a1917; }
.nav .btn--dark.is-active:hover { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--text-on-dark);
  overflow: hidden;
}
/* Background layer: solid color today, drop-in photo or video later.
   To use a photo:  <div class="hero__media"><img src="assets/hero.jpg" alt="" /></div>
   To use a video:  <div class="hero__media"><video autoplay muted loop playsinline poster="assets/hero.jpg"><source src="assets/hero.mp4" type="video/mp4" /></video></div>
   No other changes needed — the overlay below keeps text readable over anything. */
.hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(176,141,73,0.18), transparent 60%),
    linear-gradient(180deg, #201e1b 0%, #17110c 100%);
}
.hero__media img,
.hero__media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Dark overlay keeps the (left-aligned) hero text readable over any background */
.hero__overlay {
  position: absolute;
  inset: 0;
  /* Soft charcoal gradient: darker on the left (behind the text) so copy stays
     highly readable, lighter on the right so the church photo shows through. */
  background:
    linear-gradient(90deg, rgba(20,18,15,0.80) 0%, rgba(20,18,15,0.42) 52%, rgba(20,18,15,0.10) 100%),
    linear-gradient(180deg, rgba(20,18,15,0.30) 0%, rgba(20,18,15,0.60) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  /* Left-aligned with intentional, luxurious breathing room from the edge */
  padding: clamp(5rem, 16vh, 11rem)
           var(--space-3)
           clamp(4rem, 12vh, 8rem)
           clamp(1.5rem, 7vw, 8rem);
}
.hero__title { color: var(--white-warm); margin-bottom: var(--space-3); }
.hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--gold-soft);
  margin-bottom: var(--space-4);
}
.hero__lede { max-width: 46ch; color: var(--text-on-dark-muted); }

/* ---------- Info bar ---------- */
.infobar {
  background: var(--beige-deep);
  border-bottom: 1px solid var(--line);
}
.infobar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-4) 0;
}
.infobar__item { }
.infobar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.35rem;
}
.infobar__value {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--ink);
  line-height: 1.2;
}
.infobar__value small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted-strong);
  margin-top: 0.2rem;
}

/* ---------- Generic grids ---------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(26,25,23,0.45);
}
.card__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-2);
}
/* On dark cards, keep the lighter gold for legibility */
.card--dark .card__kicker { color: var(--gold-soft); }
.card--dark {
  background: var(--charcoal-soft);
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.card--dark h3 { color: var(--white-warm); }
/* Warm, static info card (no hover lift) — used for "What to Expect". */
.card--soft {
  background: var(--beige);
  border-color: var(--line);
}
.card--soft:hover {
  transform: none;
  box-shadow: none;
}

/* ---------- Service rows (from main.js) ---------- */
.services {
  border-top: 1px solid var(--line);
}
.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.service-row__name {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink);
}
.service-row__meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  text-align: right;
}
.service-row__day {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-row__time {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-ink);
  min-width: 5.5ch;
}
.section--dark .services { border-color: var(--line-dark); }
.section--dark .service-row { border-color: var(--line-dark); }
.section--dark .service-row__name { color: var(--white-warm); }
.section--dark .service-row__day { color: var(--text-on-dark-muted); }
/* On dark sections, keep the lighter gold for the time */
.section--dark .service-row__time { color: var(--gold-soft); }

/* ---------- Media / image blocks ---------- */
.media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-deep);
  aspect-ratio: 4 / 5;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 10; }

/* Placeholder tile shown until real photos are added */
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  min-height: 260px;
  background:
    repeating-linear-gradient(45deg, #e7ddcc 0 14px, #e2d6c2 14px 28px);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-3);
}
.photo-slot__icon {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
}
.photo-slot small { font-size: 0.8rem; letter-spacing: 0.03em; }

/* ---------- Video / livestream ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-placeholder {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background: var(--charcoal-soft);
}
.video-placeholder__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.video-placeholder__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white-warm);
  margin: var(--space-2) 0 var(--space-1);
}
.video-placeholder__text {
  color: var(--text-on-dark-muted);
  max-width: 42ch;
  margin: 0 auto var(--space-3);
}

/* Empty livestream area, shaped like the real 16:9 player */
.video-frame--empty {
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(176,141,73,0.14), transparent 60%),
    var(--charcoal-soft);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.video-empty { padding: clamp(1.5rem, 5vw, 3rem); max-width: 46ch; }
.video-empty .video-placeholder__text { margin-bottom: 0; }

/* "Watch on Facebook" backup shown below the player (never the main action) */
.watch-backup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.watch-backup__label { font-size: 0.9rem; color: var(--text-on-dark-muted); }
.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.75rem; }
.btn--lg { padding: 1.15rem 2.4rem; font-size: 0.9rem; }

/* ---------- Give / donation widget ---------- */
.give-card {
  background: var(--white-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 24px 60px -40px rgba(26, 25, 23, 0.4);
}

/* Frequency segmented control */
.give-freq {
  display: flex;
  gap: 0.35rem;
  width: fit-content;
  margin: 0 auto var(--space-4);
  padding: 0.35rem;
  background: var(--beige);
  border-radius: 999px;
}
.give-freq__btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.give-freq__btn.is-selected {
  background: var(--white-warm);
  color: var(--ink);
  box-shadow: 0 2px 8px -3px rgba(26, 25, 23, 0.3);
}

/* Suggested amounts */
.give-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.give-amt {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.15s var(--ease);
}
.give-amt:hover { border-color: var(--gold); transform: translateY(-1px); }
.give-amt.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1917;
}
.give-amt--wide {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Custom amount field */
.give-custom { margin-top: var(--space-3); }
.give-custom__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.give-custom__field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-warm);
  overflow: hidden;
}
.give-custom__field:focus-within { border-color: var(--gold); }
.give-custom__prefix {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 0 0.5rem 0 1rem;
}
.give-custom__field input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  padding: 0.85rem 1rem 0.85rem 0.25rem;
  color: var(--text);
}
.give-custom__field input:focus { outline: none; }

/* Action */
.give-action { margin-top: var(--space-4); text-align: center; }
.give-action .btn--lg { width: 100%; }
.give-summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-2) auto 0;
}
.give-monthly-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0.4rem auto 0;
}
.give-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin: var(--space-3) auto 0;
}
.give-setup {
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(176, 141, 73, 0.10);
  border: 1px solid rgba(176, 141, 73, 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  max-width: 48ch;
  margin: 0 auto;
}
.give-setup a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 520px) {
  .give-amounts { grid-template-columns: repeat(2, 1fr); }
  .give-freq { width: 100%; }
  .give-freq__btn { flex: 1; text-align: center; }
}

/* Tappable church address (opens the right maps app per device) */
.addr-link { cursor: pointer; transition: color 0.2s var(--ease); }
.addr-link:hover,
.addr-link:focus-visible { color: var(--gold); outline: none; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Map ---------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Quote / verse ---------- */
.pull {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  font-style: italic;
  color: var(--ink);
  max-width: 24ch;
}
.section--dark .pull { color: var(--white-warm); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white-warm);
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 140px; resize: vertical; }

/* Contact-form success / error message */
.form__status {
  margin-top: var(--space-3);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}
.form__status--success {
  border-color: rgba(176, 141, 73, 0.5);
  background: rgba(176, 141, 73, 0.10);
  color: var(--ink);
}
.form__status--error {
  border-color: rgba(160, 60, 50, 0.4);
  background: rgba(160, 60, 50, 0.08);
  color: #7a2e26;
}
.field--optional label::after {
  content: " (optional)";
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* Checkbox (e.g. prayer request) */
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}
.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex: 0 0 auto;
}
.form__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.form__hint a { color: var(--gold-ink); }

/* Pastor section (About page) */
.pastor__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-deep);
  border: 1px solid var(--line);
}
.pastor__portrait img { width: 100%; height: 100%; object-fit: cover; }
.pastor__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 0.25rem;
}
.pastor__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: var(--space-3);
}
.pastor__sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--text-on-dark-muted);
  padding: var(--space-6) 0 var(--space-4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white-warm);
  margin-bottom: var(--space-2);
}
.footer__brand span { color: var(--gold); }
.footer__umc {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: -0.4rem 0 var(--space-2);
}
.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: var(--space-2);
}
.footer a { color: var(--text-on-dark); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--gold-soft); }
.footer__links { display: grid; gap: 0.6rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-3);
  font-size: 0.85rem;
}

/* ---------- Skip to content (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.1rem;
  background: var(--charcoal);
  color: var(--white-warm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -12px rgba(26, 25, 23, 0.6);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: var(--space-2);
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
/* Reveal animations apply ONLY when JS is active (html.js). Without JavaScript,
   nothing is hidden, so all content is visible immediately. Above-the-fold hero
   content has no [data-reveal] at all, so it always paints instantly. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Content is fully visible; no fade/slide, and no hover-lift transforms */
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card:hover,
  .btn:hover,
  .give-amt:hover,
  .nav .btn--dark:hover { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .brand__logo { height: 58px; }
  /* IMPORTANT: backdrop-filter on the header makes it the containing block for
     position:fixed children, which would shrink the menu overlay to the header.
     Remove it on mobile so the overlay anchors to the full viewport. */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white-warm); }
  /* Keep the logo + hamburger clickable ABOVE the full-screen menu overlay */
  .brand { position: relative; z-index: 210; }
  .nav-toggle { display: flex; position: relative; z-index: 210; }

  /* Full-screen, solid, opaque mobile menu overlay */
  .nav {
    position: fixed;
    inset: 0;                     /* cover 100% of the viewport */
    z-index: 200;                 /* above header (100), hero, and all content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    background: var(--white-warm); /* solid warm ivory — no transparency */
    padding: calc(var(--header-h) + var(--space-4)) var(--space-4) var(--space-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a {
    font-size: 1.6rem;
    font-family: var(--font-serif);
    color: var(--ink);            /* dark charcoal, clearly readable */
    text-align: center;
  }
  .nav a::after { display: none; } /* no underline animation in the overlay */
  .nav .btn { font-family: var(--font-sans); font-size: 0.95rem; }

  /* Mobile-only Contact link (hidden on desktop) */
  .nav__mobile-link { display: block; }
  /* CTA label swap: "Plan Your Visit" on mobile */
  .nav__cta-desktop { display: none; }
  .nav__cta-mobile { display: inline; }

  .split { grid-template-columns: 1fr; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .infobar__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .service-row { flex-direction: column; gap: 0.35rem; }
  .service-row__meta { text-align: left; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
}
