:root {
  --ink: #17211b;
  --text: #334139;
  --muted-text: #627064;
  --paper: #fffdf8;
  --soft: #f4efe5;
  --line: #dfd6c7;
  --green: #174f3a;
  --green-dark: #0e3529;
  --gold: #c4943d;
  --coral: #b85b49;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(223, 214, 199, 0.85);
  backdrop-filter: blur(16px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
  font-size: 1.08rem;
}

.brand small {
  color: var(--muted-text);
  font-size: 0.75rem;
  max-width: 260px;
  line-height: 1.25;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.home-hero {
  min-height: 68vh;
  max-height: 760px;
  display: grid;
  align-items: center;
}

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

.hero-media img,
.page-hero img {
  object-fit: cover;
}

.hero-overlay,
.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 29, 22, 0.82), rgba(8, 29, 22, 0.42), rgba(8, 29, 22, 0.2));
}

.hero-media,
.page-hero img {
  z-index: -2;
}

.hero-content,
.page-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  padding: 7rem 0 6rem;
  max-width: 1180px;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  font-size: 5.2rem;
  max-width: 900px;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  background: var(--white);
  color: var(--green-dark);
}

.button.outline {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
}

.page-hero-content {
  padding: 7rem 0 4rem;
}

.section {
  padding: 5rem 0;
}

.muted {
  background: var(--soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.split,
.two-column,
.story-layout,
.faith-layout,
.giving-layout,
.contact-layout {
  display: grid;
  gap: 2rem;
}

.split,
.story-layout,
.faith-layout,
.giving-layout,
.contact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.7rem;
}

.intro-band {
  border-bottom: 1px solid var(--line);
}

.intro-band p:last-child,
.story-copy p,
.faith-layout p,
.giving-layout p {
  font-size: 1.08rem;
}

.feature-block,
.giving-panel,
.contact-form,
.contact-details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.icon-badge,
.ministry-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(196, 148, 61, 0.16);
  color: var(--green);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.ministry-preview,
.objectives-grid,
.serve-grid,
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.ministry-preview a,
.objectives-grid article,
.serve-grid article,
.highlight-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.ministry-preview a {
  min-height: 90px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

.ministry-preview a:hover {
  border-color: var(--green);
  color: var(--green);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-strip p {
  max-width: 680px;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  padding: 3.5rem 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 2rem;
}

.footer-brand,
.footer-grid h2 {
  color: var(--white);
}

.footer-brand .brand-mark {
  background: var(--gold);
  color: #1f1606;
}

.footer-brand small {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid a:not(.brand) {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  margin: 0.4rem 0;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-grid h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  text-align: center;
  padding: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

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

.objectives-grid span {
  color: var(--gold);
  font-weight: 900;
}

.faith-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.faith-list li {
  position: relative;
  padding: 1rem 1rem 1rem 2.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faith-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

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

.ministry-card,
.event-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(23, 33, 27, 0.08);
}

.ministry-card {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.ministry-card img {
  width: 100%;
  height: 100%;
  min-height: 265px;
  object-fit: cover;
}

.ministry-card div {
  padding: 1.5rem;
}

.ministry-card h2,
.serve-grid h2,
.event-item h2,
.highlight-grid h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.ministry-card a,
.event-item a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

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

.giving-panel {
  box-shadow: none;
}

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

.event-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
}

.event-item time {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}

.event-item time span {
  display: block;
  font-size: 1.9rem;
}

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

.highlight-grid article {
  padding: 0;
  overflow: hidden;
}

.highlight-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-grid h2,
.highlight-grid p {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.highlight-grid p {
  margin-bottom: 1.3rem;
}

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

.detail-row span {
  display: block;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.detail-row p {
  margin: 0.25rem 0 0;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form h2 {
  margin-bottom: 0.5rem;
}

.contact-form label {
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 1.5rem;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.map-band {
  min-height: 270px;
  background:
    linear-gradient(rgba(23, 79, 58, 0.88), rgba(23, 79, 58, 0.88)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1800&q=80") center/cover;
  display: grid;
  place-items: center;
  color: var(--white);
  text-align: center;
}

.map-inner span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
}

.map-inner p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 980px) {
  .hero-content h1,
  .page-hero h1 {
    font-size: 3.7rem;
  }

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    border-radius: 8px;
  }

  .split,
  .story-layout,
  .faith-layout,
  .giving-layout,
  .contact-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .ministry-preview,
  .objectives-grid,
  .serve-grid,
  .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 680px) {
  .navbar,
  .container,
  .hero-content,
  .page-hero-content {
    width: min(100% - 24px, 1180px);
  }

  .brand small {
    max-width: 180px;
  }

  .home-hero {
    min-height: 590px;
  }

  .hero-content {
    padding: 5.5rem 0 4rem;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .ministry-preview,
  .objectives-grid,
  .serve-grid,
  .highlight-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .ministry-card img {
    min-height: 220px;
    max-height: 260px;
  }

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

  .event-item time {
    width: 100%;
    height: auto;
    min-height: 72px;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
