:root {
  --font-display: "Literata", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --bg: #e9eef2;
  --bg-deep: #dfe6ec;
  --surface: #f7f9fb;
  --ink: #1a2b3c;
  --muted: #5b6b7a;
  --navy: #1a2b3c;
  --navy-deep: #122033;
  --gold: #c4a35a;
  --gold-deep: #9a7d3d;
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 640px at 8% -12%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 55%),
    radial-gradient(900px 520px at 100% 8%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 52%),
    linear-gradient(180deg, #f4f7fa 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--font-body), sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.max-md { max-width: 28rem; }
.max-xl { max-width: 36rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-9 { margin-top: 2.25rem; }

.label-caps {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label-caps.gold { color: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.85rem 1.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #f7f9fb; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-on-dark { background: var(--gold); color: var(--navy-deep); }
.btn-on-dark:hover { background: color-mix(in srgb, var(--gold) 86%, #fff); }
.btn-ghost-on-dark {
  background: color-mix(in srgb, #fff 8%, transparent);
  color: #f7f9fb;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
}
.btn-ghost-on-dark:hover { background: color-mix(in srgb, #fff 14%, transparent); }

.section { padding: clamp(4.5rem, 8vw, 7rem) 0; }
.section-surface { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.section-title { margin: 1rem 0 0; font-size: clamp(2.25rem, 5vw, 3rem); }

.panel {
  background: color-mix(in srgb, var(--surface) 92%, #fff);
  border: 1px solid var(--line);
}
.panel-pad { padding: 1.5rem; }
.panel-pad-form { padding: 1rem; }
@media (min-width: 768px) {
  .panel-pad { padding: 2rem; }
  .panel-pad-form { padding: 1.5rem; }
}

.panel .hp-form {
  width: 100%;
  padding: 0;
  color: var(--ink);
}
.panel .hp-form h2 {
  text-align: left;
  font-family: var(--font-display), Georgia, serif;
  letter-spacing: -0.02em;
}
.panel .hp-form label { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.panel .hp-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.panel .hp-form textarea,
.panel .hp-form select {
  background: #fff;
  border-color: color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--ink);
}
.panel .hp-form button[type="submit"] {
  background: var(--navy);
  color: #f7f9fb;
}
.panel .hp-form-msg.success { color: var(--gold-deep); }
.panel .hp-form-msg.error,
.panel .hp-form .hp-field-error { color: #a33b3b; }

.site-header { z-index: 50; }
.site-header--hero { position: absolute; inset-inline: 0; top: 0; }
.site-header--sticky {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}
@media (min-width: 768px) {
  .header-inner { padding: 1.5rem 0; }
}
.brand {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand--on-hero { color: #fff; }
@media (min-width: 768px) {
  .brand { font-size: 1.25rem; }
}
.desktop-nav { display: none; align-items: center; gap: 1.75rem; }
.nav-link { font-size: 0.875rem; color: var(--muted); transition: color 0.15s ease; }
.nav-link:hover { color: var(--navy); }
.nav-link--on-hero { color: rgba(255, 255, 255, 0.78); }
.nav-link--on-hero:hover { color: #fff; }
.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-deep);
  transition: color 0.15s ease;
}
.nav-cta:hover { color: var(--navy); }
.nav-cta--on-hero { color: var(--gold); }
.nav-cta--on-hero:hover { color: #fff; }
@media (min-width: 768px) {
  .desktop-nav { display: flex; }
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 45%;
  animation: hero-drift 14s ease-out both;
}
.hero-shade-a {
  position: absolute;
  inset: 0;
  background: linear-gradient(255deg, rgba(18, 32, 51, 0.88) 0%, rgba(18, 32, 51, 0.58) 48%, rgba(18, 32, 51, 0.28) 100%);
}
.hero-shade-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.42) 0%, transparent 30%, rgba(18, 32, 51, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100svh;
  align-items: flex-end;
  padding: 7rem 0 4rem;
}
.hero-copy { max-width: 48rem; }
.hero-name {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  color: #fff;
}
.hero-headline {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}
.hero-desc {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
}
@media (min-width: 768px) {
  .hero-content { align-items: center; padding: 6rem 0; }
  .hero-desc { font-size: 1.125rem; }
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.welcome-inner { max-width: 48rem; text-align: center; }
.welcome-body {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--muted);
}

.diocese-inner {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.diocese-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.diocese-body {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}
.diocese-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.diocese-body a:hover { color: var(--navy-deep); }

.services-grid,
.visit-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1.05fr 0.95fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; align-items: end; }
}
.service-list { margin-top: 2.5rem; }
.service-item {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.service-item:first-child { margin-top: 0; }
.service-num {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}
.service-item h3 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.service-item p {
  margin: 0.75rem 0 0;
  max-width: 32rem;
  color: var(--muted);
}
.media-frame { overflow: hidden; }
.media-frame img { width: 100%; height: auto; object-fit: cover; }

.visit-facts {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .visit-facts { grid-template-columns: 1fr 1fr; }
}
.maps-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-underline-offset: 4px;
}
.maps-link:hover { text-decoration: underline; }

.connect-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .connect-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}
.connect-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.page-pad { padding-top: 6rem; }
@media (min-width: 768px) {
  .page-pad { padding-top: 7rem; }
}

.page-hero {
  position: relative;
  min-height: clamp(16rem, 42vw, 22rem);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  background: var(--navy-deep);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 51, 0.35) 0%, rgba(18, 32, 51, 0.72) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 2.5rem;
}
@media (min-width: 768px) {
  .page-hero-content { padding: 7rem 0 3rem; }
}
.page-hero-title {
  margin: 0;
  max-width: 28rem;
  color: #f7f9fb;
  font-size: clamp(2rem, 5vw, 3rem);
}

.expect-prose {
  max-width: 42rem;
  margin-inline: auto;
}
.expect-intro-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}
.expect-prose p {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.expect-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.expect-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.expect-cta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.legal-page { padding-top: 8rem; }
.legal-narrow { max-width: 48rem; }
.legal-title { margin: 1rem 0 0; font-size: clamp(2.75rem, 6vw, 3.75rem); }
.legal-sep { margin: 0 0.5rem; color: var(--line); }
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}
.legal-body h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-body p,
.legal-body li { color: var(--muted); }
.legal-body p { margin: 0.75rem 0 0; }
.legal-body ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}
.legal-body li + li { margin-top: 0.5rem; }
.legal-footer-note {
  margin: 3.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.legal-footer-note a {
  font-weight: 600;
  color: var(--navy);
}
.legal-footer-note a:hover { text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--navy-deep);
  color: #f0f4f7;
}
.footer-top {
  display: grid;
  gap: 3rem;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.4fr 1fr; }
}
.footer-title {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--gold);
}
.footer-tagline {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-address {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-phone-note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-right { align-items: flex-end; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
@media (min-width: 768px) {
  .footer-nav { justify-content: flex-end; }
}
.footer-nav a:hover { color: var(--gold); }
.built-by {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
}
.built-by:hover { color: rgba(255, 255, 255, 0.7); }
@media (min-width: 768px) {
  .built-by { text-align: right; }
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom .container {
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.reveal { animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-delay { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }

.js-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-drift {
  from { transform: scale(1.08) translateY(1.5%); }
  to { transform: scale(1) translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-delay,
  .reveal-delay-2,
  .hero-media { animation: none !important; }
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
