/* Maple Ridge Bible Church — site styles.
   A warm, calm, "lighthouse on a hill" palette: deep evergreen + warm sand. */

:root {
  --green-900: #14282a;
  --green-800: #1d3b34;
  --green-700: #2b5145;
  --green-600: #3a6b58;
  --gold: #c69b4f;
  --gold-dark: #a97f39;
  --sand: #f6f1e7;
  --paper: #fbf9f4;
  --ink: #23282a;
  --muted: #5f6b66;
  --line: #e3dccd;
  --radius: 12px;
  --wrap: 1080px;
  --shadow: 0 8px 28px rgba(20, 40, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--green-800);
  margin: 0 0 .5em;
}

a { color: var(--green-700); }
a:hover { color: var(--gold-dark); }

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #000;
  padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; background: #fff; padding: 2px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .3px; }
.brand-text span { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: #e9efe9; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; display: block;
}
.site-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.site-nav a.active { color: var(--green-900); background: var(--gold); }

.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }
.nav-toggle-label span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 520px; }
  .site-nav ul { flex-direction: column; padding-bottom: 12px; }
  .site-nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  background-size: cover; background-position: center; color: #fff;
}
.hero-inner { padding: 96px 20px; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--gold); margin: 0 0 12px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .35em; }
.lede { font-size: 1.12rem; }
.hero .lede { max-width: 620px; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--gold); color: #1c1200; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; letter-spacing: .02em;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--gold-dark); color: #1c1200; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 20px; }
.section-alt { background: var(--sand); border-radius: var(--radius); }
.section-title { font-size: 1.7rem; text-align: center; margin-bottom: 32px; }
.section-title::after {
  content: ""; display: block; width: 56px; height: 3px; background: var(--gold);
  margin: 12px auto 0; border-radius: 2px;
}
.muted { color: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 3px 0; }

/* ---------- Home cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h2 { font-size: 1.3rem; }
.link-more { display: inline-block; margin-top: 12px; font-weight: 600; text-decoration: none; }

/* ---------- Scripture band ---------- */
.band { background-size: cover; background-position: center; color: #fff; }
.band-inner { padding: 72px 20px; text-align: center; }
.band blockquote {
  margin: 0 auto; max-width: 760px; font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.5;
}
.band cite { display: block; margin-top: 18px; font-size: 1rem; font-style: normal; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Page hero ---------- */
.page-hero { background-size: cover; background-position: center; color: #fff; }
.page-hero .wrap { padding: 68px 20px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 2.8rem); margin: 0; }
.page-hero .lede { margin: 12px 0 0; color: #f2ede1; }

/* ---------- About ---------- */
.beliefs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.belief h3 { font-size: 1.25rem; color: var(--green-700); }
.refs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.refs a {
  background: var(--sand); border: 1px solid var(--line); color: var(--green-700);
  font-size: .78rem; padding: 3px 10px; border-radius: 999px;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.refs a:hover, .refs a:focus {
  background: var(--gold); border-color: var(--gold-dark); color: #1c1200;
}
.pastors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.pastor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pastor h3 { color: var(--green-700); }
.board { columns: 2; column-gap: 40px; list-style: none; padding: 0; max-width: 760px; margin: 0 auto; }
.board li { padding: 6px 0; break-inside: avoid; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px) { .board { columns: 1; } }

/* ---------- Services ---------- */
.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sched-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.sched-card h2 { font-size: 1.25rem; }
.invite { text-align: center; font-family: Georgia, serif; font-size: 1.4rem; color: var(--green-700); margin-top: 40px; }

/* ---------- Missions ---------- */
.missionaries { display: grid; gap: 24px; max-width: 800px; margin: 0 auto; }
.missionary { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 28px; }

/* ---------- History prose ---------- */
.prose { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose p { margin: 0 0 1.2em; }
.prose p:first-of-type::first-letter {
  font-family: Georgia, serif; font-size: 3.4rem; float: left; line-height: .8;
  padding: 6px 10px 0 0; color: var(--gold-dark);
}
.center { text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid .section-title { text-align: left; }
.contact-grid .section-title::after { margin-left: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-list .role { font-weight: 600; color: var(--green-800); }
.contact-address { font-style: normal; font-size: 1.1rem; margin-bottom: 18px; }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 320px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Sermons (YouTube CTA) ---------- */
.youtube-cta {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 32px; box-shadow: var(--shadow);
}
.youtube-cta .yt-icon { display: block; margin: 0 auto 16px; }
.youtube-cta h2 { font-size: 1.6rem; }
.youtube-cta p { max-width: 460px; margin: 0 auto 8px; }
.btn-youtube {
  background: #ff0000; color: #fff; margin-top: 20px; margin-bottom: 8px;
}
.btn-youtube:hover { background: #d90000; color: #fff; }
.yt-note { margin-top: 16px; font-size: .9rem; }

/* ---------- Events ---------- */
.events { display: grid; gap: 24px; max-width: 800px; margin: 0 auto; }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.event-recurring { color: var(--gold-dark); font-weight: 600; margin: 0 0 10px; }
.event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0 0; }
.event-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.event-meta dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #d9e3dd; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 52px; padding-bottom: 20px; }
.footer-heading { color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-verse { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 8px; text-align: center; font-family: Georgia, serif; font-style: italic; color: #cdd8d1; }
.footer-verse cite { font-style: normal; color: var(--gold); }
.footer-legal { padding-top: 8px; padding-bottom: 28px; text-align: center; font-size: .82rem; color: #8aa197; }
.footer-legal p { margin: 4px 0; }
.footer-meta { color: #6f867c; font-variant-numeric: tabular-nums; }
address { font-style: normal; }
