/* Mount Moriah Missionary Baptist Church - Plant City, FL
   Palette: ink black / paper white / brand red #A31D22 (sampled from the mark) */

:root {
  --ink: #0b0a0a;
  --ink-soft: #171414;
  --paper: #ffffff;
  --bone: #f3efe7;
  --red: #a31d22;
  --red-bright: #c2262c;
  --line: rgba(255, 255, 255, 0.22);
  --nav-h: 88px;
  --hero-gap: clamp(12px, 1.8vw, 26px);
  --hero-gap-top: clamp(26px, 3.2vw, 52px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: #fff; }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* currentColor keeps the focus ring visible on light and dark surfaces alike */
:is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Outline button that fills with brand red on hover. The fill is a pseudo
   element wiping in from the left, so the label needs .btn-label to sit above
   it. Base version reads on dark backgrounds, --ink on light ones. */
.btn-wipe {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: transparent;
}

.btn-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-wipe:hover, .btn-wipe:focus-visible { border-color: var(--red); }
.btn-wipe:hover::before, .btn-wipe:focus-visible::before { transform: scaleX(1); }

.btn-label { display: inline-flex; align-items: center; gap: 9px; }

.btn-wipe--ink { border-color: rgba(11, 10, 10, 0.22); color: var(--ink); }
.btn-wipe--ink:hover, .btn-wipe--ink:focus-visible { color: #fff; border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .btn-wipe::before { transition: none; }
}

/* ---------- Nav ---------- */

/* Solid white header that sits above the hero rather than floating over it.
   It scrolls away with the page rather than sticking; relative positioning is
   only for stacking above the mobile menu overlay. */
.nav {
  position: relative;
  z-index: 30;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: 0 clamp(20px, 4vw, 56px);
  background: var(--paper);
  border-bottom: 1px solid rgba(11, 10, 10, 0.08);
  box-shadow: 0 6px 22px rgba(11, 10, 10, 0.1);
}

.nav-brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.nav-mark { width: 42px; height: auto; }

.nav-wordmark { display: flex; flex-direction: column; line-height: 1.15; }

.nav-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-sub {
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a827b;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  margin: 0 auto;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--red); }

.nav-links a.active { color: var(--red); border-color: transparent; }

.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* Squared-off call to action, matching the reference header */
.nav-cta {
  border-radius: 4px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }

/* Full-screen overlay below the bar. The nav stacks above it (z 30 vs 25) so
   the brand and the close toggle stay visible while the menu is open. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  padding-top: var(--nav-h);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
}

.mobile-menu nav { display: flex; flex-direction: column; gap: 26px; align-items: center; padding: 40px 20px; }

.mobile-menu a {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.mobile-menu a:hover { color: var(--red); }

.mobile-menu .btn { font-size: 0.9rem; margin-top: 8px; color: #fff; border-radius: 4px; }

/* ---------- Hero ---------- */

/* The hero sits inside a white frame as a rounded card, with a visible gap
   between it and the nav, matching the encapsulated-video reference. */
.hero-frame {
  background: var(--paper);
  padding: var(--hero-gap-top) var(--hero-gap) var(--hero-gap);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h) - var(--hero-gap-top) - var(--hero-gap));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--ink);
}

.hero-video,
.hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 5, 5, 0.88) 0%, rgba(6, 5, 5, 0.42) 42%, rgba(6, 5, 5, 0.18) 68%, rgba(6, 5, 5, 0.6) 100%),
    linear-gradient(100deg, rgba(6, 5, 5, 0.55) 0%, rgba(6, 5, 5, 0) 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 56px) 0;
  margin-top: auto;
  max-width: 980px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: 22px;
}

.tick { width: 34px; height: 2px; background: var(--red-bright); }

.hero-title {
  font-weight: 900;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.hero-title .red { color: var(--red-bright); }

.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 6vh, 72px); }

/* Service times strip */

.hero-times {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(to top, rgba(6, 5, 5, 0.55), rgba(6, 5, 5, 0.25));
  backdrop-filter: blur(8px);
}

.time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px clamp(14px, 2vw, 28px);
  border-left: 1px solid var(--line);
}

.time:first-child { border-left: 0; padding-left: 0; }

.time-day {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.time-link .time-day { color: var(--bone); }

.time-name { font-weight: 700; font-size: 1.02rem; }

.time-when { font-weight: 500; font-size: 0.9rem; color: rgba(255, 255, 255, 0.72); }

.time-link { transition: background 0.15s ease; }
.time-link:hover { background: rgba(255, 255, 255, 0.06); }
.time-link .arrow { color: var(--red-bright); font-weight: 700; }

/* ---------- Shared section primitives ---------- */

.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}

.eyebrow--light { color: var(--bone); }
.eyebrow--small { font-size: 0.7rem; margin-bottom: 12px; }

.section-title {
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section-title .red { color: var(--red-bright); }

.lead { font-size: 1.15rem; font-weight: 600; line-height: 1.65; margin-bottom: 18px; }

.text-link {
  display: inline-block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.text-link:hover { border-color: var(--red); }

.about-grid > *, .history-grid > *, .statements-grid > *,
.pastor-grid > *, .pastor-photos > * { min-width: 0; }

.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.photo figcaption {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a736e;
  margin-top: 12px;
}

/* ---------- Homepage: About section ---------- */

.about-home { background: var(--paper); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.about-head { max-width: 720px; margin-bottom: clamp(40px, 6vh, 64px); }

.about-mark { width: 54px; height: auto; margin-bottom: 24px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.about-card-media {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 24px;
  aspect-ratio: 16 / 10;
}

.about-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-card:hover .about-card-media img { transform: scale(1.04); }

.about-card h3 {
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-card p { font-size: 1.02rem; line-height: 1.7; color: #4a4441; margin-bottom: 18px; }

/* ---------- About page ---------- */

.page-hero {
  position: relative;
  min-height: calc(56svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 5, 5, 0.9), rgba(6, 5, 5, 0.45) 55%, rgba(6, 5, 5, 0.55));
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 4vw, 56px) clamp(36px, 6vh, 60px);
}

.page-hero-title {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.015em;
}

.page-hero-title .red { color: var(--red-bright); }

/* History */

.history { background: var(--bone); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; overflow-x: clip; }

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.history-text p:not(.eyebrow):not(.lead) { font-size: 1.02rem; line-height: 1.75; color: #4a4441; margin-bottom: 16px; }

/* Heritage photo pile */

.history-collage { position: relative; aspect-ratio: 4 / 5; }

.collage-ghost {
  position: absolute;
  top: -7%;
  right: -2%;
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: rgba(163, 29, 34, 0.09);
  user-select: none;
}

.c-photo {
  position: absolute;
  margin: 0;
  background: #fff;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(11, 10, 10, 0.16);
  transform: rotate(var(--r));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.c-photo img { width: 100%; height: auto; }

.c-photo figcaption {
  margin-top: 9px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8a827b;
}

.c-photo:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 26px 54px rgba(11, 10, 10, 0.24);
  z-index: 9;
}

.c-photo--1 { width: 46%; left: 2%; top: 0; z-index: 2; }
.c-photo--2 { width: 60%; right: -1%; top: 12%; z-index: 3; }
.c-photo--3 { width: 56%; left: 0; top: 56%; z-index: 4; }
.c-photo--4 { width: 40%; right: 6%; top: 66%; z-index: 5; }

/* Mission / Vision */

.statements { background: var(--ink); color: var(--paper); padding: clamp(84px, 14vh, 150px) 0; }

.statements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
}

.statement-index {
  display: block;
  font-weight: 900;
  font-size: clamp(3.6rem, 6vw, 5.4rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  margin-bottom: 18px;
}

.statement-tagline {
  font-weight: 900;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.statement-tagline .red { color: var(--red-bright); }

.statement-text {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30em;
}

/* Pastor & First Lady */

.pastor { background: var(--paper); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.pastor-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pastor-photos {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.photo--tall { aspect-ratio: 3 / 4; }

.pastor-photos .photo--tall { aspect-ratio: auto; }

.pastor-text p:not(.eyebrow):not(.lead) { font-size: 1.02rem; line-height: 1.75; color: #4a4441; margin-bottom: 16px; }

.pastor-role {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.pastor-family {
  background: var(--bone);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 24px 28px;
  margin-top: 28px;
}

.pastor-family p { margin-bottom: 0; font-weight: 600; }

.welcome-home {
  margin-top: 26px;
  font-weight: 900;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.welcome-home .red { color: var(--red-bright); }

/* ---------- Ministries page ---------- */

.leaders { background: var(--bone); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.leaders-head { max-width: 700px; margin-bottom: clamp(40px, 6vh, 64px); }

.leaders-sub, .mothers-sub { font-size: 1.05rem; line-height: 1.7; color: #5c554f; }

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.leader-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 24px;
  box-shadow: 0 10px 30px rgba(11, 10, 10, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(11, 10, 10, 0.13);
}

.leader-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.leader-card:hover::after { transform: scaleX(1); }

.leader-photo {
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 16px;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.leader-name {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

.leader-role {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* Ministry features */

.min-intro { background: var(--paper); color: var(--ink); padding: clamp(64px, 10vh, 110px) 0 0; }

.min-intro-sub { max-width: 46em; font-size: 1.08rem; line-height: 1.7; color: #4a4441; }

.min-feature { background: var(--paper); color: var(--ink); padding: clamp(72px, 11vh, 120px) 0; }

.min-feature--alt { background: var(--bone); }

.min-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.min-feature--alt .min-media { order: 2; }

.min-media {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.min-media .photo { border-radius: 8px; overflow: hidden; }
.min-media .photo img { width: 100%; height: auto; }

.min-text p:not(.eyebrow):not(.lead) { font-size: 1.02rem; line-height: 1.75; color: #4a4441; margin-bottom: 16px; }

.focus {
  background: var(--bone);
  border-top: 4px solid var(--red);
  border-radius: 6px;
  padding: 26px 30px;
  margin: 28px 0;
}

.min-feature--alt .focus { background: #fff; }

.focus-title {
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.focus-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.focus-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.led-by {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border: 1.5px solid rgba(11, 10, 10, 0.14);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.led-by:hover { border-color: var(--red); }

.led-by img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.led-by-text { display: flex; flex-direction: column; line-height: 1.2; }

.led-by-label {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
}

.led-by-name { font-weight: 800; font-size: 0.95rem; }

.led-by-arrow { color: var(--red); font-weight: 800; }

/* Tilted photo stack, the same print-pile treatment used on the about page */

.min-media--stack { align-self: center; }

.tilt-stack { position: relative; aspect-ratio: 1 / 1.3; }

.tilt-stack .c-photo { padding: 9px; }

/* Offsets are tuned so no print covers the caption of the one beneath it */
.ts-1 { width: 58%; left: 0; top: 0; z-index: 2; }
.ts-2 { width: 60%; right: 0; top: 30%; z-index: 3; }
.ts-3 { width: 44%; left: 6%; top: 46%; z-index: 4; }

/* More ministries strip */

.more-min { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vh, 130px) 0; }

.more-min-head { max-width: 700px; margin-bottom: clamp(36px, 5vh, 56px); }

.more-min-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.more-card {
  position: relative;
  display: block;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 22px 48px 22px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.more-card:hover { border-color: var(--red-bright); transform: translateY(-3px); }

.more-card h3 {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.more-card p { font-weight: 500; font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.more-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-bright);
  font-weight: 800;
}

.more-min-sub { font-size: 1.02rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); max-width: 46em; margin-top: 4px; }

.more-card {
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  color: inherit;
}

/* Serve-interest modal */

body.modal-open { overflow: hidden; }

.modal { position: fixed; inset: 0; z-index: 50; }

.modal[hidden] { display: none; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 7, 0.72);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: clamp(16px, 5vh, 64px) auto;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  border-top: 5px solid var(--red);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  animation: modal-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel { animation: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 1.7rem;
  line-height: 1;
  color: #7a736e;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, background 0.15s ease;
}

.modal-close:hover { color: var(--ink); background: var(--bone); }

.modal-body { padding: clamp(28px, 5vw, 44px); }

.modal-title {
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.modal-title .red { color: var(--red-bright); }

.modal-sub { font-size: 0.98rem; line-height: 1.65; color: #5c554f; margin-bottom: 26px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field { margin-bottom: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label,
.field .field-label {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.field .opt { color: #9a9286; font-weight: 600; letter-spacing: 0.08em; text-transform: none; font-size: 0.72rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bone);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field textarea { resize: vertical; }

.field :is(input, select, textarea):focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

/* Visit date picker. A live calendar, so no date list ever needs maintaining. */

.dp { background: var(--bone); border-radius: 10px; padding: 16px 16px 14px; }

.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }

.dp-month { font-weight: 900; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; }

.dp-nav {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1.5px solid rgba(11, 10, 10, 0.14);
  border-radius: 50%;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.dp-nav:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.dp-nav:disabled { opacity: 0.3; cursor: default; }

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.dp-dow {
  text-align: center;
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a827b;
  padding-bottom: 5px;
}

.dp-pad { aspect-ratio: 1; }

.dp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: #4a4441;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dp-day:hover:not(:disabled) { background: #fff; }
.dp-day:disabled { opacity: 0.28; cursor: default; }

.dp-day.is-service {
  font-weight: 800;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(163, 29, 34, 0.3);
}

.dp-day.is-selected {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: none;
}

.dp-day.is-selected:hover { background: var(--red-bright); }

.dp-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dp-selected { font-size: 0.82rem; font-weight: 600; line-height: 1.5; color: #7a736e; }
.dp-selected strong { color: var(--ink); font-weight: 800; }

.dp-clear {
  flex: none;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.dp-clear[hidden] { display: none; }
.dp-clear:hover { border-color: var(--red); }

.form-error {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(163, 29, 34, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.form-submit { width: 100%; justify-content: center; margin-top: 6px; }

.form-submit:disabled { opacity: 0.6; cursor: wait; }

.modal-success { text-align: center; padding-top: clamp(40px, 7vw, 56px); }

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  margin-bottom: 20px;
}

.modal-success .btn { margin-top: 10px; }

/* About page leadership banner */

.lead-banner { background: var(--bone); color: var(--ink); padding: clamp(64px, 10vh, 110px) 0; }

.lead-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.lead-banner-text { max-width: 620px; }

.lead-banner-sub { font-size: 1.05rem; line-height: 1.7; color: #5c554f; }

/* Church Mothers band */

.mothers-band { background: var(--ink); color: var(--paper); padding: clamp(84px, 13vh, 140px) 0; }

.mothers-head { max-width: 700px; margin-bottom: clamp(44px, 7vh, 72px); }

.mothers-band .mothers-sub { color: rgba(255, 255, 255, 0.75); }

.mothers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 960px;
  margin: 0 auto;
}

.mother { margin: 0; text-align: center; }

.mother-photo {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #fff;
  border-bottom: 4px solid var(--red);
}

.mother-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mother figcaption { margin-top: 18px; display: flex; flex-direction: column; gap: 5px; }

.mother-name {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mother-role {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* CTA band */

.cta-band { background: var(--red); color: #fff; padding: clamp(64px, 10vh, 110px) 0; }

.cta-inner { text-align: center; }

.cta-title {
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cta-title .dot { color: var(--ink); }

.cta-sub { font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin-bottom: 30px; }

.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #241f1f; }

.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* Footer */

.footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: 40px 0; }

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-contact { display: flex; flex-direction: column; gap: 5px; }

.footer-addr { font-size: 0.88rem; }

.footer-reach { font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

.footer-reach a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-reach a:hover { color: #fff; border-color: #fff; }

.footer-dot { color: rgba(255, 255, 255, 0.4); }

.footer-links { margin-left: auto; display: flex; gap: 20px; }

.footer-links a {
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.15s ease;
}

.footer-links a:hover { border-color: #fff; }

/* Merx Studios credit. Fraunces matches the studio's own wordmark, and the
   mark tilts on hover. */
.footer-credit {
  max-width: 1180px;
  margin: 32px auto 0;
  padding: 22px clamp(20px, 4vw, 56px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

.merx {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.merx:hover { color: rgba(255, 255, 255, 0.85); }

.merx-by {
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.merx-mark {
  flex: none;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.merx:hover .merx-mark,
.merx:focus-visible .merx-mark { transform: rotate(-11deg); }

.merx-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .merx-mark { transition: none; }
}

@media (max-width: 560px) {
  .footer-credit { justify-content: flex-start; }
  .merx { gap: 10px; }
  .merx-by { font-size: 0.6rem; letter-spacing: 0.2em; }
  .merx-name { font-size: 1.05rem; }
}

/* ---------- Ministry Moments marquee ---------- */

.moments {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(76px, 12vh, 130px) 0 clamp(64px, 10vh, 110px);
  overflow: hidden;
}

.moments-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }

.moments-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.7); max-width: 40em; }

.moments-rail {
  overflow: hidden;
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

/* The track holds two identical sets, so translating exactly half its width
   loops seamlessly. Spacing uses margin, not gap, so half the track width
   lands on an item boundary instead of drifting by half a gap each cycle. */
.moments-track {
  display: flex;
  width: max-content;
  animation: moments-scroll 78s linear infinite;
}

.moments-rail:hover .moments-track,
.moments-rail:focus-within .moments-track { animation-play-state: paused; }

@keyframes moments-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.moment {
  margin: 0 clamp(14px, 1.8vw, 26px) 0 0;
  width: clamp(210px, 23vw, 320px);
  flex: none;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-soft);
  transform: rotate(var(--r));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.moment img { width: 100%; height: 100%; object-fit: cover; }

.moment:hover { transform: rotate(0deg) scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .moments-track { animation: none; width: auto; }
  .moments-rail { overflow-x: auto; }
  .moment { transform: none; }
}

.noanim .moments-track { animation: none; }

/* ---------- Latest sermon ---------- */

.sermon { background: var(--bone); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.sermon-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.sermon-meta {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.sermon-sep { color: rgba(11, 10, 10, 0.3); }

.sermon-sub { font-size: 1.05rem; line-height: 1.7; color: #4a4441; margin-bottom: 30px; }

.sermon-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 26px 60px rgba(11, 10, 10, 0.22);
}

.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player-note {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a736e;
}

.btn-outline { border: 1.5px solid rgba(11, 10, 10, 0.22); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- Sunday Reflection ---------- */

.reflection { background: var(--ink); color: var(--paper); padding: clamp(76px, 12vh, 140px) 0; }

.reflection-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }

.reflection-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); max-width: 42em; }

.reflection-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(32px, 4.5vw, 68px);
  align-items: start;
}

.reflection-grid > * { min-width: 0; }

/* Portrait recap video, framed like a phone reel */
.reel {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }

.reel-note {
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.series-art {
  margin: 0 0 24px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.series-art img { width: 100%; height: auto; display: block; }

.series-title {
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.series-sub { font-size: 1.02rem; line-height: 1.65; color: rgba(255, 255, 255, 0.75); margin-bottom: 24px; }

.series-points { list-style: none; margin-bottom: 22px; }

.series-points li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.series-points li:first-child { border-top: 0; }

.series-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.28em;
  width: 9px;
  height: 9px;
  background: var(--red-bright);
}

.sp-name { display: block; font-weight: 700; font-size: 1rem; line-height: 1.4; }

.sp-ref {
  display: block;
  margin-top: 3px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.series-when { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); margin-bottom: 24px; }

.series-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Homepage events calendar ---------- */

.events-home { background: var(--paper); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.events-home-head { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }

.events-home-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.cal {
  background: var(--bone);
  border-radius: 12px;
  padding: clamp(20px, 2.6vw, 30px);
}

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }

.cal-month { font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }

.cal-nav {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(11, 10, 10, 0.14);
  border-radius: 50%;
  background: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cal-nav:hover { border-color: var(--red); color: var(--red); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal-dow {
  text-align: center;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a827b;
  padding-bottom: 6px;
}

.cal-day,
.cal-pad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #4a4441;
}

.cal-day.is-today { box-shadow: inset 0 0 0 2px rgba(11, 10, 10, 0.2); font-weight: 800; }

.cal-day--event {
  background: var(--red);
  color: #fff;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cal-day--event:hover { background: var(--red-bright); transform: translateY(-2px); }

.cal-dot {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.cal-key .cal-dot { position: static; transform: none; display: inline-block; background: var(--red); margin-right: 8px; }

/* Hover hint for event days. Width is capped and the text wraps so a long
   event name can never widen the page, and it is dropped entirely on touch
   layouts where there is no hover and the name already shows in Next up. */
.cal-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: max-content;
  max-width: 140px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

@media (hover: none), (max-width: 720px) {
  .cal-tip { display: none; }
}

.cal-day--event:hover .cal-tip,
.cal-day--event:focus-visible .cal-tip { opacity: 1; }

.cal-key {
  margin-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a736e;
  display: flex;
  align-items: center;
}

.cal-empty { font-size: 0.98rem; line-height: 1.65; color: #5c554f; }

.upcoming-title {
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.up-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  border-top: 1px solid rgba(11, 10, 10, 0.12);
  transition: padding-left 0.2s ease;
}

.up-item:hover { padding-left: 10px; }

.up-item:last-of-type { border-bottom: 1px solid rgba(11, 10, 10, 0.12); }

.up-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  line-height: 1;
}

.up-mon { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.up-day { font-size: 1.4rem; font-weight: 900; margin-top: 3px; }

.up-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.up-title { font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.up-meta { font-size: 0.85rem; color: #7a736e; }

.up-arrow { margin-left: auto; color: var(--red); font-weight: 800; flex: none; }

.upcoming-all { margin-top: 26px; }

/* ---------- Plan Your Visit ---------- */

.visit { background: var(--ink); color: var(--paper); padding: clamp(76px, 12vh, 140px) 0; }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.visit-sub { font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; }

.visit-facts { list-style: none; margin-bottom: 28px; }

.visit-facts li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.visit-facts li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.vf-label {
  flex: none;
  width: 150px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  padding-top: 3px;
}

.vf-value { font-weight: 600; font-size: 1rem; line-height: 1.5; flex: 1; min-width: 0; }

.text-link--light { color: #fff; }
.text-link--light:hover { border-color: var(--red-bright); }

.visit-maps-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 12px;
}

.visit-maps { display: flex; flex-wrap: wrap; gap: 12px; }

.visit-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: 14px;
  border-top: 5px solid var(--red);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.4);
}

.visit-card-title {
  font-weight: 900;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.visit-card-title .red { color: var(--red-bright); }

.visit-card-sub { font-size: 0.98rem; line-height: 1.6; color: #5c554f; margin-bottom: 24px; }

.visit-success { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }

.visit-success .success-mark { margin-bottom: 20px; }

/* ---------- Social ---------- */

.social { background: var(--bone); color: var(--ink); padding: clamp(64px, 10vh, 110px) 0; }

.social-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.social-inner > * { min-width: 0; }

.social-sub { font-size: 1.05rem; line-height: 1.7; color: #4a4441; }

.social-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border-radius: 10px;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(11, 10, 10, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.social-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(11, 10, 10, 0.13);
  color: var(--red);
}

.s-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background 0.22s ease;
}

.s-icon svg { width: 19px; height: 19px; }

.social-links a:hover .s-icon { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .social-links a { transition: none; }
}

/* The Mount Moriah app: CSS iPhone mockup + install steps */

.app-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(56px, 9vh, 90px);
  padding-top: clamp(48px, 7vh, 72px);
  border-top: 1px solid rgba(11, 10, 10, 0.1);
}

.app-row > * { min-width: 0; }

.iphone {
  position: relative;
  width: min(270px, 68vw);
  margin: 0 auto;
  padding: 11px;
  background: var(--ink);
  border-radius: 44px;
  box-shadow:
    inset 0 0 0 2px #3a3535,
    0 30px 60px rgba(11, 10, 10, 0.28);
  transform: rotate(-4deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone:hover { transform: rotate(0deg); }

.iphone img { width: 100%; height: auto; border-radius: 34px; }

.iphone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.app-title {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.app-title .red { color: var(--red-bright); }

.app-sub { font-size: 1.05rem; line-height: 1.7; color: #4a4441; max-width: 36em; margin-bottom: 24px; }

.app-actions { margin-bottom: 18px; }

.app-note { font-size: 0.92rem; line-height: 1.6; color: #7a736e; margin-bottom: 18px; max-width: 36em; }

.install-group { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }

.install {
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(11, 10, 10, 0.06);
}

.install summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 10px;
}

.install summary::-webkit-details-marker { display: none; }

.install summary:hover { color: var(--red); }

.install-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.install-icon svg { width: 17px; height: 17px; }

.install-chevron {
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s ease;
}

.install[open] .install-chevron { transform: rotate(90deg); }

.install-steps {
  margin: 0;
  padding: 2px 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: step;
  list-style: none;
}

.install-steps li {
  position: relative;
  padding-left: 34px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4441;
  counter-increment: step;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
}

/* ---------- 404 ---------- */

.notfound { background: var(--paper); color: var(--ink); padding: clamp(64px, 11vh, 130px) 0 clamp(72px, 12vh, 140px); }

.notfound-inner { max-width: 780px; }

.notfound-mark { width: 60px; height: auto; margin-bottom: 26px; }

.notfound-title {
  font-weight: 900;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.notfound-title .red { color: var(--red-bright); }

.notfound-sub { font-size: 1.08rem; line-height: 1.7; color: #4a4441; max-width: 40em; margin-bottom: 32px; }

.notfound-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 6vh, 60px); }

.notfound-times {
  background: var(--bone);
  border-top: 4px solid var(--red);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(36px, 5vh, 52px);
}

.notfound-times-title {
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.notfound-list { list-style: none; }

.notfound-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(11, 10, 10, 0.1);
}

.notfound-list li:first-child { border-top: 0; }

.nf-day {
  flex: none;
  width: 86px;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.nf-name { font-weight: 700; font-size: 1rem; flex: 1; min-width: 0; }

.nf-when { font-weight: 600; font-size: 0.95rem; color: #7a736e; }

.notfound-addr { margin-top: 16px; font-size: 0.92rem; color: #7a736e; }

.notfound-links-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a827b;
  margin-bottom: 14px;
}

.notfound-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.notfound-chips a {
  padding: 10px 18px;
  border: 1.5px solid rgba(11, 10, 10, 0.16);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.notfound-chips a:hover { border-color: var(--red); color: var(--red); }

/* ---------- Give ---------- */

.give { background: var(--red); color: #fff; padding: clamp(64px, 10vh, 110px) 0; }

.give-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.give .eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.give .tick { background: #fff; }
.give .section-title { margin-bottom: 16px; }
.give .dot { color: var(--ink); }

.give-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }

.give-card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 34px);
}

.give-label {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.give-value {
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  word-break: break-word;
  margin-bottom: 14px;
}

.give-note { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

/* ---------- Sermons page ---------- */

.latest-sermon { background: var(--bone); color: var(--ink); padding: clamp(72px, 12vh, 130px) 0; }

.latest-head { max-width: 760px; margin-bottom: clamp(32px, 5vh, 52px); }

.latest-sub { font-size: 1.05rem; line-height: 1.7; color: #4a4441; max-width: 46em; }

.latest-player { max-width: 960px; }

.player-frame--wide { box-shadow: 0 30px 70px rgba(11, 10, 10, 0.26); }

.latest-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.latest-actions .player-note { margin-top: 0; }

.archive { background: var(--ink); color: var(--paper); padding: clamp(76px, 12vh, 140px) 0; }

.archive-head { max-width: 760px; margin-bottom: clamp(36px, 5vh, 56px); }

.archive-sub { font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }

.sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.sermon-card { min-width: 0; }

.sc-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-soft);
  cursor: pointer;
}

.sc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.sc-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.sc-media:hover img { transform: scale(1.05); opacity: 0.75; }
.sc-media:hover .sc-play { transform: translate(-50%, -50%) scale(1.12); background: var(--red-bright); }

.sc-body { padding-top: 16px; }

.sc-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 7px;
}

.sc-meta {
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.archive-more { margin-top: clamp(36px, 5vh, 56px); }

@media (prefers-reduced-motion: reduce) {
  .sc-media img, .sc-play { transition: none; }
}

/* ---------- Events page ---------- */

.ev-intro { background: var(--paper); color: var(--ink); padding: clamp(64px, 10vh, 110px) 0 0; }

.ev-intro-sub { max-width: 46em; font-size: 1.08rem; line-height: 1.7; color: #4a4441; }

.ev-list { background: var(--paper); color: var(--ink); padding: clamp(56px, 9vh, 96px) 0 clamp(72px, 12vh, 130px); }

.ev-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  padding: clamp(32px, 5vh, 60px) 0;
  border-top: 1px solid rgba(11, 10, 10, 0.12);
}

.ev-card:first-child { border-top: 0; padding-top: 0; }

.ev-card > * { min-width: 0; }

.ev-media {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(11, 10, 10, 0.16);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.ev-media img { width: 100%; height: auto; }

.ev-status {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.ev-card--flagged .ev-media { opacity: 0.55; filter: saturate(0.6); }

.ev-title {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.ev-tagline {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--red);
  margin-bottom: 24px;
}

.ev-meta {
  background: var(--bone);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.ev-meta-row { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 7px 0; }

.ev-meta-label {
  flex: none;
  width: 82px;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 3px;
}

.ev-meta-value { font-weight: 600; font-size: 0.98rem; line-height: 1.5; flex: 1; min-width: 0; }

.ev-text { font-size: 1.02rem; line-height: 1.75; color: #4a4441; margin-bottom: 16px; }

.ev-scripture {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
}

.ev-scripture p { font-weight: 700; font-size: 1.05rem; line-height: 1.55; font-style: italic; margin-bottom: 6px; }

.ev-scripture cite {
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a736e;
}

.ev-details { list-style: none; margin-bottom: 26px; }

.ev-details li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-size: 0.98rem;
  line-height: 1.55;
  border-top: 1px solid rgba(11, 10, 10, 0.1);
}

.ev-details li:first-child { border-top: 0; }

.ev-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.ev-details strong {
  display: block;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 3px;
}

.ev-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ev-empty, .ev-noscript { font-size: 1.05rem; line-height: 1.75; color: #4a4441; }

.ev-noscript ul { margin: 14px 0 0 20px; }
.ev-noscript li { margin-bottom: 10px; }


/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-revealed { opacity: 1; transform: none; }

.about-grid [data-reveal]:nth-child(2),
.statements-grid [data-reveal]:nth-child(2) { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive / motion ---------- */

@media (max-width: 920px) {
  :root { --nav-h: 72px; --hero-gap-top: clamp(18px, 4.5vw, 30px); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .sermon-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
  .visit-maps .btn { flex: 1 1 auto; }
  .visit-maps .btn-label { width: 100%; justify-content: center; }
  .ev-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-times { grid-template-columns: 1fr 1fr; }
  .time, .time:first-child { border-left: 0; padding: 16px 0; }
  .about-grid, .history-grid, .statements-grid, .pastor-grid { grid-template-columns: 1fr; }
  .pastor-photos { position: static; max-width: 520px; }
  .history-collage { max-width: 540px; margin: 20px auto 0; width: 100%; }
  .mothers-grid { grid-template-columns: 1fr; max-width: 340px; }
  .min-grid { grid-template-columns: 1fr; }
  .min-media { position: static; max-width: 520px; }
  .tilt-stack { max-width: 460px; margin: 8px auto 0; }
  .min-feature--alt .min-media { order: 0; }
  .focus-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal-panel { margin: 12px; max-height: calc(100vh - 24px); }
  .sermon-grid, .events-home-grid, .visit-grid, .give-inner, .ev-card { grid-template-columns: 1fr; }
  .sermon-player { order: -1; }
  .ev-media { position: static; max-width: 560px; }
  .vf-label { width: auto; padding-top: 0; }
  .visit-facts li { flex-direction: column; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { margin-left: 0; }
  .social-inner { grid-template-columns: 1fr; }
  .social-links { grid-template-columns: 1fr; }
  .reflection-grid { grid-template-columns: 1fr; }
  .reel { max-width: 340px; margin: 0 auto; }
  .reel-note { text-align: center; }
  .series-actions .btn { flex: 1 1 auto; justify-content: center; }
  .app-row { grid-template-columns: 1fr; }
  .iphone { transform: rotate(0deg); margin-bottom: 8px; }
  .app-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .nav-name { font-size: 0.92rem; letter-spacing: 0.1em; }
  .nav-sub { font-size: 0.54rem; letter-spacing: 0.22em; }
  .hero-times { grid-template-columns: 1fr; }
  .time { flex-direction: row; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,0.12); }
  .time:first-child { border-top: 0; }
  .time-day { min-width: 82px; }
  .time-name { flex: 1; }
  .time-link .arrow { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero { background: url("../img/hero-poster.jpg") center / cover no-repeat; }
}

/* Capture/testing hook: ?noanim disables scroll-reveal animation */
.noanim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
