/* ============================================================
   ST. MARY OF VICTORIES — Main Stylesheet
   Aesthetic: Sacred Gothic Revival · Deep Burgundy & Gold
   ============================================================ */

:root {
  --burgundy:      #5a1a24;
  --burgundy-dark: #3d1018;
  --burgundy-mid:  #7a2535;
  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --gold-pale:     #f5e9c8;
  --cream:         #faf6ed;
  --parchment:     #f0e8d0;
  --warm-dark:     #1e1208;
  --warm-mid:      #3a2a18;
  --text-dark:     #1c1008;
  --text-mid:      #4a3828;
  --text-light:    #7a6a58;
  --border-gold:   rgba(201,168,76,0.35);
  --shadow:        0 4px 32px rgba(30,10,0,0.18);
  --shadow-heavy:  0 8px 48px rgba(30,10,0,0.28);

  --font-display:  'Cinzel', serif;
  --font-body:     'EB Garamond', serif;
  --font-fine:     'Cormorant Garamond', serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--burgundy-dark);
  line-height: 1.2;
}

em { font-family: var(--font-fine); font-style: italic; }

p { margin-bottom: 1rem; }

a { color: var(--burgundy-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

address { font-style: normal; }

/* ── Utility ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 600;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--gold-light);
  border: 2px solid var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  color: var(--gold-light);
  border-color: var(--burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(90,26,36,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--burgundy-dark);
  transform: translateY(-1px);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-sub {
  font-family: var(--font-fine);
  font-size: 1.15rem;
  color: var(--text-mid);
  font-style: italic;
}

/* ── Header / Nav ────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--burgundy-dark);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-emblem {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}

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

.logo-main {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.logo-sub {
  font-family: var(--font-fine);
  font-size: 0.7rem;
  color: rgba(232, 201, 122, 0.65);
  letter-spacing: 0.08em;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav > ul > li > a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,201,122,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.12);
}

/* Dropdowns */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--burgundy-dark);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  min-width: 220px;
  box-shadow: var(--shadow-heavy);
  z-index: 200;
  padding: 0.4rem 0;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(245,233,200,0.85);
  padding: 0.5rem 1.1rem;
  transition: all 0.15s;
}

.dropdown li a:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  padding-left: 1.4rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(90,26,36,0.55) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(30,8,10,0.7) 0%, transparent 50%),
    linear-gradient(160deg, #0e0408 0%, #1e0c14 30%, #2a1020 55%, #1a0c10 100%);
  z-index: 0;
}

/* Gothic arch texture overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(201,168,76,0.025) 80px,
      rgba(201,168,76,0.025) 81px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(201,168,76,0.02) 80px,
      rgba(201,168,76,0.02) 81px
    );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 760px;
  animation: heroFadeUp 1.2s ease both;
}

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

.hero-eyebrow {
  font-family: var(--font-fine);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  animation: heroFadeUp 1.2s 0.1s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
  animation: heroFadeUp 1.2s 0.2s ease both;
}

.hero-title em {
  font-family: var(--font-fine);
  font-style: italic;
  color: var(--gold-light);
  font-weight: 300;
  font-size: 1.1em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232,201,122,0.7);
  margin-bottom: 1.5rem;
  animation: heroFadeUp 1.2s 0.3s ease both;
}

.hero-divider {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.5em;
  margin: 1.5rem 0;
  animation: heroFadeUp 1.2s 0.35s ease both;
}

.hero-desc {
  font-family: var(--font-fine);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(245,233,200,0.8);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 1.2s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 1.2s 0.5s ease both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 1.4rem;
  animation: scrollBounce 2s infinite;
  z-index: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ── Intro Section ───────────────────────────────────────── */

.intro-section {
  padding: 6rem 0;
  background: var(--cream);
  position: relative;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text .section-title {
  margin-bottom: 1.5rem;
}

.intro-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.85;
}

.intro-text strong {
  color: var(--burgundy);
}

.intro-text .btn {
  margin-top: 1rem;
}

.img-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  grid-template-rows: auto auto;
}

.img-placeholder {
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.img-placeholder:hover { transform: translateY(-4px); }

.img-tall {
  grid-column: 1;
  grid-row: 1 / 3;
  min-height: 320px;
}

.img-short {
  grid-column: 2;
  grid-row: 1;
  min-height: 150px;
}

.img-icon { font-size: 2.5rem; }

.img-label {
  font-family: var(--font-fine);
  font-size: 0.85rem;
  color: rgba(245,233,200,0.7);
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ── Quick Links / Cards ─────────────────────────────────── */

.quick-links {
  padding: 6rem 0;
  background: var(--parchment);
  position: relative;
}

.quick-links::before, .quick-links::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.quick-links::before { top: 0; }
.quick-links::after  { bottom: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--cream);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-heavy);
}

.card:hover::before { transform: scaleX(1); }

.card-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  transition: all 0.2s;
}

.card-link:hover {
  color: var(--gold);
  letter-spacing: 0.12em;
}

/* ── Prayer Section ──────────────────────────────────────── */

.prayer-section {
  padding: 6rem 0;
  background: var(--burgundy-dark);
  position: relative;
  overflow: hidden;
}

.prayer-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.07) 0%, transparent 70%);
}

.prayer-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
  padding: 4rem 3rem;
  background: rgba(255,255,255,0.03);
}

.prayer-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--gold-light);
  margin-bottom: 2rem;
}

.prayer-ornament {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  margin: 1.5rem 0;
}

.prayer-text p {
  font-family: var(--font-fine);
  font-size: 1.05rem;
  color: rgba(245,233,200,0.85);
  line-height: 2;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.prayer-intercessions {
  color: var(--gold-light) !important;
  font-weight: 500;
  font-style: normal !important;
  letter-spacing: 0.03em;
}

.prayer-amen {
  font-family: var(--font-display) !important;
  font-style: normal !important;
  font-size: 1.1rem !important;
  color: var(--gold) !important;
  letter-spacing: 0.1em;
}

/* ── Contact Section ─────────────────────────────────────── */

.contact-section {
  padding: 5rem 0;
  background: var(--warm-mid);
  border-top: 1px solid rgba(201,168,76,0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.contact-col h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-gold);
}

.contact-col p, .contact-col address {
  font-size: 0.95rem;
  color: rgba(245,233,200,0.75);
  line-height: 1.9;
}

.contact-col a {
  color: rgba(232,201,122,0.85);
  transition: color 0.2s;
}
.contact-col a:hover { color: var(--gold-light); }

.link-list {
  list-style: none;
}

.link-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.link-list li:last-child { border-bottom: none; }

.link-list a {
  font-size: 0.92rem;
  color: rgba(245,233,200,0.75);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background: var(--warm-dark);
  border-top: 1px solid rgba(201,168,76,0.25);
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(245,233,200,0.45);
  margin-bottom: 0.5rem;
}

.footer-intercessions {
  font-family: var(--font-fine);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(201,168,76,0.55);
  line-height: 1.9;
}

/* ── Inner Page Layout ───────────────────────────────────── */

.page-hero {
  padding: 7rem 2rem 4rem;
  background: linear-gradient(160deg, var(--burgundy-dark) 0%, var(--warm-dark) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 80px,
    rgba(201,168,76,0.02) 80px,
    rgba(201,168,76,0.02) 81px
  );
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.page-hero p.page-sub {
  font-family: var(--font-fine);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245,233,200,0.65);
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.page-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-gold);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
  line-height: 1.8;
}

.info-box {
  background: var(--parchment);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 4px 4px 0;
  margin: 2rem 0;
}

.info-box p { margin-bottom: 0; }

.mass-time-card {
  background: var(--cream);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.mass-time-card h3 {
  font-size: 1rem;
  color: var(--burgundy);
  margin-bottom: 0.3rem;
}

.mass-time-card .time {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.mass-time-card p { font-size: 0.92rem; color: var(--text-mid); margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .img-stack { max-width: 500px; margin: 0 auto; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--burgundy-dark);
    border-top: 1px solid var(--border-gold);
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav > ul > li > a { padding: 0.7rem 1.5rem; display: block; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; background: rgba(0,0,0,0.2); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-toggle { display: flex; }

  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .prayer-card { padding: 2.5rem 1.5rem; }
  .img-stack { grid-template-columns: 1fr; }
  .img-tall { grid-column: 1; grid-row: 1; min-height: 220px; }
  .img-short { grid-column: 1; grid-row: 2; min-height: 180px; }
  .hero-actions { flex-direction: column; align-items: center; }
}
