@font-face {
  font-family: "Gebetbuch Fraktur";
  src: url("../fonts/GebetbuchFraktur.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --gsc-navy: #071d2d;
  --gsc-navy-2: #0c2d43;
  --gsc-gold: #d6a84a;
  --gsc-gold-light: #f0cc78;
  --gsc-maroon: #6c1022;
  --gsc-cream: #f8f4ec;
  --gsc-ink: #25292d;
  --gsc-muted: #66717b;
  --gsc-border: rgba(7, 29, 45, 0.14);
  --gsc-shadow: 0 18px 55px rgba(7, 29, 45, 0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--gsc-cream);
  color: var(--gsc-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

a { color: inherit; }
a:hover { color: var(--gsc-maroon); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: var(--gsc-navy);
  border-radius: .35rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: rgba(5, 23, 36, .96);
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 23, 36, .985);
  box-shadow: 0 10px 35px rgba(0,0,0,.2);
}
.navbar-brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { color: #fff; font-family: "Gebetbuch Fraktur", "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.brand-place { color: var(--gsc-gold-light); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.navbar-dark .navbar-nav .nav-link { color: rgba(255,255,255,.84); font-size: .9rem; font-weight: 600; padding-inline: .75rem; }
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active { color: var(--gsc-gold-light); }
.navbar-dark .navbar-nav .nav-link.active::after { content: ""; display: block; width: 22px; height: 2px; margin: .35rem auto 0; background: var(--gsc-gold); }

.hero {
  min-height: min(780px, 92svh);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--gsc-navy);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; display: block; }
.hero__media img {
  object-fit: cover;
  object-position: 60% center;
  animation: hero-drift 20s ease-in-out infinite alternate;
  transform: scale(1.03);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(3,19,31,.93) 0%, rgba(3,19,31,.76) 27%, rgba(3,19,31,.2) 61%, rgba(3,19,31,.08) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 24%;
  background: linear-gradient(0deg, rgba(3,19,31,.68), transparent);
}
.hero__content { position: relative; z-index: 2; padding-block: 7.5rem 4rem; }
.hero__eyebrow { color: var(--gsc-gold-light); font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.4rem, 7.5vw, 7.4rem); line-height: .78; letter-spacing: -.035em; text-transform: uppercase; text-shadow: 0 8px 34px rgba(0,0,0,.28); }
.hero__verse { min-height: 4.25rem; max-width: 38rem; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.08rem, 2vw, 1.45rem); }
.hero__verse.is-typing [data-verse-text]::after { content: ""; display: inline-block; width: .08em; height: .85em; margin-left: .12em; background: currentColor; vertical-align: -.05em; animation: typing-caret .75s steps(1) infinite; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.25rem; z-index: 3; transform: translateX(-50%); color: #fff; }
.hero__scroll i { animation: bob 1.8s ease-in-out infinite; }

@keyframes hero-drift { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.09) translate3d(-1.2%, -.5%, 0); } }
@keyframes hero-drift-head-safe { from { transform: scale(1.03) translate3d(0,0,0); } to { transform: scale(1.06) translate3d(-.8%, 0, 0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes typing-caret { 50% { opacity: 0; } }

.btn-gold { background: var(--gsc-gold); border-color: var(--gsc-gold); color: #13202a; font-weight: 800; }
.btn-gold:hover, .btn-gold:focus { background: var(--gsc-gold-light); border-color: var(--gsc-gold-light); color: #13202a; transform: translateY(-1px); }
.btn-outline-light:hover { color: var(--gsc-navy); }
.btn { border-radius: .15rem; padding: .75rem 1.2rem; transition: transform .2s ease, background .2s ease, border-color .2s ease; }

.section-pad { padding-block: clamp(4rem, 7vw, 7rem); }
.section-kicker { color: var(--gsc-maroon); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section-title { color: var(--gsc-navy); font-size: clamp(2.2rem, 4vw, 4rem); line-height: .95; }
.section-lead { max-width: 48rem; color: var(--gsc-muted); font-size: 1.08rem; }
.bg-navy { background: var(--gsc-navy) !important; }
.bg-navy-2 { background: var(--gsc-navy-2) !important; }
.bg-cream { background: var(--gsc-cream) !important; }
.bg-maroon { background: var(--gsc-maroon) !important; }
.text-gold { color: var(--gsc-gold-light) !important; }
.text-maroon { color: var(--gsc-maroon) !important; }

.quick-grid { position: relative; z-index: 5; margin-top: -1.5rem; }
.info-panel { height: 100%; padding: clamp(1.25rem, 3vw, 2rem); background: #fff; border: 1px solid var(--gsc-border); box-shadow: var(--gsc-shadow); }
.info-panel__title { display: flex; align-items: center; gap: .7rem; color: var(--gsc-navy); font-size: 1.42rem; text-transform: uppercase; }
.info-panel__title i { color: var(--gsc-maroon); font-size: 1.1rem; }
.timing-row { display: grid; grid-template-columns: minmax(5.4rem, .8fr) minmax(0, 1.45fr); align-items: start; gap: .8rem; padding-block: .7rem; border-bottom: 1px solid var(--gsc-border); }
.timing-row:last-child { border-bottom: 0; }
.timing-row strong { color: var(--gsc-navy); }
.timing-schedule { display: grid; gap: .2rem; min-width: 0; }
.timing-slot { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr); gap: .75rem; text-align: right; }
.timing-slot:has(.timing-time:only-child) { grid-template-columns: 1fr; }
.timing-time, .timing-language { min-width: 0; }
.timing-time { white-space: nowrap; }
.timing-language { text-align: right; }
.timing-time { white-space: nowrap; }
.timing-language { color: var(--gsc-muted); }

.news-item { display: grid; grid-template-columns: 74px 1fr; gap: .85rem; align-items: center; padding-block: .72rem; border-bottom: 1px solid var(--gsc-border); }
.news-item:last-child { border-bottom: 0; }
.news-item img { width: 74px; height: 54px; object-fit: cover; border-radius: .2rem; }
.news-item h3 { margin: 0; color: var(--gsc-navy); font-family: inherit; font-size: .93rem; font-weight: 800; }
.news-item p { margin: .18rem 0 0; color: var(--gsc-muted); font-size: .78rem; }
.date-tile { display: grid; place-items: center; width: 54px; height: 60px; color: #fff; background: var(--gsc-maroon); }
.date-tile strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1; }
.date-tile span { font-size: .62rem; text-transform: uppercase; }

.welcome-image { min-height: 410px; width: 100%; object-fit: cover; }
.value-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.value-item i { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--gsc-maroon); font-size: 1.9rem; line-height: 1; }
.value-item strong { display: block; margin-top: .5rem; color: var(--gsc-navy); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.welcome-story-button { display: block; width: fit-content; margin-inline: auto; }

.feature-split { position: relative; min-height: 560px; overflow: hidden; color: #fff; }
.feature-split__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-split::after { content: ""; position: absolute; inset: 0; background: rgba(4,21,34,.76); }
.feature-split--warm::after { background: rgba(45,17,8,.72); }
.feature-split__content { position: relative; z-index: 1; padding: clamp(2rem, 6vw, 4.5rem); }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { display: flex; gap: .85rem; padding-block: .67rem; border-bottom: 1px solid rgba(255,255,255,.15); }
.feature-list i { flex: 0 0 1.5rem; color: var(--gsc-gold-light); font-size: 1.1rem; line-height: 1.5; text-align: center; }

.donation-band { color: #fff; background: var(--gsc-maroon); }
.map-link { display: block; }
.map-frame { width: 100%; max-width: 400px; height: 250px; border: 0; overflow: hidden; }
.map-frame iframe { display: block; }

.page-hero { position: relative; min-height: 390px; display: flex; align-items: end; color: #fff; background: var(--gsc-navy); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .46; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,18,30,.94), rgba(3,18,30,.18)); }
.page-hero__content { position: relative; z-index: 1; padding-block: 7rem 3.2rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 6rem); line-height: .9; }

.content-card { height: 100%; padding: 1.5rem; background: #fff; border: 1px solid var(--gsc-border); box-shadow: 0 10px 35px rgba(7,29,45,.07); }
.content-card h2, .content-card h3 { color: var(--gsc-navy); }
.download-card { height: auto; }
.team-portrait { display: inline-block; width: 150px; height: 150px; overflow: hidden; border-radius: 50%; }
.team-portrait__image { width: 100%; height: 100%; object-fit: cover; }
.team-portrait__image--joseph { object-position: 50% 28%; transform: scale(3); transform-origin: 50% 57%; }
.sacrament-contact-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sacrament-contact-card__image { width: 100%; height: 170px; object-fit: cover; object-position: right top; }
.sacrament-contact-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.sacrament-contact-card__body > a { margin-top: auto; }
.icon-disc { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--gsc-maroon); background: rgba(108,16,34,.09); }

.accordion-button { color: var(--gsc-navy); font-weight: 800; }
.accordion-button:not(.collapsed) { color: var(--gsc-maroon); background: #fff8ed; box-shadow: none; }
.accordion-button:focus { border-color: var(--gsc-gold); box-shadow: 0 0 0 .2rem rgba(214,168,74,.25); }

.gallery-card { position: relative; overflow: hidden; min-height: 270px; cursor: pointer; background: var(--gsc-navy); }
.gallery-card img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.gallery-card:hover img, .gallery-card:focus-within img { transform: scale(1.045); opacity: .82; }
.gallery-card button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: transparent; }

.form-control, .form-select { min-height: 48px; border-radius: .15rem; border-color: rgba(7,29,45,.2); }
.form-control:focus, .form-select:focus { border-color: var(--gsc-gold); box-shadow: 0 0 0 .2rem rgba(214,168,74,.2); }

.sacrament-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sacrament-link-grid a { display: flex; align-items: center; gap: 1rem; min-height: 84px; padding: 1.25rem; color: var(--gsc-navy); background: #fff; border: 1px solid var(--gsc-border); box-shadow: var(--gsc-shadow); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.sacrament-link-grid a:hover, .sacrament-link-grid a:focus { border-color: var(--gsc-gold); transform: translateY(-3px); }
.sacrament-link-grid i { display: inline-grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; color: var(--gsc-maroon); background: rgba(108,16,34,.09); border-radius: 50%; }
.sacrament-link-grid span { font-weight: 800; }
.priest-contact-card { position: relative; height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.priest-contact-card__status { display: none; margin-bottom: 1rem; color: var(--gsc-maroon); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.priest-contact-card__phone { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.15rem; font-weight: 800; }
.priest-contact-card.is-on-duty { border: 2px solid var(--gsc-gold); box-shadow: 0 24px 55px rgba(7,29,45,.18); transform: translateY(-8px); }
.priest-contact-card.is-on-duty .priest-contact-card__status { display: block; }
.priest-contact-card.is-on-duty .priest-contact-card__phone { padding: .7rem 1rem; color: var(--gsc-navy); background: var(--gsc-gold); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.search-dialog { border: 0; width: min(760px, calc(100% - 2rem)); padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.search-dialog::backdrop { background: rgba(2,14,23,.78); backdrop-filter: blur(4px); }
.search-result { display: block; padding: 1rem 0; border-bottom: 1px solid var(--gsc-border); text-decoration: none; }
.search-result strong { color: var(--gsc-navy); }

.site-footer { color: rgba(255,255,255,.76); background: var(--gsc-navy); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-link { display: block; padding-block: .26rem; color: rgba(255,255,255,.74); text-decoration: none; }
.footer-link:hover, .footer-link:focus { color: var(--gsc-gold-light); }
.footer-legal-link { color: rgba(255,255,255,.68); font-size: .75rem; text-decoration: underline; text-underline-offset: .18rem; }
.footer-legal-link:hover, .footer-legal-link:focus { color: var(--gsc-gold-light); }
.social-link { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; }
.social-link:hover { color: var(--gsc-navy); background: var(--gsc-gold-light); }
.footer-bottom-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.studio-credit { color: rgba(255,255,255,.55); font-size: .7rem; text-decoration: none; }
.studio-credit:hover, .studio-credit:focus { color: var(--gsc-gold-light); }
.visitor-counter { display: flex; gap: .35rem; width: max-content; margin: .75rem 0 0 auto; font-size: .6rem; opacity: .55; }
.legal-content { max-width: 900px; }
.legal-content h2 { margin-top: 2.25rem; margin-bottom: .75rem; color: var(--gsc-navy); }
.legal-content h3 { margin-top: 1.5rem; }
.legal-content li + li { margin-top: .5rem; }

@media (max-width: 991.98px) {
  .site-header .navbar > .container { position: relative; padding-right: 4.75rem; }
  .site-header .mobile-menu-button {
    position: absolute;
    top: 50%;
    right: .75rem;
    z-index: 5;
    display: inline-grid !important;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: .4rem;
    transform: translateY(-50%);
  }
  .navbar-collapse { padding: 1rem 0; }
  .navbar-dark .navbar-nav .nav-link { padding-block: .7rem; }
  .navbar-dark .navbar-nav .nav-link.active::after { margin-left: 0; }
  .hero { min-height: 760px; align-items: end; }
  .hero__media img { object-position: 67% center; }
  .hero::before { background: linear-gradient(0deg, rgba(3,19,31,.96) 0%, rgba(3,19,31,.72) 48%, rgba(3,19,31,.12) 100%); }
  .hero__content { padding-bottom: 5rem; }
}

@media (min-width: 992px) {
  .hero__media img {
    object-position: 60% top;
    transform-origin: 60% top;
    animation-name: hero-drift-head-safe;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero {
    width: calc(100% + 114px);
    margin-top: 62px;
    margin-bottom: -36px;
    margin-left: -114px;
    padding: 0 0 255px 70px;
  }
  .hero__media { right: -63px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .hero { align-items: stretch; }
  .hero__content { position: absolute; inset: 0; display: flex; padding-top: 7rem; padding-bottom: 4rem; }
  .hero__content > .row, .hero__content > .row > div { width: 100%; height: 100%; }
  .hero__content > .row > div { display: flex; flex-direction: column; }
  .hero__actions { margin-top: auto !important; margin-bottom: 1.5rem; }
}

@media (max-width: 575.98px) {
  .navbar-brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .brand-place { font-size: .61rem; }
  .hero { min-height: 720px; align-items: stretch; }
  .hero__media img { object-position: 84% center; animation: none; transform: scale(1.015); }
  .hero__content { position: absolute; inset: 0; display: flex; padding-top: 6.5rem; padding-bottom: 5.6rem; }
  .hero__content > .row, .hero__content > .row > div { width: 100%; height: 100%; }
  .hero__content > .row > div { display: flex; flex-direction: column; }
  .hero__verse { min-height: 7rem; max-width: 13rem; }
  .hero__actions { margin-top: auto !important; margin-bottom: .35rem; }
  .hero h1 { font-size: clamp(3rem, 13.32vw, 3.9rem); }
  .hero__eyebrow { font-size: .595rem; }
  .quick-grid { margin-top: 0; }
  .timing-row { grid-template-columns: 1fr; gap: .25rem; }
  .timing-slot { justify-content: space-between; text-align: right; }
  .section-pad { padding-block: 3.5rem; }
  .info-panel { box-shadow: none; }
  .page-hero { min-height: 340px; }
  .section-pad .row.g-5 { --bs-gutter-x: 1.5rem; }
  .footer-bottom-row { align-items: start; flex-direction: column; }
  .visitor-counter { margin-left: 0; }
  .sacrament-link-grid { grid-template-columns: 1fr; }
  .priest-contact-card.is-on-duty { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
