@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap");

/* ============================================
   Design tokens
   ============================================ */
:root {
  --ink-navy: #1b365d;
  --ink-navy-deep: #0b1f3a;
  --maroon: #7a2331;
  --maroon-deep: #5e1a24;
  --gold: #b8862e;
  --gold-light: #d9b667;
  --parchment: #faf6ec;
  --parchment-deep: #f2ead8;
  --charcoal: #2c2620;
  --line: #e2d6b8;
}

/* ============================================
   General layout
   ============================================ */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background-color: var(--parchment);
}

h1, h2, h3, h4, h5, h6,
.display-4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--ink-navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.display-4 {
  font-weight: 700;
}

a {
  color: var(--maroon);
}

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

/* Section heading mark: a small geometric cross, since the page content
   is genuinely organized into distinct named sections. */
h2 {
  position: relative;
  padding-bottom: 0.65rem;
  margin-bottom: 1.5rem;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 10px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 3px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 14px 3px no-repeat;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   Church brand / navbar
   ============================================ */
.church-brand {
  text-decoration: none;
  color: var(--ink-navy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.church-brand:hover {
  color: var(--ink-navy-deep);
}

.navbar.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--ink-navy) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid var(--gold);
}

.navbar.sticky-top .church-brand,
.navbar.sticky-top .nav-link {
  color: #ffffff;
}

.navbar.sticky-top .church-brand:hover {
  color: var(--gold-light);
}

.navbar.sticky-top .nav-link {
  font-weight: 500;
}

.navbar.sticky-top .nav-link:hover {
  color: var(--gold-light);
}

.navbar.sticky-top .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar.sticky-top .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Carousel
   ============================================ */
#heroCarousel .carousel-item {
  background-size: cover;
  background-position: center;
  position: relative;
}

#heroCarousel .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.75) 0%, rgba(122, 35, 49, 0.55) 100%);
}

#heroCarousel .container {
  position: relative;
  z-index: 2;
}

#heroCarousel .display-4 {
  color: #ffffff;
}

#heroCarousel .lead {
  color: #f2ead8;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  background-color: var(--gold-light);
}

/* ============================================
   Laptop / tablet (768px–1399px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1399.98px) {
  #heroCarousel .display-4 {
    font-size: clamp(2.25rem, 5vw, 3rem);
  }

  .church-brand {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
  }
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 767.98px) {
  #heroCarousel .display-4 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  #heroCarousel .lead {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .church-brand {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  /* Collapsed mobile menu: tighten spacing and separate items with a
     hairline so the panel doesn't read as one long blue field. */
  .navbar-collapse {
    padding: 0.5rem 0 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn-light {
  background-color: #ffffff;
  border-color: var(--line);
  color: var(--ink-navy);
  font-weight: 500;
}

.btn-light:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.btn-outline-dark {
  border-color: var(--maroon);
  color: var(--maroon);
  font-weight: 500;
}

.btn-outline-dark:hover {
  background-color: var(--maroon);
  border-color: var(--maroon);
  color: #ffffff;
}

/* ============================================
   Info boxes (Contacts, Priests, Board members, etc.)
   ============================================ */
.border.rounded.p-3,
.d-inline-block.border.rounded.p-3,
.p-3.bg-light.rounded {
  background-color: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 6px !important;
  padding: 1.25rem !important;
}

/* ============================================
   Images
   ============================================ */
.img-fluid.rounded.shadow {
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(44, 38, 32, 0.15) !important;
}

.border-primary {
  border-color: var(--gold) !important;
}

/* ============================================
   Footer
   ============================================ */
footer.border-top {
  border-top: 1px solid var(--line) !important;
  margin-top: 2rem;
}

footer .text-muted {
  color: #8a7f6a !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
