:root {
  --cream: #faf6ef;
  --cream-2: #f3ecdf;
  --ink: #171310;
  --ink-2: #241d17;
  --clay: #c2703d;
  --clay-dark: #a2582a;
  --sage: #5f6f52;
  --line: rgba(23, 19, 16, 0.14);
  --line-light: rgba(250, 246, 239, 0.22);
  --muted: #6f6357;
  --muted-dark: #b9ab9b;
  --radius: 22px;
  --font-display: "Inter Tight", "Archivo", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}
.eyebrow.on-dark { color: #e8a76f; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.9rem, 7.5vw, 6rem); font-weight: 800; text-transform: uppercase; }
.display-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; text-transform: uppercase; }
.display-md { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 44rem; }
.lede.on-dark { color: #d9cdbd; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; }
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline-light { border-color: var(--line-light); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.center .btn-row { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { height: 56px; width: auto; display: block; }
/* Logo file is a white decal: invert to ink for the light header. */
.brand-logo-dark { filter: invert(1); }
.site-footer .brand-logo { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.82; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--clay-dark); }
/* hover dropdowns */
.nav-links > li.has-menu { position: relative; padding: 0.8rem 0; margin: -0.8rem 0; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line); border-top: 0.9rem solid transparent;
  background-clip: padding-box; border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(23, 19, 16, 0.35);
  list-style: none; min-width: 250px; padding: 0.6rem; z-index: 60;
}
.nav-links > li.has-menu:hover .dropdown,
.nav-links > li.has-menu:focus-within .dropdown,
.nav-links > li.has-menu.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 0.7rem 1rem; border-radius: 10px; white-space: nowrap;
  font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.dropdown a:hover { background: var(--cream-2); }
.dropdown a.active { color: var(--clay-dark); background: var(--cream-2); }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-cta .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
.hamburger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 0.6rem 4% 1.2rem; background: var(--cream); }
.mobile-menu.open { display: block; }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu details:last-child { border-bottom: none; }
.mobile-menu summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; font-weight: 700; font-size: 1.05rem;
  cursor: pointer; list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "+"; font-size: 1.3rem; color: var(--clay-dark); }
.mobile-menu details[open] summary::after { content: "–"; }
.mobile-menu details a {
  display: block; padding: 0.6rem 0 0.6rem 1rem; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; opacity: 0.85;
}
.mobile-menu > a.mobile-login {
  display: block; padding: 0.75rem 0; text-decoration: none;
  font-weight: 700; font-size: 1.05rem;
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--cream); overflow: hidden; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; will-change: transform; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
/* focal-point helpers for hero images whose subject is off-center (e.g. pastor at the pulpit on the right) */
.hero-bg img.focus-right { object-position: 75% center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,9,0.45) 0%, rgba(15,12,9,0.25) 45%, rgba(15,12,9,0.78) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(5rem, 11vw, 9rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
/* home hero: taller than the viewport, content anchored to the bottom.
   lvh (not svh) so the hero still fills the screen when mobile browser
   chrome hides and the viewport grows; vh fallback for older browsers. */
.hero, .page-hero { min-height: 108vh; min-height: 108lvh; }
.hero .hero-inner,
.page-hero .hero-inner {
  min-height: 108vh; min-height: 108lvh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-inner p.sub { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 40rem; color: #efe6d8; }
.hero-kicker {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em;
  margin-top: 1rem;
}
.hero-place {
  margin-top: 0.9rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem); color: #efe6d8;
}
.hero .btn-row .btn { background: transparent; color: var(--cream); border-color: var(--line-light); }
.hero .btn-row .btn:hover { background: rgba(255, 255, 255, 0.12); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line-light); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.88rem; font-weight: 600;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); text-decoration: none;
}
a.chip:hover { background: rgba(0,0,0,0.55); }

/* page hero (same tall treatment as home hero, for interior pages) */
.page-hero { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.page-hero .hero-bg img { opacity: 0.35; }

/* ---------- cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.card {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card img { background: var(--cream-2); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(23,19,16,0.35); }
.card img { height: 210px; width: 100%; object-fit: cover; }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; font-weight: 800; }
.card-body p { color: var(--muted); font-size: 0.98rem; }
.card .meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.card audio { width: 100%; }
/* featured sermon cards: artwork is 16:9, show it whole instead of cropping */
.featured-card img { height: auto; aspect-ratio: 16 / 9; }
.card-link { margin-top: auto; padding-top: 0.6rem; font-weight: 800; color: var(--clay-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* value rows */
.value-list { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.value-row { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.value-row h3 { font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.value-row p { color: var(--muted); }

/* split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.split ul.check, ul.check { list-style: none; margin-top: 2rem; display: grid; gap: 1.4rem; }
.split ul.check li, ul.check li { padding-left: 2rem; padding-block: 0.35rem; position: relative; color: var(--muted); line-height: 1.7; }
.split ul.check li::before, ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--clay-dark); font-weight: 800; }

/* sunday fixed-background band (parallax effect from the previous site) */
.sunday-fixed {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  background-color: var(--ink);
  background-image: url("/photos/sunday-building.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.sunday-fixed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.73);
}
.sunday-fixed-inner { max-width: 48rem; }
.sunday-fixed .display-lg { color: #fff; }
.sunday-fixed ul.check li { color: #d9cdbd; }
.sunday-fixed ul.check li strong { color: #fff; }
@media (min-width: 1025px) {
  .sunday-fixed { background-attachment: fixed; }
}
@media (prefers-reduced-motion: reduce) {
  .sunday-fixed { background-attachment: scroll; }
}

/* dark section */
.dark { background: var(--ink); color: var(--cream); }
.dark .lede { color: #d9cdbd; }
.faq { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq details {
  border: 1px solid var(--line-light); border-radius: 16px;
  padding: 1.1rem 1.4rem; background: rgba(255,255,255,0.04);
}
.faq.light details { border-color: var(--line); background: #fff; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; flex: none; color: var(--clay); }
.dark .faq summary::after { color: #e8a76f; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { margin-top: 0.9rem; color: #d9cdbd; }
.faq.light .faq-body { color: var(--muted); }
.faq .faq-body p + p { margin-top: 0.8rem; }

/* leaders */
.leader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.leader { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1.1rem;
  background: var(--ink-2); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
}
.leader h3 { font-size: 1.2rem; }
.leader .role { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-dark); margin: 0.3rem 0 0.8rem; }
.leader p { color: var(--muted); font-size: 0.95rem; text-align: left; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.quote p { font-size: 0.98rem; }
.quote cite { font-style: normal; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-dark); margin-top: auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.2rem; counter-reset: step; }
.step { background: rgba(255,255,255,0.05); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 1.6rem; }
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #e8a76f;
}
.step h3 { margin: 0.6rem 0 0.5rem; font-size: 1.15rem; }
.step p { color: #d9cdbd; font-size: 0.95rem; }

/* sermon list */
.sermon { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.5rem; min-width: 0; }
.sermon-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; margin-top: 2rem; }
.sermon h3 { font-size: 1.15rem; }
.sermon h3 a { color: inherit; text-decoration: none; }
.sermon h3 a:hover { color: var(--clay-dark); text-decoration: underline; }
.sermon .meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.sermon-desc { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; white-space: pre-line; }
/* collapsed episode descriptions (expanded via the See more toggle) */
.sermon-desc.clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sermon-more {
  background: none; border: none; padding: 0; margin-top: 0.25rem;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--clay-dark); cursor: pointer;
}
.sermon-more:hover { text-decoration: underline; }

/* sermon search + pagination */
.sermon-search { margin-top: 2rem; }
.sermon-search input {
  width: 100%; font: inherit; font-size: 1rem;
  padding: 0.9rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.sermon-search input:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.sermon-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.sermon-filters select {
  width: 100%; font: inherit; font-size: 0.95rem;
  padding: 0.8rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.sermon-clear {
  background: none; border: none; cursor: pointer; padding: 0; margin-top: 0.7rem;
  color: var(--clay-dark); font-weight: 700; font-size: 0.9rem; font-family: inherit;
}
.sermon-count { margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.pager .btn { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
.pager .btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.pager-page { font-weight: 700; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.sermon audio { width: 100%; margin-top: 0.7rem; }
/* mobile calendar cards: nothing unbreakable may push past the viewport */
.sermon-list[data-calendar-list] .sermon > div { min-width: 0; }
.sermon-list[data-calendar-list] h3,
.sermon-list[data-calendar-list] .meta,
.sermon-list[data-calendar-list] .sermon-desc,
.sermon-list[data-calendar-list] .card-link {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* calendar cards: the generated markup places the See more toggle and the
   Church Center link adjacent with no whitespace, and both are inline-level,
   so separation must come from margins. Gap on the toggle keeps one line
   breathing when they fit (without indenting the link if it wraps); the link
   is inline-block so it wraps as a unit with a top margin when it doesn't. */
.sermon-list[data-calendar-list] .sermon-more { margin-right: 0.9rem; }
.sermon-list[data-calendar-list] .card-link {
  display: inline-block;
  margin-top: 0.6rem;
  padding-top: 0;
  vertical-align: baseline;
}

/* current series spotlight */
.series-spotlight {
  display: grid; grid-template-columns: 240px 1fr; gap: 1.8rem; align-items: center;
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius); padding: 1.8rem; margin-top: 2rem;
}
.series-spotlight img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--ink-2); }
.series-spotlight h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; text-transform: uppercase; }
.series-spotlight p { color: #d9cdbd; margin-top: 0.5rem; }
.series-spotlight .btn-row { margin-top: 1.2rem; }

/* verse band */
.verse { background: var(--ink-2); color: var(--cream); text-align: center; }
.verse blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; max-width: 56rem; margin: 0 auto; line-height: 1.3; }
.verse cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; color: #e8a76f; }

/* directions band */
.directions { background: var(--sage); color: #fff; }
.directions .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.directions h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.directions p { opacity: 0.92; }

/* explore + visit closer (replaces old "Explore Center Church" / map bands) */
.explore { background: var(--cream); }
.explore-card {
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.explore-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(23,19,16,0.35); }
.explore-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream-2); color: var(--clay-dark); border: 1px solid var(--line);
}
.explore-icon svg { width: 26px; height: 26px; }
.explore-card h3 { font-size: 1.3rem; font-weight: 800; }
.explore-card p { color: var(--muted); font-size: 0.98rem; }
.explore-card .more { margin-top: auto; padding-top: 0.6rem; font-weight: 800; color: var(--clay-dark); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
.explore-card:hover .more { text-decoration: underline; }

.directions-split { background: var(--ink); color: var(--cream); }
.directions-split .lede { color: #d9cdbd; }
.directions-split .meta-line { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.2rem; font-weight: 600; font-size: 0.95rem; color: #e5d9c7; }
.directions-split .meta-line a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line-light); }
.directions-split .meta-line a:hover { color: #fff; border-color: #fff; }
.directions-split .btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light);
  background: var(--ink-2); min-height: 340px; display: grid;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* contact rows */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; text-align: center; }
.info-card h3 { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-dark); margin-bottom: 0.5rem; }
.info-card p, .info-card a { font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* footer */
.site-footer { background: var(--ink); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: #e8a76f; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; color: #e5d9c7; font-size: 0.96rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { color: var(--muted-dark); margin-top: 1rem; max-width: 24rem; }
.footer-bottom { border-top: 1px solid var(--line-light); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.85rem; color: var(--muted-dark); }

/* beliefs accordion long-form */
.belief-detail h4 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 1rem 0 0.3rem; color: #e8a76f; }
.faq.light .belief-detail h4 { color: var(--clay-dark); }

/* partner cards */
.partner-feature {
  display: block; background: #f4f1eb; border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem); text-align: center;
}
.partner-feature img { height: 88px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 1.5rem; }
.partner-feature p { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 56rem; margin: 0 auto; }
.partner-feature p a { color: var(--clay-dark); }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.partner-card {
  background: #f4f1eb; border-radius: var(--radius); display: grid; place-items: center;
  padding: 2.2rem 1.5rem; min-height: 190px;
  transition: transform 0.15s ease;
}
.partner-card:hover { transform: translateY(-4px); }
.partner-card img { max-height: 95px; max-width: 100%; object-fit: contain; }

/* photo galleries (real church photos) */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.photo-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; }
.photo-grid figcaption { padding: 0.7rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-3 img { height: 260px; }
.ministry-photo { height: 210px; width: 100%; object-fit: cover; }
.leader-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.1rem; display: block; }

/* church calendar: month grid on desktop, stacked list on mobile */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-top: 2rem; }
.cal-month-nav { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.cal-month-nav .btn { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
.cal-nav-chev { display: none; }
.cal-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; min-width: 0; flex: 1 1 auto; text-align: center; }
.cal-filter { display: grid; gap: 0.35rem; min-width: min(280px, 100%); max-width: 100%; }
.cal-filter-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cal-pills {
  display: flex; gap: 0.5rem; max-width: 100%;
  overflow-x: auto; padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.cal-pill {
  flex: 0 0 auto; font: inherit; font-size: 0.9rem; font-weight: 700;
  padding: 0.65rem 1.1rem; min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.cal-pill:hover { border-color: var(--clay); }
.cal-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; margin-top: 1.5rem; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cal-dow { background: var(--ink); color: var(--cream); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: 0.8rem 0.25rem; }
.cal-day { background: #fff; min-height: 118px; padding: 0.55rem; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.cal-day.is-outside { background: var(--cream-2); color: var(--muted); }
.cal-day.is-outside .cal-day-num { opacity: 0.55; }
.cal-day-num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-weight: 800; font-size: 0.9rem; }
.cal-day.is-today .cal-day-num { background: var(--clay); color: #fff; }
.cal-chip { display: block; text-decoration: none; font-size: 0.78rem; line-height: 1.35; font-weight: 600; color: var(--ink); background: #fbf3e6; border: 1px solid rgba(194, 112, 61, 0.35); border-left: 3px solid var(--clay); border-radius: 8px; padding: 0.3rem 0.45rem; overflow: hidden; }
.cal-chip:hover { background: #f7e7d2; }
.cal-chip.is-allday { background: var(--ink); color: var(--cream); border-color: var(--ink); border-left-color: var(--sage); }
.cal-chip time { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay-dark); }
.cal-chip.is-allday time { color: #e8a76f; }
span.cal-chip { cursor: default; }
.cal-empty { margin-top: 1rem; color: var(--muted); font-weight: 600; }
/* desktop shows the grid, mobile keeps the stacked list */
.cal-grid-wrap { display: none; }
@media (min-width: 901px) {
  .cal-grid-wrap { display: block; }
  .sermon-list[data-calendar-list] { display: none; }
}

/* responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: block; }
  .grid-3, .leader-grid, .quotes, .info-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
  .partner-card { min-height: 150px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* mobile calendar toolbar: compact chevron control (desktop layout untouched) */
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-month-nav {
    display: grid; grid-template-columns: auto 1fr auto;
    gap: 0.15rem 0.6rem; align-items: center; width: 100%;
  }
  .cal-month-nav [data-cal-prev] { grid-column: 1; grid-row: 1; }
  .cal-month-nav .cal-title { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
  .cal-month-nav [data-cal-next] { grid-column: 3; grid-row: 1; }
  .cal-month-nav [data-cal-prev],
  .cal-month-nav [data-cal-next] { padding: 0.5rem 0; min-width: 2.75rem; }
  .cal-month-nav .cal-nav-text { display: none; }
  .cal-month-nav .cal-nav-chev { display: inline; font-size: 1.5rem; line-height: 1; font-weight: 400; }
  .cal-month-nav [data-cal-today] {
    grid-column: 1 / -1; grid-row: 2; justify-self: center;
    background: none; border: none; padding: 0.2rem 0.6rem;
    color: var(--clay-dark); font-size: 0.9rem;
  }
  /* mobile agenda: date-grouped expandable rows (desktop grid untouched) */
  .cal-filter { min-width: 0; }
  .sermon-list[data-calendar-list] { gap: 0; margin-top: 1.25rem; }
  .cal-day-group { display: grid; gap: 0.5rem; align-content: start; }
  .cal-day-group + .cal-day-group { margin-top: 1.25rem; }
  .cal-day-head {
    /* site header is static (not sticky), so day headers stick at viewport top */
    position: sticky; top: 0; z-index: 5;
    background: var(--cream);
    font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em;
    color: var(--clay-dark);
    padding: 0.55rem 0.1rem; margin: 0;
  }
  .cal-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .cal-row[open] { border-color: var(--clay); }
  .cal-row-sum {
    display: grid; grid-template-columns: 3.9rem minmax(0, 1fr) auto;
    gap: 0.75rem; align-items: start;
    padding: 0.8rem 0.9rem; min-height: 44px;
    cursor: pointer; list-style: none;
  }
  .cal-row-sum::-webkit-details-marker { display: none; }
  .cal-row-time {
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--clay-dark);
    padding-top: 0.2rem; overflow-wrap: anywhere;
  }
  .cal-row-main { min-width: 0; }
  .cal-row-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem; font-weight: 700; line-height: 1.35;
  }
  .cal-row-sub {
    display: block; margin-top: 0.15rem;
    color: var(--muted); font-size: 0.85rem; font-weight: 600; line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .cal-row-chev {
    font-size: 1.4rem; line-height: 1; font-weight: 400; color: var(--muted);
    transition: transform 0.15s ease; padding: 0 0.1rem;
  }
  .cal-row[open] .cal-row-chev { transform: rotate(90deg); color: var(--clay-dark); }
  .cal-row-body { padding: 0 0.9rem 0.95rem 5.55rem; display: grid; gap: 0.5rem; }
  .cal-row-body .meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
  .cal-row-desc { color: var(--muted); font-size: 0.92rem; white-space: pre-line; overflow-wrap: anywhere; }
  .cal-row-body .card-link {
    display: inline-block; margin-top: 0.2rem; padding: 0.4rem 0;
    font-weight: 700; font-size: 0.92rem; color: var(--clay-dark);
  }
  /* loading skeletons: same footprint as agenda rows, shimmer while fetching */
  .cal-skel { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
  .cal-skel-row {
    display: grid; grid-template-columns: 3.9rem minmax(0, 1fr);
    gap: 0.75rem; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 0.8rem 0.9rem;
  }
  .cal-skel-time { display: block; width: 3rem; height: 0.75rem; margin-top: 0.3rem; border-radius: 4px; }
  .cal-skel-main { display: grid; gap: 0.5rem; padding-top: 0.15rem; }
  .cal-skel-bar { display: block; height: 0.95rem; border-radius: 6px; }
  .cal-skel-bar.w70 { width: 70%; }
  .cal-skel-bar.w45 { width: 45%; height: 0.8rem; }
  .cal-skel-time, .cal-skel-bar {
    background: linear-gradient(90deg, var(--cream-2) 25%, #fff 50%, var(--cream-2) 75%);
    background-size: 200% 100%;
    animation: cal-shimmer 1.2s linear infinite;
  }
  @keyframes cal-shimmer { to { background-position: -200% 0; } }
}
@media (max-width: 600px) {
  .grid-3, .leader-grid, .quotes, .info-grid, .steps { grid-template-columns: 1fr; }
  .photo-grid, .photo-grid-3 { grid-template-columns: 1fr; }
  .sermon-filters { grid-template-columns: 1fr; }
  .series-spotlight { grid-template-columns: 1fr; }
  .series-spotlight img { max-height: 240px; }
  /* beliefs hero: pastor stands center-frame; shift right on narrow screens so his face clears the headline */
  .hero-bg img.focus-beliefs { object-position: 20% center; }
  .footer-grid { grid-template-columns: 1fr; }
  /* compact header + vertically centered hero content, like the reference */
  .nav-wrap { padding: 0.9rem 0; }
  .brand-logo { height: 40px; }
  .hero .hero-inner, .page-hero .hero-inner { justify-content: center; }
}
