@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&family=Inter:wght@400;500;600&display=swap");

/* ============================================
   Design tokens
   ============================================ */
:root {
  --ink-navy: #1b365d;
  --ink-navy-deep: #0b1f3a;
  --maroon: #7a2331;
  --maroon-deep: #5e1a24;
  --gold: #b8862e;
  --gold-deep: #9a6f22;
  --gold-light: #d9b667;
  --parchment: #faf7f0;
  --charcoal: #2c2620;
  --line: #e6dcc3;
  --radius-card: 16px;
  --shadow-soft: 0 6px 24px rgba(27, 54, 93, 0.08);
  --shadow-lift: 0 14px 34px rgba(27, 54, 93, 0.16);
}

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

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;
}

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

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

/* Section titles. Titles are rendered as <h4>, so that is what we style.
   A small gold cross sits under each one as a section marker. */
.container h4,
h2 {
  position: relative;
  font-size: 2.1rem;
  line-height: 1.2;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
}

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

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

/* Titles inside small cards (Instagram, YouTube...) stay compact */
.d-inline-block h4 {
  font-size: 1.5rem;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

.d-inline-block h4::after {
  content: none;
}

/* Centered text blocks (e.g. "Our Sacred Mission") read best at a
   comfortable line length. */
.text-center p {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Page sections carried a thin grey rule from inline styles; hide the
   line but keep the spacing. */
[style*="border-top"] {
  border-top-color: transparent !important;
}

/* The "Our Sacred Mission" block sits on a clean white band that runs
   the full width of the page. */
.container.py-5.text-center {
  background: #ffffff;
  box-shadow: 0 0 0 100vmax #ffffff;
  clip-path: inset(0 -100vmax);
}

/* ============================================
   Navbar
   ============================================ */
.church-brand {
  text-decoration: none;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

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

.navbar.sticky-top {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--ink-navy) !important;
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.25);
  border-bottom: 3px solid var(--gold);
}

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

.navbar.sticky-top .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.navbar.sticky-top .nav-link:hover,
.navbar.sticky-top .nav-link.active {
  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(180deg, rgba(11, 31, 58, 0.55) 0%, rgba(11, 31, 58, 0.82) 100%);
}

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

#heroCarousel .display-4 {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

#heroCarousel .lead {
  color: #f2ead8;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
}

#heroCarousel .btn {
  margin-top: 0.5rem;
}

/* Round, soft arrows and pill-shaped indicators */
#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  width: 2.75rem;
  height: 2.75rem;
  background-size: 42%;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background-color: var(--gold-light);
}

#heroCarousel .carousel-indicators .active {
  width: 28px;
  border-radius: 999px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-sm {
  padding: 0.3rem 0.9rem;
}

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

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

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

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

/* The membership form's Submit button is the primary action: filled */
#hn-submit {
  background-color: var(--ink-navy);
  border-color: var(--ink-navy);
  color: #ffffff;
  padding-left: 2rem;
  padding-right: 2rem;
}

#hn-submit:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

/* ============================================
   Form fields
   ============================================ */
.form-control {
  border-radius: 10px;
  border-color: #d9d2c0;
  padding: 0.65rem 0.9rem;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 46, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--ink-navy);
}

/* ============================================
   Cards (Contacts, Priests, Board members...)
   ============================================ */
.border.rounded.p-3,
.d-inline-block.border.rounded.p-3,
.p-3.bg-light.rounded {
  background-color: #ffffff !important;
  border: 1px solid rgba(27, 54, 93, 0.06) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.border.rounded.p-3:hover,
.d-inline-block.border.rounded.p-3:hover,
.p-3.bg-light.rounded:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ============================================
   Media: photos, videos, embedded calendar
   ============================================ */
.img-fluid.rounded.shadow {
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-soft) !important;
}

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

.ratio {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

iframe {
  border-radius: var(--radius-card);
}

/* ============================================
   Footer: navy band with contact details
   ============================================ */
.hn-footer {
  background: var(--ink-navy-deep);
  color: #c9d4e3;
  margin-top: 3rem;
  border-top: 3px solid var(--gold);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hn-footer .hn-footer-title {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hn-footer a:not(.btn) {
  color: #c9d4e3;
  text-decoration: none;
}

.hn-footer a:not(.btn):hover {
  color: var(--gold-light);
}

.hn-footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.hn-footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.hn-footer-rule {
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
  margin: 2rem 0 1.25rem;
}

.hn-footer-copy {
  color: #9fb0c6;
}

/* ============================================
   Contact page
   ============================================ */
.hn-contact-hero {
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.92) 0%, rgba(27, 54, 93, 0.96) 100%);
  padding: 4.5rem 0 4rem;
  border-bottom: 3px solid var(--gold);
}

.hn-eyebrow {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hn-contact-title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.hn-contact-sub {
  color: #d9e2ec;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.hn-card {
  background: #ffffff;
  border: 1px solid rgba(27, 54, 93, 0.06);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  position: relative;
}

.hn-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.hn-muted {
  color: #6b6458;
  margin-bottom: 1rem;
}

.hn-label {
  color: var(--ink-navy);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.hn-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
  border-radius: 12px;
}

.hn-card-accent {
  border-top: 3px solid var(--gold);
}

.hn-btn-primary {
  background-color: var(--ink-navy);
  border-color: var(--ink-navy);
  color: #ffffff;
  padding-left: 2rem;
  padding-right: 2rem;
}

.hn-btn-primary:hover:not(:disabled) {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.hn-status {
  font-weight: 500;
}

.hn-ok {
  color: var(--ink-navy);
}

.hn-bad {
  color: var(--maroon);
}

/* ============================================
   Home: About section
   ============================================ */
.hn-about {
  padding: 4.5rem 0 3rem;
}

.hn-about-header {
  max-width: 52rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.hn-eyebrow-dark {
  color: var(--gold-deep);
}

.hn-about-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hn-about-header p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.hn-about-section {
  margin-bottom: 2.75rem;
}

.hn-about-section h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.hn-about-section p {
  font-size: 1.05rem;
  line-height: 1.85;
}

.hn-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
  align-items: start;
}

.hn-chip {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(27, 54, 93, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 1rem 0.8rem 2.1rem;
  font-weight: 500;
  color: var(--ink-navy);
}

.hn-chip::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gold);
}

.hn-about-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.hn-about-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-navy);
}

/* ============================================
   Home: landing sections
   ============================================ */
.hn-sec-head {
  max-width: 46rem;
  margin: 0 auto 2.5rem;
}

.hn-sec-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 1rem;
}

.hn-sec-head .hn-muted {
  margin-bottom: 0;
}

/* Full-width white band behind a section (alternates with the page tint) */
.hn-band {
  background: #ffffff;
}

.hn-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hn-cross {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 4px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center 7px / 16px 4px no-repeat;
}

.hn-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.hn-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.hn-faq {
  max-width: 48rem;
  margin: 0 auto;
}

.hn-faq details {
  background: var(--parchment);
  border: 1px solid rgba(27, 54, 93, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.hn-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-navy);
}

.hn-faq details p {
  margin: 0.75rem 0 0;
  max-width: none;
}

.hn-support {
  background: var(--ink-navy);
  border-radius: 20px;
  padding: 3rem 1.5rem;
}

.hn-support h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hn-support p {
  color: #d9e2ec;
  margin-bottom: 1.5rem;
}

/* Service cards that open a detail view */
.hn-services {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.hn-chip-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hn-chip-btn:hover,
.hn-chip-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold);
  outline: none;
}

.hn-chip-more {
  flex-shrink: 0;
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hn-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 31, 58, 0.65);
}

.hn-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: #ffffff;
  border-top: 4px solid var(--gold);
  border-radius: 16px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hn-modal-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.hn-modal-card p,
.hn-modal-list {
  font-size: 1.02rem;
  line-height: 1.75;
}

.hn-modal-list {
  padding-left: 1.25rem;
}

.hn-modal-list li {
  margin-bottom: 0.6rem;
}

.hn-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  border: 0;
  background: transparent;
  color: var(--ink-navy);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.hn-modal-close:hover {
  color: var(--gold-deep);
}

/* ============================================
   Laptop / tablet (768px - 1399px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1399.98px) {
  .church-brand {
    font-size: 1.35rem;
  }

  .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;
  }

  .container h4,
  h2 {
    font-size: 1.7rem;
  }

  .text-center p {
    font-size: 1rem;
  }

  /* 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;
  }
}

/* ============================================
   Priests + Board members: refined cards
   ============================================ */

/* Give the contacts page a little more room on wide screens so
   every email address fits on one line. */
@media (min-width: 1200px) {
  .container:has(> .hn-board) {
    max-width: min(1500px, 96vw);
  }
}

.d-inline-block.border.rounded.p-3.hn-board,
.d-inline-block.border.rounded.p-3.hn-priest {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  background: #ffffff !important;
  border: 1px solid rgba(27, 54, 93, 0.07) !important;
  border-top: 4px solid var(--gold) !important;
  border-radius: 14px !important;
  box-shadow: var(--shadow-soft);
  padding: 1.35rem 1.2rem 1.2rem !important;
  margin: 0 1% 1.25rem 0 !important;
  line-height: 1.75;
  color: #4a4238;
  text-align: left;
  position: relative;
}

.d-inline-block.border.rounded.p-3.hn-board:hover,
.d-inline-block.border.rounded.p-3.hn-priest:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-top-color: var(--maroon) !important;
}

/* First line of every card = the person's name */
.hn-board::first-line,
.hn-priest::first-line {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3em;
  font-weight: 700;
  color: var(--ink-navy);
  letter-spacing: 0.01em;
}

/* Keep "Email: ..." and "Phone: ..." on a single line */
.hn-board span,
.hn-priest span {
  white-space: nowrap;
}

/* Board: five across on large screens */
.d-inline-block.border.rounded.p-3.hn-board {
  width: 18.9%;
  font-size: clamp(0.68rem, 0.93vw, 0.9rem);
}

/* Priests: three across */
.d-inline-block.border.rounded.p-3.hn-priest {
  width: 32%;
  margin-right: 1.3% !important;
  font-size: 0.95rem;
}

/* 992-1199px: board shows three per row */
@media (max-width: 1199.98px) {
  .d-inline-block.border.rounded.p-3.hn-board {
    width: 31.5%;
    margin-right: 1.5% !important;
    font-size: 0.9rem;
  }
}

/* Tablets: two per row (email may wrap if truly too long) */
@media (max-width: 991.98px) {
  .d-inline-block.border.rounded.p-3.hn-board,
  .d-inline-block.border.rounded.p-3.hn-priest {
    width: 48%;
    margin-right: 2% !important;
    font-size: 0.95rem;
  }
  .hn-board span,
  .hn-priest span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Phones: one per row */
@media (max-width: 575.98px) {
  .d-inline-block.border.rounded.p-3.hn-board,
  .d-inline-block.border.rounded.p-3.hn-priest {
    width: 100%;
    margin-right: 0 !important;
    font-size: 0.9rem;
  }
}


/* ============================================
   Church Services & Giving: "Pay Here" cards
   ============================================ */
.hn-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 2.5rem;
}

.hn-pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(27, 54, 93, 0.07);
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.hn-pay-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--maroon);
}

.hn-pay-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-navy);
  margin: 0;
}

.hn-pay-text {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #6b6258;
}

.hn-pay-btn {
  flex: none;
  display: inline-block;
  background: var(--ink-navy);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(27, 54, 93, 0.25);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hn-pay-btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.45rem;
  transition: transform 0.2s ease;
}

.hn-pay-btn:hover {
  background: var(--gold);
  color: var(--ink-navy) !important;
}

.hn-pay-btn:hover::after {
  transform: translateX(4px);
}

@media (max-width: 575.98px) {
  .hn-pay-grid { grid-template-columns: 1fr; }
  .hn-pay-card { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .hn-pay-btn { text-align: center; }
}


/* ============================================
   Membership page: paper-form download card
   ============================================ */
.hn-dl-outer {
  padding-top: 2.25rem;
}

.hn-dl-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 1.5rem;
  align-items: start;
  max-width: 780px;
  margin: 0;                      /* sits on the left, in line with the heading */
  padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #fbf7ee 100%);
  border: 1px solid rgba(184, 134, 46, 0.25);
  border-top: 4px solid var(--gold);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hn-dl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* big navy icon tile */
.hn-dl-card::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='white'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M13%206h16l8%208v28H13z'/%3E%3Cpath%20d='M29%206v8h8'/%3E%3Cpath%20d='M24%2021v11'/%3E%3Cpath%20d='m19%2028%205%205%205-5'/%3E%3C/svg%3E") center / 48px 48px no-repeat,
    linear-gradient(135deg, var(--ink-navy) 0%, #2d5290 100%);
  box-shadow: 0 8px 18px rgba(27, 54, 93, 0.28);
}

.hn-dl-card h4 {
  grid-column: 2;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-navy);
  margin: 0 0 0.4rem;
}

.hn-dl-card span {
  grid-column: 2;
  color: #5a5248;
  font-size: 0.97rem;
  line-height: 1.6;
}

.hn-dl-btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 1rem;
  padding: 0.7rem 1.6rem;
  background: var(--ink-navy);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(27, 54, 93, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hn-dl-btn::before {
  content: "\2193";
  display: inline-block;
  margin-right: 0.6rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.hn-dl-btn:hover {
  background: var(--gold);
  color: var(--ink-navy) !important;
}

.hn-dl-btn:hover::before {
  transform: translateY(3px);
}

/* small meta line under the button */
.hn-dl-card::after {
  content: "PDF  \00B7  Letter size  \00B7  Print at home";
  grid-column: 2;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a8f7e;
}

/* phones: icon on top, full-width button */
@media (max-width: 575.98px) {
  .hn-dl-card {
    grid-template-columns: 1fr;
    padding: 1.4rem 1.25rem;
  }
  .hn-dl-card::before {
    grid-column: 1;
    grid-row: auto;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    background-size: 38px 38px, auto;
  }
  .hn-dl-card h4,
  .hn-dl-card span,
  .hn-dl-btn,
  .hn-dl-card::after { grid-column: 1; }
  .hn-dl-btn { justify-self: stretch; text-align: center; }
}


/* ============================================
   Membership page: paper-form card + online form side by side
   ============================================ */
.hn-membership-row {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  column-gap: 3.5rem;
  align-items: start;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* left column: the card, stacked layout (icon above text) */
.hn-membership-row .hn-dl-card {
  grid-template-columns: 1fr;
  max-width: none;
  margin: 0;
  position: sticky;
  top: 100px;
}
.hn-membership-row .hn-dl-card::before {
  grid-column: 1;
  grid-row: auto;
  margin-bottom: 1.1rem;
}
.hn-membership-row .hn-dl-card h4,
.hn-membership-row .hn-dl-card span,
.hn-membership-row .hn-dl-btn,
.hn-membership-row .hn-dl-card::after { grid-column: 1; }
.hn-membership-row .hn-dl-btn { justify-self: stretch; text-align: center; }

/* right column: heading + online form */
.hn-member-col { min-width: 0; }
.hn-member-col h4 { margin-top: 0; }
#hn-membership-form-wrap {
  margin: 1.5rem 0 0 !important;
  max-width: 560px !important;
}

/* tablets / phones: stack, card first */
@media (max-width: 991.98px) {
  .hn-membership-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.25rem;
  }
  .hn-membership-row .hn-dl-card { position: static; }
  #hn-membership-form-wrap { max-width: 100% !important; }
}


/* ============================================
   Membership page: card on the RIGHT, form on the LEFT (desktop)
   ============================================ */
@media (min-width: 992px) {
  .hn-membership-row {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  }
  .hn-member-col { order: 1; }
  .hn-membership-row .hn-dl-card { order: 2; }
}

/* ============================================
   Multimedia: celebration albums + lightbox
   ============================================ */
.hn-media-wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.hn-media-wrap > span { display: block; color: #5a5248; font-size: 1.02rem; margin-bottom: 0.25rem; }
#hn-media-root { margin-top: 2rem; }

.hn-media-loading { padding: 3rem 0; color: #7a7064; text-align: center; }
.hn-media-empty {
  text-align: center; padding: 3.5rem 1.5rem; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-soft); color: #5a5248;
}
.hn-media-empty h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink-navy); font-weight: 700; }
.hn-media-empty-icon { font-size: 2rem; color: var(--gold); margin-bottom: 0.5rem; }

/* --- album grid --- */
.hn-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.hn-album {
  position: relative; display: block; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--ink-navy); text-decoration: none !important;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease;
  border-bottom: 4px solid var(--gold);
}
.hn-album:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-bottom-color: var(--maroon); }
.hn-album-img, .hn-album-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hn-album-img img { object-fit: cover; transition: transform .5s ease; }
.hn-album:hover .hn-album-img img { transform: scale(1.07); }
.hn-album-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.35); background: linear-gradient(135deg, var(--ink-navy), #2d5290); }
.hn-album::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,28,52,.92) 0%, rgba(14,28,52,.45) 42%, rgba(14,28,52,0) 70%);
}
.hn-album-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.1rem 1.3rem 1.2rem; }
.hn-album-info h3 {
  margin: 0; color: #fff; font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem; font-weight: 700; line-height: 1.12; text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hn-album-info p { margin: .3rem 0 0; color: #f1e3bf; font-size: .82rem; letter-spacing: .04em; }
.hn-mchip {
  position: absolute; z-index: 3; top: .9rem; padding: .28rem .75rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .03em; backdrop-filter: blur(4px);
}
.hn-mchip-date { left: .9rem; background: rgba(255,255,255,.94); color: var(--ink-navy); }
.hn-mchip-vid { right: .9rem; background: var(--gold); color: #fff; }

/* --- inside an album --- */
.hn-back {
  display: inline-block; margin-bottom: 1rem; padding: .45rem 1.1rem; border-radius: 999px;
  background: #fff; color: var(--ink-navy) !important; font-weight: 600; font-size: .92rem;
  text-decoration: none !important; box-shadow: var(--shadow-soft); transition: background .2s, color .2s;
}
.hn-back:hover { background: var(--ink-navy); color: #fff !important; }
.hn-album-title {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--ink-navy); font-weight: 700; line-height: 1.1; margin: .2rem 0 .3rem;
}
.hn-album-head p { color: #7a6f5f; margin: 0 0 1.2rem; letter-spacing: .03em; }
.hn-sec {
  font-family: "Cormorant Garamond", Georgia, serif; color: var(--ink-navy); font-weight: 700;
  font-size: 1.6rem; margin: 2rem 0 1rem; display: flex; align-items: center; gap: .8rem;
}
.hn-sec::after { content: ""; flex: 1; height: 2px; background: linear-gradient(to right, var(--gold), transparent); }

.hn-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.hn-ptile {
  padding: 0; border: 0; background: #e9e3d6; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s;
}
.hn-ptile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hn-ptile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hn-ptile:hover img { transform: scale(1.06); }

.hn-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.hn-vtile { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.hn-vthumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #14233f;
  box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s;
}
.hn-vthumb img, .hn-vthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hn-vtile:hover .hn-vthumb { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.hn-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; background: rgba(184,134,46,.95); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .2s;
}
.hn-vtile:hover .hn-play { transform: translate(-50%, -50%) scale(1.1); }
.hn-vlabel { margin-top: .55rem; color: var(--ink-navy); font-weight: 600; font-size: .95rem; }

/* --- lightbox --- */
.hn-lb {
  position: fixed; inset: 0; z-index: 3000; background: rgba(9,16,31,.975);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: hnLbIn .18s ease;
}
@keyframes hnLbIn { from { opacity: 0; } to { opacity: 1; } }
.hn-lb-stage { width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 3.2rem 4.2rem 0.5rem; box-sizing: border-box; }
.hn-lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hn-lb-stage video, .hn-lb-stage iframe { width: min(100%, 1100px); aspect-ratio: 16 / 9; max-height: 100%; border: 0; border-radius: 10px; background: #000; }
.hn-lb-bar { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.4rem 1rem; box-sizing: border-box; color: #d9cfb8; font-size: .9rem; }
.hn-lb-open { color: #f1d28a !important; text-decoration: none !important; font-weight: 600; }
.hn-lb-open:hover { text-decoration: underline !important; }
.hn-lb-btn {
  position: absolute; z-index: 2; border: 0; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.hn-lb-btn:hover { background: var(--gold); }
.hn-lb-close { top: .9rem; right: 1rem; font-size: 1.2rem; }
.hn-lb-prev { left: .9rem; top: 50%; transform: translateY(-50%); }
.hn-lb-next { right: .9rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 575.98px) {
  .hn-albums { grid-template-columns: 1fr; }
  .hn-photos { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .hn-vids { grid-template-columns: 1fr; }
  .hn-lb-stage { padding: 3.4rem .4rem .4rem; }
  .hn-lb-prev { left: .4rem; } .hn-lb-next { right: .4rem; }
  .hn-lb-btn { width: 40px; height: 40px; background: rgba(0,0,0,.45); }
}
