:root{
  --bg: #ffffff;
  --maroon: #800404;
  --gold: #f1c04f;
  --gold-soft: #f5d48f;
  --text: #111;
  --muted: rgba(0,0,0,.65);
  --serif: "Cinzel", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --shadow: 0 18px 55px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font: inherit; }

.container{
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ===================== TOP STRIP ===================== */
.top-strip{
  background: var(--gold-soft);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.top-strip__inner{
  height: 52px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
  padding-left: 0;
}
.social{
  display:flex;
  gap: 10px;
  margin-left: -12px;
}
.social__btn{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  background: var(--maroon);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
}

.social__icon{
  width: 20px;
  height: 20px;
  display:block;
}

.top-strip__contact{
  font-size: 12px;
  color: var(--maroon);
  font-weight: 700;
}

/* ===================== HEADER ===================== */
.header{
  background: linear-gradient(#0f0f0f, #0c0c0c);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header__inner{
  height: 74px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 22px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand__icon{
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 55%),
    linear-gradient(135deg, rgba(204,173,90,.85), rgba(128,4,4,.85));
  border: 1px solid rgba(255,255,255,.12);
}
.brand__text{ color: #fff; }
.brand__name{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.0;
}
.brand__sub{
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}
.brand__icon-img{
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  display: block;
}

.nav{
  display:flex;
  align-items:center;
  gap: 28px;
}
.nav__link{
  color: #eee;
  font-size: 13px;
  opacity: .92;
  
}
.nav__link{
  font-size: inherit;
  line-height: 1;
}
.nav__link:hover{ opacity: 1; text-decoration: underline; }
.chev{ opacity: .7; margin-left: 4px; }

/* ===================== NAV DROPDOWNS (DESKTOP HOVER) ===================== */
.nav__item{ position: relative; }

.dropdown{
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
}

.dropdown__link{
  display: block;
  padding: 9px 14px;
  color: var(--maroon);
  font-weight: 700;
  background: transparent;
  border-top: 1px solid rgba(0,0,0,.07);
}
.dropdown__link:first-child{ border-top: none; }
.dropdown__link:hover{ background: rgba(0,0,0,.04); }

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown,
.nav__item--dropdown.is-open .dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 900px){
  .dropdown{ position: static; box-shadow: none; transform: none; min-width: 0; }
}

.menu-btn{
  display:none;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.9);
}
.mobile-nav__inner{
  padding: 12px 0 16px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav__link{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-weight: 700;
}

/* ===================== HERO ===================== */
.hero{
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

/* This layer is what we move/scale on scroll (parallax) */
.hero__bg{
  position:absolute;
  /* extra room so parallax movement never shows blank edges */
  inset: -18% 0 -18% 0;
  background-image: url("st george pic.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(.1) contrast(1.05) brightness(.85);
  transform: translate3d(0,0,0) scale(1.08);
  will-change: transform;
}

.hero__shade{
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,var(--heroShade, .60)),
    rgba(0,0,0,.25) 40%,
    rgba(0,0,0,.55)
  );
}

.hero__inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  padding: 28px 0;
  align-items: start;
}

.hero-left{
  padding-top: 78px;
  color: #fff;
}
.hero-left__title{
  font-family: var(--serif);
  font-size: 38px;
  margin: 0 0 10px;
  text-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.hero-left__text{
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  margin: 0 0 16px;
}

/* Right panel like stmarylivonia */
.hero-panel{
  margin-top: 60px;

  /* black + slightly see-through */
  background: rgba(0,0,0,.62);

  /* “glass” feel (supported browsers only) */
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.hero-panel__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.hero-panel__item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.95);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}
.hero-panel__list li:last-child .hero-panel__item{ border-bottom: none; }

.hero-panel__item:hover{
  background: rgba(255,255,255,.06);
}

.hero-panel__item--static{
  cursor: default;
  background: transparent;
}
.hero-panel__item--static:hover{ background: transparent; }

.hero-panel__icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--maroon);
  flex: 0 0 34px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.hero-panel__icon-img{
  width: 18px;
  height: 18px;
  display: block;
}

.hero-panel__stack{
  display: grid;
  gap: 6px;
}

.hero-panel__title{
  font-weight: 900;
  font-size: 14px;
  color: rgba(255,255,255,.95);
}

.hero-panel__sub{
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.hero-panel__buttons{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.btn--panel{
  width: 100%;
}

/* ===================== BUTTONS ===================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.04); }
.btn__icon{ opacity: .9; }

.btn--primary{
  background: var(--maroon);
  color: #fff;
  border-color: rgba(255,255,255,.1);
}
.btn--outline{
  background: rgba(0,0,0,.0);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}
.btn--outline:hover{ background: rgba(255,255,255,.08); }
.btn--small{ padding: 10px 14px; }
.btn--tiny{ padding: 9px 12px; font-size: 11px; }

.btn--light{
  background: #fff;
  color: var(--maroon);
  border: 1px solid rgba(0,0,0,.10);
}
.btn--light:hover{ filter: none; background: rgba(255,255,255,.92); }

/* ===================== VISITING STRIP ===================== */
.visit-strip{
  background: var(--gold-soft);
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.visit-strip__inner{
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 22px;
}
.visit-strip__title{
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 16px;
  margin: 0 0 8px;
}
.visit-strip__text{
  margin: 0;
  max-width: 72ch;
  font-size: 11px;
  color: rgba(0,0,0,.78);
  line-height: 1.6;
}

/* ===================== SECTIONS ===================== */
.section{
  padding: 46px 0;
}
.section--spacious{
  padding: 70px 0 60px;
}
.section__title{
  font-family: var(--serif);
  text-align:center;
  color: var(--maroon);
  font-size: 18px;
  margin: 0;
}
.section__rule{
  height: 2px;
  width: min(480px, 70%);
  background: rgba(0,0,0,.10);
  margin: 14px auto 0;
}
.blank-space{
  height: 320px;
}

/* Featured News & Events grid */
.featured-grid{
  margin-top: -40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.featured-card{
  text-align: left;
}

.featured-card__img{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.12);
  background: #f3f3f3;
}

/* ✅ Pull title closer to the image */
.featured-card__title{
  margin: 2px 0 6px;        /* top, left/right, bottom */
  font-family: var(--serif);
  font-size: 15px;
  color: var(--maroon);
  line-height: 1.25;
  font-weight: 700;
}

.featured-card__btn{
  border-radius: 6px;
}

.featured-section{
  padding-bottom: 120px;
}

/* responsive */
@media (max-width: 1000px){
  .featured-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .featured-grid{ grid-template-columns: 1fr; }
}

/* ===================== CONTRIBUTE ===================== */
.contribute{
  text-align:center;
}
.contribute__text{
  margin: 18px auto 18px;
  max-width: 92ch;
  color: rgba(0,0,0,.78);
  font-size: 11px;
  line-height: 1.7;
}
.contribute{
  padding-top: 180px;
}

/* ===================== INVOLVED ===================== */
.involved{
  background: var(--maroon);
  color:#fff;
  padding: 54px 0 60px;
}
.involved__title{
  margin:0;
  text-align:center;
  font-family: var(--serif);
  font-size: 20px;
}
.involved__rule{
  height: 2px;
  width: min(520px, 76%);
  background: rgba(255,255,255,.28);
  margin: 14px auto 0;
}
.involved__grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: start;
}
.involved-card{
  text-align:center;
  padding: 14px 12px 6px;
}
.involved-card__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  width: 90px;
  height: 90px;
}

.involved-card__icon--img{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  width: 90px;
  height: 90px;
}

.involved-card__icon-img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.involved-card__title{
  font-family: var(--serif);
  font-size: 14px;
  margin: 0 0 10px;
}
.involved-card__text{
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin: 0 0 14px;
}

/* ===================== FOOTER ===================== */
.footer{
  background: var(--maroon);
  color: #fff;
  padding: 44px 0 58px;
  border-top: 14px solid var(--gold-soft);
}
.footer__divider{
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}
.footer__divider span{
  height: 2px;
  width: min(360px, 30vw);
  background: rgba(255,255,255,.30);
}
.footer__cross{
  font-size: 26px;
  opacity: .95;
}

.footer__grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-col__title{
  margin: 0 0 12px;
  font-weight: 900;
  font-size: 12px;
  text-transform: none;
}
.footer-col__text{
  margin: 0 0 10px;
  font-size: 11px;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
}
.footer-col__link{
  display:block;
  margin: 8px 0;
  font-size: 11px;
  color: rgba(255,255,255,.88);
}
.footer-col__link:hover{ text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px){
  .nav{ display:none; }
  .menu-btn{ display:inline-grid; place-items:center; }
  .hero__inner{
    grid-template-columns: 1fr;
  }
  .hero-left{ padding-top: 40px; }
  .hero-panel{ margin-top: 10px; }
  .involved__grid{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; }
  .blank-space{ height: 220px; }
}

@media (max-width: 520px){
  .container{ width: calc(100% - 28px); }
  .hero-left__title{ font-size: 28px; }
}

.calendar-wrap{
  margin: 22px auto 0;
  width: 100%;
  max-width: 900px;
}

.calendar-wrap iframe{
  width: 100%;
  max-width: 900px;
  height: 600px;
  display: block;
}
.calendar-wrap iframe{
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.about-section .section__title{
  margin-bottom: 0;
}

.about-card{
  margin: 18px auto 0;
  max-width: 900px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  padding: 28px;
  line-height: 1.9;
  font-size: 16px;
  color: rgba(0,0,0,.78);
}

.about-card p{
  margin: 0 0 18px;
}

.about-card p:last-child{
  margin-bottom: 0;
}

.about-card a{
  color: var(--maroon);
  font-weight: 700;
  text-decoration: underline;
}
/* ===== About page layout fix ===== */

/* Make sure section spacing actually applies */
.section{ padding: 52px 0; }
.section--spacious{ padding: 72px 0; }

/* If your header is sticky, keep it on top */
.header{
  position: sticky;
  top: 0;
  z-index: 999;
}

/* About page: push content down a bit so it never feels tucked under header */
.about-section{
  padding-top: 130px; /* adjust up/down if you want */
}

.about-card{
  margin: 18px auto 0;
  max-width: 900px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  padding: 28px;
  line-height: 1.9;
  font-size: 16px;
  color: rgba(0,0,0,.78);
}

.about-card p{ margin: 0 0 18px; }
.about-card p:last-child{ margin-bottom: 0; }

.about-card a{
  color: var(--maroon);
  font-weight: 700;
  text-decoration: underline;
}

/* ===================== MINISTRIES PAGE ===================== */
.page-hero{
  position: relative;
  height: 160px;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.page-hero--ministries{
  background-image: url("banner.png");
  background-size: cover;
  background-position: center;
  filter: grayscale(.15) contrast(1.05);
}

.page-hero__shade{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.68);
}

.page-hero__inner{
  position: relative;
  z-index: 1;
  padding: 24px 0;
}

.page-hero__title{
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 44px;
  margin: 0;
  text-align:center;
}

/* Two-column layout like screenshot */
.min-page{
  padding: 36px 0 70px;
  background: #fff;
}

.min-layout{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.min-main{
  padding-top: 10px;
}

.min-h2{
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 28px;
  margin: 0 0 10px;
}

.min-p{
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(0,0,0,.75);
  max-width: 78ch;
}

.min-section{
  padding: 22px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  scroll-margin-top: 110px; /* offsets your sticky header */
}

.min-sidebar{
  position: relative;
}

.min-sidebar__card{
  position: sticky;
  top: 110px; /* below sticky header */
  background: #f4f4f4;
  border-top: 4px solid var(--gold);
  padding: 18px 18px 10px;
}

.min-sidebar__title{
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 28px;
  margin: 0 0 12px;
}

.min-side-link{
  display:block;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(0,0,0,.10);
  color: var(--maroon);
  font-weight: 700;
  font-size: 14px;
}

.min-side-link:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px){
  .min-layout{
    grid-template-columns: 1fr;
  }
  .min-sidebar__card{
    position: static;
  }
  .page-hero__title{
    font-size: 36px;
  }
}

/* ===== Clergy page helpers (keeps ministries layout intact) ===== */
.clergy-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}

.clergy-photo{
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

.clergy-text .min-p{
  margin-top: 0;
}

/* stack on smaller screens */
@media (max-width: 900px){
  .clergy-row{
    grid-template-columns: 1fr;
  }
  .clergy-photo{
    width: min(320px, 100%);
  }
}

/* =========================================================
   PRAYERS PAGE ONLY — center BOTH headings + prayer text
   (Paste near the bottom of styles.css)
   Requires: <body class="page-prayers">
   ========================================================= */

/* Center the column on the page */
.page-prayers .min-layout{
  display: flex;
  justify-content: center;
}

.page-prayers .min-main{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Center the headings */
.page-prayers .min-h2{
  text-align: center;
}

/* Center the prayer text */
.page-prayers .min-p{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: keep long paragraphs from stretching too wide */
.page-prayers .min-section{
  display: grid;
  justify-items: center;
}
.membership {
  padding-bottom: 80px; /* creates space above the footer */
}

.membership-text {
  margin-bottom: 18px;
}

.membership-pdf {
  display: inline-block;
  margin-bottom: 40px; /* extra breathing room */
  text-decoration: underline;
}
