/* RiverSong Church — site styles
   Palette from the logo (river blue + song green) and the water hero. */

:root {
  --river: #00a6e2;
  --river-deep: #008fc4;
  --river-ink: #0078a6;
  --song: #3cb54a;
  --song-deep: #2d9a3a;
  --navy: #1c1513;
  --navy-mid: #201713;
  --navy-soft: #2a211e;
  --ink: #14242e;
  --ink-soft: #3d5160;
  --cream: #f3f6f8;
  --paper: #ffffff;
  --mist: #e3ecef;
  --line: rgba(28, 21, 19, 0.1);
  --line-strong: rgba(28, 21, 19, 0.18);
  --gold: #3cb54a;
  --gold-ink: #2d9a3a;
  --overlay: rgba(28, 21, 19, 0.42);
  --shadow-sm: 0 6px 18px rgba(28, 21, 19, 0.08);
  --shadow: 0 18px 50px rgba(28, 21, 19, 0.14);
  --shadow-hover: 0 22px 56px rgba(28, 21, 19, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 80px;
  --container: 1160px;
  --wide: 1280px;
  --font-display: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--river-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--river-deep); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10000;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.container-wide {
  width: min(calc(100% - 40px), var(--wide));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  /* Do not put filter, transform, or backdrop-filter on .site-header itself:
     those make it the containing block for position:fixed descendants and
     clip the mobile drawer to the 68–80px header box. Blur lives on .header-bg.
     Never hide the header on scroll; it stays fixed and readable at all times. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  overflow: visible;
  background: transparent;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  /* Always a dark bar so white logo/links never become white-on-white
     after scrolling past the hero, even if the scroll class is late. */
  background: rgba(28, 21, 19, 0.92);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled .header-bg,
.site-header.is-solid .header-bg {
  background: #1c1513;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}
.logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.logo img {
  height: 42px;
  width: auto;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 13px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav-toggle-bars { top: 23px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.15rem;
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  touch-action: manipulation;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.55rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { color: #fff; text-decoration: none; }
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-dark:focus-visible,
.btn-outline-dark:focus-visible,
.btn-give:focus-visible {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--river);
  color: #fff;
  border-color: var(--river);
  box-shadow: 0 10px 24px rgba(0, 166, 226, 0.28);
}
.btn-primary:hover {
  background: var(--river-deep);
  border-color: var(--river-deep);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-soft);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.88rem; }
.btn-give {
  background: var(--song);
  color: #fff;
  border-color: var(--song);
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
  box-shadow: none;
}
.btn-give:hover {
  background: var(--song-deep);
  border-color: var(--song-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Hero (Studio v2) ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: -4%;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  animation: heroDrift 28s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  to { transform: translate3d(-2%, 1%, 0) scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(28, 21, 19, 0.92) 0%, rgba(28, 21, 19, 0.72) 36%, rgba(28, 21, 19, 0.28) 64%, rgba(28, 21, 19, 0.16) 100%),
    linear-gradient(0deg, rgba(28, 21, 19, 0.78), transparent 46%);
}
@media (max-width: 1023px) {
  /* Stacked hero: type sits over more of the photo, so keep a fuller veil. */
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(28, 21, 19, 0.55) 0%, rgba(28, 21, 19, 0.62) 42%, rgba(28, 21, 19, 0.8) 100%);
  }
  .hero-media img { object-position: 62% 40%; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--wide));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3.5rem) clamp(18px, 5vw, 64px) 8.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: #cfe8f3;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--song);
}
.hero-copy .eyebrow {
  color: #cfe8f3;
}
.hero-copy .eyebrow::before {
  background: var(--song);
  box-shadow: none;
  height: 2px;
  width: 36px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.85rem, 7.4vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 1.1rem 0 1rem;
  max-width: 12ch;
  text-wrap: balance;
}
.life {
  position: relative;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}
.life svg {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.life svg path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: drawUnderline 1.4s 0.5s var(--ease) forwards;
}
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }
.hero-lede {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #dbe9ef;
  max-width: 30ch;
  margin: 0;
}
.sunday-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 26px 26px 22px;
}
.sunday-kicker {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: #7fd38a;
}
.sunday-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 10px 0 4px;
}
.sunday-time small {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
  margin-left: 6px;
}
.sunday-address {
  color: #dbe9ef;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 10px 0 18px;
}
.sunday-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sunday-actions .btn {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.9rem 1.1rem;
}

/* Staggered hero entrance — CSS only, visible immediately if motion is reduced. */
.hero-copy > *,
.sunday-card {
  animation: heroRise 0.9s var(--ease) both;
}
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.sunday-card { animation-delay: 0.36s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  line-height: 0;
  color: var(--cream);
  pointer-events: none;
  overflow: hidden;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(60px, 8vw, 120px);
}
.hero-wave svg path:first-child {
  animation: waveSwell 9s ease-in-out infinite alternate;
  transform-origin: center bottom;
}
.hero-wave .wave-front {
  animation: waveSwell2 12s ease-in-out infinite alternate;
}
@keyframes waveSwell { to { transform: translateX(-3%) scaleY(1.25); } }
@keyframes waveSwell2 { to { transform: translateX(2%); } }

/* ---------- Shared sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
}
.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--river-ink);
  margin: 0 0 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: var(--navy);
  text-wrap: balance;
}
.section-intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}
.section-dark {
  background: var(--navy);
  color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-kicker { color: var(--gold); }
.section-dark .section-intro { color: rgba(255, 255, 255, 0.78); }
.section-cream { background: var(--cream); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section-head .section-intro { margin-bottom: 0; }

/* ---------- Plan your visit ---------- */
.visit-band {
  background: var(--cream);
  padding: 2rem clamp(18px, 5vw, 64px) 5.5rem;
  margin-top: -1px;
}
.visit-wrap {
  width: min(100%, 1160px);
  margin: 0 auto;
}
.visit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.1rem;
}
.visit-head .section-title { margin: 0; }
.visit-link {
  color: var(--river-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.visit-link:hover { color: var(--river-deep); }
.visit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.visit-step {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.visit-step:hover,
.visit-step:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(28, 21, 19, 0.18);
}
.visit-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  color: var(--river);
  opacity: 0.18;
  position: absolute;
  right: 18px;
  top: 10px;
}
.visit-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  margin: 4px 0 10px;
  color: var(--navy);
  position: relative;
}
.visit-step p {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 1rem;
  margin: 0;
  position: relative;
}
.visit-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e3f4fb;
  color: var(--river-ink);
  margin-bottom: 16px;
}
.visit-icon svg { width: 22px; height: 22px; }
.visit-step-photo {
  padding: 0;
  display: grid;
  grid-template-rows: 170px auto;
}
.visit-step-photo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center 30%;
}
.visit-step-photo div { padding: 22px 28px 28px; }

/* ---------- What to expect ---------- */
.expect-block { margin-top: 3.4rem; }
.expect-heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 1.4rem;
}
.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.expect-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 20px;
  padding: 1.7rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  height: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.expect-card:hover,
.expect-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.expect-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e3f4fb;
  color: var(--river-ink);
  margin-bottom: 1.1rem;
}
.expect-icon svg { width: 22px; height: 22px; }
.expect-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.expect-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; flex: 1; }

/* ---------- Ministries tiles ---------- */
.ministries-band { background: #fff; padding-top: 5.5rem; }
.min-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.min-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 315 / 193;
  display: block;
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(28, 21, 19, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.min-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
a.min-tile:hover,
a.min-tile:focus-visible,
.min-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(28, 21, 19, 0.18);
}
.min-tile:hover img,
a.min-tile:focus-visible img { transform: scale(1.05); }
.min-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
a.min-tile:hover .min-more,
a.min-tile:focus-visible .min-more { opacity: 1; transform: none; }
@media (hover: none) {
  a.min-tile .min-more { opacity: 1; transform: none; font-size: 0.72rem; padding: 5px 9px; }
}

/* ---------- Welcome band ---------- */
.welcome-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.welcome-band h2 { margin-bottom: 1.1rem; }
.welcome-band p { color: var(--ink-soft); font-size: 1.08rem; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

/* ---------- Ministries detail cards ---------- */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.ministry-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
a.ministry-card:hover,
a.ministry-card:focus-visible,
.ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  color: inherit;
  text-decoration: none;
}
.ministry-card figure {
  margin: 0;
  aspect-ratio: 1400 / 860;
  overflow: hidden;
  background: var(--navy);
}
.ministry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.ministry-card:hover img { transform: scale(1.04); }
.ministry-card-body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ministry-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.ministry-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ministry-card .more {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--river-ink);
  text-decoration: none;
}
/* 9 regular cards fill the 3-col grid; Daily Devotions spans the row beneath as a feature band. */
.ministry-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.ministry-card-wide figure {
  flex: 0 0 55%;
  aspect-ratio: 1400 / 860;
  background: #051826;
  display: flex;
  align-items: center;
}
.ministry-card-wide img { object-fit: contain; height: auto; }
.ministry-card-wide:hover img { transform: none; }
.ministry-card-wide .ministry-card-body { justify-content: center; padding: 1.4rem 1.6rem; }

/* ---------- Sunday photos (continuous carousel) ---------- */
.sunday-slider {
  margin-top: calc(clamp(4rem, 8vw, 7.5rem) + 20px);
  position: relative;
  margin-inline: calc(50% - 50vw);
}
.sunday-photos {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 24px;
}
.sunday-photos::-webkit-scrollbar { display: none; }
.sunday-photo {
  flex: 0 0 clamp(300px, 34vw, 520px);
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}
.sunday-photo picture,
.sunday-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.sunday-photo img { object-fit: cover; }
.sunday-photo-portrait img { object-position: center 20%; }

/* ---------- People ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.75rem 2rem;
}
.person-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s var(--ease);
}
a.person-card:hover { transform: translateY(-4px); color: inherit; text-decoration: none; }
.person-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  max-width: 230px;
  margin-bottom: 1rem;
  background: var(--mist);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--mist);
}
.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease);
}
a.person-card:hover .person-photo img { transform: scale(1.05); }
.person-card { container-type: inline-size; }
.person-card h3 {
  font-family: var(--font-display);
  font-size: min(1.2rem, 7.6cqi);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 0.15rem;
  color: var(--navy);
}
.person-role {
  display: block;
  white-space: nowrap;
  font-size: min(0.8rem, 4.3cqi);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--river-ink);
  margin-bottom: 0.55rem;
}
.person-card .teaser {
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.person-card .more {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--river-ink);
}

/* Team page */
.team-member {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}
.team-member:first-of-type { border-top: 0; padding-top: 0; }
.team-photo {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.team-member h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 0.2rem;
  color: var(--navy);
}
.team-member .role {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--river-ink);
  margin: 0 0 0.8rem;
}
.team-member a.email { font-weight: 500; }
.bio p { margin: 0 0 1rem; color: var(--ink-soft); }
.fun-facts {
  margin-top: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
}
.fun-facts h3 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.fun-facts dl { margin: 0; display: grid; gap: 0.45rem 1rem; }
.fun-facts div { display: grid; grid-template-columns: minmax(10rem, 34%) 1fr; gap: 0.5rem; }
.fun-facts dt { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.fun-facts dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Beliefs ---------- */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(28,21,19,.3), rgba(28,21,19,.7)); }
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 0 3.2rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.belief-block { max-width: 42rem; margin-bottom: 3rem; }
.belief-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 0.8rem;
}
.belief-block p, .belief-block li { color: var(--ink-soft); }
.vision-acrostic {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
  color: var(--navy);
}
.vision-acrostic li { margin: 0; }
.vision-acrostic b {
  color: var(--river);
  font-weight: 600;
  margin-right: 0.15em;
}
.pillars, .values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pillar, .value-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--line);
}
.pillar h3, .value-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: var(--navy);
  letter-spacing: -0.035em;
}
.verse {
  margin: 1rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
}
.verse cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.35rem;
}
.value-card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.value-card li + li { margin-top: 0.35rem; }

/* ---------- Devotionals ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  height: 100%;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: inherit; text-decoration: none; }
.post-card figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy);
}
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card-body { padding: 1.15rem 1.2rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--river-ink);
  margin: 0 0 0.4rem;
}
.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--navy);
  line-height: 1.2;
}
.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}
.post-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.post-image img { width: 100%; height: auto; }
.post-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  color: var(--navy);
}
.post-body .post-meta { margin-bottom: 1.5rem; }
.post-prose p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: 1.08rem; }
.post-prose p strong:first-child {
  color: var(--navy);
  font-weight: 650;
}
.post-prose a { font-weight: 500; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
}
.post-nav a { text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  margin-bottom: 3rem;
}
.site-footer .logo img { height: 48px; margin-bottom: 1.2rem; }
.site-footer h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-contact p, .hours p { margin: 0 0 0.45rem; font-size: 0.95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: 0.4rem; }
.socials { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Preview banner — only used on the preview host if needed; hidden by default */
.preview-note { display: none; }

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .people-grid .person-card:nth-child(4),
  .people-grid .person-card:nth-child(5) { /* let them sit naturally */ }
  .expect-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .welcome-band { gap: 2.2rem; }

  /* Hamburger through ~iPad landscape / iPhone Duo widths so the
     desktop row never wraps or crowds between 900 and 1100. */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: #1c1513; /* fully opaque so page content cannot show through */
    margin: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    flex-direction: column;
    align-items: stretch;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: transform 0.45s var(--ease), opacity 0.35s var(--ease), visibility 0.45s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .site-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    padding: 0.55rem 0.2rem;
    border-radius: 0;
  }
  .nav-cta {
    margin: 1.2rem 0 0;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-cta .btn { width: 100%; min-height: 52px; }
  .site-nav li,
  .site-nav .nav-cta {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .site-nav.is-open li,
  .site-nav.is-open .nav-cta {
    opacity: 1;
    transform: none;
  }
  .site-nav.is-open li:nth-child(1) { transition-delay: 0.05s; }
  .site-nav.is-open li:nth-child(2) { transition-delay: 0.1s; }
  .site-nav.is-open li:nth-child(3) { transition-delay: 0.15s; }
  .site-nav.is-open li:nth-child(4) { transition-delay: 0.2s; }
  .site-nav.is-open li:nth-child(5) { transition-delay: 0.25s; }
  .site-nav.is-open li:nth-child(6) { transition-delay: 0.3s; }
  .site-nav.is-open .nav-cta { transition-delay: 0.35s; }
}

@media (min-width: 1101px) {
  /* Desktop row is the only nav at these widths — never leave a gap
     where the hamburger is hidden and the links are also hidden. */
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    inset: auto;
    z-index: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    background: transparent;
    margin-left: auto;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }
  .site-nav a {
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
  }
  .nav-cta {
    margin-left: 0.6rem;
    flex-direction: row;
    align-items: center;
  }
  .nav-cta .btn { width: auto; min-height: 0; }
  .site-nav li,
  .site-nav .nav-cta { opacity: 1; transform: none; }
}

@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: calc(var(--header-h) + 2.4rem) 22px 7rem;
  }
  .hero h1 { max-width: none; }
  .visit-steps { grid-template-columns: 1fr 1fr; }
  .visit-steps .visit-step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .logo img { height: 36px; }
  .welcome-band { grid-template-columns: 1fr; gap: 1.2rem; }
  .ministries-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .ministry-card-wide { grid-column: 1 / -1; flex-direction: row; }
  .ministry-card-wide figure { flex: 0 0 55%; aspect-ratio: 1400 / 860; background: #051826; display: flex; align-items: center; }
  .ministry-card-wide img { object-fit: contain; height: auto; }
  .ministry-card-wide:hover img { transform: none; }
  .ministry-card-wide .ministry-card-body { justify-content: center; padding: 1.4rem 1.6rem; }
  .sunday-photo { flex-basis: 46vw; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: calc(var(--header-h) + 2rem); }
  .post-image { max-width: 420px; }
  .pillars, .values { grid-template-columns: 1fr; }
  .team-member { grid-template-columns: 200px 1fr; gap: 1.75rem; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.1rem; }
}

@media (max-width: 767px) {
  .min-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (max-width: 620px) {
  .container, .container-wide, .page-hero-content { width: min(calc(100% - 32px), var(--container)); }
  .visit-steps { grid-template-columns: 1fr; }
  .visit-steps .visit-step:last-child { grid-column: auto; }
  .expect-grid { grid-template-columns: 1fr; }
  .ministries-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .ministry-card-wide { flex-direction: column; }
  .ministry-card-wide figure { flex: none; }
  .ministry-card-wide .ministry-card-body { padding: 1.15rem 1.2rem 1.3rem; }
  .sunday-photos { gap: 10px; }
  .sunday-slider { margin-top: calc(3.5rem + 20px); }
  .sunday-photo { flex-basis: 78vw; border-radius: 16px; }
  .sunday-actions .btn { flex: 1 1 100%; }
  .life { white-space: normal; }
  .sunday-time { font-size: 2.35rem; }
  .min-grid { gap: 10px; }
  .people-grid,
  .people-grid .person-card:last-child {
    grid-template-columns: 1fr;
    max-width: none;
    margin: 0;
  }
  .people-grid .person-card:last-child { grid-column: auto; max-width: none; }
  .person-photo { width: min(220px, 70%); }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .team-member { grid-template-columns: 1fr; text-align: center; }
  .team-photo { width: min(240px, 70%); margin-inline: auto; }
  .fun-facts div { grid-template-columns: 1fr; gap: 0.15rem; }
  .fun-facts { text-align: left; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media img { transform: none; }
  .life svg path { stroke-dashoffset: 0; }
  .hero-copy > *,
  .sunday-card { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .site-nav li,
  .site-nav .nav-cta { opacity: 1; transform: none; }
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  /* Do not set touch-action: none on body — it inherits and can
     swallow taps on the drawer links and close button in iOS Safari. */
}


@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}


/* Ministries: side padding like the other bands; no stranded last tile */
section.ministries-band { padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
@media (max-width: 767px) {
  .min-grid > .min-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 315 / 140; }
}

/* ---------- Dark mode (follows the visitor's system setting; no toggle) ----------
   Light stays the default. The header, footer, hero and dark bands already use
   --navy as a dark background, so --navy is NOT flipped here; the places that use
   --navy as heading text are overridden by selector instead. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100e;
    --paper: #221b18;          /* raised card surface */
    --cream: #191412;          /* alternate band */
    --mist: #2f2724;
    --ink: #ede7e3;
    --ink-soft: #bcb2ac;
    --heading: #f7f2ef;
    --river-ink: #5ccaf3;      /* accent text: lighter river blue for contrast */
    --link-hover: #93dcf7;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.32);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    --shadow-hover: 0 22px 56px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }

  body { background: var(--bg); color: var(--ink); }
  a:hover,
  .visit-link:hover { color: var(--link-hover); }

  /* Headings that use --navy as text color */
  .section-title,
  .visit-step h3,
  .expect-heading,
  .expect-card h3,
  .ministry-card h3,
  .person-card h3,
  .team-member h2,
  .fun-facts h3,
  .fun-facts dt,
  .belief-block h2,
  .vision-acrostic,
  .pillar h3,
  .value-card h3,
  .post-card h2,
  .post-body h1,
  .post-prose p strong:first-child { color: var(--heading); }
  .section-dark .section-title { color: #fff; }

  /* Hero wave blends into the visit band below it */
  .hero-wave .wave-front { fill: var(--cream); }

  /* Bands and cards */
  .ministries-band { background: var(--bg); }
  .pillar,
  .value-card,
  .fun-facts { background: var(--paper); }
  .visit-step {
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .visit-step:hover,
  .visit-step:focus-visible { box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
  .visit-step::before { opacity: 0.3; }
  .visit-icon,
  .expect-icon {
    background: rgba(0, 166, 226, 0.14);
    color: var(--river-ink);
  }
  .min-tile { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
  a.min-tile:hover,
  a.min-tile:focus-visible,
  .min-tile:hover { box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
  .min-more { color: #14242e; }
  .ministry-card figure,
  .post-card figure,
  .sunday-photo,
  .post-image { background: #0b0908; }
  .person-photo { box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--line-strong); }
  .skip-link { background: #fff; color: #14242e; }

  /* Buttons that were dark-on-light flip to light-on-dark */
  .btn-dark {
    background: var(--ink);
    color: #1c1513;
    border-color: var(--ink);
  }
  .btn-dark:hover {
    background: #fff;
    border-color: #fff;
    color: #1c1513;
  }
  .btn-outline-dark {
    color: var(--ink);
    border-color: rgba(237, 231, 227, 0.6);
  }
  .btn-outline-dark:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #1c1513;
  }

  /* Footer sits right under a dark band; a hairline keeps the edge crisp */
  .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); }
}

/* Inner-page and devotional entrance motion (2026-11-13) */
@media (prefers-reduced-motion: no-preference) {
  .page-hero img { animation: heroDrift 28s ease-in-out infinite alternate; }
  .page-hero-content > * { animation: heroRise 0.9s var(--ease) both; }
  .page-hero-content > *:nth-child(2) { animation-delay: 0.12s; }
  .page-hero-content > *:nth-child(3) { animation-delay: 0.24s; }
  .post-image { overflow: hidden; border-radius: inherit; }
  .post-image img { animation: postImageIn 1.1s var(--ease) both; }
  .post-body > .post-meta,
  .post-body > h1 { animation: heroRise 0.9s var(--ease) both; }
  .post-body > h1 { animation-delay: 0.12s; }
  .team-photo img { transition: transform 0.6s var(--ease); }
  .team-member:hover .team-photo img { transform: scale(1.04); }
}
@keyframes postImageIn {
  from { opacity: 0; transform: scale(1.06); }
}

/* Beliefs page rewrite (2026-11-13) */
.belief-mission { max-width: 48rem; margin: 0 auto; text-align: center; }
.belief-mission h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.25; }
.belief-mission .verse { display: inline-block; text-align: left; margin-top: 1.6rem; }
.vision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 1.2rem 0 2.5rem; }
.vision-tile { background: var(--paper); position: relative; padding: 1.8rem 1.5rem; }
.vision-tile h3 { margin: 0; }
.vision-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.6rem; }
.vision-copy { max-width: 46rem; margin: 0 auto; text-align: center; }
.vision-copy p { font-size: 1.1rem; }
.vision-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem) !important; color: var(--heading, var(--navy)) !important; letter-spacing: -0.02em; }
.values-3 { grid-template-columns: repeat(3, 1fr); }
.section-cream .value-card, .section-cream .pillar { background: var(--paper); }
@media (max-width: 960px) { .vision-grid { grid-template-columns: 1fr 1fr; } .values-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .vision-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; } .vision-tile { padding: 1.3rem 1.1rem; } .vision-tile h3 { font-size: 1.15rem; } }
.vision-subhead { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.035em; color: var(--heading, var(--navy)); text-align: center; margin: 3.5rem 0 0; }
.belief-mission .section-title { margin-bottom: 1rem; }
.mission-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.1rem) !important; line-height: 1.3; letter-spacing: -0.03em; color: var(--heading, var(--navy)) !important; margin: 0; }
.welcome-band .verse { margin: 0 0 1.3rem; font-size: 1.12rem; }
