:root {
  --purple: #4b438f;
  --purple-dark: #332b72;
  --maroon: #912733;
  --gold: #b59737;
  --charcoal: #3f4548;
  --cream: #f7f3ea;
  --white: #ffffff;
  --muted: #6f7375;
  --shadow: 0 12px 34px rgba(38, 31, 82, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--charcoal);
  background: linear-gradient(180deg, var(--cream), #fff 30%);
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.top-bar {
  min-height: 42px;
  padding: 9px max(20px, calc((100vw - 1180px)/2));
  background: var(--purple);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  font-weight: 700;
}

.top-bar a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }

.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 4px solid var(--gold);
}

.parish-logo { width: min(730px, 72vw); }
.header-contact { text-align: right; display: grid; gap: 2px; font-size: .88rem; }
.header-contact strong { color: var(--purple); font-size: 1rem; }

main { max-width: 1180px; margin: auto; padding: 0 24px 55px; }

.hero {
  margin: 28px 0 20px;
  padding: 34px;
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, rgba(181,151,55,.42), transparent 29%),
    linear-gradient(135deg, rgba(75,67,143,.98), rgba(145,39,51,.94));
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.04;
  max-width: 800px;
}

.motto {
  margin: 14px 0 4px;
  color: #f2d16d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-intro { max-width: 690px; font-size: 1.05rem; }
.hero-image img { border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-block;
  padding: 12px 19px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: .9rem;
}
.btn-gold { background: var(--gold); color: white; }
.btn-outline { border: 1px solid rgba(255,255,255,.7); color: white; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0 34px;
}

.quick-facts article {
  background: white;
  border-radius: 16px;
  padding: 17px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.quick-facts strong { display: block; color: var(--purple); font-size: 1.8rem; line-height: 1; }
.quick-facts span { font-size: .82rem; color: var(--muted); }

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}

.content-card {
  background: white;
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(75,67,143,.10);
}
.content-card h2, .section-block h2, .contact-panel h2 {
  margin: 0 0 14px;
  color: var(--purple);
  line-height: 1.15;
}
.vision-line { background: var(--cream); padding: 12px 14px; border-left: 5px solid var(--gold); }
.accent-card { border-top: 6px solid var(--gold); }

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 13px 0;
  border-bottom: 1px solid #ece8de;
}
.service-row:last-child { border-bottom: 0; }
.service-row strong { color: var(--maroon); }
.service-row em { grid-column: 1/-1; color: var(--muted); font-size: .86rem; }

.section-block {
  padding: 30px;
  margin: 30px 0;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.section-heading p:last-child { max-width: 480px; color: var(--muted); margin: 0; }

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.leader-card {
  border: 1px solid rgba(75,67,143,.14);
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}
.leader-card.featured { border-top: 5px solid var(--gold); }
.leader-photo {
  width: 100%;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #efecf8, #f9f6ee);
  color: var(--purple);
  font-size: 2.15rem;
  font-weight: 900;
}
.leader-card h3 { margin: 4px 12px 3px; color: var(--charcoal); font-size: 1rem; line-height: 1.3; }
.leader-card a, .leader-card span { display: block; margin: 0 10px 17px; color: var(--muted); font-size: .78rem; text-decoration: none; }
.leader-title { margin: 13px 8px 0; color: var(--purple); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 900; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list span { background: var(--cream); color: var(--purple); padding: 9px 13px; border-radius: 999px; font-weight: 700; font-size: .84rem; }

.details-list { margin: 0; }
.details-list div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eee9df; }
.details-list span { color: var(--muted); }
.details-list strong { margin: 0; font-weight: 700; }
.school-card { border-top: 6px solid var(--purple); }

.development {
  color: white;
  background:
    radial-gradient(circle at 95% 5%, rgba(181,151,55,.38), transparent 28%),
    var(--purple-dark);
}
.development h2, .development .section-heading p { color: white; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.project-grid article { padding: 22px; border-radius: 16px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); }
.project-grid strong { display: block; font-size: 2.1rem; color: #f3d36f; }
.project-grid span { font-size: .88rem; }

.heritage { align-items: stretch; }
.stone-card { margin: 0; background: white; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.stone-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.stone-card figcaption { padding: 11px 15px; font-size: .83rem; color: var(--muted); }
details { margin-top: 16px; }
summary { color: var(--purple); font-weight: 900; cursor: pointer; }
.heritage-list { padding-left: 19px; }

.names-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.names-grid span { padding: 11px 13px; background: var(--cream); border-radius: 10px; font-size: .84rem; }

.contact-panel {
  margin-top: 35px;
  padding: 30px;
  border-radius: 24px;
  background: var(--charcoal);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.contact-panel h2, .contact-panel a { color: white; }
.light { color: #f0cf6e; }

footer {
  padding: 26px 24px;
  background: var(--purple);
  color: white;
  text-align: center;
}
.footer-logo {
  width: min(430px, 80vw);
  margin: 0 auto 10px;
  background: white;
  padding: 8px;
  border-radius: 10px;
}
footer p { margin: 0; font-size: .82rem; }

@media (max-width: 900px) {
  .site-header, .section-heading, .contact-panel { align-items: flex-start; }
  .site-header { flex-direction: column; }
  .header-contact { text-align: left; }
  .hero, .two-column { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .top-bar { flex-direction: column; align-items: flex-start; gap: 3px; }
  .hero { padding: 24px; }
  .quick-facts, .leadership-grid, .project-grid, .names-grid { grid-template-columns: 1fr 1fr; }
  .section-block, .content-card { padding: 22px; }
  .section-heading, .contact-panel { flex-direction: column; }
  .parish-logo { width: 100%; }
}

@media (max-width: 420px) {
  .quick-facts, .leadership-grid, .project-grid, .names-grid { grid-template-columns: 1fr; }
}
