/* ------------------------------------------------
   GLOBAL RESET + BASE TYPOGRAPHY
--------------------------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #000;
  /* Subtle gray background site-wide (helps white panels/cards read as "cards") */
  /* Use `#f0f2f5` (iOS system gray-ish) to look consistent across devices/displays. */
  background: #f0f2f5;
  overflow-x: hidden;
}

/* Utility: make footer stick to bottom on short pages */
body.sticky-footer-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.sticky-footer-layout main {
  flex: 1 0 auto;
}

body.sticky-footer-layout #footer-placeholder {
  flex-shrink: 0;
}

/* Universal anchor styling */
a {
  color: #031633;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Universal width wrapper */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Universal content panel */
.panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  max-width: 1100px;
  margin: 1.25rem auto;
  border: 1px solid rgba(3, 22, 51, 0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

/* Give card-like surfaces a subtle edge so they don't disappear on bright displays */
:where(.card, .event-card, .info-card, .donate-card, .map-wrapper) {
  border: 1px solid rgba(3, 22, 51, 0.12);
}

/* Remove destructive overrides (NO section wiping!) */

/* GLOBAL DONATE HEART ICON RULE */
a[href*="donate"] i.bi-heart-fill,
a[href*="donate"] svg.bi-heart-fill {
  color: #c62828;
  fill: #c62828;
}

/* ------------------------------------------------
   PAGE TITLES & INTRO TEXT (NON-HOME)
--------------------------------------------------- */

.section-title {
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: #000;
}

.section-title i {
  color: #ffc107;
}

.page-intro,
.events-page-intro {
  max-width: 800px;
  margin-bottom: 1.75rem;
  color: #333;
  font-size: 1.05rem;
}

/* ------------------------------------------------
   PAGE HEADER (GLOBAL POSITIONING)
--------------------------------------------------- */

.page-header {
  max-width: 1100px;

  /* Keep content tight to fixed navbar */
  margin: 0.5rem auto 1.25rem auto;

  /* ➡ moves it AWAY from screen edge */
  padding-left: .5rem;
  padding-right: 2rem;
}

/* ------------------------------------------------
   FIXED NAV OFFSET — RESPONSIVE
--------------------------------------------------- */

/* The navbar is `position: sticky` (in flow), so pages don't need a manual offset. */
body.has-fixed-nav { padding-top: 0; }

/* (Removed global nav/panel overrides)
   These were overriding `body.has-fixed-nav` padding and panel spacing site-wide,
   causing content to appear "missing" under the fixed navbar and collapsing
   card/panel layout on multiple pages. */

/* ------------------------------------------------
   MOTION POLISH (SUBTLE + ACCESSIBLE)
--------------------------------------------------- */

/* Reveal-on-scroll: never hide content unless JS is active.
   Without this guard, a missing/blocked JS file can make panels/cards invisible. */
.fmba-reveal {
  opacity: 1;
  transform: none;
}

.js .fmba-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

.js .fmba-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Consistent hover/press interactions (no new colors/shadows) */
.card,
.event-card,
.info-card,
.donate-card,
.map-wrapper {
  transition: transform 180ms ease;
}

.card:hover,
.event-card:hover,
.info-card:hover,
.donate-card:hover,
.js .card:hover,
.js .event-card:hover,
.js .info-card:hover,
.js .donate-card:hover {
  transform: translateY(-3px);
}

.card:active,
.event-card:active,
.donate-card:active,
.js .card:active,
.js .event-card:active,
.js .donate-card:active {
  transform: translateY(-1px);
}

.btn,
button[type="submit"],
a.btn {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
}

.btn:active,
button[type="submit"]:active,
a.btn:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .js .fmba-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .event-card,
  .info-card,
  .donate-card,
  .map-wrapper,
  .btn,
  button[type="submit"],
  a.btn {
    transition: none;
  }
}
