:root {
  --bg: #f7f4ea;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --surface-accent: #e8f1fb;
  --text: #1f2a2a;
  --muted: #5b6a6a;
  --primary: #4b7f68;
  --primary-dark: #355b4b;
  --donate: #d62839;
  --donate-dark: #a31d2b;
  --purple: #6a1b9a;
  --border: #d7e0db;
  --shadow: 0 18px 40px rgba(43, 67, 59, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(180deg, #faf8f1 0%, #f5faf7 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.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;
}

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

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 241, 0.9);
  border-bottom: 1px solid rgba(215, 224, 219, 0.8);
  overflow-x: clip;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-dark);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 1.6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  margin: 0.24rem 0;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.page-hero {
  padding: 5.5rem 0 3rem;
}

.hero-grid,
.split-section,
.form-grid,
.content-grid,
.footer-grid,
.cta-strip-content {
  display: grid;
  gap: 1.5rem;
}

.hero-grid > *,
.split-section > *,
.form-grid > *,
.content-grid > *,
.footer-grid > *,
.cta-strip-content > * {
  min-width: 0;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0.3rem 0 1rem;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 1.08;
}

.hero-text,
.page-hero p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.92rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(75, 127, 104, 0.22);
}

.button-secondary {
  background: transparent;
  color: var(--primary-dark);
}

.button-donate {
  border-color: var(--donate);
  background: var(--donate);
  color: #fff;
}

.button-donate:hover {
  box-shadow: 0 10px 24px rgba(214, 40, 57, 0.24);
}

.button-small {
  padding: 0.72rem 1.1rem;
}

.hero-panel,
.info-card,
.step-card,
.value-panel,
.content-card,
.detail-card,
.focus-section,
.form-panel,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(232, 241, 251, 0.95) 0%, rgba(238, 245, 242, 0.95) 100%);
}

.panel-label {
  margin: 0 0 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.hero-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.3;
}

.panel-list,
.bullet-list,
.contact-list,
.site-footer ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section {
  padding: 1.5rem 0 4.5rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(232, 241, 251, 0.55) 0%, rgba(238, 245, 242, 0.55) 100%);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.8rem;
}

.section-heading h2,
.split-section h2,
.content-card h2,
.form-panel h2,
.contact-card h2,
.focus-section h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.section-heading p,
.split-section p,
.content-card p,
.detail-card p,
.focus-section p,
.contact-note {
  color: var(--muted);
}

.card-grid,
.step-grid,
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

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

.info-card,
.step-card,
.detail-card {
  padding: 1.5rem;
}

.info-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: #aec8bb;
}

.icon-badge {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: var(--surface-accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.info-card h3,
.step-card h3,
.detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

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

.step-card span {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--primary);
  font-weight: 700;
}

.split-section {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.value-panel,
.content-card,
.form-panel,
.contact-card,
.focus-section {
  padding: 1.8rem;
}

.support-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(214, 40, 57, 0.18);
  border-radius: var(--radius-md);
}

.support-panel p {
  margin: 0;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.1rem;
}

.pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-accent);
  color: var(--primary-dark);
  font-weight: 600;
}

.cta-strip {
  padding-bottom: 5rem;
}

.cta-strip-content {
  grid-template-columns: 1.2fr auto;
  align-items: center;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-main {
  min-height: calc(100vh - 220px);
}

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

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

.stacked-sections {
  display: grid;
  gap: 1.4rem;
}

.pilot-note {
  margin-top: 1.1rem;
  color: var(--primary-dark);
  font-weight: 600;
}

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

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #cad7d0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(75, 127, 104, 0.15);
  border-color: var(--primary);
}

.field-note,
.amount-note {
  margin: -0.15rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status.is-error {
  color: var(--donate-dark);
}

.form-status.is-success {
  color: var(--primary-dark);
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 24, 25, 0.58);
}

.donation-modal.is-open {
  display: flex;
}

.donation-modal-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(31, 42, 42, 0.2);
}

.donation-modal-copy {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.donation-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #f4f1f1;
  color: var(--donate-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.site-footer {
  padding: 2.4rem 0 3rem;
  background: #eff4f0;
  border-top: 1px solid rgba(215, 224, 219, 0.9);
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.page-pending {
  background: seagreen;
}

.pending-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
  padding: 3rem 0 4rem;
}

.pending-card {
  max-width: 780px;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pending-card strong {
  display: block;
  color: var(--purple);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.3;
}

@media (max-width: 960px) {
  .nav-wrap {
    min-height: 72px;
  }

  .site-nav {
    gap: 0.95rem;
  }

  .hero-grid,
  .split-section,
  .cta-strip-content,
  .content-grid,
  .form-grid,
  .footer-grid,
  .detail-grid,
  .card-grid,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid > :first-child,
  .cta-strip-content > :first-child {
    grid-column: 1 / -1;
  }

  .hero,
  .page-hero {
    padding-top: 4.8rem;
  }

  .section {
    padding: 1.2rem 0 3.6rem;
  }

  .value-panel,
  .content-card,
  .form-panel,
  .contact-card,
  .focus-section {
    padding: 1.45rem;
  }

  .site-footer {
    padding: 2rem 0 2.6rem;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 66px;
    gap: 0.65rem;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
  }

  .brand-text strong {
    font-size: 0.93rem;
    line-height: 1.2;
  }

  .brand-text small {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .nav-actions {
    order: 2;
    margin-left: 0;
  }

  .nav-actions .button {
    padding: 0.52rem 0.82rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    order: 3;
    width: 2rem;
    height: 1.6rem;
    padding: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

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

  .hero,
  .page-hero {
    padding-top: 4rem;
    padding-bottom: 2.1rem;
  }

  .hero-grid,
  .split-section,
  .cta-strip-content,
  .content-grid,
  .form-grid,
  .footer-grid,
  .detail-grid,
  .card-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a.active::after {
    bottom: -0.15rem;
  }

  .hero-panel h2 {
    font-size: 1.3rem;
  }

  .section-heading {
    margin-bottom: 1.25rem;
  }

  .section-heading h2,
  .split-section h2,
  .content-card h2,
  .form-panel h2,
  .contact-card h2,
  .focus-section h2 {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }

  .hero-actions {
    gap: 0.7rem;
    margin-top: 1.2rem;
  }

  .button {
    width: 100%;
    padding: 0.86rem 1rem;
  }

  .cta-strip-content {
    padding: 1.35rem;
    gap: 1rem;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 0.84rem 0.9rem;
  }

  .donation-modal {
    align-items: flex-end;
    padding: 0;
  }

  .donation-modal-dialog {
    width: 100%;
    max-height: 86vh;
    border-radius: 18px 18px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 1.25rem 1rem 1rem;
  }

  .donation-modal-close {
    top: 0.6rem;
    right: 0.75rem;
    width: 2.2rem;
    height: 2.2rem;
  }

  .pending-wrap {
    padding: 1.2rem 0 1.4rem;
  }

  .pending-card {
    width: min(calc(100% - 1rem), 780px);
    padding: 1.35rem 1rem;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .nav-wrap {
    min-height: 62px;
  }

  .brand-text small {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    margin-top: 0.4rem;
    font-size: 1.9rem;
    line-height: 1.15;
  }

  .nav-actions .button {
    width: auto;
    padding: 0.5rem 0.72rem;
    font-size: 0.72rem;
  }

  .section {
    padding-bottom: 2.7rem;
  }

  .eyebrow {
    letter-spacing: 0.08em;
    font-size: 0.78rem;
  }

  .info-card,
  .step-card,
  .detail-card,
  .value-panel,
  .content-card,
  .form-panel,
  .contact-card,
  .focus-section {
    border-radius: 16px;
    padding: 1.05rem;
  }

  .site-footer {
    padding: 1.7rem 0 2rem;
  }
}
