:root {
  --ink: #1b2118;
  --muted: #5f6759;
  --paper: #fbfbf7;
  --paper-strong: #ffffff;
  --moss: #3f4f2f;
  --moss-dark: #26341f;
  --berry: #7e315f;
  --gold: #b8862f;
  --line: #dfe3d7;
  --shadow: 0 18px 55px rgba(27, 33, 24, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.nav-open,
body.gallery-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 251, 247, 0.92);
  border-bottom: 1px solid rgba(223, 227, 215, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-name,
.brand-subtitle {
  display: block;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  color: var(--moss-dark);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--berry);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--ink);
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-7px);
}

.nav-toggle-bars::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: clamp(540px, 72vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 10, 0.86), rgba(12, 18, 10, 0.5) 46%, rgba(12, 18, 10, 0.12)),
    linear-gradient(0deg, rgba(12, 18, 10, 0.64), rgba(12, 18, 10, 0.06) 55%);
}

.hero-content {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(60px, 11vh, 110px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.95;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: #1f1606;
}

.button-primary:hover {
  background: #d29c3f;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 5;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-info > div {
  padding: 22px clamp(18px, 3vw, 30px);
  border-right: 1px solid var(--line);
}

.quick-info > div:last-child {
  border-right: 0;
}

.info-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-info strong {
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 30px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid,
.visit-grid,
.giving-grid {
  display: grid;
  gap: 18px;
}

.announcement-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.announcement-copy p {
  max-width: 560px;
}

.announcement-list {
  display: grid;
  gap: 16px;
}

.announcement-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: var(--paper-strong);
}

.announcement-list p {
  margin: 0 0 14px;
}

.announcement-date {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.feature-card,
.visit-grid article,
.giving-grid article {
  padding: 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-section,
.history-section,
.bylaws-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.split-copy p,
.history-copy p {
  max-width: 680px;
}

.service-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--moss-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.service-panel h3 {
  color: #fff;
}

.service-panel dl {
  margin: 0;
}

.service-panel div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-panel div:last-child {
  border-bottom: 0;
}

.service-panel dt {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.service-panel dd {
  margin: 0;
}

.text-link {
  color: var(--berry);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.section-more-link {
  margin-top: 24px;
}

.light-link {
  color: #f0c36e;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--berry);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.page-hero {
  position: relative;
  min-height: clamp(320px, 48vh, 520px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.page-hero-image,
.page-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 38%;
}

.page-hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 18, 10, 0.84), rgba(12, 18, 10, 0.46) 52%, rgba(12, 18, 10, 0.12)),
    linear-gradient(0deg, rgba(12, 18, 10, 0.56), rgba(12, 18, 10, 0.02));
}

.page-hero-content {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(48px, 9vh, 86px);
  color: #fff;
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.96;
}

.content-page {
  max-width: 860px;
}

.content-body {
  display: grid;
  gap: 22px;
}

.content-body p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.82;
}

.content-body h2 {
  margin: 24px 0 -4px;
  color: var(--moss-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
}

.content-body ul,
.content-body ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  line-height: 1.72;
}

.article-kicker {
  font-weight: 900;
}

.content-body .article-meta {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 800;
}

.visit-section {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
  background: #edf0e6;
}

.visit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.history-section {
  align-items: start;
}

.image-stack {
  display: grid;
  gap: 18px;
}

.image-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-section {
  border-top: 1px solid var(--line);
}

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

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #d8ddcf;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.88;
  transform: scale(1.035);
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(184, 134, 47, 0.45);
  outline-offset: 3px;
}

.giving-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.giving-grid {
  grid-template-columns: 1.1fr 1fr 0.82fr;
}

.bible-section {
  width: 100%;
  max-width: none;
  background: var(--moss-dark);
  color: #fff;
  padding-left: max(18px, calc((100vw - 1120px) / 2));
  padding-right: max(18px, calc((100vw - 1120px) / 2));
}

.bible-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.bible-card p {
  color: rgba(255, 255, 255, 0.78);
}

.resource-list {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.resource-list ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.resource-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.resource-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bylaws-section {
  grid-template-columns: 1fr 360px;
}

.document-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  text-decoration: none;
}

.document-link:hover {
  border-color: var(--gold);
}

.document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--berry);
  color: #fff;
  font-weight: 900;
}

.document-link span span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.inline-document-link {
  margin-top: 10px;
}

.contact-section {
  align-items: start;
}

address {
  margin: 24px 0 18px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

address strong {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cdd4c4;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(184, 134, 47, 0.22);
  border-color: var(--gold);
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.74);
  background: #151912;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer strong {
  color: #fff;
}

.gallery-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 64px 14px 22px;
  border: 0;
  background: rgba(21, 25, 18, 0.94);
  box-shadow: var(--shadow);
}

.gallery-dialog[hidden] {
  display: none;
}

.gallery-dialog img {
  width: 100%;
  max-width: 1120px;
  max-height: calc(100vh - 112px);
  object-fit: contain;
}

.gallery-close,
.gallery-nav {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 36px;
  padding: 8px 12px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  min-height: 42px;
  padding: 9px 12px;
  transform: translateY(-50%);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 20px;
    background: var(--paper-strong);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info,
  .announcement-section,
  .feature-grid,
  .visit-grid,
  .giving-grid,
  .split-section,
  .history-section,
  .bible-card,
  .bylaws-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .quick-info > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-info > div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    display: block;
  }
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
}

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

@media (max-width: 560px) {
  .brand-subtitle {
    display: none;
  }

  .brand-name {
    max-width: 190px;
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: 580px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .section,
  .quick-info {
    width: calc(100% - 28px);
  }

  .service-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-form {
    padding: 20px;
  }

  .gallery-dialog {
    padding: 58px 10px 70px;
  }

  .gallery-dialog img {
    max-height: calc(100vh - 148px);
  }

  .gallery-nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }
}
