:root {
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-muted: #eef4ef;
  --color-text: #172322;
  --color-subtle: #53615e;
  --color-brand: #0f3d3e;
  --color-brand-2: #276b5f;
  --color-accent: #c77a35;
  --color-line: #d9e2dc;
  --shadow: 0 18px 45px rgba(15, 61, 62, .13);
  --radius: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-brand);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

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

.narrow { width: min(100% - 32px, 880px); }

.section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: 90px;
}

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

.section-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-2));
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-accent .eyebrow,
.section-accent .tag { color: #ffd8ae; }

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
}

h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 16px; }

.lead {
  color: #31413e;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--color-brand);
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid rgba(217, 226, 220, .8);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand img { width: 171px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.main-nav a:hover,
.main-nav a[aria-current="true"] {
  color: var(--color-brand);
  background: #e5efe8;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--color-brand);
  content: "";
}

.nav-toggle-line::before { transform: translateY(-7px); }
.nav-toggle-line::after { transform: translateY(5px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero { padding-top: clamp(42px, 7vw, 86px); }

.hero-grid,
.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, .72fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.hero-copy { align-self: center; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--color-brand);
}

.button-primary:hover {
  color: #fff;
  background: #174c4d;
}

.button-secondary {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background: transparent;
}

.button-light {
  color: var(--color-brand);
  background: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 800;
}

.text-link.light { color: #fff; }

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.hero-facts dt {
  color: var(--color-subtle);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
}

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 14px 16px;
  color: var(--color-subtle);
  font-size: .95rem;
}

.quote-panel,
.donation-box,
.contact-form {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.quote-panel { border-left: 6px solid var(--color-accent); }

.card-grid,
.feature-grid,
.event-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.event-card,
.feature-card,
.faq-item,
.legal-details {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 10px 26px rgba(15, 61, 62, .07);
}

.card { padding: 24px; }

.card-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-line);
}

.process-grid > div {
  padding: 24px;
  background: #fff;
}

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

.feature-card,
.event-card {
  overflow: hidden;
}

.feature-card img,
.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dfe7e1;
}

.feature-card div,
.event-card div { padding: 22px; }

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.check-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
}

.donation-box {
  color: var(--color-text);
  background: rgba(255, 255, 255, .95);
}

.donation-box .text-link.light {
  color: var(--color-brand);
}

.donation-box .text-link.light:hover {
  color: #7a421b;
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery img:nth-child(1),
.gallery img:nth-child(4) {
  grid-column: span 2;
}

.gallery img:nth-child(3) {
  grid-column: span 2;
}

summary {
  min-height: 52px;
  padding: 16px 20px;
  font-weight: 900;
  cursor: pointer;
}

.legal-copy {
  color: #2d3d3a;
}

.legal-copy h3 {
  margin-top: 24px;
  font-size: 1.2rem;
}

.legal-details .legal-copy,
.faq-item p {
  padding: 0 20px 20px;
}

.faq-item + .faq-item { margin-top: 12px; }

address {
  font-style: normal;
}

.contact-grid { align-items: start; }

.contact-form {
  display: grid;
  gap: 10px;
}

label { font-weight: 800; }

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b8c7c1;
  border-radius: var(--radius);
  color: var(--color-text);
  background: #fff;
  font: inherit;
}

textarea { resize: vertical; }

.form-note {
  margin: 4px 0 0;
  color: var(--color-subtle);
  font-size: .92rem;
}

.site-footer {
  padding: 42px 0;
  color: #d9e8e4;
  background: #102b2b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.site-footer a {
  display: inline-block;
  margin: 4px 8px;
  color: #fff;
}

.copyright { margin: 0; }

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .card-grid.four,
  .process-grid,
  .feature-grid,
  .event-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img,
  .gallery img:nth-child(1),
  .gallery img:nth-child(3),
  .gallery img:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .container,
  .narrow { width: min(100% - 24px, var(--container)); }

  .section { padding: 56px 0; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  .footer-grid { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
