/* Webflow utility classes — kept when scripts are stripped */

.hidden,
.hide {
  display: none !important;
}

/* ------------------------------------------------------------------
   Page-load interactions, rebuilt from the live site's Webflow IX2 data
   (same targets, offsets, delays, durations and easings).
   body[data-ix="hero"]    → home + parish ("Page Load")
   body[data-ix="general"] → wildfire ("Page Load [General]")
   ------------------------------------------------------------------ */
@keyframes ix-in-left {
  from { opacity: 0; transform: translate3d(-25px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ix-in-up {
  from { opacity: 0; transform: translate3d(0, 25px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ix-zoom-in {
  from { opacity: 0; transform: scale3d(0.95, 0.95, 1); }
  to   { opacity: 1; transform: none; }
}
@keyframes ix-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Only when the inline head script has run (html.ix); html.ix-done (set by a
     2.5s timer) forces the final state so content can never stay hidden. */
  /* Webflow easings: "easeOut" = cubic-bezier(0,0,.58,1), "ease" = ease */
  html.ix [data-ix='hero'] .hero-h1 { animation: ix-in-left 600ms cubic-bezier(0, 0, 0.58, 1) 300ms both; }
  html.ix [data-ix='hero'] .hero-paragraph { animation: ix-in-left 600ms cubic-bezier(0, 0, 0.58, 1) 600ms both; }
  html.ix [data-ix='hero'] .button-wrapper { animation: ix-in-left 600ms cubic-bezier(0, 0, 0.58, 1) 800ms both; }
  html.ix [data-ix='hero'] .hero-image { animation: ix-zoom-in 1000ms ease 600ms both; }

  html.ix [data-ix='general'] .header-h1 { animation: ix-in-up 600ms cubic-bezier(0, 0, 0.58, 1) 300ms both; }
  html.ix [data-ix='general'] .navbar { animation: ix-fade-in 500ms cubic-bezier(0, 0, 0.58, 1) 600ms both; }
  html.ix [data-ix='general'] .content-section { animation: ix-fade-in 500ms ease 600ms both; }
}
html.ix-done [data-ix] * {
  animation: none !important;
}

/* Navbar open/close (IX2 "Menu BG"): background fades to white while the mobile menu is open */
.navbar {
  transition: background-color 500ms ease;
}
.navbar.is-menu-open {
  background-color: #fff;
  transition-timing-function: cubic-bezier(0, 0, 0.58, 1);
}

/* ------------------------------------------------------------------
   Parish "resource list" entries (Confession Cards, Novenas, …).
   In Webflow these are bare text in a div, so they fell back to the
   body default (Inter 22px / 20px line-height) and the lines collided.
   ------------------------------------------------------------------ */
.resourcelist {
  font-family: var(--body);
  color: var(--black);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.resourcelist:last-child {
  margin-bottom: 0;
}
.resourcelist-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--header);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.resourcelist-title a {
  color: var(--coral);
  text-decoration: none;
}
.resourcelist-title a:hover,
.resourcelist-title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.resourcelist-desc {
  display: block;
}

/* ------------------------------------------------------------------
   Typography fallbacks. Webflow's body default is Inter with a fixed
   20px line-height, and h1/h3 only get Marcellus below the tablet
   breakpoint, so any element without its own font (bare text, list
   items, footer links, desktop h1/h3, the Wildfire/Office copy) rendered
   in Inter and wrapped lines collided. Use the site's real fonts instead.
   ------------------------------------------------------------------ */
body {
  font-family: var(--body);
}
h1:not(.cta-heading),
h3 {
  font-family: var(--header);
  letter-spacing: 3px;
}
h3 {
  line-height: 1.2;
}
.normalp {
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.6;
}
.list-item {
  line-height: 1.5;
}
/* Parish: the brand link under each section title ("Cedar House / St. Joseph Communications") */
.hero-split-2 > h1 + a {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.4;
}

/* Parish section titles ("FREE Parish Resources", "Our Parish Focused Ministries")
   are a fixed 4em (88px) and ran off the screen on phones, on live too. */
@media screen and (max-width: 767px) {
  .heading-6 {
    font-size: clamp(40px, 11vw, 66px);
    line-height: 1.05;
  }
}
