:root {
  --ink: #1d2730;
  --muted: #60717f;
  --paper: #fffaf2;
  --soft: #f4eee4;
  --line: rgba(29, 39, 48, 0.12);
  --gold: #c8974a;
  --green: #2f6b5f;
  --rose: #b96a5d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(21, 35, 43, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  color: var(--white);
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(29, 39, 48, 0.78);
}

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

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  padding: 0;
  width: 40px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 8px;
}

.hero-section {
  align-items: end;
  color: var(--white);
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 140px clamp(20px, 7vw, 90px) 68px;
  position: relative;
}

.hero-photo,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-photo {
  border-radius: 0;
  background-image: url("images/hero-worship.jpg");
  background-position: center 46%;
  background-size: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 23, 28, 0.82), rgba(13, 23, 28, 0.42) 52%, rgba(13, 23, 28, 0.18)),
    linear-gradient(0deg, rgba(13, 23, 28, 0.64), transparent 48%);
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

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

.hero-content h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero-content h1 {
  font-size: clamp(4rem, 10vw, 8.5rem);
  margin: 0 0 22px;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button.social {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1160px;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  margin: 0 0 22px;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

p {
  color: var(--muted);
}

.visit-band {
  background: var(--green);
  color: var(--white);
}

.visit-band p {
  color: rgba(255, 255, 255, 0.78);
}

.visit-grid,
.story-grid,
.pastor-grid,
.contact-grid {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: 1fr 1fr;
}

.info-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
}

.info-panel div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
}

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

.info-panel span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-panel strong {
  font-size: 1.08rem;
}

.story-section,
.pastor-section {
  background: var(--soft);
}

.photo-collage {
  min-height: 560px;
  position: relative;
}

.image-slot {
  background-color: var(--green);
  background-size: cover;
  min-height: 180px;
  overflow: hidden;
}

.image-slot.large {
  box-shadow: var(--shadow);
  height: 500px;
  width: 78%;
}

.image-slot.small {
  border: 10px solid var(--soft);
  position: absolute;
  right: 0;
  width: 48%;
}

.image-slot.small.top {
  top: 44px;
}

.image-slot.small.bottom {
  bottom: 0;
}

.worship-image {
  background-image: url("images/worship-team.jpg");
  background-position: center center;
}

.community-image {
  background-image: url("images/congregation.jpg");
  background-position: center 42%;
}

.prayer-image {
  background-image: url("images/prayer-worship.jpg");
  background-position: center 38%;
}

.story-copy {
  max-width: 520px;
}

.text-link {
  border-bottom: 2px solid var(--gold);
  color: var(--green);
  display: inline-block;
  font-weight: 800;
  margin-top: 12px;
  padding-bottom: 4px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 690px;
}

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

.event-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 92px 1fr;
  padding: 24px;
}

.event-card time {
  align-items: center;
  background: var(--rose);
  color: var(--white);
  display: flex;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  text-align: center;
}

.event-card p,
.ministry-grid p {
  margin: 0;
}

.ministries-section {
  background: #ffffff;
}

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

.ministry-grid article {
  border-top: 4px solid var(--gold);
  background: var(--paper);
  min-height: 188px;
  padding: 24px;
}

.pastor-photo {
  aspect-ratio: 4 / 5;
  background-image: url("images/pastor.jpg");
  background-position: 42% center;
  min-height: 420px;
}

.signature {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.72);
}

.dm-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.dm-keyword {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  margin: 0;
}

.dm-keyword strong {
  color: var(--white);
  font-size: 1.25rem;
}

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

.dm-note {
  color: rgba(255, 255, 255, 0.62);
}

.dm-modal[hidden] {
  display: none;
}

.dm-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 20px;
  position: fixed;
  z-index: 50;
}

.dm-modal-backdrop {
  background: rgba(12, 18, 22, 0.62);
  inset: 0;
  position: absolute;
}

.dm-dialog {
  background: var(--paper);
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: clamp(28px, 5vw, 42px);
  position: relative;
  width: min(100%, 520px);
}

.dm-dialog h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 14px;
}

.dm-dialog .button.social {
  border-color: var(--line);
}

.dm-dialog .dm-note {
  color: var(--muted);
}

.dm-close {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
}

.site-footer {
  align-items: center;
  background: #141b21;
  color: var(--white);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 0;
    left: 0;
    padding: 12px 20px 20px;
    position: absolute;
    right: 0;
    top: 68px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero-section {
    min-height: 86vh;
    padding-bottom: 44px;
  }

  .visit-grid,
  .story-grid,
  .pastor-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-collage {
    min-height: 460px;
  }

  .image-slot.large {
    height: 390px;
    width: 86%;
  }

  .ministry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: 3.8rem;
  }

  .button {
    width: 100%;
  }

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

  .event-card time {
    height: 54px;
    width: 88px;
  }

  .ministry-grid {
    grid-template-columns: 1fr;
  }

  .photo-collage {
    min-height: 380px;
  }

  .image-slot.large {
    height: 310px;
  }

  .image-slot.small {
    border-width: 6px;
    min-height: 130px;
    width: 54%;
  }
}
