:root {
  --paper: #f0f2f6;
  --paper-2: #dee9ed;
  --paper-3: #ffffff;
  --ink: #000000;
  --ink-muted: #3b3b3b;
  --line: #e3e6ea;
  --lime: #c1d100;
  --orange: #e07d0a;
  --teal: #00a4c2;
  --shadow: none;
  --shadow-soft: none;
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 164, 194, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section.alt {
  background: var(--paper-3);
}

.section.dark {
  background: #000000;
  color: #ffffff;
}

.section.tight {
  padding: 56px 0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 8px;
}

.section-title--compact {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 760px;
}

.section-sub {
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.18;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 16px;
}

.meta {
  color: var(--ink-muted);
  font-size: 13px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink-muted);
  max-width: 640px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.badge::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.badge.training {
  color: var(--orange);
}

.badge.churches {
  color: #8ca000;
}

.badge.mission {
  color: var(--teal);
}

.text-training {
  color: var(--orange);
}

.text-churches {
  color: var(--lime);
}

.text-mission {
  color: var(--teal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.button.training {
  background: var(--orange);
  color: #ffffff;
}

.button.churches {
  background: var(--lime);
  color: var(--ink);
}

.button.mission {
  background: var(--teal);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.35);
}

.button.secondary.training {
  border-color: rgba(224, 125, 10, 0.6);
  color: var(--orange);
}

.button.secondary.churches {
  border-color: rgba(193, 209, 0, 0.6);
  color: var(--ink);
}

.button.secondary.mission {
  border-color: rgba(0, 164, 194, 0.6);
  color: var(--teal);
}

.button.ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.button.link {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--teal));
}

.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-links a {
  color: var(--ink-muted);
  white-space: nowrap;
}

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

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.nav-actions .button {
  padding: 10px 16px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.nav-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-only {
  display: none;
}

.nav-cta.mobile-only {
  display: none;
}

.hero {
  position: relative;
  padding: 76px 0 84px;
  min-height: auto;
  overflow: hidden;
  background: linear-gradient(130deg, #ffffff 0%, var(--paper-2) 55%, #ffffff 100%);
  color: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media img {
  object-position: 35% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.75) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-grid.hero-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note {
  font-size: 14px;
  color: var(--ink-muted);
}

.hero.hero--video {
  background: #000000;
  color: #ffffff;
  min-height: 66vh;
  padding: 92px 0 110px;
}

.hero.hero--video .lead,
.hero.hero--video .section-sub,
.hero.hero--video .hero-note {
  color: rgba(255, 255, 255, 0.75);
}

.hero.hero--video .badge {
  color: #ffffff;
}

.hero.hero--video .badge::before {
  background: var(--lime);
}

.hero.hero--video .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero.hero--video .button.link {
  color: #ffffff;
}

.hero.hero--photo {
  background: #000000;
  color: #ffffff;
  min-height: min(620px, 62vh);
  padding: 86px 0 94px;
  display: flex;
  align-items: center;
}

.hero.hero--photo .hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.08) 54%, rgba(0, 0, 0, 0.38) 100%);
}

.hero.hero--photo .hero-grid {
  grid-template-columns: minmax(0, 760px);
}

.hero.hero--photo h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.hero.hero--photo .lead,
.hero.hero--photo .hero-note {
  color: rgba(255, 255, 255, 0.82);
}

.hero.hero--photo .badge {
  color: #ffffff;
}

.hero.hero--photo .badge.mission::before {
  background: var(--teal);
}

.hero.hero--photo .badge.churches::before {
  background: var(--lime);
}

.hero.hero--photo .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(0, 0, 0, 0.16);
}

.hero--photo-events .hero-media img {
  object-position: center 42%;
}

.hero--photo-mission .hero-media img {
  object-position: center 46%;
}

.hero--photo-stories .hero-media img {
  object-position: center 58%;
}

.image-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  position: relative;
}

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

.image-caption {
  display: none;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  box-shadow: none;
  position: relative;
}

.card::before {
  display: none;
}

.card.accent-training {
  border-left-color: var(--orange);
}

.card.accent-churches {
  border-left-color: var(--lime);
}

.card.accent-mission {
  border-left-color: var(--teal);
}

.card h3 {
  margin-bottom: 8px;
}

.card .meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.card .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.card-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  height: 160px;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.tag {
  font-size: 11px;
  background: transparent;
  color: var(--ink-muted);
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.tag-row .tag:not(:first-child)::before {
  content: "/";
  margin-right: 14px;
  color: rgba(0, 0, 0, 0.35);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mission-pillar-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
}

.mission-pillar-intro {
  position: sticky;
  top: 112px;
}

.editorial-photo {
  margin: 32px 0 0;
}

.editorial-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.editorial-photo figcaption,
.place-credit {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 12px;
}

.pillar-list {
  border-top: 1px solid var(--line);
}

.pillar-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pillar-row__number {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.pillar-row h3 {
  margin-bottom: 6px;
}

.pillar-row p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 620px;
}

.editorial-list {
  border-top: 1px solid var(--line);
}

.editorial-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.editorial-row__meta {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-row h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-bottom: 8px;
}

.editorial-row p {
  max-width: 660px;
}

.editorial-row .button {
  margin-top: 8px;
}

.support-panel {
  padding: 26px 0 26px 24px;
  border-left: 3px solid var(--teal);
}

.support-panel.churches {
  border-left-color: var(--lime);
}

.support-panel.training {
  border-left-color: var(--orange);
}

.donation-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  max-width: 520px;
}

.donation-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.donation-form legend,
.donation-custom span:first-child {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.donation-amount {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.donation-amount:hover,
.donation-amount.active {
  transform: translateY(-1px);
  border-color: var(--teal);
  background: rgba(0, 171, 181, 0.1);
}

.donation-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.donation-input-wrap span {
  color: var(--ink-muted);
  font-weight: 800;
}

.donation-input-wrap input {
  width: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}

.donation-submit {
  width: 100%;
  justify-content: center;
}

.donation-status {
  min-height: 20px;
  color: var(--ink-muted);
  font-size: 14px;
}

.donation-status.success {
  color: #167a50;
}

.donation-status.error {
  color: #b42318;
}

.event-list {
  border-top: 1px solid var(--line);
}

.event-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.event-row__date {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-row__date strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.event-row.training .event-row__date {
  border-left-color: var(--orange);
}

.event-row.mission .event-row__date {
  border-left-color: var(--teal);
}

.event-row h3 {
  font-size: clamp(20px, 2.1vw, 26px);
  margin-bottom: 6px;
}

.event-row p {
  margin-bottom: 8px;
}

.event-row .meta {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.story-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.story-card {
  display: grid;
  grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.story-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-body {
  padding: 0;
  align-self: center;
}

.story-body h3 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}

.map-panel {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.map-filters {
  margin: 0;
}

.map-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
}

.mapbox-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-muted);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.legend-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lime);
}

.legend-chip.ministry::before {
  background: var(--teal);
}

.legend-chip.partner::before {
  background: var(--orange);
}

.map-marker {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background: var(--lime);
  cursor: pointer;
}

.map-marker.ministry {
  background: var(--teal);
}

.map-marker.partner {
  background: var(--orange);
}

.map-results {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.map-result {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.map-result .tag {
  justify-self: start;
}

.map-result h3 {
  margin-bottom: 4px;
}

.map-result .meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.map-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.churches-page .hero {
  min-height: auto;
  padding: 96px 0 110px;
}

.churches-page .hero-grid {
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.churches-page .hero .image-frame {
  min-height: 340px;
  max-height: 420px;
}

.churches-page .split {
  align-items: start;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
}

.churches-page .map-panel {
  position: sticky;
  top: 96px;
}

.church-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.church-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.church-card h3 {
  font-size: clamp(22px, 1.9vw, 27px);
  line-height: 1.14;
  overflow-wrap: normal;
}

.church-card > .tag {
  align-self: flex-start;
}

.church-card .hero-cta {
  margin-top: auto;
  padding-top: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  border-left: 4px solid var(--lime);
}

.stat.training {
  border-left-color: var(--orange);
}

.stat.churches {
  border-left-color: var(--lime);
}

.stat.mission {
  border-left-color: var(--teal);
}

.stat strong {
  font-size: 22px;
  display: block;
}

.event-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.event-date {
  background: var(--ink);
  color: #ffffff;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
}

.event-date.training {
  background: var(--orange);
}

.event-date.churches {
  background: var(--lime);
  color: var(--ink);
}

.event-date.mission {
  background: var(--teal);
}

.event-date strong {
  display: block;
  font-size: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
}

.filter-btn.active {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(193, 209, 0, 0.25);
}

.form {
  display: grid;
  gap: 12px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  background: #ffffff;
}

.callout {
  padding: 8px 0 8px 24px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-left: 3px solid var(--lime);
}

.section.dark .callout {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-band {
  background: #ffffff;
  border-radius: 0;
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer {
  background: #000000;
  color: #ffffff;
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer small {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  animation: reveal 0.45s var(--ease) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(16px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 342px);
  }

  .hero-grid.hero-grid--single {
    max-width: 342px;
  }

  .hero-grid h1,
  .hero-grid .lead,
  .hero-grid .hero-note,
  .section-title {
    width: min(342px, 100%);
    max-width: 342px;
  }

  .hero.hero--photo .hero-grid,
  .hero.hero--photo .hero-grid.hero-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .hero.hero--photo .hero-grid h1,
  .hero.hero--photo .hero-grid .lead,
  .hero.hero--photo .hero-grid .hero-note {
    width: min(620px, 100%);
    max-width: 620px;
  }

  .section-header {
    display: block;
  }

  .section-header > *,
  .section-header .reveal,
  .section-header .hero-cta {
    width: min(342px, 100%);
    max-width: 342px;
    min-width: 0;
  }

  .section-header .hero-cta {
    align-items: stretch;
  }

  .section-header .hero-cta .button {
    width: 100%;
  }

  .section-title {
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.12;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .section-sub {
    width: min(342px, 100%);
    max-width: 342px;
    overflow-wrap: break-word;
  }

  .hero-cta .button {
    flex: 1 1 100%;
  }

  .hero-cta {
    width: min(342px, 100%);
    max-width: 342px;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(342px, 100%);
    max-width: 342px;
  }

  .filter-btn {
    width: 100%;
    white-space: normal;
  }

  .mission-pillar-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-pillar-intro {
    position: static;
  }

  .story-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .editorial-row,
  .event-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .event-row .button {
    width: 100%;
  }

  .support-panel {
    padding-left: 18px;
  }

  .story-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.2s var(--ease);
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-actions {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .nav-cta.mobile-only {
    display: flex;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .churches-page .split {
    grid-template-columns: 1fr;
  }

  .churches-page .map-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1200px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }

  .nav-actions .button {
    padding: 9px 14px;
    font-size: 12px;
  }

  .logo img {
    height: 32px;
  }
}

@media (max-width: 720px) {
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 24px;
  }

  .hero {
    padding: 62px 0 70px;
    min-height: auto;
    max-width: 100vw;
  }

  .hero.hero--photo {
    min-height: auto;
    padding: 70px 0 76px;
  }

  .hero.hero--photo .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.64) 58%, rgba(0, 0, 0, 0.3) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 54%, rgba(0, 0, 0, 0.42) 100%);
  }

  .hero-grid,
  .hero-grid.hero-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .churches-page .hero {
    padding: 64px 0 72px;
  }

  h1 {
    max-width: calc(100vw - 48px);
    font-size: clamp(30px, 9vw, 36px);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .lead {
    max-width: calc(100vw - 48px);
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .section-title {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.14;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .section-sub {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .hero-cta,
  .hero-note {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .churches-page .hero .image-frame {
    min-height: 230px;
  }

  .church-list-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    object-position: 20% center;
  }

  .section {
    padding: 64px 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .split > * {
    min-width: 0;
    max-width: min(342px, 100%);
  }

  ul {
    padding-left: 20px;
  }

  .section-header > *,
  .section-header .reveal,
  .section-header .hero-cta {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .card-grid {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .pillar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .story-grid {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .editorial-list,
  .event-list,
  .support-panel {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }

  .donation-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    width: 100%;
    max-width: min(342px, calc(100vw - 72px));
  }
}

.lead-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}

.lead-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-fields input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
}

.lead-fields select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  appearance: none;
}

.lead-fields select option {
  color: #1b1b1b;
}

.lead-fields input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.lead-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-label {
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.lead-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 16px;
}

.lead-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.lead-choices input {
  accent-color: #c1d100;
}

.lead-status {
  min-height: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.lead-status.success {
  color: #c1d100;
}

.lead-status.error {
  color: #f1a7a7;
}

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

@media (max-width: 720px) {
  .lead-fields {
    grid-template-columns: 1fr;
  }
}
