@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #b5924c;
  --deep: #2a0c0e;
  --cream: #faf7f2;
  --muted: #7a7065;
  --rule: #ddd5c8;
  --forest: #551418;
}

body {
  background: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--deep);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 var(--rule);
}

nav.scrolled .nav-logo-name,
nav.scrolled .nav-logo-sub,
nav.scrolled .nav-links a { color: var(--deep); }

nav.scrolled .nav-logo-cross { color: var(--deep); }



nav.dark .nav-logo-name,
nav.dark .nav-logo-sub { color: var(--deep); }
nav.dark .nav-links a { color: var(--deep); }
nav.dark .nav-logo-cross { color: var(--deep); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-cross {
  font-size: 26px;
  color: white;
  transition: color 0.3s;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: white;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.nav-logo-sub {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

/* dropdown */
.nav-item { position: relative; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid var(--rule);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.nav-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--muted) !important;
  font-size: 9px;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: white; color: var(--deep) !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.page-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--deep);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── CONTENT ── */
.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}

.content-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

.section-rule-left {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 32px;
}

h2.section-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--deep);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

h3.sub-heading {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  margin-top: 48px;
}

p.body-text {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 24px;
}

.block-quote {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
}

.block-quote p {
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: var(--deep);
  line-height: 1.7;
  margin-bottom: 8px;
}

.block-quote cite {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 56px 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  background: var(--gold);
  padding: 14px 36px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: #c9a55e; }

.btn-outline {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--deep);
  border: 1px solid var(--deep);
  padding: 13px 36px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--deep); color: white; }

.text-link {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
  display: inline-block;
}

.text-link:visited { color: var(--deep); }
.text-link:hover { color: var(--gold); }

/* Visited-link color preservation across all styled link types */
a.btn,
a.btn:visited { color: white; }
a.btn-outline,
a.btn-outline:visited { color: var(--deep); }

/* ── CTA ROW (button group) ── */
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-row { flex-direction: column; }
  .cta-row .btn,
  .cta-row .btn-outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}


/* Cross logo: SVG currentColor — white on hero, dark when scrolled */
.nav-cross-img {
  color: white;
  transition: color 0.25s ease;
}
nav.scrolled .nav-cross-img,
nav.dark .nav-cross-img {
  color: var(--deep);
}

/* ── ORNAMENT ── */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.3em;
  margin: 56px 0 0;
  display: block;
}

/* ── FOOTER ── */
footer {
  background: var(--forest);
  padding: 72px 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.footer-divider-line {
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: white;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.footer-parish {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.footer-contact {
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 2.2;
}

.footer-contact a { color: var(--gold); text-decoration: none; }

.footer-links-heading {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 48px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

/* ── RESPONSIVE ── */


/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.25s, transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
nav.scrolled .nav-hamburger span,
nav.dark .nav-hamburger span { background: var(--deep); }

/* Open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer (accordion) */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  overflow: hidden;
}
.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer-scroll {
  position: absolute;
  top: 64px; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  padding-bottom: 40px;
  -webkit-overflow-scrolling: touch;
}

.drawer-link,
.drawer-toggle {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--deep);
  text-decoration: none;
  padding: 18px 32px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  cursor: pointer;
  display: block;
  text-transform: none;
}
.drawer-link:visited { color: var(--deep); }
.drawer-link:first-child { border-top: 1px solid var(--rule); }

.drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.drawer-chevron {
  font-size: 16px;
  color: var(--gold);
  transition: transform 0.25s ease;
  display: inline-block;
  width: 14px;
  text-align: center;
  font-weight: 300;
  line-height: 1;
}

.drawer-group.open .drawer-chevron {
  transform: rotate(45deg);
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: white;
}

.drawer-group.open .drawer-submenu {
  max-height: 700px;
}

.drawer-submenu a {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  padding: 14px 32px;
  display: block;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
}
.drawer-submenu a:visited { color: var(--muted); }
.drawer-submenu a:last-child { border-bottom: none; }

.nav-drawer-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 28px;
  background: none;
  border: none;
  color: var(--deep);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}

@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }

  /* Homepage mobile flow */
  .mission { padding: 64px 24px; }
  .mission-text { font-size: clamp(20px, 5.5vw, 28px); line-height: 1.6; }
  .mission-text br { display: none; }

  .quicklinks { padding: 0 16px 64px; }
  .quicklinks-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
  }
  .quicklink {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    padding: 24px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .quicklink:last-child { border-bottom: none; }
  .quicklink-icon { font-size: 14px; flex-shrink: 0; }
  .quicklink-label { font-size: 11px; margin-bottom: 2px; }
  .quicklink-sub { font-size: 13px; }

  /* Photo grid — single column, natural heights */
  .photo-row { flex-direction: column; }
  .ph-portrait, .ph-landscape {
    flex: none !important;
    width: 100%;
    aspect-ratio: unset;
  }
  .ph-portrait img, .ph-landscape img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }

  /* Priest section */
  .priest-inner { flex-direction: column; text-align: center; }
  .priest-photo-wrap { margin: 0 auto; }
  .priest-rule { margin: 16px auto; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; padding-bottom: 48px; }
  .footer-divider-line { display: none; }
  footer { padding: 48px 24px 0; }
  .footer-bottom { padding: 20px 24px; }
}
