
:root {
  --ink: #1f241f;
  --muted: #687168;
  --cream: #f5f1e7;
  --paper: #fffdf8;
  --green: #465443;
  --green-2: #394638;
  --green-dark: #263126;
  --gold: #b59b69;
  --line: #d9d0bf;
  --shadow: 0 18px 50px rgba(30, 39, 30, .12);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  transform: translateY(-150%); padding: 10px 14px;
  background: #fff; color: #111; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
  margin-bottom: 10px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0 0 .7rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; }
h3 { font-size: 1.4rem; }
p { margin: .25rem 0 1rem; }
.small { color: var(--muted); font-size: .9rem; }

.alert {
  display: none;
  color: #443b27;
  background: #eee2c2;
  border-bottom: 1px solid #d3bf84;
}
.alert.show { display: block; }
.alert-inner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0;
}
.alert strong { white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 231, .96);
  border-bottom: 1px solid rgba(70, 84, 67, .14);
  backdrop-filter: blur(10px);
}
.nav-wrap {
  min-height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 212px; height: auto; max-height: 64px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .94rem; font-weight: 650; }
.nav-links a {
  position: relative; padding: .8rem .05rem .55rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem;
  height: 2px; transform: scaleX(0); transform-origin: center;
  background: var(--green); transition: transform .18s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn {
  display: none; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); border-radius: 10px; padding: .6rem .8rem;
}

.hero {
  position: relative; min-height: min(78vh, 790px);
  display: grid; align-items: end; overflow: hidden;
  color: #fff; background: var(--green-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 28, 21, .78) 0%, rgba(20, 28, 21, .52) 44%, rgba(20, 28, 21, .15) 100%),
    url("../images/church-hero.jpg") center 43% / cover no-repeat;
  transform: scale(1.01);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 22%;
  background: linear-gradient(to top, rgba(20, 28, 21, .34), transparent);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px; padding: 120px 0 74px;
}
.hero .eyebrow { color: #e6d8b8; }
.hero p { max-width: 650px; color: rgba(255,255,255,.92); font-size: 1.16rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 20px; border: 1px solid var(--green); border-radius: 999px;
  font-weight: 800; cursor: pointer;
}
.btn.primary { color: #fff; background: var(--green); }
.btn.primary:hover { background: var(--green-2); }
.btn.secondary { background: transparent; }
.hero .btn.primary { color: var(--green-dark); background: #fff; border-color: #fff; }
.hero .btn.secondary { color: #fff; border-color: rgba(255,255,255,.72); }

.service-ribbon {
  position: relative; z-index: 3;
  margin-top: -34px;
}
.service-ribbon-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--paper); box-shadow: var(--shadow);
}
.service-cell { padding: 24px 26px; }
.service-cell + .service-cell { border-left: 1px solid var(--line); }
.service-cell .label {
  color: var(--green); font-size: .74rem; font-weight: 850;
  letter-spacing: .15em; text-transform: uppercase;
}
.service-cell strong {
  display: block; margin-top: 5px; font-family: Georgia, serif; font-size: 1.25rem;
}
.service-cell span { display: block; color: var(--muted); font-size: .94rem; }

.section { padding: 86px 0; }
.section.paper { background: var(--paper); }
.section.dark { color: #fff; background: var(--green-dark); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-intro { max-width: 690px; color: var(--muted); font-size: 1.03rem; }
.grid-2 { display: grid; grid-template-columns: 1.08fr .92fr; gap: 42px; align-items: center; }
.photo-card { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #ddd; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  min-height: 100%; padding: 28px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(31,38,30,.05);
}
.card .number {
  width: 42px; height: 42px; margin-bottom: 18px;
  display: grid; place-items: center;
  color: var(--green-dark); background: #e7eadf;
  border-radius: 50%; font-size: .82rem; font-weight: 850;
}
.card a { color: var(--green-dark); }
.quote {
  max-width: 900px; margin: 0 auto;
  font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.35; text-align: center;
}
.pastor { display: grid; grid-template-columns: 300px 1fr; gap: 42px; align-items: center; }
.pastor img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 8px solid var(--paper); border-radius: 50%; box-shadow: var(--shadow);
}

.page-hero { padding: 94px 0 62px; color: #fff; background: var(--green-dark); }
.page-hero .eyebrow { color: #dfd0af; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.86); font-size: 1.05rem; }

.resource-list { display: grid; gap: 14px; }
.resource {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px;
}
.resource:hover { border-color: #b8ad98; }
.resource span { color: var(--muted); font-size: .93rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; }
.contact-box {
  padding: 28px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-box hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
form { display: grid; gap: 14px; }
label { display: block; margin-bottom: 5px; font-size: .92rem; font-weight: 800; }
input, textarea {
  width: 100%; padding: 13px 14px;
  color: var(--ink); background: #fff;
  border: 1px solid #cfc6b6; border-radius: 10px;
}
textarea { min-height: 150px; resize: vertical; }

.site-footer { padding: 54px 0 28px; color: #e8ece5; background: #1e271e; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 34px; }
.footer-logo { width: 235px; max-width: 100%; margin-bottom: 15px; }
.site-footer a { color: inherit; }
.footer-bottom {
  margin-top: 34px; padding-top: 18px;
  color: #b8c1b7; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .88rem;
}
.not-found { min-height: 66vh; display: grid; place-items: center; text-align: center; }
.not-found-inner { max-width: 650px; }

@media (max-width: 900px) {
  .brand img { width: 184px; }
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 18px; right: 18px; top: 74px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px; background: var(--paper);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a::after { display: none; }
  .grid-2, .pastor, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .service-ribbon-inner { grid-template-columns: 1fr; }
  .service-cell + .service-cell { border-left: 0; border-top: 1px solid var(--line); }
  .pastor img { max-width: 270px; }
}
@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-wrap { min-height: 74px; gap: 12px; }
  .brand img { width: 155px; }
  .hero { min-height: 72vh; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(20, 28, 21, .79) 0%, rgba(20, 28, 21, .56) 70%, rgba(20, 28, 21, .35) 100%),
      url("../images/church-hero.jpg") 46% center / cover no-repeat;
  }
  .hero-content { padding: 90px 0 72px; }
  .hero p { font-size: 1.03rem; }
  .section { padding: 68px 0; }
  .service-ribbon { margin-top: -22px; }
}
