/* ============================================================
   COMMONS TEMPLATE — all theme colors come from CSS custom
   properties set by site.js from CHURCH.theme. Do not hardcode
   brand colors below; use var(--*) only.
   ============================================================ */
:root {
  --primary: #e2703a;
  --primary-dark: #c94f28;
  --accent-soft: #fdeedd;
  --accent-softer: #fff7ec;
  --ink: #33302b;
  --ink-soft: #6b6459;
  --bg: #fffdf9;
  --line: #f0e8da;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); }

/* ---------- photo placeholders (generator swaps for real photos) ---------- */
.ph { position: relative; overflow: hidden; background: linear-gradient(140deg, #f3b183 0%, var(--primary) 45%, #8c4e83 100%); }
.ph::after {
  content: attr(data-label);
  position: absolute; right: 10px; bottom: 8px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ph.alt1 { background: linear-gradient(135deg, #8c4e83, #5b3457); }
.ph.alt2 { background: linear-gradient(135deg, #3a7d6c, #22523f); }
.ph.alt3 { background: linear-gradient(135deg, #e2a03a, #b96b1d); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--ink); color: #fff;
  text-align: center; font-size: 14px; padding: 9px 16px;
}
.announce a { color: #f3b183; font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }

/* ---------- header ---------- */
header.site {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 5%; background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 19px; text-decoration: none;
}
.church-name { font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
nav.main { margin-left: auto; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
nav.main a:hover, nav.main a.current { color: var(--primary-dark); }
nav.main a.cta { background: var(--primary); color: #fff; padding: 10px 22px; border-radius: 999px; }
nav.main a.cta:hover { background: var(--primary-dark); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; font-size: 20px; padding: 4px 12px; cursor: pointer; color: var(--ink); }

/* ---------- hero (home) ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; }
.hero .copy { display: flex; flex-direction: column; justify-content: center; padding: 60px 6% 60px 5%; background: var(--accent-softer); }
.kicker { color: var(--primary-dark); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .copy > p { font-size: 17.5px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 30px; max-width: 460px; }
.hero .ph { min-height: 320px; }
.btnrow { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 999px; display: inline-block; border: none; cursor: pointer; font-family: inherit; }
.btn.solid { background: var(--primary); color: #fff; }
.btn.solid:hover { background: var(--primary-dark); }
.btn.soft { background: var(--accent-soft); color: var(--primary-dark); }
.btn.soft:hover { filter: brightness(.96); }
.btn.light { background: #fff; color: var(--primary-dark); }

/* ---------- highlight strip ---------- */
.strip { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 22px 5%; background: var(--ink); }
.strip .pill { color: #fff; background: rgba(255,255,255,.09); border-radius: 999px; padding: 10px 20px; font-size: 14px; }
.strip .pill b { color: #f3b183; }

/* ---------- generic sections ---------- */
section.block { max-width: 1120px; margin: 0 auto; padding: 76px 5%; }
section.block.tight { padding-top: 40px; }
.head-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
h2.sec { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.head-row a.more { margin-left: auto; color: var(--primary-dark); font-weight: 700; text-decoration: none; font-size: 14.5px; }
.page-head { background: var(--accent-softer); padding: 64px 5% 56px; text-align: center; }
.page-head h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.page-head p { color: var(--ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 4px 22px rgba(0,0,0,.08); transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .ph { height: 160px; }
.card .pad { padding: 22px; }
.card .meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px; }
.card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.card .actions { padding: 0 22px 22px; }

/* ---------- sermon embeds ---------- */
.embed-wrap { position: relative; padding-top: 56.25%; background: #000; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.watch-link { font-weight: 700; font-size: 14px; color: var(--primary-dark); text-decoration: none; }
.watch-link:hover { text-decoration: underline; }

/* ---------- events ---------- */
.evrow { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: 16px; padding: 18px 22px; margin-bottom: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.06); flex-wrap: wrap; }
.date-chip { min-width: 64px; text-align: center; background: var(--accent-soft); border-radius: 12px; padding: 10px 8px; }
.date-chip .d { font-size: 22px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.date-chip .m { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.evrow .info { flex: 1; min-width: 220px; }
.evrow h3 { font-size: 16.5px; font-weight: 700; }
.evrow .where { font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; }
.evrow .desc { font-size: 14px; color: var(--ink-soft); margin-top: 6px; line-height: 1.55; }
.evrow a.go { margin-left: auto; color: var(--primary-dark); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.bg-soft { background: var(--accent-softer); }
.bg-soft-wrap { background: var(--accent-softer); }
.bg-soft-wrap > .inner { max-width: 1120px; margin: 0 auto; padding: 76px 5%; }

/* ---------- give ---------- */
.give-banner { background: linear-gradient(135deg, var(--primary), #b23a55); color: #fff; text-align: center; padding: 76px 5%; }
.give-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.give-banner p { max-width: 540px; margin: 0 auto 30px; line-height: 1.65; color: rgba(255,255,255,.88); }
.fee-note { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 16px; }
.fund { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 4px 22px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 10px; }
.fund h3 { font-size: 20px; font-weight: 800; }
.fund p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; flex: 1; }
.trust-note { text-align: center; color: var(--ink-soft); font-size: 14px; max-width: 620px; margin: 34px auto 0; line-height: 1.7; }

/* ---------- visit / about ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 3px 16px rgba(0,0,0,.06); }
.info-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--primary-dark); }
.info-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.times-band { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 0 auto 8px; }
.time-chip { background: #fff; border-radius: 16px; padding: 18px 34px; text-align: center; box-shadow: 0 3px 16px rgba(0,0,0,.06); }
.time-chip .t { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.time-chip .l { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.prose { max-width: 700px; margin: 0 auto; }
.prose p { font-size: 16.5px; line-height: 1.8; color: var(--ink); margin-bottom: 18px; }
.staff-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.staff { text-align: center; width: 180px; }
.staff .ph { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; }
.staff .n { font-weight: 700; }
.staff .r { font-size: 13.5px; color: var(--ink-soft); }
.map-link { display: block; text-align: center; margin-top: 20px; font-weight: 700; }

/* ---------- contact form ---------- */
form.contact { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
form.contact label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.contact-meta { text-align: center; color: var(--ink-soft); margin-top: 34px; line-height: 2; }
.contact-meta b { color: var(--ink); }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #b3aca0; padding: 44px 5%; display: flex; gap: 40px; flex-wrap: wrap; font-size: 14px; line-height: 2; margin-top: 0; }
footer.site .fn { color: #fff; font-weight: 800; font-size: 17px; }
footer.site a { color: #f3b183; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .col { min-width: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .page-head h1 { font-size: 30px; }
  .cards, .grid2 { grid-template-columns: 1fr; }
  .evrow a.go { margin-left: 0; }
  nav.main {
    display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px;
  }
  nav.main.open { display: flex; }
  .nav-toggle { display: block; }
}
