/* St. Bonaventure Parish — restyle demo
   Palette + type pulled from the parish's existing brand (see banner art in
   images/): cream/off-white background, black serif headings, warm gold
   accent, gold script for taglines only. Not a rebrand — just decluttered
   layout + simplified nav. */

:root {
  --cream: #f4f2ea;
  --paper: #fbfaf5;
  --ink: #1c1a16;
  --ink-soft: #5c5648;
  --gold: #c9962c;
  --gold-deep: #a97b1f;
  --gold-tint: #f1e4c6;
  --line: #e3ddc9;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 26, 22, 0.06);
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; line-height: 1.1; }
h2 { font-size: 1.7rem; line-height: 1.2; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.script {
  font-family: "Dancing Script", cursive;
  color: var(--gold-deep);
  font-weight: 600;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header / nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand .stb-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex: none;
}

.brand:hover { text-decoration: none; }

nav.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .93rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
  text-decoration: none;
}

nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--gold-tint);
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  nav.main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 10px 0 4px;
  }
  nav.main-nav.open { display: flex; }
  .header-bar { flex-wrap: wrap; }
}

/* ---------- hero banner (reuses parish's own banner art) ---------- */

.hero-banner {
  width: 100%;
  display: block;
  margin: 0;
}

.hero-banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.page-intro {
  padding: 30px 0 6px;
}

.page-intro .eyebrow {
  display: inline-block;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- home hero (no banner image, text hero) ---------- */

.home-hero {
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--cream) 260px);
  padding: 56px 0 40px;
  text-align: center;
}

.home-hero .stb-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  box-shadow: var(--shadow);
}

.home-hero h1 { max-width: 640px; margin: 0 auto 12px; }
.home-hero p.tagline { font-size: 1.15rem; max-width: 520px; margin: 0 auto; }
.home-hero .cta-row {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201, 150, 44, 0.35);
}
.btn-gold:hover { background: var(--gold-deep); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--gold); text-decoration: none; }

/* ---------- sections / cards ---------- */

main { padding-bottom: 60px; }

section.block { padding: 40px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .96rem; }

.callout {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 24px 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.callout h3 { margin-bottom: .25em; }
.callout p { margin: 0; color: var(--ink-soft); }

/* ---------- mass times table ---------- */

table.times {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.times th, table.times td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}

table.times th {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  background: var(--gold-tint);
}

table.times tr:last-child td { border-bottom: none; }

/* ---------- accordion (sacraments) ---------- */

.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 1.3rem;
  font-weight: 400;
}

.accordion-item[open] summary::after { content: "\2212"; }

.accordion-item .accordion-body {
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

/* ---------- ministry groups ---------- */

.ministry-group { margin-top: 36px; }
.ministry-group h2 { border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 6px; }
.ministry-group .group-note { color: var(--ink-soft); font-size: .93rem; margin-bottom: 16px; }

.ministry-list { display: grid; gap: 12px; }

.ministry-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ministry-item .m-text { flex: 1; min-width: 220px; }
.ministry-item h4 { margin: 0 0 4px; font-family: "Playfair Display", serif; font-size: 1.05rem; }
.ministry-item p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.badge {
  display: inline-block;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}

.badge.screening { background: #fbe6de; color: #a3441f; }
.badge.open { background: #e6f0e6; color: #3f6b3f; }

.community-list {
  columns: 2;
  column-gap: 32px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: .95rem;
}
.community-list li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 600px) { .community-list { columns: 1; } }

/* ---------- giving ---------- */

.fund-list { margin-top: 10px; }
.fund-list .card p { margin-top: 6px; }

/* ---------- bulletin ---------- */

.post-list { margin-top: 22px; display: grid; gap: 16px; }

.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.post-card .post-date {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 6px;
}

.post-card .post-body { color: var(--ink-soft); white-space: pre-line; margin-top: 8px; }
.post-card .post-author { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }

.empty-note { color: var(--ink-soft); font-style: italic; margin-top: 20px; }

/* ---------- about / contact ---------- */

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.staff-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.staff-card .role { color: var(--gold-deep); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--ink);
  color: #d8d3c4;
  padding: 40px 0 26px;
  margin-top: 20px;
}

footer.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

footer.site-footer h4 {
  color: var(--gold);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

footer.site-footer p, footer.site-footer a { color: #d8d3c4; font-size: .92rem; margin: 0 0 6px; }
footer.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 980px;
  margin: 26px auto 0;
  padding: 18px 22px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: .82rem;
  color: #a8a290;
}
