/* ============ Palette ============ */
:root {
  --moss: #4d6c48;
  --pine: #152b11;
  --ember: #f0832c;
  --canvas: #f3dab2;
  --summit: #d7cd62;
  --sky: #bcd7ea;

  --body-text: #1c1c1c;
  --page-bg: #faf8f3;
  --muted: #6b6b63;

  --bg: #faf8f3;
  --text: var(--body-text);
  --card-bg: var(--canvas);
  --card-text: var(--body-text);
  --nav-bg: var(--moss);
  --nav-text: var(--canvas);
  --muted-text: var(--muted);
  --section-soft: #f1ede2;
  --hairline: rgba(77,108,72,0.22);
}

body.dark-mode {
  --bg: #152b11;
  --text: var(--canvas);
  --card-bg: #1d3a18;
  --card-text: var(--canvas);
  --nav-bg: #0e1d0b;
  --nav-text: var(--canvas);
  --muted-text: #a9b39f;
  --section-soft: #122310;
  --page-bg: var(--pine);
  --body-text: var(--canvas);
  --hairline: rgba(215,205,98,0.22);
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  transition: color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1.1em; }
a { color: inherit; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }
.wrap.narrow { width: min(780px, 92vw); }
.wrap.center { text-align: center; }
.pad { padding: 5.5rem 0; }
.soft { background: var(--section-soft); }

/* ============ Buttons ============ */
.btn-ember {
  display: inline-flex; align-items: center; gap: 0.45em;
  background: var(--ember); color: #fff; border: none;
  border-radius: 999px; padding: 0.85em 1.9em;
  font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(240,131,44,0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240,131,44,0.42); background: #e8761c; }
.btn-ember:active { transform: translateY(0); }
.btn-ember:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
.btn-ember.big { font-size: 1.12rem; padding: 1em 2.4em; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: transparent; color: var(--canvas);
  border: 1.5px solid rgba(243,218,178,0.55);
  border-radius: 999px; padding: 0.8em 1.7em;
  font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { background: rgba(243,218,178,0.12); border-color: var(--canvas); }
.btn-ghost:focus-visible { outline: 3px solid var(--summit); outline-offset: 3px; }

/* ============ Nav ============ */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); color: var(--nav-text);
  box-shadow: 0 2px 14px rgba(21,43,17,0.18);
  transition: color 0.4s ease;
}
.nav-inner {
  width: min(1120px, 94vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: 1.25rem; letter-spacing: 0.2px; white-space: nowrap;
  text-decoration: none; color: var(--nav-text);
}
.brand-acf {
  font-family: "Playfair Display", serif;
  font-weight: 900; font-size: 1.42rem; line-height: 0.9;
  letter-spacing: -0.005em; color: var(--canvas);
  padding: 0 0 2px; border-bottom: 2.5px solid currentColor;
  margin-left: 0.1rem; position: relative; top: 1px;
}
.brand-acf::before {
  content: ""; position: absolute; left: -0.55rem; top: 12%; bottom: 12%;
  width: 1px; background: currentColor; opacity: 0.35;
}
body.dark-mode .brand-acf { color: var(--summit); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: var(--nav-text); opacity: 0.9; padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { opacity: 1; border-bottom-color: var(--summit); }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }

/* ============ Lamp toggle (bigger + lit feel) ============ */
.lamp-btn {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%; width: 54px; height: 54px;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: background 0.4s ease, transform 0.2s ease, box-shadow 0.4s ease;
}
.lamp-btn:hover { transform: scale(1.07); }
.lamp-btn:focus-visible { outline: 3px solid var(--summit); outline-offset: 2px; }
.lamp-svg { width: 33px; height: 33px; display: block; position: relative; z-index: 1; }
.lamp-shade2 { fill: #e8d9bb; transition: fill 0.4s ease; }
.lamp-body { fill: #d6c4a0; transition: fill 0.4s ease; }
.lamp-neck { fill: #c7b288; transition: fill 0.4s ease; }
.lamp-glow { fill: #ffe9b8; opacity: 0; filter: blur(2.4px); }

/* Lamp ON = nighttime: the shade glows warm (no circle ring around the button) */
body.dark-mode .lamp-btn {
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}
body.dark-mode .lamp-glow { opacity: 0.62; }
body.dark-mode .lamp-shade2 { fill: #fcefcb; }
body.dark-mode .lamp-body { fill: #e8d6ad; }
body.dark-mode .lamp-neck { fill: #d8c293; }

/* Scripture ribbon — appears under the header when the lamp is on */
.verse-bar {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
  background: var(--nav-bg); color: var(--canvas);
  text-align: center; overflow: hidden;
  max-height: 0; padding: 0 1rem; opacity: 1;
}
.verse-bar p {
  margin: 0; font-style: italic; font-size: 0.82rem; line-height: 1.4;
  letter-spacing: 0.2px; opacity: 0.92;
}
.verse-bar .ref { font-style: normal; font-weight: 600; color: var(--summit); margin-left: 0.4em; }
body.dark-mode .verse-bar { max-height: 80px; padding: 0.55rem 1rem; border-top: 1px solid rgba(255,255,255,0.08); }
@media (prefers-reduced-motion: reduce) { .verse-bar { transition: none; } }

/* Warm light spilling from the lamp onto the page below the header (night only) */
.lamp-light {
  position: fixed; top: 58px; right: 0;
  width: min(680px, 84vw); height: 210px;
  pointer-events: none; z-index: 90;
  background: radial-gradient(ellipse 60% 100% at 90% 0%,
    rgba(255,202,120,0.5), rgba(255,202,120,0.16) 42%, transparent 72%);
  opacity: 0; transition: opacity 0.7s ease;
}
body.dark-mode .lamp-light { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .lamp-light { transition: none; } }

.menu-toggle { display: none; background: none; border: none; color: var(--nav-text); cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* ============ Hero ============ */
.hero {
  background-color: var(--moss); color: var(--canvas);
  text-align: center; padding: 9.5rem 1rem 9rem;
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(circle at center, rgba(243,218,178,0.09) 1.6px, transparent 1.7px),
    radial-gradient(circle at center, rgba(243,218,178,0.05) 1.6px, transparent 1.7px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 17px;
}
body.dark-mode .hero { background-color: #2c4527; }
.hero-content { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--summit); margin-bottom: 1.3rem;
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); color: var(--canvas); margin-bottom: 0.35em; }
.hero p.sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 44ch; margin: 0 auto 2.2em; opacity: 0.94; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- CSS pine treeline ---- */
.treeline {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 130px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 2vw; z-index: 1; pointer-events: none;
}
.pine {
  --w: 46px; --h: 96px;
  width: var(--w); height: var(--h); flex: 0 0 auto;
  background: #2f4a2b;
  clip-path: polygon(50% 0%, 60% 30%, 55% 30%, 66% 60%, 60% 60%, 72% 92%, 54% 92%, 54% 100%, 46% 100%, 46% 92%, 28% 92%, 40% 60%, 34% 60%, 45% 30%, 40% 30%);
  opacity: 0.5;
}
body.dark-mode .pine { background: #0d1f0a; opacity: 0.85; }
.pine.p1 { --w: 48px; --h: 78px; opacity: 0.35; }
.pine.p2 { --w: 66px; --h: 104px; opacity: 0.55; }
.pine.p3 { --w: 40px; --h: 64px; opacity: 0.3; }
.pine.p4 { --w: 58px; --h: 96px; opacity: 0.5; }
.pine.p5 { --w: 72px; --h: 116px; opacity: 0.6; }
.pine.p6 { --w: 44px; --h: 70px; opacity: 0.32; }
.pine.p7 { --w: 60px; --h: 100px; opacity: 0.52; }
.pine.p8 { --w: 50px; --h: 82px; opacity: 0.4; }
.pine.p9 { --w: 68px; --h: 108px; opacity: 0.57; }
.pine.p10 { --w: 42px; --h: 66px; opacity: 0.3; }
.pine.p11 { --w: 62px; --h: 98px; opacity: 0.5; }
.pine.p12 { --w: 52px; --h: 84px; opacity: 0.42; }

/* ============ Section headings ============ */
section { scroll-margin-top: 84px; }
body.dark-mode section { scroll-margin-top: 124px; }
.section-head { font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--moss); margin-bottom: 0.6em; }
body.dark-mode .section-head { color: var(--summit); }
.section-head.light { color: var(--canvas); }
.lead { font-size: 1.18rem; }
.center .section-head { display: inline-block; }

/* ============ Introduction (photo + text) ============ */
.intro-grid { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center; }
.intro-photo {
  margin: 0; border-radius: 20px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(21,43,17,0.18);
  border: 5px solid var(--canvas);
}
body.dark-mode .intro-photo { border-color: #1d3a18; }
.intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.intro-text h2 { margin-top: 0; }
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .intro-photo { max-width: 280px; }
}

/* ============ ACF building photo (own section, framed) ============ */
.building-section { padding: 4rem 0 0; }
.building-photo {
  margin: 0; display: flex; justify-content: center;
}
.building-photo img {
  display: block; width: auto; max-width: 100%; max-height: 460px;
  border-radius: 14px; border: 1px solid var(--hairline);
  padding: 8px; background: var(--card-bg);
  box-shadow: 0 12px 32px rgba(21,43,17,0.14);
}
@media (max-width: 560px) { .building-photo img { max-height: 360px; } }

/* ============ Newsletter ============ */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.news-card {
  background: var(--card-bg); color: var(--card-text);
  border: 1px solid var(--hairline); border-radius: 16px;
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem;
  box-shadow: 0 10px 28px rgba(21,43,17,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(21,43,17,0.14); }
.news-card .news-month { font-family: "Playfair Display", serif; font-size: 1.35rem; color: var(--pine); }
body.dark-mode .news-card .news-month { color: var(--canvas); }
.news-card .news-meta { font-size: 0.82rem; color: var(--muted-text); margin-bottom: 0.6rem; }
.news-card .btn-ember { align-self: flex-start; margin-top: auto; font-size: 0.92rem; padding: 0.68em 1.4em; }
.news-empty {
  text-align: center; border: 2px dashed var(--hairline); border-radius: 18px;
  padding: 3.2rem 1.5rem; color: var(--muted-text); background: var(--card-bg);
}
.news-empty .news-soon { display: inline-block; background: var(--summit); color: var(--pine); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.6px; text-transform: uppercase; padding: 0.5em 1.2em; border-radius: 999px; margin-top: 0.4rem; }

/* ============ Prayer list ============ */
.prayer-list {
  list-style: none; margin: 1.6rem auto 0; padding: 0;
  max-width: 640px; text-align: left;
  display: flex; flex-direction: column; gap: 1rem;
}
.prayer-list li {
  background: var(--canvas); border-left: 4px solid var(--moss);
  border-radius: 12px; padding: 1.1rem 1.4rem;
  font-size: 1.05rem; line-height: 1.55; color: var(--body-text);
  box-shadow: 0 8px 22px rgba(21,43,17,0.10);
  transition: transform 0.2s ease;
}
.prayer-list li:hover { transform: translateX(4px); }
body.dark-mode .prayer-list li { background: #2c4527; color: var(--canvas); border-left-color: var(--summit); }

/* ============ Ministry cards ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.info-card {
  background: var(--card-bg); color: var(--card-text);
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: 2.1rem 1.9rem;
  box-shadow: 0 10px 30px rgba(21,43,17,0.08);
}
.card-num {
  display: inline-block; font-family: "Playfair Display", serif;
  font-size: 1rem; font-weight: 700; color: var(--ember);
  border: 2px solid var(--ember); border-radius: 50%;
  width: 2.4em; height: 2.4em; line-height: 2.2em; text-align: center;
  margin-bottom: 1rem;
}
.info-card h3 { color: var(--pine); font-size: 1.55rem; margin-bottom: 0.5em; }
body.dark-mode .info-card h3 { color: var(--canvas); }
.info-card p { font-size: 0.99rem; }

/* ============ Services ============ */
.service-list { display: flex; flex-direction: column; gap: 0; }
.service-row {
  display: grid; grid-template-columns: 230px 1fr; gap: 2rem;
  padding: 2.2rem 0; border-top: 1px solid var(--hairline);
}
.service-row:last-child { border-bottom: 1px solid var(--hairline); }
.dot-badge {
  display: inline-block; background: var(--summit); color: var(--pine);
  font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.2rem;
  padding: 0.4em 1em; border-radius: 12px;
}
.service-body p { margin: 0; }

/* ============ Support banner ============ */
.support-banner { background: var(--moss); color: var(--canvas); position: relative; overflow: hidden; }
body.dark-mode .support-banner { background: #2c4527; }
.support-banner > .wrap { position: relative; z-index: 2; }
.support-lead { font-size: 1.18rem; max-width: 60ch; margin: 0 auto 2rem; }

/* subtle CSS mountain range behind the support section */
.mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; pointer-events: none; z-index: 1; }
.mtn { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; }
.mtn-back {
  clip-path: polygon(0% 100%, 0% 62%, 15% 34%, 31% 56%, 50% 24%, 69% 55%, 85% 33%, 100% 58%, 100% 100%);
  background: rgba(243,218,178,0.085);
}
.mtn-front {
  clip-path: polygon(0% 100%, 0% 78%, 21% 50%, 39% 72%, 57% 44%, 78% 70%, 100% 51%, 100% 100%);
  background: rgba(21,43,17,0.16);
}

/* ============ Prayer ============ */
.prayer { background: var(--sky); }
body.dark-mode .prayer { background: #20374a; }
.prayer .emo { font-size: 2.6rem; display: block; margin-bottom: 0.4rem; }
.prayer h2 { color: var(--pine); font-size: clamp(2rem, 4.4vw, 2.9rem); margin-bottom: 0.7rem; }
body.dark-mode .prayer h2 { color: var(--canvas); }
.coming-badge {
  display: inline-block; background: var(--summit); color: var(--pine);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.5em 1.3em; border-radius: 999px;
}

/* ============ Contact ============ */
.contact-list { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.c-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-text); }
.contact-list a { font-size: 1.15rem; font-weight: 600; color: var(--moss); text-decoration: none; }
body.dark-mode .contact-list a { color: var(--summit); }
.contact-list a:hover { text-decoration: underline; }

/* ============ Footer ============ */
footer.site-footer { background: var(--pine); color: var(--canvas); text-align: center; padding: 3.4rem 1rem 3rem; }
footer.site-footer .fname { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; }
footer.site-footer .ftag { opacity: 0.82; margin-bottom: 1.4rem; }
.social-links { display: flex; gap: 0.8rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.social-links a { color: var(--summit); text-decoration: none; font-weight: 500; }
.social-links a:hover { text-decoration: underline; }
.social-links .dot { opacity: 0.5; }
footer.site-footer .copy { font-size: 0.85rem; opacity: 0.7; margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .cards-3 { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.9rem; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--nav-bg); padding: 0.4rem 6vw 1rem;
    box-shadow: 0 12px 24px rgba(21,43,17,0.25);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-links.open { max-height: 360px; padding-top: 0.6rem; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 0.8em 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav-links a:hover { border-bottom-color: rgba(255,255,255,0.12); }
  .menu-toggle { display: block; }
  .treeline { height: 90px; }
}
@media (max-width: 560px) {
  .hero { padding: 8rem 1rem 7rem; }
  .pad { padding: 4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}
