/* === WEB FONTS === */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

:root {
  --bg-rgb: 246, 243, 236;
  --surface-dark-rgb: 0, 57, 85;
  --accent-rgb: 199, 60, 41;
  --bg: #f6f3ec;
  --bg-muted: #ece6d9;
  --surface: #fcfaf5;
  --surface-strong: #ffffff;
  --surface-dark: #003955;
  --line: rgba(var(--surface-dark-rgb), 0.14);
  --line-strong: rgba(var(--surface-dark-rgb), 0.24);
  --text: #14242c;
  --text-soft: #5a6b73;
  --text-inverse: #f6f3ec;
  --accent: #c73c29;
  --accent-strong: #a8331f;
  --accent-bright: #ee5a43;
  --accent-soft: rgba(var(--accent-rgb), 0.12);
  --accent-secondary: #4f7a26;
  --accent-secondary-strong: #3c5e1c;
  --accent-secondary-soft: rgba(128, 175, 68, 0.18);
  --highlight: #f0c041;
  --highlight-soft: rgba(240, 192, 65, 0.18);
  --shadow: 0 18px 48px rgba(var(--surface-dark-rgb), 0.14);
  --radius: 24px;
  --radius-sm: 18px;
  --control-height: 54px;
  --wrap: min(1120px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.06), transparent 28%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

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

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(252, 250, 245, 0.94);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 250ms ease, border-bottom-color 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(30, 37, 41, 0.08);
  border-bottom-color: transparent;
}

.site-header__inner,
.hero__grid,
.page-hero__grid,
.summary-grid,
.contact-grid,
.sermon-feature,
.single-sermon,
.callout,
.content-grid,
.site-footer__inner,
.site-footer__meta {
  display: grid;
  gap: 1.5rem;
}

.site-header__inner {
  grid-template-columns: auto auto;
  align-items: center;
  min-height: 90px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.site-brand__mark,
.site-footer__mark {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-brand__mark {
  max-width: min(180px, 42vw);
  max-height: 52px;
}

.site-footer__mark {
  max-width: min(220px, 52vw);
  max-height: 78px;
  background: var(--bg);
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
}

.site-footer__copy,
.page-hero__summary,
.hero__summary,
.hero__card-copy,
.sermon-meta,
.detail-list__item p,
.content-placeholder p {
  color: var(--text-soft);
}

.site-footer__copy {
  color: rgba(255, 255, 255, 0.92);
}

.site-nav {
  justify-self: end;
}

.site-nav__list,
.sub-menu,
.section-nav__list,
.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__list > .menu-item {
  position: relative;
}

.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.site-nav__list > .menu-item > a:hover,
.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a,
.site-nav__list > .current-menu-parent > a,
.sub-menu a:hover {
  color: var(--accent-strong);
  background: rgba(var(--accent-rgb), 0.08);
}

.site-nav__list .menu-item-has-children > a::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(252, 250, 245, 0.98);
  box-shadow: 0 16px 40px rgba(34, 27, 25, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}

.sub-menu li + li {
  margin-top: 0.25rem;
}

.sub-menu a {
  width: 100%;
  border-radius: 12px;
}

.site-nav__list > .menu-item:hover > .sub-menu,
.site-nav__list > .menu-item:focus-within > .sub-menu,
.site-nav__list > .menu-item.is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__toggle {
  display: none;
  justify-self: end;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
}

.site-nav__submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.04);
  color: var(--accent-strong);
  cursor: pointer;
}

.site-nav__submenu-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.site-nav__submenu-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-1px);
}

.has-js .site-nav__list .sub-menu[hidden] {
  display: none !important;
}

.site-main {
  min-height: 60vh;
}

.hero,
.page-hero,
.section {
  padding: 4.75rem 0;
}

.page-hero {
  padding-bottom: 2.25rem;
}

.section--muted {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.04), rgba(255, 250, 246, 0.88));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero__grid,
.page-hero__grid,
.summary-grid,
.contact-grid,
.content-grid,
.sermon-feature {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-archive__actions {
  margin-top: 1.5rem;
}

.hero__content,
.page-hero__summary,
.section-heading,
.section-card {
  max-width: 48rem;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 4vw, 5rem);
  line-height: 1.04;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 3.5vw, 4.25rem);
}

.eyebrow,
.card__label,
.site-footer__label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "+";
  margin-right: 0.45rem;
  font-weight: 700;
}

.hero__summary,
.page-hero__summary,
.prose {
  font-size: 1.04rem;
}

.inline-icon {
  vertical-align: -2px;
  margin-right: 4px;
  opacity: 0.8;
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--accent-strong);
  text-decoration: none;
}

.breadcrumbs > * + *::before {
  content: "/";
  margin: 0 0.4rem;
  opacity: 0.5;
}

.hero__actions,
.callout__actions,
.content-aside__actions,
.sermon-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.hero__meta {
  display: none; /* desktop shows the adjacent "Gather With Us" card instead */
}

@media (max-width: 960px) {
  .hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
  }

  .hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
}

.card,
.callout,
.map-frame,
.video-frame,
.audio-player {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.card,
.callout {
  padding: 1.65rem;
}

.card--accent {
  border-color: rgba(var(--accent-rgb), 0.18);
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.08), rgba(255, 255, 255, 0.96) 24%),
    var(--surface-strong);
  color: var(--text);
  box-shadow:
    inset 0 4px 0 rgba(var(--accent-rgb), 0.16),
    0 18px 42px rgba(30, 37, 41, 0.08);
}

.card--accent .card__label,
.card--accent .hero__card-copy {
  color: var(--text-soft);
}

.card--accent p {
  color: var(--text-soft);
}

.card--accent .card__label {
  color: var(--accent-secondary-strong);
}

.card--accent h2,
.card--accent h3,
.card--accent strong {
  color: var(--text);
}

.card--accent .stack-list {
  color: var(--text);
}

.card--accent .stack-list li::before {
  background: var(--accent);
}

.stack-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.stack-list li {
  position: relative;
  padding-left: 1rem;
}

.stack-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0 0 0.7rem;
  padding-left: 1rem;
  border-left: 3px solid var(--highlight);
}

.section-heading .eyebrow {
  padding-left: calc(1rem + 3px);
  margin-bottom: 0.35rem;
}

.summary-card h3,
.content-placeholder h2,
.content-aside h2,
.visit-note h2,
.single-sermon__meta-card h2,
.site-footer__title {
  margin: 0.35rem 0 0.7rem;
}

.summary-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.event-card,
.event-detail {
  display: grid;
  gap: 1rem;
}

.album-card,
.album-detail {
  display: grid;
  gap: 1rem;
}

.event-card {
  align-content: start;
}

.album-card {
  align-content: start;
}

.event-card h2 {
  margin: 0.15rem 0 0.35rem;
}

.album-card h2 {
  margin: 0.15rem 0 0.35rem;
}

.summary-card p:last-child,
.detail-list__item p:last-child,
.content-placeholder p:last-child,
.content-aside p:last-child {
  margin-bottom: 0;
}

.triple-e {
  display: inline-block; /* enables ::first-letter on the inline word span */
}

.triple-e::first-letter {
  color: var(--accent);
}

.core-values-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.core-values-list li {
  padding-left: 1rem;
  position: relative;
}

.core-values-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.button,
button,
input,
select,
textarea {
  font: inherit;
}

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-inverse);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.button:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
}

.button--secondary {
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
}

.button--secondary:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

.button--ghost {
  background: transparent;
  color: var(--accent-strong);
  border: 0;
  padding: 0.8rem 0.5rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}

.button--ghost:hover {
  background: transparent;
  color: var(--accent);
  text-decoration-color: currentColor;
  transform: none;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 240ms ease;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-strong);
  background-size: 100% 1.5px;
}

.sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
  font-size: 0.95rem;
}

.sermon-meta span {
  position: relative;
}

.sermon-meta span + span::before {
  content: "•" / "";
  margin-right: 0.7rem;
  color: var(--highlight);
}

.sermon-meta a,
.single-sermon__meta-card h2 a {
  color: var(--accent-strong);
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  color: var(--text-soft);
}

.event-card__meta strong {
  color: var(--text);
}

.sermon-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-recent-sermons__label {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.sermon-card,
.sermon-feature {
  align-items: start;
}

.filter-bar {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.8fr 1fr 1fr auto;
  align-items: end;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input[type="search"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
  background: #fff;
  outline: none;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select {
  height: var(--control-height);
  padding: 0 1rem;
}

textarea {
  min-height: 160px;
  padding: 0.9rem 1rem;
  resize: vertical;
}

::placeholder {
  color: var(--text-soft);
  opacity: 0.6;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231e2529' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.page-hero__panel,
.content-aside,
.content-placeholder,
.section-card {
  padding: 1.7rem;
}

.page-hero__media,
.section-visual,
.person-card {
  overflow: hidden;
  padding: 0;
}

.page-hero__media img,
.section-visual img,
.person-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero__media img,
.section-visual img {
  aspect-ratio: 4 / 3;
}

.section-media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.person-card__media {
  aspect-ratio: 4 / 3;
}

.person-card__caption {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.elder-board-intro {
  max-width: 56rem;
}

.elder-board-intro > :first-child {
  margin-top: 0;
}

.elder-board-intro > :last-child {
  margin-bottom: 0;
}

.elder-board-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.elder-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
}

.elder-card__media-frame {
  min-height: 320px;
  background: var(--bg-muted);
}

.elder-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
  background: var(--bg-muted);
}

.elder-card__body {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.5rem 1.65rem;
}

.elder-card__family {
  margin: 0;
  color: var(--accent-secondary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.elder-card__body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.elder-card__content {
  font-size: 0.98rem;
}

.elder-card__content > :first-child {
  margin-top: 0;
}

.elder-card__content > :last-child {
  margin-bottom: 0;
}

.section-story {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.gallery-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-stack {
  display: grid;
  gap: 2.25rem;
}

.album-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-feed__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.album-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin: -0.25rem -0.25rem 0.75rem;
  aspect-ratio: 16 / 10;
}

.album-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--bg-muted);
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.album-detail__summary,
.album-detail__photos {
  padding: 1.75rem;
}

.album-detail__actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.page-hero__panel-meta {
  margin-top: 1rem;
}

.page-hero__panel-meta p {
  margin: 0.3rem 0 0;
}

.section-nav {
  padding: 0.35rem 0;
}

.section-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.section-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-strong);
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.section-nav__list a:hover {
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent-strong);
}

.section-layout {
  display: grid;
  gap: 2rem;
}

.event-section {
  display: grid;
  gap: 1.5rem;
}

.section-card {
  max-width: none;
  padding: 2rem 2.25rem;
}

.section-card .prose,
.section-story .prose {
  font-size: 1.08rem;
}

.section-card blockquote,
.section-story blockquote {
  margin: 1.4rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--highlight);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
}

.contact-page {
  display: grid;
  gap: 2rem;
}

.visit-note {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.visit-note__copy,
.contact-panel,
.contact-panel__header,
.contact-map-section {
  display: grid;
}

.visit-note__copy,
.contact-panel__header,
.contact-map-section {
  gap: 0.8rem;
}

.visit-note__copy p:last-child,
.contact-panel__header p:last-child {
  margin-bottom: 0;
}

.contact-map-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.visit-note__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.visit-note__meta p {
  margin: 0;
}

.visit-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-panel {
  gap: 1.35rem;
  align-content: start;
  min-width: 0;
}

.contact-panel--form {
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow:
    inset 0 4px 0 rgba(var(--accent-rgb), 0.1),
    var(--shadow);
}

.contact-panel__intro {
  margin: 0;
  color: var(--text-soft);
}

.detail-list {
  display: grid;
  gap: 1rem;
}

.detail-list--contact {
  gap: 0;
}

.detail-list--contact .detail-list__item {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.detail-list--contact .detail-list__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-list--contact dd {
  color: var(--text-soft);
}

.detail-list--contact a {
  color: var(--accent-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form {
  display: grid;
  gap: 1rem;
  position: relative;
}

.contact-form__row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__field {
  min-width: 0;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__notice {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(59, 128, 85, 0.14);
  color: #276440;
}

.contact-form__notice.is-error {
  background: rgba(157, 55, 55, 0.12);
  color: #7d2222;
}

.contact-map-section__heading {
  margin-bottom: 0;
}

.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(255, 255, 255, 0.98));
}

.map-frame iframe,
.video-frame iframe {
  width: 100%;
  border: 0;
  border-radius: inherit;
}

.map-frame iframe {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
}

.map-frame__fallback {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  gap: 0.65rem;
  max-width: 20rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(30, 37, 41, 0.14);
  transition: opacity 220ms ease, transform 220ms ease;
}

.map-frame__fallback p,
.map-frame__placeholder p {
  margin: 0;
  color: var(--text-soft);
}

.map-frame__placeholder {
  display: grid;
  place-content: center;
  min-height: 420px;
  padding: 2rem;
  text-align: center;
}

.map-frame.is-loaded .map-frame__fallback {
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
}

.single-sermon__content {
  display: grid;
  gap: 1.75rem;
  max-width: 920px;
  margin: 0 auto;
}

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  height: 100%;
}

.video-frame__fallback {
  display: grid;
  gap: 1rem;
  place-items: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.audio-player {
  padding: 1.5rem;
}

.audio-player .sermon-audio {
  display: block;
  width: 100%;
}

.audio-player__link {
  margin: 0.85rem 0 0;
}

.single-sermon__meta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.event-meta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.single-sermon__meta-card {
  padding: 1.3rem 1.4rem;
}

.event-meta-card,
.event-summary {
  padding: 1.4rem 1.5rem;
}

.single-sermon__summary {
  padding: 1.75rem;
}

.event-actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.single-sermon__actions {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.prose {
  max-width: 760px;
}

.prose > *:first-child,
.card > *:first-child {
  margin-top: 0;
}

.prose > *:last-child,
.card > *:last-child {
  margin-bottom: 0;
}

.prose--compact,
.prose--wide {
  max-width: none;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text);
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.callout {
  grid-template-columns: 1fr auto;
  align-items: center;
}

/* === GIVE PAGE === */
.give-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.give-scripture {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.04), var(--highlight-soft));
}

.give-scripture blockquote {
  margin: 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--highlight);
}

.give-scripture blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
}

.give-scripture cite {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
  color: var(--accent-strong);
}

.give-qr {
  text-align: center;
}

.give-qr__frame {
  display: inline-block;
  margin: 1rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
}

.give-qr__image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.give-qr__hint {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.give-qr__steps {
  max-width: 16rem;
  margin: 0 auto;
  padding-left: 1.2rem;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
}

.site-footer {
  padding: 3rem 0 0;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.site-footer__brand-copy {
  display: grid;
  gap: 0.9rem;
  max-width: 19rem;
}

.site-footer__title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.site-footer__column {
  min-width: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__column p {
  margin: 0;
}

.site-footer__label {
  color: var(--highlight);
}

.site-footer__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.site-footer__item-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.12rem;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__icon {
  margin-right: 0;
}

.site-footer__item-body {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.site-footer__contact-group {
  display: grid;
  gap: 0.7rem;
}

.site-footer__line {
  display: block;
}

.site-footer__mission {
  margin: 0;
}

.site-footer__mission-line {
  display: block;
  line-height: 1.8;
}

.site-footer__mission-line::first-letter {
  color: var(--highlight);
}

.site-footer__column a {
  font-weight: 600;
  overflow-wrap: normal;
  word-break: normal;
  text-underline-offset: 4px;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.site-footer__nav a {
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.site-footer__nav a:hover {
  color: var(--highlight);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 180ms ease;
}

.site-footer__social:hover {
  color: #fff;
}

.site-footer__social svg {
  flex-shrink: 0;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(30, 37, 41, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 300ms ease, visibility 300ms ease, transform 300ms ease, background-color 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-strong);
}

/* === LIGHTBOX === */
.lightbox {
  padding: 0;
  background: transparent;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms ease;
}

.lightbox::backdrop {
  background: rgba(var(--surface-dark-rgb), 0.95);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 300ms ease;
}

.lightbox.is-open,
.lightbox.is-open::backdrop {
  opacity: 1;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: -3rem;
  right: -1rem;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  opacity: 0.7;
  transition: opacity 200ms ease, transform 200ms ease;
}

.lightbox__close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox__caption {
  margin: 1rem 0 0;
  max-width: 60ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.lightbox__link {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 200ms ease;
}

.lightbox__link:hover {
  color: #fff;
}

@media (min-width: 1201px) {
  .site-footer__inner {
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: 2.5rem;
  }

  .site-footer__mark {
    max-width: 140px;
    max-height: 64px;
  }

  .site-footer__meta {
    grid-template-columns: minmax(9.5rem, 0.72fr) minmax(13.5rem, 1.18fr) minmax(12.5rem, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 961px) and (max-width: 1200px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer__meta {
    grid-template-columns: minmax(10.25rem, 0.82fr) minmax(0, 1.18fr);
    grid-template-areas:
      "explore visit"
      "explore mailing";
    gap: 1.75rem;
  }

  .site-footer__column--explore {
    grid-area: explore;
  }

  .site-footer__column--visit {
    grid-area: visit;
  }

  .site-footer__column--mailing {
    grid-area: mailing;
  }
}

.pagination-wrap {
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap .navigation.pagination {
  width: 100%;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-height);
  height: var(--control-height);
  padding: 0 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(34, 27, 25, 0.08);
}

.pagination-wrap a.page-numbers:hover {
  color: var(--accent-strong);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.pagination-wrap .page-numbers.current {
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff8f5;
}

.pagination-wrap .page-numbers.dots {
  min-width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-soft);
}

@media (max-width: 960px) {
  .site-nav__toggle {
    display: inline-flex;
  }

  /* The collapsed nav becomes a full-width second grid row below; center the
     brand/toggle row in the band so they aren't pushed to the top. */
  .site-header__inner {
    align-content: center;
    row-gap: 0;
  }

  .site-nav {
    display: block;
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow: hidden;
    max-height: 0;
    transition: max-height 280ms ease;
  }

  .site-nav.is-open {
    max-height: 600px;
    padding-bottom: 1rem;
  }

  .site-nav__list,
  .site-nav__list .sub-menu,
  .hero__grid,
  .page-hero__grid,
  .summary-grid,
  .album-grid,
  .event-grid,
  .contact-grid,
  .content-grid,
  .section-story,
  .sermon-grid,
  .sermon-feature,
  .callout,
  .visit-note,
  .contact-form__row,
  .single-sermon__actions,
  .album-detail__actions,
  .event-actions,
  .filter-bar,
  .site-footer__inner,
  .site-footer__meta {
    grid-template-columns: 1fr;
  }

  .site-nav__list {
    display: grid;
    gap: 0.4rem;
    padding-top: 1rem;
  }

  .site-nav__list > .menu-item {
    width: 100%;
  }

  .has-js .site-nav__list > .menu-item-has-children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: start;
  }

  .site-nav__list a {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.04);
  }

  .has-js .site-nav__submenu-toggle {
    display: inline-flex;
    min-height: var(--control-height);
    min-width: var(--control-height);
  }

  .sub-menu {
    position: static;
    min-width: 0;
    margin-top: 0.35rem;
    padding: 0.3rem 0 0 0.85rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-js .site-nav__list > .menu-item-has-children > .sub-menu {
    grid-column: 1 / -1;
    padding-top: 0.25rem;
  }

  .site-footer__brand {
    grid-template-columns: 1fr;
  }

  .site-footer__column p,
  .site-footer__column a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .visit-note__actions {
    justify-content: flex-start;
  }

  .visit-note__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .elder-card {
    grid-template-columns: 1fr;
  }

  .elder-card__media-frame {
    min-height: 0;
  }

  .elder-card__media {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 720px) {
  .hero,
  .page-hero,
  .section {
    padding: 3.6rem 0;
  }

  .site-header__inner {
    min-height: 82px;
  }

  .site-brand__mark {
    max-width: min(150px, 48vw);
    max-height: 44px;
  }

  .site-footer__mark {
    max-width: min(180px, 65vw);
    max-height: 64px;
  }

  .callout__actions,
  .hero__actions,
  .content-aside__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-frame iframe {
    min-height: 320px;
  }

  /* Collapse the sticky section nav to a single swipeable row on phones so it
     stops eating the reading area. Compound selector outranks the .section
     padding rule above on equal specificity. */
  .section.section-nav-band {
    top: 82px;
    padding: 0.6rem 0;
  }

  .section-nav-band .section-nav {
    padding: 0;
  }

  .section-nav__list {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.15rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .section-nav__list::-webkit-scrollbar {
    display: none;
  }

  .section-nav__list li {
    flex: 0 0 auto;
  }

  .section-nav__list a {
    white-space: nowrap;
  }
}

@media (min-width: 721px) {
  .gallery-feed__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 961px) {
  .gallery-feed__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .album-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === MOTION / INTERACTIONS === */
.card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.card:not(.elder-card, .contact-panel--form, .single-sermon__summary, .single-sermon__actions, .single-sermon__meta-card, .album-detail__summary, .album-detail__actions, .album-detail__photos):hover,
.card:not(.elder-card, .contact-panel--form, .single-sermon__summary, .single-sermon__actions, .single-sermon__meta-card, .album-detail__summary, .album-detail__actions, .album-detail__photos):focus-within {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(30, 37, 41, 0.14);
}

.button:active,
button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: none;
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.04);
}

.album-card:hover .album-card__thumb img {
  transform: scale(1.03);
}

/* === LOADING SKELETONS === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === SCROLL-REVEAL ENTRANCE ANIMATIONS === */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.has-js .reveal {
  transform: translateY(16px);
}

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

/* Stagger children inside grids */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 400ms; }

/* Cards that are also reveal targets: compose hover lift with reveal */
.card.reveal.is-visible:not(.elder-card, .contact-panel--form, .single-sermon__summary, .single-sermon__actions, .single-sermon__meta-card):hover {
  transform: translateY(-3px);
}

/* === HERO VISUAL TEXTURE === */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__card.card--accent {
  border-top: 3px solid var(--highlight);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 24px rgba(30, 37, 41, 0.06);
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 70%;
}

.hero__aside .hero__card {
  border-radius: 0 0 var(--radius) var(--radius);
}

.hero__content {
  align-self: center;
}

/* === HERO — Wayfinding navy ground (base .hero bg/color set in HERO VISUAL TEXTURE) === */
.hero h1 {
  color: var(--text-inverse);
}

.hero .hero__summary {
  color: rgba(246, 243, 236, 0.86);
}

.hero .hero__meta {
  color: rgba(246, 243, 236, 0.82);
}

.hero .hero__actions .text-link {
  color: var(--text-inverse);
}

.hero .eyebrow {
  color: var(--highlight);
}

/* === STICKY SECTION NAV === */
.section-nav-band {
  position: sticky;
  top: 90px;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(var(--bg-rgb), 0.92);
}

.section-nav__list a.is-active {
  border-color: rgba(var(--accent-rgb), 0.36);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-strong);
}

/* === FILTER BAR LOADING STATE === */
button[aria-busy="true"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button[aria-busy="true"]::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: -0.55rem 0 0 -0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ct-spin 0.6s linear infinite;
}

@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

/* === MOBILE NAV HAMBURGER ICON === */
.site-nav__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  flex-shrink: 0;
}

.site-nav__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 240ms ease, opacity 180ms ease;
  transform-origin: center;
}

[aria-expanded="true"] .site-nav__icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

[aria-expanded="true"] .site-nav__icon span:nth-child(2) {
  opacity: 0;
}

[aria-expanded="true"] .site-nav__icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === SERMON CARD THUMBNAIL === */
.sermon-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin: -0.25rem -0.25rem 0.75rem;
  aspect-ratio: 16 / 9;
}

.sermon-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.sermon-card:hover .sermon-card__thumb img {
  transform: scale(1.03);
}

/* === CONTACT FORM VALIDATION === */
.contact-form__error {
  display: block;
  margin-top: 0.3rem;
  color: #7d2222;
  font-size: 0.875rem;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(157, 55, 55, 0.5);
  box-shadow: 0 0 0 2px rgba(157, 55, 55, 0.12);
}

/* === EVENT CARD THUMBNAIL === */
.event-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  margin: -0.25rem -0.25rem 0.75rem;
  aspect-ratio: 16 / 9;
}

.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.event-card:hover .event-card__thumb img {
  transform: scale(1.03);
}

/* === SERMON SINGLE WIDE VIDEO === */
.video-frame--wide {
  max-width: 1080px;
  margin: 0 auto;
}

/* === HERO SLIDESHOW BANNER === */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  min-height: clamp(360px, 60vh, 640px);
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.hero-banner__media,
.hero-banner__slide,
.hero-banner__video {
  position: absolute;
  inset: 0;
}

.hero-banner__image,
.hero-banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Crossfade between slides; single-image mode stays fully visible. */
.hero-banner__slide {
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-banner__slide.is-active {
  opacity: 1;
}

.hero-banner:not(.hero-banner--slideshow) .hero-banner__slide {
  opacity: 1;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 37, 41, 0.35), rgba(30, 37, 41, 0.65));
  pointer-events: none;
}

.hero-banner__inner {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
}

.hero-banner__content {
  max-width: 42rem;
  opacity: 0;
  transform: translateY(16px);
}

.hero-banner__content.is-intro-done {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

html:not(.has-js) .hero-banner__content {
  opacity: 1;
  transform: none;
}

.hero-banner__heading {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  color: var(--text-inverse);
}

.hero-banner__subtext {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: rgba(246, 243, 236, 0.9);
}

.hero-banner__cta {
  margin-top: 1.4rem;
}

/* Prev/next arrows */
.hero-banner__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-inverse);
  background: rgba(30, 37, 41, 0.45);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color 180ms ease;
}

.hero-banner__arrow:hover {
  background: rgba(30, 37, 41, 0.7);
}

.hero-banner__arrow:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.hero-banner__arrow--prev {
  left: clamp(0.75rem, 2vw, 1.5rem);
}

.hero-banner__arrow--next {
  right: clamp(0.75rem, 2vw, 1.5rem);
}

/* Dot indicators */
.hero-banner__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.6rem;
  transform: translateX(-50%);
}

.hero-banner__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(246, 243, 236, 0.5);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-banner__dot:hover {
  background: rgba(246, 243, 236, 0.8);
}

.hero-banner__dot.is-active {
  background: var(--highlight);
  transform: scale(1.15);
}

.hero-banner__dot:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
}

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

  .hero-banner__content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
