:root {
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-soft: #eef3eb;
  --ink: #16251f;
  --muted: #617066;
  --line: #d9e1d7;
  --green-900: #173f2f;
  --green-700: #2d684e;
  --green-100: #e5eee7;
  --teal: #315b63;
  --ochre: #9b7438;
  --shadow: 0 18px 45px rgba(22, 37, 31, 0.11);
  --shadow-soft: 0 10px 28px rgba(22, 37, 31, 0.08);
  --radius: 8px;
  --container: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--green-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.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: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 225, 215, 0.86);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 720;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  margin-top: 3px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-900);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  padding: 12px 11px;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--green-100);
  color: var(--green-900);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--green-900);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -7px;
}

.nav-toggle-lines::after {
  top: 7px;
}

.nav-open .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::before {
  transform: translateY(7px) rotate(90deg);
}

.nav-open .nav-toggle-lines::after {
  opacity: 0;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #13291f;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 32, 24, 0.86) 0%, rgba(14, 32, 24, 0.62) 44%, rgba(14, 32, 24, 0.18) 100%),
    linear-gradient(0deg, rgba(14, 32, 24, 0.48), rgba(14, 32, 24, 0.02) 46%),
    url("../img/site/hero.jpg") center / cover no-repeat;
}

.hero-grid {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: end;
  padding-top: 112px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 700px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 650;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 40px;
  color: var(--green-900);
}

h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-900);
}

.hero h1 {
  color: #fff;
  max-width: 680px;
}

.hero-subtitle {
  margin: 22px 0 14px;
  font-size: 25px;
  line-height: 1.28;
  color: #eef7ef;
}

.hero-copy p:not(.hero-subtitle) {
  max-width: 660px;
  color: #e5eee8;
  margin: 0;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 10px 22px rgba(45, 104, 78, 0.23);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-900);
  color: #fff;
}

.button-secondary {
  background: var(--surface);
  color: var(--green-900);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #b7c8ba;
  color: var(--green-900);
  box-shadow: var(--shadow-soft);
}

.hero .button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.48);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 21px;
  margin-bottom: 14px;
}

.hero-panel p {
  margin: 0 0 15px;
}

.hero-panel p:last-child {
  margin-bottom: 0;
}

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

.quick-links {
  position: relative;
  z-index: 2;
  margin-top: -34px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quick-item {
  min-height: 108px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.quick-item strong,
.quick-item small {
  display: block;
}

.quick-item small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 14px;
}

.quick-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green-100);
  color: var(--green-900);
}

.quick-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding: 92px 0;
}

.section-band {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: start;
}

.split.reversed {
  grid-template-columns: 1.05fr 0.95fr;
}

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

.section-heading .button {
  margin-top: 24px;
}

.section-heading.narrow {
  max-width: 730px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.narrow p {
  margin-left: auto;
  margin-right: auto;
}

.service-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

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

.service-row strong,
.service-row span {
  display: block;
}

.service-row span {
  color: var(--muted);
  margin-top: 5px;
}

.text-link {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}

.event-grid,
.community-grid,
.donation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.event-card,
.donation-grid article {
  min-height: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.event-card p,
.donation-grid p,
.community-card p,
.note p {
  margin: 11px 0 0;
  color: var(--muted);
}

.download-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.download-panel h3 {
  margin-bottom: 14px;
}

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.download-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.download-list li:first-child {
  border-top: 0;
}

.download-list a {
  font-weight: 700;
}

.download-list span {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  background: #e8f0f1;
  border-radius: 999px;
  padding: 5px 9px;
}

.download-list.compact li {
  padding: 11px 0;
}

.section-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

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

.online-form-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.online-form-card-wide {
  min-height: 220px;
}

.form-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-status-contact {
  background: #eef0e8;
  color: var(--teal);
}

.form-status-prep {
  background: #fbf2df;
  color: #75531d;
}

.online-form-card h3 {
  margin-bottom: 8px;
}

.online-form-card p {
  margin: 0;
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.button-small {
  min-height: 40px;
  padding: 10px 13px;
  font-size: 14px;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: var(--radius);
  background: #eef3eb;
  color: var(--green-900);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.pdf-link:hover,
.pdf-link:focus-visible {
  color: var(--green-900);
  outline: none;
  box-shadow: inset 0 0 0 1px #b7c8ba;
}

.image-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.image-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-100);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-stack > p {
  margin: 18px 0 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 9px;
  margin: 24px 0;
}

.link-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-weight: 700;
  text-decoration: none;
}

.link-list a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.note {
  border-left: 4px solid var(--ochre);
  background: #fbf7ef;
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

.community-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 180px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.community-card div {
  padding: 22px 22px 22px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

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

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.section-donate {
  background: #f4f2eb;
  border-top: 1px solid #e4dccb;
}

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

.donation-grid article {
  min-height: 150px;
  border-color: #e4dccb;
}

.donation-grid p {
  word-break: break-word;
  font-size: 15px;
}

.donation-note {
  margin: 22px 0 0;
  color: #6e5f45;
  text-align: center;
}

.site-footer {
  background: var(--green-900);
  color: #e8f1eb;
  padding: 42px 0;
}

.site-footer a {
  color: #f2f8f3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-grid p {
  margin: 9px 0 0;
  color: #cbd9cf;
}

.fineprint {
  font-size: 13px;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: end;
  }

  .hero-panel {
    max-width: 520px;
  }

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

  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .brand small {
    display: none;
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

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

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

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero,
  .hero-grid {
    min-height: 610px;
  }

  .hero-grid {
    padding-top: 92px;
    padding-bottom: 54px;
  }

  .hero-media {
    background:
      linear-gradient(0deg, rgba(14, 32, 24, 0.84) 0%, rgba(14, 32, 24, 0.44) 58%, rgba(14, 32, 24, 0.22) 100%),
      url("../img/site/hero.jpg") center / cover no-repeat;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-subtitle {
    font-size: 21px;
  }

  .quick-grid,
  .online-form-grid,
  .split,
  .split.reversed,
  .image-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 0;
    padding-top: 16px;
  }

  .section {
    padding: 68px 0;
  }

  .image-layout,
  .contact-grid,
  .split {
    gap: 32px;
  }

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

@media (max-width: 620px) {
  .brand strong {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel,
  .download-panel,
  .online-form-card,
  .event-card,
  .contact-list article,
  .donation-grid article {
    padding: 20px;
  }

  .quick-item {
    min-height: 92px;
  }

  .service-row,
  .download-list li {
    grid-template-columns: 1fr;
  }

  .online-form-card,
  .online-form-card-wide {
    min-height: auto;
  }

  .form-actions {
    width: 100%;
  }

  .pdf-link {
    width: 100%;
    justify-content: center;
  }

  .text-link {
    white-space: normal;
  }

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

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

  .community-card img {
    height: clamp(170px, 52vw, 230px);
  }

  .community-card div {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
