/* Parish homepage — Joomla 6.1 + Helix Ultimate 2.2.10 */
body.parish-home-page {
  --ph-ivory: #f6f0e7;
  --ph-paper: #fffdf9;
  --ph-wine: #6a2633;
  --ph-wine-dark: #38131b;
  --ph-rose: #b96f78;
  --ph-gold: #b89455;
  --ph-gold-light: #e2c78e;
  --ph-ink: #28211f;
  --ph-muted: #746b66;
  --ph-line: rgba(106, 38, 51, .15);
  --ph-shadow: 0 24px 65px rgba(55, 27, 28, .13);
  --ph-max: 1280px;
  background: var(--ph-ivory);
  color: var(--ph-ink);
}

body.parish-home-page #sp-main-body { padding: 0; }
body.parish-home-page #sp-main-body > .container { max-width: none; padding: 0; }
body.parish-home-page .ph-row-hero,
body.parish-home-page .ph-row-today,
body.parish-home-page .ph-row-featured,
body.parish-home-page .ph-row-news,
body.parish-home-page .ph-row-masses,
body.parish-home-page .ph-row-community,
body.parish-home-page .ph-row-history,
body.parish-home-page .ph-row-cta { margin: 0; padding: 0; }

.parish-container { width: min(calc(100% - 48px), var(--ph-max)); margin-inline: auto; }
.parish-label { color: var(--ph-wine); font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.parish-home-page h1,
.parish-home-page h2,
.parish-home-page h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--ph-ink); }
.parish-home-page h2 { font-size: clamp(2.6rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.035em; }
.parish-home-page a { text-underline-offset: 3px; }

/* Header */
body.parish-home-page #sp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 9999;
  height: auto; min-height: 82px;
  background: transparent; box-shadow: none;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
body.parish-home-page #sp-header .sp-megamenu-parent > li > a,
body.parish-home-page #sp-header .sp-megamenu-parent > li > span,
body.parish-home-page #sp-header #offcanvas-toggler { color: #fff; }
body.parish-home-page #sp-header .logo img { filter: brightness(0) invert(1); transition: filter .3s ease; }
body.parish-home-page.parish-scrolled #sp-header {
  background: rgba(250,247,241,.96); box-shadow: 0 9px 35px rgba(30,18,18,.08); backdrop-filter: blur(12px);
}
body.parish-home-page.parish-scrolled #sp-header .sp-megamenu-parent > li > a,
body.parish-home-page.parish-scrolled #sp-header .sp-megamenu-parent > li > span,
body.parish-home-page.parish-scrolled #sp-header #offcanvas-toggler { color: var(--ph-ink); }
body.parish-home-page.parish-scrolled #sp-header .logo img { filter: none; }
body.parish-home-page #sp-header .sp-megamenu-parent > li.active > a::after {
  content: ''; display: block; width: 28px; height: 2px; margin: -17px auto 0; background: var(--ph-gold);
}

/* Hero */
.parish-hero { min-height: 92svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: #211419; color: #fff; }
.parish-hero__image { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(28,14,18,.79) 0%, rgba(28,14,18,.28) 55%, rgba(28,14,18,.08) 100%),
  url('/images/parish-home/hero-desktop.webp') center 46% / cover no-repeat; transform: scale(1.025); }
.parish-hero__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,12,15,.40), transparent 45%); }
.parish-hero__light { position: absolute; inset: -20%; z-index: 1; pointer-events: none; background:
  radial-gradient(circle at 34% 42%, rgba(221,93,126,.18), transparent 18%),
  radial-gradient(circle at 59% 34%, rgba(231,181,88,.20), transparent 20%),
  radial-gradient(circle at 75% 58%, rgba(89,117,177,.13), transparent 18%); filter: blur(38px); mix-blend-mode: screen; animation: parishLight 15s ease-in-out infinite alternate; }
@keyframes parishLight { from { transform: translate(-3%,-2%) rotate(-2deg); } to { transform: translate(4%,3%) rotate(2deg); } }
.parish-hero__content { position: relative; z-index: 3; padding: 170px 0 clamp(105px, 13vh, 160px); }
.parish-hero__eyebrow { color: var(--ph-gold-light); font-size: .84rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.parish-hero h1 { max-width: 950px; margin: 15px 0 36px; color: #fff; font-size: clamp(3.6rem, 8.4vw, 8.7rem); font-weight: 500; line-height: .88; letter-spacing: -.045em; }
.parish-hero h1 em { display: block; color: var(--ph-gold-light); font-weight: 400; font-style: italic; }
.parish-button { display: inline-flex; align-items: center; gap: 18px; padding: 14px 23px; border: 1px solid rgba(255,255,255,.44); border-radius: 999px; background: rgba(105,37,50,.68); backdrop-filter: blur(8px); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: transform .25s ease, background .25s ease; }
.parish-button:hover { transform: translateY(-2px); background: #fff; color: var(--ph-wine-dark) !important; }

/* Today */
.parish-today-wrap { position: relative; z-index: 20; margin-top: -60px; padding-bottom: 80px; }
.parish-today { background: var(--ph-paper); border: 1px solid rgba(106,38,51,.08); border-radius: 17px; box-shadow: var(--ph-shadow); overflow: hidden; }
.parish-today__title { padding: 13px 24px 2px; text-align: center; font: 600 1.7rem Georgia, serif; }
.parish-today__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.parish-today__item { min-height: 118px; padding: 22px 26px 25px; border-right: 1px solid var(--ph-line); text-align: center; }
.parish-today__item:last-child { border-right: 0; }
.parish-today__icon { display: block; margin-bottom: 8px; color: var(--ph-wine); font-size: 1.45rem; }
.parish-today__value { display: block; margin-top: 6px; color: var(--ph-ink); font: 500 clamp(1.35rem,2vw,2rem) Georgia, serif; }
.parish-today__date .parish-today__value { font: 500 1rem/1.35 system-ui, sans-serif; text-transform: capitalize; }

/* Generic sections */
.parish-section { padding: clamp(75px, 9vw, 130px) 0; }
.parish-section--paper { background: var(--ph-paper); }
.parish-water-line { width: min(640px, 70vw); height: 32px; margin: 6px auto 0; opacity: .3; }
.parish-water-line svg { width: 100%; height: 100%; }

/* Featured */
.parish-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 470px; background: var(--ph-paper); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 48px rgba(60,34,33,.07); }
.parish-feature__image { min-height: 440px; overflow: hidden; }
.parish-feature__image img { width: 100%; height: 100%; object-fit: cover; }
.parish-feature__content { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(45px, 6vw, 85px); }
.parish-feature__content h2 { margin: 15px 0 20px; font-size: clamp(2.7rem, 4.4vw, 5rem); }
.parish-feature__content p { max-width: 590px; color: var(--ph-muted); font-size: 1.05rem; }
.parish-text-link { margin-top: 12px; color: var(--ph-wine) !important; font-weight: 800; text-decoration: none !important; }

/* News */
.parish-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.parish-section-heading h2 { margin: 0; font-size: clamp(2.7rem,4.4vw,4.8rem); }
.parish-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.parish-news-card { overflow: hidden; background: var(--ph-paper); border: 1px solid rgba(106,38,51,.10); border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.parish-news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 50px rgba(55,25,27,.10); }
.parish-news-card__image { aspect-ratio: 4/3; overflow: hidden; background: #e9e0d7; }
.parish-news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.parish-news-card:hover img { transform: scale(1.04); }
.parish-news-card__body { padding: 19px 20px 22px; }
.parish-news-card__date { color: var(--ph-rose); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.parish-news-card h3 { margin: 9px 0 0; font-size: 1.45rem; line-height: 1.15; }
.parish-news-card h3 a { color: var(--ph-ink) !important; text-decoration: none !important; }

/* Masses */
.parish-masses-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px,7vw,100px); align-items: center; }
.parish-masses-copy p { max-width: 510px; color: var(--ph-muted); font-size: 1.07rem; }
.parish-masses-card { padding: 28px 34px; background: var(--ph-paper); border: 1px solid var(--ph-line); border-radius: 17px; box-shadow: 0 18px 54px rgba(55,25,27,.08); }
.parish-mass-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--ph-line); }
.parish-mass-row:last-child { border-bottom: 0; }
.parish-mass-row.is-today { margin-inline: -10px; padding-inline: 20px; background: rgba(185,111,120,.12); border-radius: 10px; border-bottom-color: transparent; }
.parish-mass-day { font-weight: 800; }
.parish-today-badge { display: inline-block; margin-left: 10px; padding: 4px 8px; border-radius: 999px; background: var(--ph-wine); color: #fff; font-size: .60rem; letter-spacing: .08em; }
.parish-mass-times { font: 500 1.08rem Georgia, serif; }

/* Community */
.parish-community { display: grid; grid-template-columns: .36fr .64fr; gap: 45px; align-items: start; }
.parish-community__copy { padding-top: 20px; }
.parish-community__copy h2 { margin: 10px 0 24px; font-size: clamp(3.3rem,5.5vw,6rem); }
.parish-community__copy p { max-width: 340px; color: var(--ph-muted); }
.parish-community__grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; grid-template-rows: 210px 175px; gap: 10px; }
.parish-community__grid figure { margin: 0; overflow: hidden; border-radius: 13px; }
.parish-community__grid figure:first-child { grid-row: 1 / 3; }
.parish-community__grid figure:last-child { grid-column: 2 / 4; }
.parish-community__grid img { width: 100%; height: 100%; object-fit: cover; }

/* History */
.parish-history-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.parish-history-head h2 { margin: 0; }
.parish-history { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ph-line); }
.parish-history__item { position: relative; min-height: 240px; padding: 45px 28px 25px; border-right: 1px solid var(--ph-line); }
.parish-history__item:last-child { border-right: 0; }
.parish-history__year { position: absolute; top: 22px; right: 16px; color: rgba(106,38,51,.08); font: 500 clamp(4.8rem,8vw,8.5rem)/.8 Georgia, serif; }
.parish-history__dot { width: 9px; height: 9px; margin-bottom: 50px; background: var(--ph-gold); border-radius: 50%; box-shadow: 0 0 0 5px var(--ph-paper); }
.parish-history__item h3 { position: relative; margin: 0 0 10px; font-size: 1.35rem; }
.parish-history__item p { position: relative; color: var(--ph-muted); font-size: .95rem; }

/* CTA */
.parish-cta { position: relative; overflow: hidden; padding: 80px 0; background: linear-gradient(90deg,#f5e7e5,#fff8f0); border-top: 1px solid var(--ph-line); }
.parish-cta__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; }
.parish-cta h2 { margin: 0; font-size: clamp(3.2rem,6vw,6rem); }
.parish-cta__links { display: flex; flex-wrap: wrap; gap: 12px; }
.parish-cta__links a { padding: 13px 18px; border: 1px solid rgba(106,38,51,.35); border-radius: 8px; color: var(--ph-wine) !important; font-weight: 800; text-decoration: none !important; }
.parish-cta__links a:first-child { background: var(--ph-wine); color: #fff !important; }

/* Reveal */
.parish-reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.parish-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 991px) {
  body.parish-home-page #sp-header { min-height: 70px; }
  .parish-hero { min-height: 82svh; }
  .parish-hero__content { padding-top: 130px; }
  .parish-today__grid { grid-template-columns: 1fr 1fr; }
  .parish-today__item:nth-child(2) { border-right: 0; }
  .parish-today__item:nth-child(-n+2) { border-bottom: 1px solid var(--ph-line); }
  .parish-feature { grid-template-columns: 1fr; }
  .parish-feature__image { min-height: 390px; }
  .parish-news-grid { grid-template-columns: 1fr 1fr; }
  .parish-news-card:last-child { grid-column: 1 / 3; }
  .parish-masses-shell { grid-template-columns: 1fr; }
  .parish-community { grid-template-columns: 1fr; }
  .parish-community__copy p { max-width: 580px; }
  .parish-history { grid-template-columns: 1fr 1fr; }
  .parish-history__item:nth-child(2) { border-right: 0; }
  .parish-history__item:nth-child(-n+2) { border-bottom: 1px solid var(--ph-line); }
  .parish-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .parish-container { width: min(calc(100% - 30px), var(--ph-max)); }
  .parish-hero__image { background:
    linear-gradient(0deg,rgba(28,14,18,.78) 0%,rgba(28,14,18,.12) 72%),
    url('/images/parish-home/hero-mobile.webp') center / cover no-repeat; }
  .parish-hero h1 { font-size: clamp(3.15rem,15vw,5.2rem); }
  .parish-today-wrap { margin-top: -35px; padding-bottom: 55px; }
  .parish-today__grid { grid-template-columns: 1fr; }
  .parish-today__item { border-right: 0; border-bottom: 1px solid var(--ph-line); }
  .parish-today__item:last-child { border-bottom: 0; }
  .parish-news-grid { grid-template-columns: 1fr; }
  .parish-news-card:last-child { grid-column: auto; }
  .parish-community__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 190px 160px 160px; }
  .parish-community__grid figure:first-child { grid-row: auto; }
  .parish-community__grid figure:last-child { grid-column: 1 / 3; }
  .parish-history { grid-template-columns: 1fr; }
  .parish-history__item { border-right: 0; border-bottom: 1px solid var(--ph-line); }
  .parish-history__item:last-child { border-bottom: 0; }
  .parish-cta__links { flex-direction: column; }
  .parish-cta__links a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .parish-hero__light { animation: none; }
  .parish-reveal { opacity: 1; transform: none; transition: none; }
  .parish-news-card, .parish-news-card img, .parish-button { transition: none; }
}
