/* =========================================================
   Lourdes Center — Custom Styles
   Brand Colors: Navy #1A1F3A | Gold #C9A84C | Cream #FAF6EE
   Fonts: Cormorant Garamond (display) | Jost (body)
   ========================================================= */

/* ── Base & Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px; /* 18px base — sized for 60+ audience */
}

body {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  color: #1A1F3A;
  background-color: #FAF6EE;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Skip Link (Accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #C9A84C;
  color: #1A1F3A;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Navigation ── */
.nav-link {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #FAF6EE;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #C9A84C;
  border-bottom-color: #C9A84C;
}
.nav-link:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  min-height: 88vh;
  background-color: #1A1F3A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shorter hero for interior pages */
.hero-section-sm {
  position: relative;
  min-height: 45vh;
  background-color: #1A1F3A;
  background-image:
    linear-gradient(rgba(26, 31, 58, 0.80), rgba(26, 31, 58, 0.90)),
    url('../images/hero-lourdes.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero Slideshow ── */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 18s ease-in-out infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Per-slide overlays — tune each slide independently */
.slide-overlay {
  position: absolute;
  inset: 0;
}

/* Church & Mass: lighter overlay so more image detail shows */
.slide-overlay--medium {
  background: linear-gradient(rgba(26, 31, 58, 0.55), rgba(26, 31, 58, 0.72));
}

/* Bernadette: heavier overlay to kill the light gray background */
.slide-overlay--dark {
  background: linear-gradient(rgba(26, 31, 58, 0.80), rgba(26, 31, 58, 0.92));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 800px;
  width: 100%;
}

/* ── Gold Divider ── */
.gold-divider {
  display: block;
  width: 60px;
  height: 3px;
  background-color: #C9A84C;
  margin: 1.25rem auto;
}

.gold-divider-left {
  display: block;
  width: 60px;
  height: 3px;
  background-color: #C9A84C;
  margin: 1.25rem 0;
}

/* ── Section Headings ── */
.section-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1A1F3A;
  line-height: 1.2;
}

.section-heading-light {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #FAF6EE;
  line-height: 1.2;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A1F3A;
  background-color: #C9A84C;
  padding: 0.85rem 2.25rem;
  border: 2px solid #C9A84C;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  min-height: 54px;
  transition: background-color 0.2s, color 0.2s;
}
.btn-primary:hover {
  background-color: #b8963e;
  border-color: #b8963e;
}
.btn-primary:focus-visible {
  outline: 3px solid #FAF6EE;
  outline-offset: 3px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FAF6EE;
  background-color: transparent;
  padding: 0.85rem 2.25rem;
  border: 2px solid #FAF6EE;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  min-height: 54px;
  transition: background-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background-color: rgba(250, 246, 238, 0.15);
}
.btn-secondary:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 3px;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FAF6EE;
  background-color: #1A1F3A;
  padding: 0.85rem 2.25rem;
  border: 2px solid #1A1F3A;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  min-height: 54px;
  transition: background-color 0.2s;
}
.btn-navy:hover {
  background-color: #252c52;
}
.btn-navy:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 3px;
}

/* ── PayPal Button Wrapper ── */
.paypal-btn-wrapper form {
  display: inline;
}
.paypal-btn-wrapper input[type="image"] {
  /* Hide default PayPal image buttons; we use custom buttons */
  display: none;
}

/* PayPal Cart Button - custom styled */
.pp-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #1A1F3A;
  background-color: #C9A84C;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.2s;
  width: 100%;
}
.pp-cart-btn:hover {
  background-color: #b8963e;
}
.pp-cart-btn:focus-visible {
  outline: 3px solid #1A1F3A;
  outline-offset: 3px;
}

.pp-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Jost', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A1F3A;
  background-color: #C9A84C;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  min-height: 58px;
  transition: background-color 0.2s;
}
.pp-donate-btn:hover {
  background-color: #b8963e;
}

/* ── Donation card (in-site give flow) ── */
.donation-card {
  background: #ffffff;
  border: 2px solid rgba(26, 31, 58, 0.15);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26, 31, 58, 0.06);
}
.donation-card-lock {
  color: #1A1F3A;
  opacity: 0.9;
}
.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.donate-amount-opt {
  cursor: pointer;
  margin: 0;
}
.donate-amount-btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1F3A;
  background: #FAF6EE;
  border: 2px solid rgba(26, 31, 58, 0.2);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.donate-amount-opt input:checked + .donate-amount-btn,
.donate-amount-opt:hover .donate-amount-btn {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, 0.12);
  color: #1A1F3A;
}
.donate-amount-opt input:focus-visible + .donate-amount-btn {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Store cart (floating button + Your selection popup) ── */
.store-cart-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #1A1F3A;
  color: #FAF6EE;
  border: 2px solid rgba(201, 168, 76, 0.4);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(26, 31, 58, 0.3);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.store-cart-fab:hover {
  color: #C9A84C;
  background: #252b4a;
  box-shadow: 0 6px 24px rgba(26, 31, 58, 0.4);
}
.store-cart-fab:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.store-cart-fab-label {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
}
@media (max-width: 640px) {
  .store-cart-fab {
    bottom: 1rem;
    right: 1rem;
  }
}
.store-cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: #FAF6EE;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.store-cart-trigger:hover {
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.15);
}
.store-cart-trigger:focus-visible {
  outline: 2px solid #C9A84C;
  outline-offset: 2px;
}
.store-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1A1F3A;
  background: #C9A84C;
  border-radius: 9999px;
}
.store-cart-trigger-mobile {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
}
.store-cart-trigger-mobile .store-cart-count {
  margin-left: auto;
}
.store-cart-popup {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 100;
  width: min(360px, calc(100vw - 2rem));
  max-height: calc(100vh - 6rem);
  background: #ffffff;
  border: 2px solid rgba(26, 31, 58, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 31, 58, 0.15);
  overflow: hidden;
}
.store-cart-popup.hidden {
  display: none;
}
.store-cart-popup-inner {
  padding: 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.store-cart-popup-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}
.store-cart-popup-item {
  font-family: 'Jost', sans-serif;
}
.store-cart-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0;
  text-decoration: none;
}
.store-cart-clear:hover:not(:disabled) {
  text-decoration: underline;
}
.store-cart-clear:disabled {
  cursor: default;
  opacity: 0.5;
}
@media (max-width: 1023px) {
  .store-cart-popup {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* ── Cards ── */
.feature-card {
  background: #ffffff;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-top: 4px solid #C9A84C;
  border-radius: 3px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(26, 31, 58, 0.1);
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 3px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(26, 31, 58, 0.08);
}

/* ── Info Block (Mass Schedule, Contact) ── */
.info-block {
  background-color: #1A1F3A;
  color: #FAF6EE;
  border-left: 5px solid #C9A84C;
  padding: 1.5rem 2rem;
  border-radius: 0 3px 3px 0;
}

/* ── Body Text ── */
.body-text {
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  line-height: 1.85;
  color: #1A1F3A;
  max-width: 70ch;
}

.body-text-light {
  font-family: 'Jost', sans-serif;
  font-size: 1.2rem;
  line-height: 1.85;
  color: #FAF6EE;
  max-width: 70ch;
}

/* ── Prayer Text ── */
.prayer-block {
  background-color: #ffffff;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-left: 5px solid #C9A84C;
  border-radius: 0 3px 3px 0;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}
.prayer-block p {
  font-family: 'Jost', sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #1A1F3A;
  margin-bottom: 1rem;
}
.prayer-block p:last-child {
  margin-bottom: 0;
}
.prayer-block em {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
}

/* ── Contact Form ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-label {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1F3A;
}
.form-input {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: #1A1F3A;
  background-color: #ffffff;
  border: 2px solid rgba(26, 31, 58, 0.3);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  min-height: 52px;
  width: 100%;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}
textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

/* ── Inline Link Style ── */
.text-link {
  color: #1A1F3A;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.text-link:hover {
  color: #8a6d23;
}
.text-link-light {
  color: #FAF6EE;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.text-link-light:hover {
  color: #C9A84C;
}

/* ── Page Top Padding (for fixed nav) ── */
.page-content {
  padding-top: 80px; /* matches nav height on mobile */
}
@media (min-width: 768px) {
  .page-content {
    padding-top: 88px; /* matches nav height on desktop */
  }
}

/* ── Section Spacing ── */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (max-width: 640px) {
  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ── Newsletter Cards ── */
.newsletter-card {
  background: #ffffff;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #1A1F3A;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.newsletter-card:hover {
  border-color: #C9A84C;
  box-shadow: 0 4px 16px rgba(26, 31, 58, 0.08);
}

/* ── Alert / Notice Box ── */
.notice-box {
  background-color: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
}

/* ── Footer ── */
footer h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C9A84C;
  margin-bottom: 1rem;
}
footer address {
  font-style: normal;
}
footer a {
  color: rgba(250, 246, 238, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
footer a:hover {
  color: #C9A84C;
}

/* ── Mobile Menu Transition ── */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
}

/* ── Responsive Typography ── */
@media (max-width: 640px) {
  .section-heading,
  .section-heading-light {
    font-size: 2rem;
  }
  html {
    font-size: 18px;
  }
}

/* ── Focus Visible (Global) ── */
:focus-visible {
  outline: 3px solid #C9A84C;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Utility: Max readable width ── */
.max-prose {
  max-width: 70ch;
}
