/* ============================================================
   Diocese of Kumba — Website Stylesheet
   Original design system. Sacred-Heart inspired palette:
   deep burgundy + gold on ivory, with a forest-green accent
   nodding to Cameroon. No third-party CSS frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --wine:        #6e1423;   /* primary — Sacred Heart burgundy */
  --wine-dark:   #4d0d18;
  --wine-800:    #5a1020;
  --gold:        #c8a24a;   /* accent — liturgical gold */
  --gold-soft:   #e6d3a3;
  --green:       #1f5c3d;   /* secondary — Cameroon green */
  --ivory:       #faf6ee;   /* page background */
  --cream:       #f2ead9;
  --ink:         #241b1c;   /* body text */
  --muted:       #6b5f5a;
  --line:        #e4dccb;
  --white:       #ffffff;

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(36,27,28,.08), 0 1px 2px rgba(36,27,28,.06);
  --shadow:    0 10px 30px rgba(36,27,28,.10);
  --shadow-lg: 0 24px 60px rgba(36,27,28,.16);
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--wine-dark); font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: var(--cream); }
.section--wine { background: var(--wine); color: #f7ecd9; }
.section--wine h2, .section--wine h3 { color: var(--white); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .6rem;
}
.section--wine .eyebrow { color: var(--gold-soft); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 1.1rem 0 1.4rem; }
.center .rule { margin-inline: auto; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--wine); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--wine-dark); }
.btn--gold:hover { background: #d8b25c; box-shadow: var(--shadow); }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-800); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; border-color: var(--wine); color: var(--wine); }
.btn--outline:hover { background: var(--wine); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ============================================================
   Header / navigation
   ============================================================ */
.topbar {
  background: var(--wine-dark); color: var(--gold-soft);
  font-size: .82rem;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0; min-height: 38px; }
.topbar a { color: var(--gold-soft); }
.topbar a:hover { color: #fff; }
.topbar__left { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.topbar__left .sep { opacity: .4; }
.topbar__social { display: flex; gap: .8rem; align-items: center; }
.topbar__social a { display: inline-flex; }
.topbar__social svg { width: 16px; height: 16px; fill: currentColor; }

.masthead { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 200; }
.masthead.scrolled { box-shadow: var(--shadow-sm); }
.masthead .wrap { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__crest { width: auto; height: 54px; flex: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 800; color: var(--wine-dark); font-size: 1.18rem; }
.brand__sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Primary nav */
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; align-items: center; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .85rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .96rem;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--cream); color: var(--wine); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--wine); }
.nav__link .caret { width: 9px; height: 9px; fill: currentColor; transition: transform .2s; }
.nav__item:hover .caret, .nav__item:focus-within .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 120;
}
.nav__item:hover > .submenu,
.nav__item:focus-within > .submenu,
.submenu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .55rem .75rem; border-radius: 7px; color: var(--ink); font-size: .93rem; font-weight: 500; }
.submenu a:hover { background: var(--cream); color: var(--wine); text-decoration: none; }

.nav__cta { margin-left: .5rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; margin-left: auto; background: var(--wine); color: #fff;
  border: 0; border-radius: 8px; padding: .55rem .7rem; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px);
    background: var(--white); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s ease;
    margin: 0; padding: 5rem 1.2rem 2rem; overflow-y: auto; z-index: 200;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { padding: .8rem .6rem; font-size: 1.05rem; justify-content: space-between; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--gold); border-radius: 0; margin: 0 0 .4rem .6rem;
    max-height: 0; overflow: hidden; padding: 0 .5rem;
    transition: max-height .25s ease;
  }
  .submenu.open { max-height: 500px; padding: .3rem .5rem; }
  .nav__cta { margin: .8rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(36,27,28,.5); opacity: 0; visibility: hidden; transition: .28s; z-index: 150; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: #fdf6e9; overflow: hidden; background: var(--wine-dark); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg svg, .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg img { object-position: 50% 14%; }   /* keep the "Sacred Heart Parish Fiango" sign in frame */
.hero__overlay { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(45,8,15,.9) 0%, rgba(45,8,15,.5) 34%, rgba(45,8,15,.12) 62%, rgba(45,8,15,.04) 100%),
    linear-gradient(180deg, rgba(54,9,18,.1) 0%, rgba(54,9,18,.14) 42%, rgba(54,9,18,.58) 100%); z-index: 1; }
.hero__inner { position: relative; z-index: 2; padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero__content { max-width: 660px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero__motto { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-soft); margin: .4rem 0 1.4rem; }
.hero .btn-row { margin-top: 1.6rem; }

/* ============================================================
   Cards & grids
   ============================================================ */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream); color: var(--wine); margin-bottom: 1rem;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card__link { margin-top: auto; font-weight: 700; color: var(--wine); display: inline-flex; align-items: center; gap: .35rem; padding-top: .6rem; }
.card__link svg { width: 15px; height: 15px; fill: currentColor; transition: transform .15s; }
.card__link:hover svg { transform: translateX(3px); }

/* News cards */
.news-card { padding: 0; overflow: hidden; }
.news-card__media { aspect-ratio: 16/9; }
.news-card__media svg { width: 100%; height: 100%; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.2rem; }
.news-card p { color: var(--muted); font-size: .94rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--gold); font-weight: 800; line-height: 1; }
.stat__label { font-size: .9rem; letter-spacing: .04em; margin-top: .4rem; opacity: .92; }

/* Events list */
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.event { display: flex; gap: 1.2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); }
.event__date { flex: none; width: 74px; text-align: center; border-right: 2px solid var(--gold); padding-right: 1rem; }
.event__day { font-family: var(--serif); font-size: 1.9rem; font-weight: 800; color: var(--wine); line-height: 1; }
.event__mon { text-transform: uppercase; font-size: .74rem; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.event__body h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.event__body p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Scripture banner */
.scripture { text-align: center; }
.scripture blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2rem); max-width: 20ch; margin: 0 auto 1rem; color: #fff; line-height: 1.35; }
.scripture cite { color: var(--gold-soft); font-style: normal; letter-spacing: .1em; font-size: .9rem; text-transform: uppercase; }

/* Two-column feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.feature--rev .feature__media { order: 2; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }
.feature__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--wine-dark); }
.feature__media svg { width: 100%; height: 100%; }
.feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__media--portrait { aspect-ratio: 4 / 5; }
.feature__media--portrait img { object-position: center 22%; }
.feature__media--wide { aspect-ratio: 16 / 10; }
@media (max-width: 820px) { .feature__media--portrait { aspect-ratio: 3 / 4; } }
.coa-figure { text-align: center; margin: 2rem 0 0; }
.coa-figure img { width: min(230px, 60%); height: auto; margin: 0 auto; display: block; border-radius: 8px; box-shadow: var(--shadow-sm); }
.coa-figure figcaption { font-size: .86rem; color: var(--muted); font-style: italic; margin-top: .7rem; }
.map-figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .7rem; box-shadow: var(--shadow); }
.map-figure img { width: 100%; height: auto; border-radius: 8px; display: block; }
.map-figure figcaption { font-size: .84rem; color: var(--muted); font-style: italic; margin-top: .6rem; text-align: center; line-height: 1.45; }
.roster { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.roster li { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .98rem; }
.roster li:last-child { border-bottom: 0; }
.roster li:nth-child(even) { background: var(--ivory); }
.roster .role { color: var(--muted); }
.roster .who { font-weight: 700; color: var(--wine-dark); text-align: right; }
.namelist { columns: 2; column-gap: 1.4rem; margin: .5rem 0 0; padding-left: 1.1rem; font-size: .93rem; }
.namelist li { margin-bottom: .32rem; break-inside: avoid; }
@media (max-width: 560px) { .namelist { columns: 1; } }
.office-card h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.office-card .head { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.office-card .head b { color: var(--wine-dark); font-weight: 600; }

/* CTA trio */
.cta-box { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 2.2rem 1.8rem; color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.cta-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); z-index: 0; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h3 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.9); font-size: .95rem; }
.cta--faith { background: linear-gradient(135deg, var(--wine), var(--wine-dark)); }
.cta--serve { background: linear-gradient(135deg, var(--green), #103a26); }
.cta--give  { background: linear-gradient(135deg, #9a7b2e, var(--wine-800)); }

/* Newsletter */
.newsletter form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 520px; }
.newsletter input[type=email] { flex: 1 1 240px; padding: .85rem 1rem; border-radius: 50px; border: 1px solid var(--line); font-size: 1rem; font-family: var(--sans); }
.newsletter input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

/* ============================================================
   Interior page pieces
   ============================================================ */
.pagehead { background: var(--wine-dark); color: #f6e9d5; position: relative; overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; opacity: .5; }
.pagehead__bg svg { width: 100%; height: 100%; }
.pagehead .wrap { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.pagehead h1 { color: #fff; margin: 0; }
.pagehead p { color: var(--gold-soft); max-width: 60ch; margin: .6rem 0 0; }
.breadcrumb { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 .8rem; font-size: .85rem; color: var(--gold-soft); }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb li::after { content: "/"; margin-left: .5rem; opacity: .5; }
.breadcrumb li:last-child::after { content: ""; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img, .prose figure { border-radius: var(--radius); }

.factbox { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; }
.factbox dt { font-weight: 700; color: var(--wine); }
.factbox dd { margin: 0; color: var(--ink); }

.pull { border-left: 4px solid var(--gold); padding: .3rem 0 .3rem 1.3rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--wine-dark); margin: 1.6rem 0; }

/* Table (schedules / directory) */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--wine); color: #fff; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
table.data tbody tr:nth-child(even) { background: var(--ivory); }
table.data tbody tr:hover { background: var(--cream); }

/* Notice / placeholder callout */
.notice { display: flex; gap: .8rem; align-items: flex-start; background: #fff7e6; border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .92rem; color: #6a5320; }
.notice svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #b9902f; stroke-width: 1.8; }

/* Accordion (FAQ / ministries) */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc + .acc { margin-top: .8rem; }
.acc__btn { width: 100%; text-align: left; background: #fff; border: 0; padding: 1.1rem 1.3rem; font-family: var(--serif); font-size: 1.15rem; color: var(--wine-dark); font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.acc__btn:hover { background: var(--ivory); }
.acc__btn .plus { width: 20px; height: 20px; flex: none; position: relative; }
.acc__btn .plus::before, .acc__btn .plus::after { content: ""; position: absolute; background: var(--gold); border-radius: 2px; inset: 0; margin: auto; }
.acc__btn .plus::before { width: 16px; height: 3px; }
.acc__btn .plus::after { width: 3px; height: 16px; transition: transform .2s; }
.acc__btn[aria-expanded="true"] .plus::after { transform: rotate(90deg); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc__panel-inner { padding: 0 1.3rem 1.3rem; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 1rem; background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.7; margin-top: 2px; }
.info-list strong { display: block; color: var(--wine-dark); }

/* Directory cards */
.parish { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-sm); }
.parish h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.parish .town { display: block; margin-top: .1rem; color: var(--gold); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.parish p { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.deanery-head { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0 1.2rem; }
.deanery-head h2 { margin: 0; }
.deanery-head .count { background: var(--cream); color: var(--wine); font-weight: 700; font-size: .82rem; padding: .3rem .8rem; border-radius: 50px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #2a1015; color: #cbb8a6; font-size: .93rem; }
.footer a { color: #e7d6bf; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2.5rem; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--gold-soft); }
.footer__brand p { margin-top: 1rem; color: #b5a291; font-size: .9rem; }
.footer h4 { color: #fff; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin: 0 0 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.footer__social a:hover { background: var(--wine); border-color: var(--wine); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #9c8b7d; }
.footer__bottom a { color: #b9a897; }

/* ---------- Dynamic-page additions ---------- */
.toolbar { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 1.6rem 0 .5rem; }
.searchbar { position: relative; flex: 1 1 320px; max-width: 460px; }
.searchbar input { width: 100%; padding: .8rem 1rem .8rem 2.8rem; border: 1px solid var(--line); border-radius: 50px; font-size: 1rem; font-family: var(--sans); background: #fff; }
.searchbar input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.searchbar svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); padding: .45rem 1rem; border-radius: 50px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }

.badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .18rem .6rem; border-radius: 50px; }
.badge--cathedral { background: var(--wine); color: #fff; }
.badge--zone { background: var(--gold-soft); color: #6a5320; }
.parish__meta { margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.parish__meta strong { color: var(--wine-dark); }
.ms { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .55rem; }
.ms > summary { cursor: pointer; font-weight: 700; font-size: .84rem; color: var(--wine); list-style: none; display: flex; align-items: center; gap: .45rem; user-select: none; }
.ms > summary::-webkit-details-marker { display: none; }
.ms > summary::before { content: "\25B8"; color: var(--gold); transition: transform .15s ease; }
.ms[open] > summary::before { transform: rotate(90deg); }
.ms .ms-count { background: var(--cream); color: var(--wine); border-radius: 50px; padding: .04rem .5rem; font-size: .78rem; }
.ms-list { list-style: none; margin: .55rem 0 0; padding: 0; }
.ms-list li { display: flex; justify-content: space-between; gap: .8rem; padding: .34rem .1rem; border-bottom: 1px dashed var(--line); font-size: .84rem; }
.ms-list li:last-child { border-bottom: 0; }
.ms-name { color: var(--ink); }
.ms-loc { color: var(--muted); text-align: right; flex: none; }
.count-note { color: var(--muted); font-size: .9rem; }
.js-empty { text-align: center; color: var(--muted); padding: 2rem; display: none; }

.article { max-width: 900px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 3.4rem); }
.article__meta { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: .6rem; }
.article__media { border-radius: var(--radius-lg); overflow: hidden; margin: 1.4rem 0 2rem; box-shadow: var(--shadow); }
.article__body { font-size: 1.13rem; line-height: 1.8; color: #322a2a; }
.article__body > :first-child { margin-top: 0; }
.article__body p { margin: 0 0 1.2rem; }
.article__body h2 { font-size: 1.6rem; color: var(--wine-dark); margin: 2.1rem 0 .8rem; line-height: 1.25; }
.article__body h3 { font-size: 1.32rem; color: var(--wine-dark); margin: 1.9rem 0 .7rem; line-height: 1.3; }
.article__body ul, .article__body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.article__body li { margin-bottom: .5rem; }
.article__body strong { color: var(--wine-dark); }
.article__body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.2rem 0; }
.article__download { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }

.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .55rem .95rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--wine); }
.pagination .current { background: var(--wine); color: #fff; border-color: var(--wine); }
.pagination .disabled { color: var(--muted); background: var(--cream); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
