/* =====================================================
   Saint Mary of Sorrows — Main Stylesheet
   Color Palette: Navy #1a2e4a | Gold #c9a84c | White | Light Gray
===================================================== */

:root {
  --navy: #1a2e4a;
  --navy-dark: #0f1d30;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --light-bg: #f8f7f4;
  --text-muted-custom: #6c757d;
}

/* ── Base ── */
body {
  font-family: 'Open Sans', sans-serif;
  color: #2d2d2d;
  background: #fff;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Lora', Georgia, serif;
}

/* ── Top Bar ── */
.topbar {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  color: #adb5bd;
  font-size: 0.82rem;
}
.topbar a { color: #adb5bd; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* ── Navbar ── */
#mainNav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0.6rem 0;
  transition: all 0.3s ease;
}
#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.brand-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-icon i {
  font-size: 1.8rem;
  color: var(--gold);
}
.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 0.85rem !important;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold) !important;
}
.dropdown-menu {
  border: none;
  border-top: 3px solid var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  border-radius: 0 0 8px 8px;
  min-width: 220px;
}
.dropdown-item {
  font-size: 0.87rem;
  padding: 0.55rem 1.2rem;
  color: #2d2d2d;
  transition: background 0.15s;
}
.dropdown-item:hover {
  background: var(--light-bg);
  color: var(--navy);
}
.text-gold { color: var(--gold) !important; }

/* ── Gold Button ── */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  font-weight: 600;
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
  border-color: var(--navy-dark);
}
.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2a4a6e 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://stmaryofsorrows.org/wp-content/uploads/Church-Painting2-Carousel-2-scaled-1-814x1024.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-cross {
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.25;
}
.hero-quote {
  font-style: italic;
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}
.hero-pills .badge {
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0.45em 0.9em;
}

/* ── Mass Times Quick Card ── */
.mass-quick {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  border-top: 4px solid var(--gold);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mass-quick h5 {
  color: var(--gold);
  font-family: 'Lora', serif;
  margin-bottom: 1rem;
}
.mass-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.mass-row:last-child { border-bottom: none; }
.mass-day { color: rgba(255,255,255,0.65); }
.mass-time { color: #fff; font-weight: 600; }
.mass-sunday { color: var(--gold); font-weight: 700; }

/* ── Section Headings ── */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.section-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 0.8rem 0 1.2rem;
}
.section-divider.mx-auto { margin-left: auto; margin-right: auto; }
.section-bg { background: var(--light-bg); }

/* ── Cards ── */
.feature-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.feature-card .card-top {
  height: 6px;
  background: var(--gold);
}
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Announcement Cards ── */
.announcement-card {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.2s;
}
.announcement-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}
.announcement-card .tag {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

/* ── About / History ── */
.timeline {
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-year {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── Staff Cards ── */
.staff-card {
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  text-align: center;
  height: 100%;
}
.staff-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--gold);
}
.staff-title {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Ministry Cards ── */
.ministry-card {
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 1.75rem;
  background: #fff;
  height: 100%;
  transition: all 0.2s;
}
.ministry-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.15);
  transform: translateY(-2px);
}

/* ── Page Headers ── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 5rem 0 3.5rem;
  border-bottom: 4px solid var(--gold);
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header .breadcrumb-item a { color: var(--gold); text-decoration: none; }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── Schedule Tables ── */
.schedule-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.schedule-card .card-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
}
.schedule-table th {
  background: var(--light-bg);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-custom);
  font-weight: 600;
}
.schedule-table td { vertical-align: middle; }
.time-badge {
  background: rgba(201,168,76,0.12);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* ── Giving Page ── */
.giving-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: 16px;
  padding: 3rem;
  border-left: 6px solid var(--gold);
}

/* ── Footer ── */
.footer-main {
  background: #0d1f32;
}
.footer-bottom {
  background: #0a1628;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-link {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.letter-spacing { letter-spacing: 0.1em; }

/* ── Utility ── */
.bg-navy { background: var(--navy) !important; }
.bg-navy-dark { background: var(--navy-dark) !important; }
.bg-light-custom { background: var(--light-bg) !important; }

@media (max-width: 991px) {
  .hero { min-height: 65vh; }
  #mainNav { padding: 0.8rem 0; }
  .dropdown-menu { border-top: none; box-shadow: none; background: rgba(255,255,255,0.05); }
  .dropdown-item { color: rgba(255,255,255,0.8); }
  .dropdown-item:hover { background: rgba(255,255,255,0.1); color: var(--gold); }
}

/* ── Location photo cards ── */
.location-photo-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.location-photo-card:hover {
  box-shadow: 0 8px 28px rgba(201,168,76,0.22);
  transform: translateY(-3px);
}
.location-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.location-photo-body {
  padding: 1rem 1.1rem 1.1rem;
}
