:root {
  --ink: #1d2521;
  --muted: #5e6a63;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dde3dc;
  --green: #1f6b4f;
  --green-dark: #154a38;
  --marigold: #d9962a;
  --clay: #b35b47;
  --blue: #426b8f;
  --shadow: 0 14px 38px rgba(29, 37, 33, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid rgba(221, 227, 220, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: clamp(170px, 22vw, 258px);
  height: 54px;
  display: block;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 10px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  background: rgba(31, 107, 79, 0.08);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.search-form input {
  width: 152px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
}

.icon-button,
.button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.icon-button {
  width: 38px;
  background: var(--green);
  color: #fff;
}

.icon-button::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 7px 7px 0 -5px currentColor;
  transform: rotate(45deg);
}

.button {
  min-width: 126px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 32, 24, 0.82), rgba(18, 32, 24, 0.48) 52%, rgba(18, 32, 24, 0.1)),
    url("hero-service.png") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 32, 24, 0.82), rgba(18, 32, 24, 0.52) 50%, rgba(18, 32, 24, 0.18));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(0deg, rgba(18, 32, 24, 0.75), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--marigold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

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

.section {
  padding: 76px 0;
}

.section.alt {
  background: #fff;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.article h1 {
  font-family: Georgia, "Times New Roman", serif;
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 42px;
  align-items: start;
}

.lead {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 21px;
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat strong {
  display: block;
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.notice {
  padding: 22px;
  border-left: 5px solid var(--marigold);
  border-radius: var(--radius);
  background: #fff8ea;
}

.notice h3 {
  margin: 0 0 8px;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.activity-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.activity-card,
.news-card,
.album-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(29, 37, 33, 0.06);
}

.activity-card {
  display: flex;
  flex-direction: column;
}

.activity-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.activity-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.activity-card-content .button {
  align-self: flex-start;
  margin-top: auto;
}

.activity-card .tag,
.news-card .tag,
.album-card .tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.activity-card h3,
.news-card h3,
.album-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.activity-card p,
.news-card p,
.album-card p {
  color: var(--muted);
}

.activity-card a,
.news-card a,
.album-card a {
  text-decoration: none;
}

.swatch {
  height: 9px;
  width: 58px;
  margin-top: 18px;
  border-radius: 20px;
}

.swatch.green {
  background: var(--green);
}

.swatch.clay {
  background: var(--clay);
}

.swatch.blue {
  background: var(--blue);
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr 0.7fr;
  gap: 12px;
  min-height: 360px;
}

.photo-tile {
  display: grid;
  align-content: end;
  min-height: 230px;
  padding: 18px;
  border-radius: var(--radius);
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(18, 32, 24, 0.75), rgba(18, 32, 24, 0.1)),
    url("hero-service.png") center / cover no-repeat;
}

.photo-tile:nth-child(2) {
  background:
    linear-gradient(0deg, rgba(18, 32, 24, 0.74), rgba(18, 32, 24, 0.08)),
    linear-gradient(135deg, #426b8f, #d9962a);
}

.photo-tile:nth-child(3) {
  background:
    linear-gradient(0deg, rgba(18, 32, 24, 0.72), rgba(18, 32, 24, 0.08)),
    linear-gradient(135deg, #1f6b4f, #b35b47);
}

.photo-tile:nth-child(4) {
  background:
    linear-gradient(0deg, rgba(18, 32, 24, 0.72), rgba(18, 32, 24, 0.08)),
    linear-gradient(135deg, #d9962a, #1f6b4f);
}

.photo-tile strong {
  font-size: 18px;
}

.photo-tile span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.news-card img,
.album-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.media-card img {
  height: 260px;
  object-fit: contain;
  background: #f7f1e5;
}

.news-card-content,
.album-card-content {
  padding: 20px;
}

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

.page-hero {
  padding: 78px 0 56px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(270px, 0.28fr);
  gap: 40px;
}

.article {
  max-width: 850px;
}

.article-wide {
  max-width: 980px;
}

.article h2 {
  margin-top: 34px;
  font-size: 30px;
}

.article p,
.article li {
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.article-hero-image {
  width: 100%;
  max-height: 520px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

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

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.side-panel {
  position: sticky;
  top: 98px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.side-panel h2,
.side-panel h3 {
  margin-top: 0;
}

.side-panel ul {
  padding-left: 20px;
  color: var(--muted);
}

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

.filter-bar button {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-bar button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card {
  padding: 22px;
}

.contact-card h2,
.contact-card h3 {
  margin-top: 0;
}

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

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.donation-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.qr-placeholder {
  width: 148px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(31, 107, 79, 0.12) 50%, transparent 50%),
    linear-gradient(rgba(31, 107, 79, 0.12) 50%, transparent 50%);
  background-size: 18px 18px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.search-results {
  display: grid;
  gap: 12px;
}

.result-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-item a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-dark);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .brand-mark {
    width: min(210px, calc(100vw - 112px));
    height: 48px;
  }

  .main-nav,
  .search-form {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .search-form {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form input {
    flex: 1;
    width: auto;
  }

  .hero {
    min-height: 680px;
  }

  .intro-grid,
  .content-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .activity-grid,
  .news-grid,
  .album-grid,
  .article-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero-content {
    padding: 72px 0 62px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .activity-grid,
  .news-grid,
  .album-grid,
  .article-gallery,
  .stat-row,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .donation-box {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 46px;
  }
}
