/* Our Lady of Sorrows Parish — Premium Reskin
   Visual language inspired by an editorial care-brand reference:
   warm ivory + deep olive-blue + champagne gold, serif+sans, glass nav, sticky reveals.
   All original class names preserved so page structure is unchanged.
*/

:root {
  /* Warm neutrals */
  --bg: #FFF9EC;
  /* warm ivory background */
  --bg-soft: #F3E5C5;
  /* alternate champagne cream background */
  --bg-cool: #F3E5C5;
  /* champagne cream */
  --white: #ffffff;

  /* Ink */
  --ink: #3B160F;
  /* deep sacred brown primary text */
  --ink-soft: #52281D;
  --ink-muted: #705B4D;
  /* secondary body text */

  /* Primary brand burgundy */
  --blue: #651B24;
  --blue-600: #43151B;
  --blue-500: #651B24;
  --blue-050: #FFF9EC;

  /* Gold / champagne */
  --gold: #D4A52C;
  --gold-soft: #F3D47A;
  --gold-deep: #A77912;
  --gold-050: #F3E5C5;

  --crimson: #A92D35;

  --line: #E8DCC5;
  --line-divider: #E3D2B4;
  --input-border: #D8C5A0;

  --shadow-sm: 0 1px 2px rgba(59, 22, 15, .04), 0 4px 14px rgba(59, 22, 15, .05);
  --shadow-md: 0 10px 26px -12px rgba(59, 22, 15, .14), 0 20px 48px -20px rgba(59, 22, 15, .10);
  --shadow-lg: 0 24px 60px -20px rgba(59, 22, 15, .20), 0 40px 90px -30px rgba(59, 22, 15, .18);

  --radius: 14px;
  --radius-lg: 22px;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;

  /* header height (kept in sync with header/crest breakpoints below) */
  --header-h: 104px;

  /* fluid spacing */
  --sp-4: clamp(16px, 1.8vw, 28px);
  --sp-5: clamp(24px, 2.6vw, 40px);
  --sp-6: clamp(32px, 3.6vw, 56px);
  --sp-7: clamp(48px, 5vw, 80px);
  --sp-8: clamp(64px, 7vw, 120px);
}

/* Local fallback sized to match Inter, so text doesn't reflow when the web font swaps in */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
  size-adjust: 107.06%;
}

* {
  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(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* `clip` stops sideways panning on iOS (which ignores body overflow-x: hidden)
   without creating a scroll container, so the sticky header keeps working. */
@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #651B24;
  text-decoration: none;
  transition: color .25s ease;
}

a:hover {
  color: #A77912;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: #651B24;
  margin: 0 0 .5em;
  line-height: 1.08;
  letter-spacing: -.005em;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.75rem);
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

h4 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: clamp(11px, .78vw, 13px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A77912;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.rule {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: #D4A52C;
  margin: 18px 0 22px;
  opacity: .8;
}

.rule--center {
  display: block;
  margin: 18px auto 26px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: none !important;
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  font-size: .78rem;
  letter-spacing: .06em;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px clamp(20px, 4vw, 40px);
  max-width: var(--container);
  margin: 0 auto;
}

.topbar a {
  color: rgba(255, 255, 255, .85);
}

.topbar a:hover {
  color: var(--gold-soft);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #651B24;
  border-bottom: 1px solid rgba(212, 165, 44, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  transition: background .35s ease, box-shadow .35s ease;
  padding-top: env(safe-area-inset-top);
}

.site-header.scrolled {
  background: #43151B;
  box-shadow: 0 6px 25px rgba(0, 0, 0, .28);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 3.4vw, 34px);
  padding-left: calc(clamp(16px, 3.4vw, 34px) + env(safe-area-inset-left));
  padding-right: calc(clamp(16px, 3.4vw, 34px) + env(safe-area-inset-right));
  max-width: 1440px;
  margin: 0 auto;
  transition: padding .3s cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 901px) {
  .site-header__inner > div:last-child {
    display: none !important;
  }
}

.site-header.scrolled .site-header__inner {
  padding-top: 2px;
  padding-bottom: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand__crest {
  width: 104px;
  height: 104px;
  background: url('../logo.webp') center/contain no-repeat;
  display: block;
  color: transparent;
  flex-shrink: 0;
  /* Hide the OLS text */
  transition: width .3s cubic-bezier(.22, .61, .36, 1), height .3s cubic-bezier(.22, .61, .36, 1);
}

.site-header.scrolled .brand__crest {
  width: 60px;
  height: 60px;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.brand__sub {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-top: 3px;
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.primary-nav>ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-nav a,
.primary-nav .nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #FFF9EC;
  border-radius: 999px;
  transition: color .25s ease, background .25s ease;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav .nav-parent:hover,
.primary-nav .has-sub:hover>.nav-parent {
  color: #F3D47A;
  background: rgba(243, 212, 122, .16);
}

.primary-nav a[aria-current="page"] {
  color: #651B24;
  background: #F3D47A;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  border-bottom: 2px solid #D4A52C;
}

.has-sub {
  position: relative;
}

.has-sub>ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 6px 0 0 0;
  padding: 10px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease .1s, transform .22s ease .1s, visibility .22s ease .1s;
  z-index: 20;
}

/* Invisible bridge so mouse hover doesn't break when moving over the gap */
.has-sub>ul::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.has-sub:hover>ul,
.has-sub:focus-within>ul,
.has-sub.is-open>ul {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

.has-sub>ul li {
  display: block;
}

.has-sub>ul a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .88rem;
  color: #651B24;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.has-sub>ul a:hover {
  background: #F3E5C5;
  color: #651B24;
}

.has-sub .caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: .55;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .hide-on-mobile {
    display: none !important;
  }

  :root {
    --header-h: 88px;
  }

  .brand__crest {
    width: 80px;
    height: 80px;
  }

  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    bottom: auto;
    background: #651B24;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease;
    opacity: 0;
    pointer-events: none;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 20px 30px -10px rgba(59, 22, 15, .25);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav>ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 14px;
    gap: 4px;
    height: auto;
  }

  .primary-nav a,
  .primary-nav .nav-parent {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: .95rem;
    letter-spacing: .02em;
    text-transform: none;
    color: #FFF9EC;
  }

  .has-sub>ul {
    position: static;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border: none;
    border-left: 2px solid #D4A52C;
    border-radius: 0 10px 10px 0;
    margin: 4px 0 6px 16px;
    padding: 0 0 0 10px;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: none;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.22, .61, .36, 1), opacity 0.4s ease, padding 0.4s ease;
    gap: 3px;
  }

  .has-sub.is-open>ul {
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
    padding: 6px 8px 8px 12px;
  }

  .has-sub .caret {
    transition: transform 0.25s ease;
  }

  .has-sub.is-open>.nav-parent .caret,
  .has-sub.is-open .caret {
    transform: rotate(225deg);
    margin-top: 3px;
  }

  .has-sub>ul li {
    display: block;
    width: 100%;
  }

  .has-sub>ul a {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: #FFF9EC !important;
    letter-spacing: .01em;
    text-transform: none;
    background: transparent;
    box-shadow: none;
    transition: background .2s ease, color .2s ease;
  }

  .has-sub>ul a::after {
    display: none !important;
  }

  .has-sub>ul a:hover,
  .has-sub>ul a:active,
  .has-sub>ul a:focus-visible {
    background: rgba(243, 212, 122, 0.16) !important;
    color: #F3D47A !important;
  }

  .has-sub>ul a[aria-current="page"] {
    background: #F3D47A !important;
    color: #651B24 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }

  .has-sub>ul a[aria-current="page"]::after {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .brand__crest {
    width: 64px;
    height: 64px;
  }
}

/* ---------- Sections ---------- */
section {
  padding: var(--sp-8) 0;
  position: relative;
}

section.tight {
  padding: var(--sp-7) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--sp-6);
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-white {
  background: #ffffff;
}

.bg-cool {
  background: var(--bg-cool);
}

.bg-ink {
  background: var(--ink);
  color: #fff;
}

.bg-ink h1,
.bg-ink h2,
.bg-ink h3 {
  color: #fff;
}

.bg-ink .eyebrow {
  color: var(--gold-soft);
}

/* ---------- Hero (Fit to Screen) ---------- */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h, 76px));
  height: calc(100dvh - var(--header-h, 76px));
  min-height: 560px;
  max-height: 920px;
  display: flex;
  align-items: center;
  padding: 0;
  color: var(--ink, #3B160F);
  overflow: hidden;
  isolation: isolate;
  background: #FFF9EC;
  box-sizing: border-box;
}

.hero>.container {
  width: 100%;
  max-width: 1440px;
  padding: 0 clamp(24px, 4vw, 56px);
  z-index: 2;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #FFF9EC 0%, #FFF9EC 30%, rgba(255, 249, 236, 0.88) 42%, rgba(255, 249, 236, 0.35) 58%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-h, 76px));
    min-height: calc(100dvh - var(--header-h, 76px));
    padding: 60px 0;
  }

  .hero::before {
    background: linear-gradient(to bottom, rgba(255, 249, 236, 0.96) 0%, rgba(255, 249, 236, 0.82) 45%, rgba(255, 249, 236, 0.3) 75%, transparent 100%);
    z-index: 1;
  }

  .hero::after {
    width: 100% !important;
    height: 60% !important;
    top: auto !important;
    bottom: 0 !important;
    right: 0 !important;
    background-position: center center !important;
    -webkit-mask-image: linear-gradient(to top, black 45%, transparent 100%) !important;
    mask-image: linear-gradient(to top, black 45%, transparent 100%) !important;
    opacity: 0.45;
  }
}

/* Hero with Patron Artwork (Mother Mary for Mathruvedi, St. Joseph for Pithruvedi, St. Vincent de Paul, Cherupushpa for CML, Youth for Youth Ministry, Mother Mary for Laity Commission, Catechism, Holy Childhood) */
.hero--mothermary,
.hero--stjoseph,
.hero--vincent,
.hero--cml,
.hero--youth,
.hero--laity,
.hero--catechism,
.hero--holychild {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #FFF9EC 40%, rgba(255, 249, 236, 0.9) 55%, transparent 85%), #FFF9EC !important;
  height: calc(100vh - 54px);
  height: calc(100dvh - 54px);
  min-height: 560px;
  max-height: 760px;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

main>.hero--mothermary:first-child,
main>.hero--stjoseph:first-child,
main>.hero--vincent:first-child,
main>.hero--cml:first-child,
main>.hero--youth:first-child,
main>.hero--laity:first-child,
main>.hero--catechism:first-child,
main>.hero--holychild:first-child {
  height: calc(100vh - var(--header-h, 76px));
  height: calc(100dvh - var(--header-h, 76px));
}

.hero--mothermary::before,
.hero--mothermary::after,
.hero--stjoseph::before,
.hero--stjoseph::after,
.hero--vincent::before,
.hero--vincent::after,
.hero--cml::before,
.hero--cml::after,
.hero--youth::before,
.hero--youth::after,
.hero--laity::before,
.hero--laity::after,
.hero--catechism::before,
.hero--catechism::after,
.hero--holychild::before,
.hero--holychild::after {
  display: none !important;
}

.hero-bg-mary,
.hero-bg-joseph,
.hero-bg-vincent,
.hero-bg-cml,
.hero-bg-youth,
.hero-bg-laity,
.hero-bg-catechism,
.hero-bg-holychild {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 70%;
  max-width: 70vw;
  z-index: 1;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.7) 40%, black 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.7) 40%, black 70%);
}

.hero-bg-mary {
  aspect-ratio: auto;
}

.hero-bg-mary img,
.hero-bg-joseph img,
.hero-bg-cml img,
.hero-bg-youth img,
.hero-bg-laity img,
.hero-bg-catechism img,
.hero-bg-holychild img,
.hero-bg-vincent img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

@media (max-width: 768px) {

  .hero--mothermary,
  .hero--stjoseph,
  .hero--vincent,
  .hero--cml,
  .hero--youth,
  .hero--laity,
  .hero--catechism,
  .hero--holychild {
    height: auto;
    min-height: 480px;
    padding: 60px 0;
    background: #FFF9EC !important;
  }

  .hero-bg-mary,
  .hero-bg-joseph,
  .hero-bg-vincent,
  .hero-bg-cml,
  .hero-bg-youth,
  .hero-bg-laity,
  .hero-bg-catechism,
  .hero-bg-holychild {
    width: 100%;
    max-width: 100%;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  flex: 1;
}

.hero h1 {
  color: #000000;
  margin: 12px 0 22px;
  letter-spacing: -.01em;
  font-weight: 500;
}

.hero .eyebrow {
  color: #000000;
  letter-spacing: .32em;
  font-weight: 700;
}

.hero .eyebrow::before {
  background: #000000;
  width: 32px;
}

.hero .rule {
  background: var(--gold-soft);
  opacity: .9;
}

.hero__lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-muted, #705B4D);
  max-width: 48ch;
  margin-top: 16px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Decorative art badge (replaced with jubilee-year.webp) */

.hero__art {
  width: clamp(120px, 16vw, 220px);
  max-width: none;
  aspect-ratio: 1;
  margin: 0;
  background: url('jubilee-year.webp?v=3') center/contain no-repeat;
  position: absolute;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  display: block;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  box-shadow: none;
  z-index: 5;
}

.hero__art::before {
  display: none;
}

.hero__art-badge {
  display: none !important;
}

.hero__art-badge .num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
}

.hero__art-badge .lbl {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: .9;
  font-family: var(--sans);
  color: var(--gold-soft);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__art {
    margin: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition: all .3s ease;
  border: 1px solid #651B24;
  cursor: pointer;
  background: #651B24;
  color: #FFF9EC;
}

.btn:hover {
  background: #D4A52C;
  border-color: #B58A28;
  color: #3B160F;
  transform: translateY(-1px);
}

.btn--primary {
  background: #651B24;
  border-color: #651B24;
  color: #FFF9EC !important;
  box-shadow: 0 12px 26px -12px rgba(101, 27, 36, .6);
}

.btn--primary:hover {
  background: #D4A52C;
  border-color: #B58A28;
  color: #3B160F !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(101, 27, 36, .75);
}

.btn--gold {
  background: #D4A52C;
  border-color: #D4A52C;
  color: #3B160F !important;
  box-shadow: 0 12px 26px -12px rgba(212, 165, 44, .55);
}

.btn--gold:hover {
  background: #651B24;
  border-color: #651B24;
  color: #FFF9EC !important;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: #B58A28;
  color: #651B24 !important;
  background: transparent;
}

.btn--ghost:hover {
  background: #F3E5C5;
  border-color: #A77912;
  color: #651B24 !important;
}

.btn--outline-gold {
  background: transparent;
  border-color: #B58A28;
  color: #651B24;
}

.btn--outline-gold:hover {
  background: #F3E5C5;
  border-color: #A77912;
  color: #651B24 !important;
}

/* ---------- Global Form Controls ---------- */
input,
textarea,
select {
  font-family: var(--sans);
  background: #FFFFFF;
  color: #3B160F;
  border: 1px solid #D8C5A0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #705B4D;
  opacity: 0.85;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #B58A28;
  box-shadow: 0 0 0 3px rgba(212, 165, 44, 0.22);
}

label {
  color: #651B24;
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #D4A52C;
}

.card__eyebrow {
  color: #A77912;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {

  .grid--2,
.grid--3 {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D4A52C;
}

.tile h3 {
  margin: 0;
  font-size: 1.25rem;
}

.tile p {
  color: var(--ink-muted);
  margin: 0;
  font-size: .95rem;
}

/* ---------- Image placeholder ---------- */
.img-slot {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 58, 64, .10), rgba(23, 97, 106, .14)),
    url("accent.webp") center/cover no-repeat;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .85);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  position: relative;
}

.img-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 36, 21, .05), rgba(31, 36, 21, .35));
}

/* ---------- Person card ---------- */
.person {
  display: grid;
  grid-template-columns: clamp(90px, 15vw, 160px) 1fr;
  gap: 28px;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  align-items: center;
  transition: transform .35s ease, box-shadow .35s ease;
}

.person:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.person .img-slot {
  aspect-ratio: 1/1;
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--gold-soft);
}

.person h3 {
  margin: 0;
  font-size: 1.5rem;
}

.person p {
  color: var(--ink-muted);
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .person {
    padding: 22px;
    gap: 18px;
  }
}

/* ---------- Clergy Box Cards (Parish Council Page) ---------- */
.clergy-grid {
  max-width: 880px;
  margin: 0 auto;
  gap: 32px;
}

.clergy-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm, 0 4px 20px rgba(0, 0, 0, 0.05));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.clergy-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -10px rgba(101, 27, 36, 0.18);
  border-color: var(--gold-soft);
}

.clergy-card__media {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.clergy-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.clergy-card:hover .clergy-card__img {
  transform: scale(1.04);
}

.clergy-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #651B24;
  border: 1px solid rgba(101, 27, 36, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.clergy-card__badge--vicar {
  color: #651B24;
  border-color: rgba(101, 27, 36, 0.25);
}

.clergy-card__badge--asst {
  color: #A77912;
  border-color: rgba(167, 121, 18, 0.25);
}

.clergy-card__content {
  padding: 22px 24px 26px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid #E8DCC5;
}

.clergy-card__name {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: #651B24;
  font-weight: 600;
}

.clergy-card__role {
  margin: 0;
  color: #705B4D;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ---------- Stacked cards scroll ---------- */

.stack__item {
  position: sticky;
  top: var(--stack-top);
  padding: clamp(28px, 3.4vw, 52px);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(59, 22, 15, .35);
  margin-bottom: 28px;
  transform-origin: center top;
  transition: box-shadow .3s ease, transform .3s ease;
  overflow: hidden;
}

.stack__item:nth-child(even) {
  background: linear-gradient(180deg, #fff 0%, var(--gold-050) 100%);
  border-color: var(--gold-soft);
}

.stack__item+.stack__item {
  margin-top: 28px;
}

.stack__item:nth-child(1) {
  top: calc(var(--stack-top));
}

.stack__item:nth-child(2) {
  top: calc(var(--stack-top) + 18px);
}

.stack__item:nth-child(3) {
  top: calc(var(--stack-top) + 36px);
}

.stack__item:nth-child(4) {
  top: calc(var(--stack-top) + 54px);
}

.stack__item:nth-child(5) {
  top: calc(var(--stack-top) + 72px);
}

@media (max-width: 640px) {
  .stack__item {
    position: relative;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack__item {
    position: relative;
    top: auto;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- Previous Parish Priests: Table Cards & Table View ---------- */
.priests-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.priests-count {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.priests-count strong {
  color: #651B24;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.view-toggle {
  display: inline-flex;
  background: #F3E5C5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.view-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #705B4D;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle__btn:hover {
  color: var(--ink);
}

.view-toggle__btn.is-active {
  background: #651B24;
  color: #FFF9EC;
  box-shadow: 0 2px 8px rgba(101, 27, 36, 0.25);
}

.priests-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.priest-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 4px 16px rgba(59, 22, 15, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.priest-card:nth-child(even) {
  background: #FFF9EC;
  border-color: #E8DCC5;
}

.priest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -10px rgba(101, 27, 36, 0.16);
  border-color: #D4A52C;
}

.priest-card__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.priest-card__badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #651B24;
  background: #F3E5C5;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(101, 27, 36, 0.15);
}

.priest-card__badge--parish {
  color: #651B24;
  background: #FFF9EC;
  border-color: rgba(101, 27, 36, 0.25);
}

.priest-card__badge--asst {
  color: #A77912;
  background: #FFF9EC;
  border-color: rgba(167, 121, 18, 0.25);
}

.priest-card__body {
  display: flex;
  align-items: center;
  gap: 18px;
}

.priest-card__photo-wrap {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #D4A52C;
  background: var(--bg-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.priest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.priest-card__photo-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(101, 27, 36, .08), rgba(212, 165, 44, .12));
  color: var(--gold-soft);
}

.priest-card__details {
  flex: 1;
  min-width: 0;
}

.priest-card__name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  color: #651B24;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.priest-card__period {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #651B24;
  background: #F3E5C5;
  border: 1px solid #E8DCC5;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.priest-card__period svg {
  color: #D4A52C;
}

.priest-card__desc {
  font-size: 0.84rem;
  color: #705B4D;
  margin: 0;
  line-height: 1.45;
}

.priests-table__period-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #651B24;
  background: #F3E5C5;
  border: 1px solid #E8DCC5;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Table View */
.priests-table-wrap {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(59, 22, 15, 0.05);
  overflow: hidden;
}

.priests-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.priests-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.priests-table thead tr {
  background: #651B24;
  color: #ffffff;
}

.priests-table th {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
}

.priests-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.priests-table tbody tr:last-child td {
  border-bottom: none;
}

.priests-table tbody tr:hover {
  background: #F3E5C5;
}

.priests-table tbody tr:nth-child(even) {
  background: #FFF9EC;
}

.priests-table tbody tr:nth-child(even):hover {
  background: #F3E5C5;
}

.priests-table__num {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #D4A52C;
  text-align: center;
  display: block;
}

.priests-table__avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #D4A52C;
  margin: 0 auto;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.priests-table__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.priests-table__avatar--placeholder {
  background: linear-gradient(135deg, rgba(101, 27, 36, .08), rgba(212, 165, 44, .12));
  color: var(--gold-soft);
}

.priests-table__name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #651B24;
  margin: 0 0 2px 0;
}

.priests-table__role {
  font-size: 0.82rem;
  color: #A77912;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.priests-table__desc {
  font-size: 0.88rem;
  color: #705B4D;
  margin: 0;
}

@media (max-width: 1024px) {
  .priests-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .priests-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .priest-card {
    padding: 18px;
  }
  .priest-card__photo-wrap {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }
  .priest-card__name {
    font-size: 1.15rem;
  }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.22, .61, .36, 1), transform 1s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger children of a section marked [data-reveal-stagger] */
[data-reveal-stagger]>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}

[data-reveal-stagger].is-in>* {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-in>*:nth-child(1) {
  transition-delay: .05s;
}

[data-reveal-stagger].is-in>*:nth-child(2) {
  transition-delay: .15s;
}

[data-reveal-stagger].is-in>*:nth-child(3) {
  transition-delay: .25s;
}

[data-reveal-stagger].is-in>*:nth-child(4) {
  transition-delay: .35s;
}

[data-reveal-stagger].is-in>*:nth-child(5) {
  transition-delay: .45s;
}

[data-reveal-stagger].is-in>*:nth-child(6) {
  transition-delay: .55s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal-stagger]>* {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Info rows ---------- */
.rows {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease;
}

.rows li:hover {
  padding-left: 8px;
}

.rows li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
}

.rows li:last-child {
  border-bottom: none;
}

/* ---------- Prose ---------- */
.prose p {
  color: var(--ink-soft);
  margin: 0 0 1em;
  font-size: 1.06rem;
}

.prose p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6rem;
  float: left;
  line-height: .9;
  padding: 6px 14px 0 0;
  color: var(--gold);
  font-weight: 500;
}

.prose ol {
  padding-left: 1.4em;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.prose figure {
  margin: 32px 0;
}

.prose figcaption {
  text-align: center;
  color: var(--ink-muted);
  font-size: .9rem;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #3B160F;
  color: #FFF9EC;
  padding: var(--sp-7) 0 32px;
  margin-top: 0;
  border-top: 1px solid #D4A52C;
}

.site-footer h4 {
  color: #F3D47A;
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 20px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.site-footer a {
  color: #FFF9EC;
}

.site-footer a:hover {
  color: #F3D47A;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: .93rem;
}

.footer-brand p {
  color: #D8C5B5;
  font-size: .95rem;
  max-width: 34ch;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 165, 44, .25);
  font-size: .82rem;
  color: #D8C5B5;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  letter-spacing: .05em;
}

.footer-bottom .accent {
  color: #F3D47A;
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: .04em;
}

/* ---------- Utility ---------- */
.center {
  text-align: center;
}

.mt-2 {
  margin-top: 16px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
}

/* ---------- Sticky Slides ---------- */
.sticky-slides {
  position: relative;
}

.sticky-slides__slide {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.sticky-slides__slide .inner {
  max-width: 900px;
  margin: 0 auto;
}

.sticky-slides__slide h2,
.sticky-slides__slide h3 {
  color: #fff;
  font-family: var(--serif);
}

.sticky-slides__slide h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: .4em;
}

.sticky-slides__slide p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 1em;
}

.sticky-slides__slide.s-1 {
  background: linear-gradient(180deg, #FFF9EC 0%, #F3E5C5 100%);
  color: #3B160F;
}

.sticky-slides__slide.s-1 h2,
.sticky-slides__slide.s-1 h3 {
  color: #651B24;
}

.sticky-slides__slide.s-1 p {
  color: #3B160F;
}

.sticky-slides__slide.s-2 {
  background: linear-gradient(180deg, #651B24 0%, #3B160F 100%);
}

.sticky-slides__slide.s-3 {
  background: linear-gradient(180deg, #3B160F 0%, #651B24 100%);
}

.sticky-slides__slide.s-4 {
  background: linear-gradient(180deg, #651B24 0%, #43151B 100%);
}

.sticky-slides__slide.s-5 {
  background: linear-gradient(180deg, #43151B 0%, #3B160F 100%);
}

.sticky-slides__cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
  .sticky-slides__slide {
    position: relative;
    min-height: auto;
    padding: 60px 24px;
  }
}

/* Embeds */
.embed {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #000;
}

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Selection */
::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

/* ============================================================
   MOTION UPGRADE - animations, choreography, micro-interactions
   Appended additions; overrides earlier rules where noted.
   ============================================================ */

/* ---------- Hero Backdrop (70% coverage with feathered alpha-blend) ---------- */
.hero__backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.04) 5%, rgba(0, 0, 0, 0.25) 18%, rgba(0, 0, 0, 0.75) 38%, black 65%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.04) 5%, rgba(0, 0, 0, 0.25) 18%, rgba(0, 0, 0, 0.75) 38%, black 65%);
}

.hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #FFF9EC 0%, rgba(255, 249, 236, 0.85) 10%, rgba(255, 249, 236, 0.3) 28%, transparent 55%);
  pointer-events: none;
}

.hero:has(.hero__backdrop)::after,
.hero.has-backdrop::after {
  display: none !important;
}

@media (max-width: 768px) {
  .hero__backdrop {
    width: 100% !important;
    height: 60% !important;
    top: auto !important;
    bottom: 0 !important;
    -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%) !important;
    mask-image: linear-gradient(to top, black 40%, transparent 100%) !important;
    opacity: 0.45;
  }
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 100%;
  z-index: 0;
  background-image: url("church.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.7) 40%, black 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.15) 15%, rgba(0, 0, 0, 0.7) 40%, black 70%);
  pointer-events: none;
  transform: none;
  animation: none;
}

/* Page-specific Hero Background Images (Cover 70% with customized focus) */
.hero--patroness::after {
  background-image: url("hero section images/Mother mary Our Patroness.jpg.webp");
  background-position: center 15%;
}

.hero--hierarchy::after {
  background-image: url("hero section images/Our Church Hierarchy.jpg.webp");
  background-position: center 20%;
}

.hero--business::after {
  background-image: url("hero section images/Business.webp");
  background-position: center center;
}

.hero--cri::after {
  background-image: url("hero section images/CRI Electronics City.webp");
  background-position: center 20%;
}

.hero--construction::after {
  background-image: url("hero section images/Construction Committee.jpg.webp");
  background-position: center 30%;
}

.hero--donate::after {
  background-image: url("hero section images/Donate to Parish.jpg.webp");
  background-position: center 20%;
}

.hero--obituaries::after {
  background-image: url("hero section images/Obituaries.jpg.webp");
  background-position: center center;
}

.hero--choir::after {
  background-image: url("hero section images/Parish Choir 1.jpg.webp");
  background-position: center 25%;
}

.hero--saints::after {
  background-image: url("hero section images/Saints in the Syro-Malabar Church.webp");
  background-position: center center;
}

.hero--history::after {
  background-image: url("hero section images/parish History.webp");
  background-position: center 35%;
}

.hero--wards::after {
  background-image: url("hero section images/wards.webp");
  background-position: center center;
}

.hero--youth::after {
  background-image: url("hero section images/youth ministry.webp");
  background-position: center 30%;
}

.hero--stjoseph::after {
  background-image: url("hero section images/pithruedi.webp");
  background-position: center 20%;
}

.hero>.container {
  position: relative;
  z-index: 1;
}

/* Sequence: eyebrow -> h1 -> lead -> CTA -> badge */
.hero .eyebrow,
.hero h1,
.hero .hero__lead,
.hero .hero__cta,
.hero .hero__art {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise .9s cubic-bezier(.22, .61, .36, 1) forwards;
}

.hero .eyebrow {
  animation-delay: .10s;
}

.hero h1 {
  animation-delay: .25s;
  transform: translateY(24px);
}

.hero .hero__lead {
  animation-delay: .40s;
}

.hero .hero__cta {
  animation-delay: .55s;
}

.hero .hero__art {
  animation-delay: .70s;
  transform: translateY(28px) scale(.96);
  animation-name: heroBadgeIn;
}

@keyframes heroRise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroBadgeIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reveal variants ---------- */
[data-reveal="fade-up"],
[data-reveal="fade-scale"],
[data-reveal="slide-left"],
[data-reveal="slide-right"] {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal="fade-up"] {
  transform: translateY(32px);
}

[data-reveal="fade-scale"] {
  transform: scale(.94);
}

[data-reveal="slide-left"] {
  transform: translateX(-40px);
}

[data-reveal="slide-right"] {
  transform: translateX(40px);
}

[data-reveal="fade-up"].is-in,
[data-reveal="fade-scale"].is-in,
[data-reveal="slide-left"].is-in,
[data-reveal="slide-right"].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Nav underline sweep + active marker ---------- */
.primary-nav a {
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  border-radius: 2px;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.primary-nav a[aria-current="page"]::after {
  display: none;
}

.primary-nav a[aria-current="page"] {
  transform: none;
}

/* ---------- Tile/Card/Person hover: icon nudge + shadow lift ---------- */

.card {
  transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .45s ease, border-color .45s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.person {
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease;
}

.person .img-slot {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), border-color .4s ease;
}

.person:hover .img-slot {
  transform: scale(1.05) rotate(-2deg);
  border-color: var(--gold);
}

/* ---------- Button press / magnetic feel ---------- */
.btn {
  will-change: transform;
  transition: transform .18s cubic-bezier(.22, .61, .36, 1), background .3s ease, color .3s ease, box-shadow .3s ease;
}

.btn:active {
  transform: scale(.96) translateY(0) !important;
  transition-duration: .08s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover::before {
  opacity: 1;
}

/* ---------- Hamburger -> X ---------- */
.nav-toggle {
  position: relative;
  padding-left: 42px;
}

.nav-toggle::before,
.nav-toggle::after,
.nav-toggle>.bar {
  content: "";
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .25s ease, top .35s ease;
  border-radius: 2px;
}

.nav-toggle::before {
  top: calc(50% - 6px);
}

.nav-toggle::after {
  top: calc(50% + 4px);
}

.nav-toggle>.bar {
  top: calc(50% - 1px);
}

.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translateY(-1px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  top: 50%;
  transform: translateY(-1px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"]>.bar {
  opacity: 0;
}

/* ---------- Mobile nav stagger ---------- */
@media (max-width: 900px) {
  .primary-nav>ul>li {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s ease, transform .35s ease;
  }

  .primary-nav.is-open>ul>li {
    opacity: 1;
    transform: none;
  }

  .primary-nav.is-open>ul>li:nth-child(1) {
    transition-delay: .05s;
  }

  .primary-nav.is-open>ul>li:nth-child(2) {
    transition-delay: .10s;
  }

  .primary-nav.is-open>ul>li:nth-child(3) {
    transition-delay: .15s;
  }

  .primary-nav.is-open>ul>li:nth-child(4) {
    transition-delay: .20s;
  }

  .primary-nav.is-open>ul>li:nth-child(5) {
    transition-delay: .25s;
  }

  .primary-nav.is-open>ul>li:nth-child(6) {
    transition-delay: .30s;
  }
}

/* ---------- Image blur-up / fade-scale on load ---------- */
img.motion-img {
  opacity: 0;
  transform: scale(1.02);
  filter: blur(10px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22, .61, .36, 1), filter .8s ease;
}

img.motion-img.is-loaded {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- View Transitions ---------- */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .35s;
  animation-timing-function: cubic-bezier(.22, .61, .36, 1);
}

::view-transition-old(root) {
  animation-name: vt-fade-out;
}

::view-transition-new(root) {
  animation-name: vt-fade-in;
}

@keyframes vt-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Fallback page-load fade (browsers without view transitions) */
html.pt-fade body {
  animation: ptIn .45s cubic-bezier(.22, .61, .36, 1) both;
}

html.pt-out body {
  animation: ptOut .28s ease both;
}

@keyframes ptIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ptOut {
  to {
    opacity: 0;
  }
}

/* ---------- Counter styling hook ---------- */
[data-counter] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Reduced motion overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero::after {
    animation: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .hero__lead,
  .hero .hero__cta,
  .hero .hero__art {
    animation: none;
    opacity: 1;
    transform: none;
  }

  [data-reveal],
  [data-reveal-stagger]>*,
  [data-reveal="fade-up"],
  [data-reveal="fade-scale"],
  [data-reveal="slide-left"],
  [data-reveal="slide-right"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  img.motion-img {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  html.pt-fade body,
  html.pt-out body {
    animation: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ============================================================
   Saints carousel - fade + slide transition
   ============================================================ */

/* ============================================================
   Awards – Uniform Scroll Gallery
   ============================================================ */

.awards-ext {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.awards-scroll-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 1.5rem 1rem 2.5rem !important;
  scroll-behavior: auto !important;
  white-space: nowrap !important;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft) transparent;
}

.awards-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.awards-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--gold-soft);
  border-radius: 999px;
}

.awards-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

.awards-scroll-wrapper:active {
  cursor: grabbing;
}

.awards-scroll-wrapper .img-wrapper {
  flex: 0 0 auto !important;
  width: 270px !important;
  margin: 0 !important;
  transform: none !important;
}

.awards-scroll-wrapper .img-wrapper a {
  display: flex !important;
  flex-direction: column !important;
  width: 270px !important;
  height: 270px !important;
  padding: 10px !important;
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.awards-scroll-wrapper .img-wrapper:hover a {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 28px rgba(101, 27, 36, 0.16), 0 0 0 1px var(--gold-soft) !important;
}

.awards-scroll-wrapper .img-wrapper img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  vertical-align: top !important;
  filter: none !important;
  transition: transform 0.25s ease !important;
}

@media (max-width: 768px) {
  .awards-scroll-wrapper {
    gap: 14px !important;
    padding: 1rem 0.5rem 2rem !important;
  }

  .awards-scroll-wrapper .img-wrapper {
    width: 210px !important;
  }

  .awards-scroll-wrapper .img-wrapper a {
    width: 210px !important;
    height: 210px !important;
    padding: 8px !important;
    border-radius: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awards-scroll-wrapper .img-wrapper a,
  .awards-scroll-wrapper .img-wrapper img {
    transition: none !important;
  }
}

/* ---------- Ministries horizontal scroll ---------- */
.ministries-scroll {
  position: relative;
  margin-top: 2rem;
}

.ministries-scroll__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 1rem .25rem 1.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ministries-scroll__track::-webkit-scrollbar {
  height: 8px;
}

.ministries-scroll__track::-webkit-scrollbar-thumb {
  background: #D4A52C;
  border-radius: 999px;
}

.ministries-scroll__track::-webkit-scrollbar-track {
  background: transparent;
}

.ministry-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px -12px rgba(59, 22, 15, .25);
  transition: transform .4s ease, box-shadow .4s ease;
}

.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(59, 22, 15, .35);
}

.ministry-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #F3E5C5;
}

.ministry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}

.ministry-card:hover .ministry-card__media img {
  transform: scale(1.06);
}

.ministry-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.ministry-card__body h3 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.4rem;
  color: #651B24;
}

.ministry-card__body p {
  margin: 0;
  font-size: .92rem;
  color: #705B4D;
  flex: 1;
}

.ministry-card__link {
  margin-top: .5rem;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #651B24;
  font-weight: 600;
}

.ministries-scroll__hint {
  text-align: center;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted, #8a8a80);
  opacity: .7;
}

@media (min-width: 1200px) {
  .ministries-scroll__hint {
    display: none;
  }
}

/* ---------- Looping marquee (auto horizontal scroll) ---------- */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  container-type: inline-size;
  container-name: marquee;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  flex: 0 0 auto;
  display: block;
  margin: 6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .25);
  transition: transform .35s ease, box-shadow .35s ease;
}

.marquee__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .35);
}

.marquee__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marquee--saints {
  --marquee-duration: 24s;
}

.marquee--saints .marquee__item {
  width: calc((100cqw - 6rem) / 4);
  max-width: 240px;
  min-width: 170px;
  aspect-ratio: 3 / 4;
  position: relative;
}

@supports not (width: 1cqw) {
  .marquee--saints .marquee__item {
    width: calc((100% - 6rem) / 4);
  }
}

.marquee--saints .marquee__item img {
  position: absolute;
  inset: 0;
}

.marquee--saints .marquee__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .55rem .7rem;
  font: 500 .78rem/1.2 var(--font-sans, system-ui);
  color: #fff;
  text-align: center;
  letter-spacing: .01em;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- Mass Timings Cards ---------- */
.mass-section {
  padding-bottom: 4rem;
}

/* ---------- Quote Banner ---------- */
.mass-quote {
  margin-top: 4rem;
  background: #FFF9EC;
  border: 1px solid #E8DCC5;
  border-radius: 999px;
  padding: 2.5rem 3rem 1.5rem;
  text-align: center;
  position: relative;
}

.mass-quote__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.mass-quote .quote-mark {
  color: #D4A52C;
  font-family: var(--serif, serif);
  font-size: 3.5rem;
  line-height: 1;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: #FFF9EC;
  border: 1px solid #E8DCC5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(59, 22, 15, 0.05);
  padding-top: 24px;
}

.mass-quote p {
  margin: 0;
  font-family: var(--serif, serif);
  font-size: 1.6rem;
  color: var(--ink);
  display: inline;
}

.mass-quote .quote-author {
  color: #A77912;
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   Parish Announcements — redesigned editorial layout
   ============================================================ */

.announce-section {
  padding: 0 0 var(--sp-7);
}

.announce-wide-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.announce-hero {
  position: relative;
  min-height: 400px;
  background-color: #F3E5C5;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.announce-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../assets/church.webp');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.15;
  filter: sepia(0.6) grayscale(1) contrast(1.2);
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 50%, transparent 100%);
  mask-composite: intersect;
  z-index: 1;
}

.announce-hero__content {
  padding: 2rem 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.announce-hero__cross {
  font-size: 1.4rem;
  color: #D4A52C;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 4px;
}

.announce-hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #651B24;
  margin: 0;
  line-height: 1.05;
  font-weight: 400;
}

.announce-hero__title span {
  color: #3B160F;
  display: block;
}

.announce-hero__rule {
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #D4A52C, #F3D47A);
  margin: 1.25rem 0 1rem;
  position: relative;
}

.announce-hero__rule::after {
  content: "◆";
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #D4A52C;
  font-size: .55rem;
  background: #F3E5C5;
  padding: 0 4px;
}

.announce-hero__sub {
  font-family: var(--sans);
  color: #705B4D;
  font-size: 0.9rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.announce-hero__sub em {
  font-style: normal;
}

.announce-body {
  display: grid;
  grid-template-columns: 240px 1.4fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 -4px 40px -10px rgba(59, 22, 15, .18), var(--shadow-md);
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin-top: -2px;
}

.announce-quote-card {
  background: linear-gradient(160deg, #FFF9EC 0%, #F3E5C5 100%);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-right: 1px solid var(--line);
}

.announce-quote-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #D4A52C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announce-quote-mark {
  font-family: var(--serif);
  font-size: 4rem;
  color: #D4A52C;
  line-height: 1;
  margin-top: -.5rem;
}

.announce-blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.announce-cite {
  font-size: .85rem;
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 500;
  letter-spacing: .04em;
}

.announce-items {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 1100px) {
  .announce-body {
    grid-template-columns: 200px 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .announce-body {
    grid-template-columns: 1fr;
  }

  .announce-quote-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 2rem;
  }

  .announce-notice {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ============================================================
   Parish Consecration Invitation Booklet — Horizontal Scroll
   ============================================================ */

.invitation-booklet {
  background: #ffffff;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid #E8DCC5;
  box-shadow: 0 -4px 40px -10px rgba(59, 22, 15, .15), 0 20px 45px -15px rgba(59, 22, 15, 0.1);
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin-top: -2px;
}

/* Header */
.inv-header {
  background: linear-gradient(135deg, #FFF9EC 0%, #F5E8D0 100%);
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem);
  border-bottom: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.inv-header__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #651B24;
  background: rgba(101, 27, 36, 0.08);
  border: 1px solid rgba(212, 165, 44, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.inv-badge svg {
  color: #D4A52C;
}

.inv-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #3B160F;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

.inv-subtitle {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #705B4D;
  margin: 0;
}

.inv-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Navigation Buttons & Counter */
.inv-nav-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inv-page-counter {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #651B24;
  font-weight: 500;
  background: #FFFDF9;
  border: 1px solid #E8DCC5;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
}

.inv-page-counter strong {
  font-weight: 700;
  color: #651B24;
}

.inv-buttons {
  display: flex;
  gap: 0.4rem;
}

.inv-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #651B24;
  border: 1.5px solid #D4A52C;
  color: #FFF9EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(101, 27, 36, 0.18);
  padding: 0;
}

.inv-nav-btn:hover:not(:disabled) {
  background: #7d222d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(101, 27, 36, 0.28);
  border-color: #F3D47A;
}

.inv-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.inv-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  border-color: #c9bea7;
}

.inv-nav-btn.is-pulsing {
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 44, 0.6), 0 4px 12px rgba(101, 27, 36, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(212, 165, 44, 0), 0 6px 16px rgba(101, 27, 36, 0.25); }
}

/* Carousel Viewport */
.inv-carousel-wrap {
  position: relative;
  background: #FAF6EF;
  overflow: hidden;
}

.inv-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: 2rem clamp(1rem, 3.5vw, 2.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #D4A52C #FAF6EF;
}

.inv-track::-webkit-scrollbar {
  height: 8px;
}

.inv-track::-webkit-scrollbar-track {
  background: #FAF6EF;
}

.inv-track::-webkit-scrollbar-thumb {
  background: #D4A52C;
  border-radius: 4px;
}

.inv-track::-webkit-scrollbar-thumb:hover {
  background: #651B24;
}

/* Teaser peek keyframe */
@keyframes teasePeek {
  0% { transform: translateX(0); }
  35% { transform: translateX(-80px); }
  65% { transform: translateX(-80px); }
  100% { transform: translateX(0); }
}

.inv-track--nudging {
  animation: teasePeek 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Cards */
.inv-card {
  flex: 0 0 clamp(320px, 42vw, 460px);
  max-width: 460px;
  scroll-snap-align: center;
  user-select: none;
}

@media (max-width: 680px) {
  .inv-card {
    flex: 0 0 82vw;
    max-width: 340px;
  }
}

.inv-card__inner {
  background: #FFFDF9;
  border: 1.5px solid #E8DCC5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(59, 22, 15, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.inv-card:hover .inv-card__inner {
  transform: translateY(-4px);
  border-color: #D4A52C;
  box-shadow: 0 18px 40px -10px rgba(101, 27, 36, 0.18), 0 6px 14px rgba(0, 0, 0, 0.06);
}

.inv-card__header {
  padding: 0.75rem 1rem;
  background: #FFF9EC;
  border-bottom: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inv-card__tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #651B24;
  background: rgba(101, 27, 36, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.inv-card__label {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #3B160F;
}

.inv-card__media {
  position: relative;
  background: #f5eedf;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: zoom-in;
}

.inv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-card:hover .inv-card__media img {
  transform: scale(1.02);
}

.inv-card__footer {
  padding: 0.9rem 1.15rem;
  background: #FFFDF9;
  border-top: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.inv-card__title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #3B160F;
  margin: 0 0 0.15rem;
  line-height: 1.25;
}

.inv-card__sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: #705B4D;
  margin: 0;
}

.inv-card__expand {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FFF9EC;
  border: 1px solid #E8DCC5;
  color: #651B24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}

.inv-card__expand:hover {
  background: #651B24;
  color: #FFF9EC;
  border-color: #651B24;
}

/* Bottom Bar */
.inv-bottom-bar {
  background: #FFF9EC;
  padding: 1.1rem clamp(1rem, 3vw, 2.25rem);
  border-top: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.inv-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFDF9;
  border: 1.5px solid #E8DCC5;
  color: #705B4D;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.inv-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9bea7;
  transition: background 0.2s ease, transform 0.2s ease;
}

.inv-pill__num {
  font-size: 0.75rem;
  opacity: 0.7;
}

.inv-pill:hover {
  border-color: #D4A52C;
  color: #651B24;
  transform: translateY(-1px);
}

.inv-pill.active {
  background: #651B24;
  border-color: #D4A52C;
  color: #FFF9EC;
  box-shadow: 0 4px 12px rgba(101, 27, 36, 0.2);
}

.inv-pill.active .inv-pill__dot {
  background: #D4A52C;
  transform: scale(1.3);
}

.inv-download-action {
  margin-left: auto;
}

.inv-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #651B24;
  text-decoration: none;
  background: #FFFDF9;
  border: 1px solid #D4A52C;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.inv-action-link:hover {
  background: #651B24;
  color: #FFF9EC;
}

/* Lightbox Modal — native <dialog> */
.inv-lightbox {
  display: none;
}

.inv-lightbox:not([open]) {
  display: none !important;
}

.inv-lightbox[open] {
  /* Reset all dialog browser defaults */
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  /* Full viewport fixed overlay in top-layer */
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  /* Layout */
  display: flex !important;
  flex-direction: column !important;
  /* Transparent bg — backdrop handles the dim */
  background: transparent !important;
  overflow: hidden !important;
  z-index: 2147483646 !important;
}

/* The dark dim overlay */
.inv-lightbox::backdrop {
  background: rgba(10, 4, 2, 0.93) !important;
}

.inv-lightbox__bar {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFF9EC;
  background: rgba(15, 5, 3, 0.98);
  border-bottom: 1px solid rgba(212, 165, 44, 0.3);
  flex-shrink: 0;
}

.inv-lightbox__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
}

.inv-lightbox__counter {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #D4A52C;
  font-weight: 600;
  margin-left: 0.75rem;
}

.inv-lightbox__close {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.inv-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #D4A52C;
  color: #D4A52C;
}

.inv-lightbox__stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 4rem;
  overflow: hidden;
}

.inv-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.inv-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(101, 27, 36, 0.85);
  border: 1.5px solid #D4A52C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.inv-lightbox__nav:hover {
  background: #651B24;
  transform: translateY(-50%) scale(1.08);
}

.inv-lightbox__nav--prev {
  left: 1.5rem;
}

.inv-lightbox__nav--next {
  right: 1.5rem;
}

@media (max-width: 768px) {
  .inv-lightbox__stage {
    padding: 1rem 0.5rem;
  }
  .inv-lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .inv-lightbox__nav--prev {
    left: 0.5rem;
  }
  .inv-lightbox__nav--next {
    right: 0.5rem;
  }
}

/* ============================================================
   Catechism Department — editorial redesign
   ============================================================ */

.catechism-section {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.catechism-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(55%, 640px);
  aspect-ratio: 4 / 5;
  max-height: 75vh;
  pointer-events: none;
  z-index: 0;
}

.catechism-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(65%) sepia(8%) brightness(1.05);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 50%,
      transparent 100%),
    linear-gradient(to right,
      transparent 0%,
      black 35%,
      black 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 50%,
      transparent 100%),
    linear-gradient(to right,
      transparent 0%,
      black 35%,
      black 100%);
  mask-composite: intersect;
}

.catechism-inner {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: clamp(20px, 5vh, 60px);
  padding-bottom: clamp(20px, 4vh, 48px);
}

.catechism-head {
  max-width: 520px;
  margin-bottom: clamp(16px, 3vh, 40px);
}

.catechism-title {
  font-size: clamp(1.9rem, 5vh, 4.5rem);
  line-height: 1.0;
  margin: 4px 0 clamp(8px, 1.5vh, 18px);
}

.catechism-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(10px, 1.8vh, 20px);
}

.catechism-rule__line {
  flex: 0 0 48px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}

.catechism-rule__diamond {
  color: var(--gold);
  font-size: .5rem;
  flex-shrink: 0;
}

.catechism-desc {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 50ch;
  margin: 0;
}

.catechism-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.6rem, 1.2vw, 1.25rem);
  align-content: start;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  border: 1px solid #E8DCC5;
  padding: clamp(.9rem, 2.5vh, 2rem) 1.5rem clamp(.7rem, 2vh, 1.5rem);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease, border-color .4s ease;
  box-shadow: 0 8px 32px -16px rgba(59, 22, 15, .12);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px rgba(59, 22, 15, .22);
  border-color: #D4A52C;
}

.cat-card__icon {
  width: clamp(54px, 8vh, 80px);
  height: clamp(54px, 8vh, 80px);
  border-radius: 50%;
  background: radial-gradient(circle at top, #FFF9EC, #F3E5C5);
  border: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(.6rem, 1.5vh, 1.25rem);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(101, 27, 36, 0.12);
  transition: border-color .35s ease, box-shadow .35s ease;
}

.cat-card:hover .cat-card__icon {
  border-color: #D4A52C;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 6px 20px rgba(101, 27, 36, 0.2);
}

.cat-card__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #651B24;
  margin: 0 0 .5rem;
  line-height: 1.2;
}

.cat-card__rule {
  display: block;
  color: #D4A52C;
  font-size: .55rem;
  margin: .5rem 0 .75rem;
  letter-spacing: .5em;
}

.cat-card__desc {
  font-size: .9rem;
  color: #705B4D;
  line-height: 1.65;
  margin: 0 0 auto;
  flex: 1;
}

.cat-card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #651B24;
  border-bottom: 1px solid #D4A52C;
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}

.cat-card:hover .cat-card__link {
  color: #A77912;
  border-color: #A77912;
}

.cat-card__watermark {
  position: absolute;
  bottom: -8px;
  right: -8px;
  pointer-events: none;
}

@media (max-width: 900px) {

  .catechism-section {
    padding-top: 0;
  }

  .catechism-bg-img {
    width: 100%;
    aspect-ratio: auto;
    height: 240px;
    max-height: none;
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: -20px;
  }

  .catechism-bg-img img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  }

  .catechism-head {
    max-width: 100%;
  }

  .catechism-cards {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .cat-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.1rem;
  }

  .cat-card__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
  }

  .cat-card__body-mobile {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .cat-card__title {
    font-size: 1.1rem;
    margin: 0 0 .2rem;
  }

  .cat-card__rule {
    display: none;
  }

  .cat-card__desc {
    font-size: .85rem;
    line-height: 1.55;
    margin: 0 0 .6rem;
    flex: unset;
  }

  .cat-card__link {
    margin-top: 0;
    font-size: .7rem;
  }

  .cat-card__watermark {
    display: none;
  }
}

@media (max-width: 640px) {
  .catechism-section {
    padding: var(--sp-6) 0;
  }

  .catechism-title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .catechism-desc {
    font-size: .92rem;
  }
}

/* ============================================================
   Publications — Circulars, Pastoral Letters & Bulletins
   ============================================================ */

.pub-section {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.pub-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: min(48%, 560px);
  aspect-ratio: 4 / 5;
  max-height: 72vh;
  pointer-events: none;
  z-index: 0;
}

.pub-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(60%) sepia(10%) brightness(1.05);
  -webkit-mask-image: linear-gradient(to bottom,
      black 0%,
      black 45%,
      transparent 100%),
    linear-gradient(to right,
      transparent 0%,
      black 30%,
      black 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom,
      black 0%,
      black 45%,
      transparent 100%),
    linear-gradient(to right,
      transparent 0%,
      black 30%,
      black 100%);
  mask-composite: intersect;
}

.pub-inner {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: clamp(18px, 4.5vh, 56px);
  padding-bottom: clamp(18px, 3.5vh, 48px);
}

.pub-head {
  max-width: 560px;
  margin-bottom: clamp(14px, 2.5vh, 36px);
}

.pub-title {
  font-size: clamp(1.7rem, 4.5vh, 3.6rem);
  line-height: 1.05;
  margin: 6px 0 clamp(8px, 1.5vh, 16px);
}

.pub-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
}

.pub-rule__line {
  flex: 0 0 48px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}

.pub-rule__diamond {
  color: var(--gold);
  font-size: .5rem;
  flex-shrink: 0;
}

.pub-desc {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 46ch;
}

.pub-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pub-card {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  border: 1px solid #E8DCC5;
  padding: 1.5rem 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease, border-color .4s ease;
  box-shadow: 0 4px 20px -10px rgba(59, 22, 15, .10);
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(59, 22, 15, .18);
  border-color: #D4A52C;
}

.pub-card__left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.pub-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #FFF9EC, #F3E5C5);
  border: 1px solid #E8DCC5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: border-color .35s ease;
}

.pub-card:hover .pub-card__icon {
  border-color: #D4A52C;
}

.pub-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pub-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #651B24;
  margin: 0 0 .4rem;
  line-height: 1.2;
}

.pub-card__rule {
  display: block;
  width: 36px;
  height: 1.5px;
  background: #D4A52C;
  margin: 0 0 .7rem;
  opacity: .8;
}

.pub-card__desc {
  font-size: .88rem;
  color: #705B4D;
  line-height: 1.6;
  margin: 0 0 .8rem;
}

.pub-card__link {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #651B24;
  border-bottom: 1px solid #D4A52C;
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
  margin-top: auto;
}

.pub-card:hover .pub-card__link {
  color: #A77912;
  border-color: #A77912;
}

.pub-card__wm {
  flex-shrink: 0;
  align-self: flex-end;
  margin-left: .5rem;
  pointer-events: none;
}

@media (max-width: 900px) {
  .pub-section {
    padding-top: 0;
  }

  .pub-bg-img {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    aspect-ratio: auto;
    height: 200px;
    max-height: none;
    margin-bottom: -20px;
  }

  .pub-bg-img img {
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  }

  .pub-head {
    max-width: 100%;
    margin-bottom: var(--sp-4);
  }

  .pub-title {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .pub-cards {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .pub-card__wm {
    display: none;
  }

  .pub-card {
    padding: 1.1rem;
  }
}

/* ============================================================
   Explore Section — Our humble beginnings...
   ============================================================ */

.explore-section {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0 var(--sp-6);
  background: var(--bg-body);
}

.explore-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 80%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  filter: sepia(0.6) grayscale(1) contrast(1.2);
}

.explore-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 50%, transparent 100%);
  mask-composite: intersect;
}

.explore-inner {
  position: relative;
  z-index: 1;
}

.explore-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow--center {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.explore-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: #651B24;
  margin: 12px 0 16px;
}

.explore-rule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}

.explore-rule__line {
  flex: 0 0 60px;
  height: 1px;
  background: #D4A52C;
  opacity: .5;
}

.explore-rule__diamond {
  color: #D4A52C;
  font-size: 0.5rem;
}

.explore-desc {
  color: #705B4D;
  font-size: 1.05rem;
  line-height: 1.6;
}

.explore-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--sp-6);
}

.exp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2.5rem 1.5rem 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px -12px rgba(59, 22, 15, 0.08), 0 3px 0 0 #651B24;
}

.exp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px -12px rgba(59, 22, 15, 0.12), 0 3px 0 0 #D4A52C;
}

.exp-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #E8DCC5;
  background: #FFF9EC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #A77912;
  transition: background 0.3s ease, transform 0.3s ease;
}

.exp-card:hover .exp-card__icon {
  background: #fff;
  transform: scale(1.05);
}

.exp-card__rule {
  display: block;
  width: 24px;
  height: 2px;
  background: #D4A52C;
  opacity: 0.6;
  margin: 0 auto 1.5rem;
}

.exp-card__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #651B24;
  margin: 0 0 0.75rem;
}

.exp-card__desc {
  font-size: 0.88rem;
  color: #705B4D;
  line-height: 1.5;
  flex-grow: 1;
  margin: 0 0 1.5rem;
}

.exp-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #651B24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.exp-card:hover .exp-card__link {
  color: #A77912;
}

.explore-ornament {
  display: flex;
  justify-content: center;
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .explore-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .explore-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .explore-bg-img {
    width: 100%;
    height: 300px;
    opacity: 0.08;
    object-position: center top;
  }
}

@media (max-width: 899px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .mobile-only {
    display: none !important;
  }
}

/* Scrolly Animation */
.scrolly {
  position: relative;
  padding: 60px 0 120px;
}

.scrolly-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.scrolly-media {
  position: sticky;
  top: 15vh;
  height: 70vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.scrolly-media .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 1s ease;
  transform: scale(1.06);
}

.scrolly-media .img.on {
  opacity: 1;
  transform: scale(1);
}

.scrolly-steps {
  display: flex;
  flex-direction: column;
  gap: 35vh;
  padding: 15vh 0;
}

.scrolly .step {
  opacity: 0.25;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
}

.scrolly .step.on {
  opacity: 1;
  transform: translateY(0);
}

.scrolly .step .num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.scrolly .step h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 16px 0;
}

.scrolly .step p {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==========================================================================
   New 3-Card Mass & Worship Schedule Section
   ========================================================================== */
.mass-schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

@media (max-width: 1200px) {
  .mass-schedule-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.schedule-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #E8DCC5;
  box-shadow: 0 10px 28px -10px rgba(59, 22, 15, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(59, 22, 15, 0.14);
  border-color: #D4A52C;
}

.schedule-card__parish-hero {
  padding: 10px 16px 0px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(212, 165, 44, 0.18) 0%, transparent 70%);
}

.schedule-card__church-crest {
  width: 46px;
  height: 46px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #E8DCC5;
  box-shadow: 0 3px 10px rgba(101, 27, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-card__body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.schedule-card__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: #651B24;
  text-align: center;
  margin: 0 0 2px;
}

.schedule-card__ornament {
  text-align: center;
  color: #D4A52C;
  font-size: 0.75rem;
  margin-bottom: 6px;
  opacity: 0.85;
}

.schedule-card__subtitle {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: #705B4D;
  text-align: center;
  margin: -2px 0 10px;
  font-weight: 500;
}

.schedule-card__subtitle--italic {
  font-style: italic;
  font-size: 1.2rem;
  color: #651B24;
  margin-top: -4px;
}

.schedule-card__section {
  margin-top: 6px;
}

.schedule-card__section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #651B24;
  text-align: center;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.schedule-card__pill-label {
  background: #651B24;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  display: inline-block;
  margin: 0 auto 6px;
}

.schedule-timings-box {
  background: #FFF9EC;
  border-radius: 12px;
  border: 1px solid #E8DCC5;
  box-shadow: 0 2px 6px rgba(59, 22, 15, 0.03);
  padding: 2px 10px;
  margin-bottom: 6px;
}

.schedule-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  gap: 8px;
}

.schedule-row+.schedule-row {
  border-top: 1px dashed #E8DCC5;
}

.schedule-row__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F3E5C5;
  color: #A77912;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-row__icon--navy {
  background: #651B24;
  color: #F3D47A;
}

.schedule-row__time {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  min-width: 68px;
}

.schedule-row__label {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #705B4D;
  margin-left: auto;
}

/* ==========================================
   Hierarchy Cards (Church Hierarchy)
   ========================================== */

/* --- New Schedule Card Enhancements --- */

.schedule-info-box {
  background: #F3E5C5;
  border-radius: 12px;
  border: 1px solid #E8DCC5;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.schedule-info-box__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A77912;
}

.schedule-info-box__icon svg {
  width: 100%;
  height: 100%;
}

.schedule-info-box__text {
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #3B160F;
  text-align: left;
}

.schedule-card__quote {
  margin-top: auto;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #705B4D;
  padding-top: 20px;
  padding-bottom: 8px;
  position: relative;
  line-height: 1.5;
}

.schedule-card__quote-text {
  position: relative;
  display: inline-block;
  padding: 0 10px;
}

.schedule-card__quote-text::before,
.schedule-card__quote-text::after {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold);
  position: absolute;
  line-height: 1;
  opacity: 0.7;
}

.schedule-card__quote-text::before {
  content: '"';
  left: -20px;
  top: -12px;
}

.schedule-card__quote-text::after {
  content: '"';
  right: -20px;
  bottom: -24px;
}

.schedule-card__quote-author {
  font-family: var(--sans);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: block;
  margin-top: 12px;
}

.schedule-card__bottom-ornament {
  text-align: center;
  color: var(--gold);
  opacity: 0.8;
  margin-top: 8px;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-card__church-illustration {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 16px;
  padding-bottom: 8px;
  opacity: 0.7;
}

.schedule-card__church-illustration svg {
  width: 180px;
  height: auto;
}

/* Force all hero section text and buttons from white to black */
.hero,
.hero h1,
.hero h2,
.hero h3,
.hero .eyebrow,
.hero .hero__lead,
.hero p {
  color: #000000 !important;
}

.hero .eyebrow::before {
  background-color: #000000 !important;
  background: #000000 !important;
}

.hero .btn--ghost,
.btn--ghost {
  border-color: #000000 !important;
  color: #000000 !important;
}

.hero .btn--ghost:hover,
.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}

/* Universal Holographic Hover for all cards */
.card,
.min-card,
.ministry-card,
.announce-quote-card,
.cat-card,
.pub-card,
.exp-card,
.schedule-card,
.obituary-card {
  position: relative;
  overflow: hidden;
}

.card::before,
.min-card::before,
.ministry-card::before,
.announce-quote-card::before,
.cat-card::before,
.pub-card::before,
.exp-card::before,
.schedule-card::before,
.obituary-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(0deg,
      transparent,
      transparent 35%,
      rgba(212, 165, 44, 0.45) 45%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(212, 165, 44, 0.45) 55%,
      transparent 65%,
      transparent);
  transform: rotate(-45deg) translateY(-100%);
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.card:hover::before,
.card:focus-visible::before,
.min-card:hover::before,
.min-card:focus-visible::before,
.ministry-card:hover::before,
.ministry-card:focus-visible::before,
.announce-quote-card:hover::before,
.announce-quote-card:focus-visible::before,
.cat-card:hover::before,
.cat-card:focus-visible::before,
.pub-card:hover::before,
.pub-card:focus-visible::before,
.exp-card:hover::before,
.exp-card:focus-visible::before,
.schedule-card:hover::before,
.schedule-card:focus-visible::before,
.obituary-card:hover::before,
.obituary-card:focus-visible::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

/* Social Animation provided by user */
ul.social-anim {
  display: flex;
  flex-direction: row;
  padding: 0;
  margin: 1.5rem 0 0 0;
  gap: 12px;
}

.social-anim li {
  list-style: none;
}

.social-anim li a {
  width: 38px;
  height: 38px;
  background-color: #fff;
  text-align: center;
  line-height: 38px;
  margin: 0;
  display: block;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid #fff;
  z-index: 1;
}

ul.social-anim li a .icon {
  display: none !important;
}

ul.social-anim li a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  transition: transform .5s;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
}

ul.social-anim li a:hover::after {
  transform: rotateY(360deg);
}

/* Instagram Logo */
ul.social-anim li.inst a::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><radialGradient id="ig" cx="30%25" cy="107%25" r="150%25"><stop offset="0%25" stop-color="%23fdf497"/><stop offset="5%25" stop-color="%23fdf497"/><stop offset="45%25" stop-color="%23fd5949"/><stop offset="60%25" stop-color="%23d6249f"/><stop offset="90%25" stop-color="%23285AEB"/></radialGradient></defs><path fill="url(%23ig)" d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"/></svg>');
}

ul.social-anim li.inst a:hover::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"/></svg>');
}

/* Facebook Logo */
ul.social-anim li.fb a::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231877F2"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.469h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.469h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
}

ul.social-anim li.fb a:hover::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.469h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.469h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>');
}

/* YouTube Logo */
ul.social-anim li.yt a::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF0000"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>');
}

ul.social-anim li.yt a:hover::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>');
}

.social-anim li a:before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transition: .5s;
  z-index: 2;
}

.social-anim li a:hover:before {
  top: 0;
}

.social-anim li.inst a:before {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-anim li.fb a:before {
  background: #1877F2;
}

.social-anim li.yt a:before {
  background: #FF0000;
}

/* Expanding Social Icons for Connect with us section */
ul.social-expand {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

ul.social-expand li a {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 60px;
  background: #fff;
  transition: 0.5s;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

ul.social-expand li a:hover {
  width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

ul.social-expand li a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
  z-index: 1;
}

ul.social-expand li a:hover::before {
  opacity: 1;
}

ul.social-expand li a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
  z-index: -1;
  filter: blur(15px);
}

ul.social-expand li a:hover::after {
  opacity: 0.5;
}

ul.social-expand li a .icon {
  position: absolute;
  z-index: 2;
  transition: 0.5s;
  transition-delay: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, #262626);
}

ul.social-expand li a .icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

ul.social-expand li a:hover .icon {
  transform: scale(0);
  transition-delay: 0s;
  color: #fff;
}

ul.social-expand li a .title {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
}

ul.social-expand li a:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}

/* Contact Us (Vicars) section styles */
.vicars-section {
  padding: 3rem 0;
  background-color: var(--bg);
}

.vicars-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.vicars-header h2 {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: #651B24;
  margin-bottom: 1rem;
}

.vicars-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #D4A52C;
}

.vicars-separator::before,
.vicars-separator::after {
  content: "";
  height: 1px;
  width: 60px;
  background-color: #E8DCC5;
}

.vicars-separator svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vicars-header p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.vicars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.vicar-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(59, 22, 15, 0.05);
  border: 1px solid #E8DCC5;
  border-bottom: 4px solid #D4A52C;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.vicar-img-wrapper {
  background-color: #F3E5C5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: -20px;
  aspect-ratio: 1 / 1;
}

.vicar-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vicar-icon-badge {
  width: 36px;
  height: 36px;
  background-color: #FFF9EC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  color: #A77912;
  border: 2px solid #FFF9EC;
}

.vicar-icon-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.vicar-card-content {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.2rem 0.8rem 0.8rem;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vicar-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #651B24;
  margin-bottom: 0.2rem;
  margin-top: 0;
}

.vicar-role-divider {
  width: 4px;
  height: 4px;
  background-color: #D4A52C;
  border-radius: 50%;
  margin: 0.4rem auto;
}

.vicar-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: #705B4D;
  margin-bottom: 1rem;
}

.vicar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #651B24;
  color: #FFF9EC !important;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vicar-btn:hover {
  background-color: #D4A52C;
  color: #3B160F !important;
  transform: translateY(-2px);
}

.vicar-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Native HTML5 Contact Dialog (homepage vicar contact popup) ---------- */
dialog#contactDialog {
  border: none !important;
  border-radius: 20px !important;
  padding: 32px 24px 24px !important;
  width: 90vw !important;
  max-width: 420px !important;
  background: #ffffff !important;
  color: #3B160F !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(101, 27, 36, 0.15) !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 2147483647 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

dialog#contactDialog::backdrop {
  background: rgba(59, 22, 15, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

.contact-modal__close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #E8DCC5 !important;
  background: #FFF9EC !important;
  color: #651B24 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s, transform 0.2s !important;
  padding: 0 !important;
}

.contact-modal__close:hover {
  background: #F3E5C5 !important;
  transform: scale(1.08) !important;
}

.contact-modal__avatar {
  width: 90px !important;
  height: 90px !important;
  border-radius: 50% !important;
  margin: 0 auto 14px !important;
  overflow: hidden !important;
  border: 3px solid #D4A52C !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
  background: #F3E5C5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.contact-modal__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.contact-modal__title {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.7rem !important;
  color: #651B24 !important;
  margin: 0 0 4px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.contact-modal__role {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #A77912 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  margin-bottom: 20px !important;
  font-family: "Inter", sans-serif !important;
}

.contact-modal__actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.contact-modal__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  border-radius: 999px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
  font-family: "Inter", sans-serif !important;
  box-sizing: border-box !important;
}

.contact-modal__btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.contact-modal__btn svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
}

.contact-modal__btn--phone {
  background-color: #651B24 !important;
  color: #FFF9EC !important;
}

.contact-modal__btn--phone:hover {
  background-color: #D4A52C !important;
  color: #3B160F !important;
}

.contact-modal__btn--wa {
  background-color: #25D366 !important;
  color: #ffffff !important;
}

.contact-modal__btn--wa:hover {
  background-color: #1ebc57 !important;
  color: #ffffff !important;
}

.contact-modal__btn--email {
  background-color: #FFF9EC !important;
  color: #651B24 !important;
  border: 1px solid #D8C5A0 !important;
}

.contact-modal__btn--email:hover {
  background-color: #F3E5C5 !important;
  color: #651B24 !important;
}

.contact-modal__btn--office {
  background-color: #651B24 !important;
  color: #FFF9EC !important;
}

.contact-modal__btn--office:hover {
  background-color: #D4A52C !important;
  color: #3B160F !important;
}

/* Bottom Navigation between Pious Associations and Ministry Panels */
.min-nav-section {
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(180deg, rgba(255, 249, 236, 0.5) 0%, rgba(243, 229, 197, 0.7) 100%);
  border-top: 1px solid #E8DCC5;
  margin-top: 3.5rem;
}

.min-nav-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.min-nav-divider__line {
  height: 1px;
  flex: 1;
  max-width: 140px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 44, 0.6), transparent);
}

.min-nav-divider__icon {
  color: #A77912;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFF9EC;
  border: 1px solid #E8DCC5;
}

.min-nav-divider__icon svg {
  width: 14px;
  height: 14px;
}

.min-panel-nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.min-panel-nav__btn {
  flex: 1;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.15rem 1.4rem;
  background: #ffffff;
  border: 1.5px solid #E8DCC5;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(59, 22, 15, 0.04);
  transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.28s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.min-panel-nav__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 165, 44, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.min-panel-nav__btn:hover,
.min-panel-nav__btn:focus-visible {
  border-color: #D4A52C;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(101, 27, 36, 0.12);
  outline: none;
}

.min-panel-nav__btn:hover::before,
.min-panel-nav__btn:focus-visible::before {
  opacity: 1;
}

.min-panel-nav__btn--prev {
  text-align: left;
  justify-content: flex-start;
}

.min-panel-nav__btn--next {
  text-align: right;
  justify-content: flex-end;
  margin-left: auto;
}

.min-panel-nav__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F3E5C5;
  color: #651B24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.min-panel-nav__arrow svg {
  width: 20px;
  height: 20px;
}

.min-panel-nav__btn--prev:hover .min-panel-nav__arrow {
  background: #651B24;
  color: #FFF9EC;
  transform: translateX(-3px);
}

.min-panel-nav__btn--next:hover .min-panel-nav__arrow {
  background: #651B24;
  color: #FFF9EC;
  transform: translateX(3px);
}

.min-panel-nav__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.min-panel-nav__label {
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A77912;
}

.min-panel-nav__title {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: #651B24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.min-panel-nav__btn:hover .min-panel-nav__title {
  color: #A77912;
}

.min-panel-nav__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.15rem;
  background: #ffffff;
  border: 1.5px solid #E8DCC5;
  border-radius: 999px;
  color: #3B160F;
  font-family: var(--sans, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.min-panel-nav__all svg {
  width: 15px;
  height: 15px;
  color: #A77912;
  transition: transform 0.25s ease, color 0.25s ease;
}

.min-panel-nav__all:hover {
  background: #651B24;
  border-color: #651B24;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(101, 27, 36, 0.15);
}

.min-panel-nav__all:hover svg {
  color: #F3D47A;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .min-panel-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }
  .min-panel-nav__all {
    order: -1;
    align-self: center;
    margin-bottom: 0.25rem;
  }
  .min-panel-nav__btn {
    max-width: 100%;
    width: 100%;
  }
  .min-panel-nav__btn--next {
    text-align: left;
    justify-content: flex-start;
  }
  .min-panel-nav__btn--next .min-panel-nav__text {
    order: 2;
  }
  .min-panel-nav__btn--next .min-panel-nav__arrow {
    order: 1;
  }
}