:root {
  --paper: #fff8ee;
  --surface: #ffffff;
  --ink: #172421;
  --muted: #5d6e68;
  --line: #ddd1c0;
  --saffron: #d96f1c;
  --saffron-dark: #a94f12;
  --green: #1f6f55;
  --teal: #0e5f6b;
  --rose: #92384d;
  --gold: #b98429;
  --shadow: 0 18px 50px rgba(23, 36, 33, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 30;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 252, 246, 0.96);
  border-bottom: 1px solid rgba(185, 132, 41, 0.26);
  box-shadow: 0 12px 32px rgba(23, 36, 33, 0.09);
  backdrop-filter: blur(18px);
}

.header-ribbon {
  background:
    linear-gradient(90deg, rgba(14, 95, 107, 0.98), rgba(31, 111, 85, 0.98) 56%, rgba(169, 79, 18, 0.96));
  color: #fff6e6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.header-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 2rem;
  margin: 0 auto;
}

.header-ribbon a {
  color: #ffffff;
  text-decoration: none;
}

.ribbon-divider {
  width: 1px;
  height: 0.85rem;
  background: rgba(255, 255, 255, 0.38);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3.7rem;
  height: 3.7rem;
  padding: 0.24rem;
  border: 1px solid rgba(185, 132, 41, 0.34);
  border-radius: 50%;
  background: #fffaf1;
  box-shadow: 0 10px 24px rgba(23, 36, 33, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: block;
  color: #172421;
  font-size: 1.05rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.brand-subtitle {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.15;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: #263531;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a {
  padding: 0.52rem 0.66rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(217, 111, 28, 0.11);
  color: var(--saffron-dark);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 24%;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 22, 20, 0.84), rgba(16, 22, 20, 0.54) 46%, rgba(16, 22, 20, 0.2)),
    linear-gradient(0deg, rgba(16, 22, 20, 0.42), rgba(16, 22, 20, 0.05));
}

.hero-content {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 6rem;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd19b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 840px;
  font-size: 3.5rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 690px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--saffron);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--saffron-dark);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.button-light {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.stat-band {
  background: var(--ink);
  color: #ffffff;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1180px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.16);
}

.stat-item {
  min-width: 0;
  padding: 1.4rem 1rem;
  background: var(--ink);
}

.stat-item strong {
  display: block;
  color: #ffd19b;
  font-size: 1.7rem;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.alt-section,
.donation-section,
.volunteer-section,
.contact-section {
  width: 100%;
  max-width: none;
  padding-right: max(1rem, calc((100% - 1180px) / 2));
  padding-left: max(1rem, calc((100% - 1180px) / 2));
}

.alt-section {
  background: #edf6ef;
}

.donation-section {
  background: #15342d;
  color: #ffffff;
}

.volunteer-section {
  background: #f5efe5;
}

.contact-section {
  background: #133b43;
  color: #ffffff;
}

.section-split,
.donation-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 3rem;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.donation-section .section-copy p,
.contact-section .section-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: 680px;
}

.info-panel,
.bank-panel,
.contact-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bank-panel,
.contact-card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.detail-list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.detail-list div {
  min-width: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
}

.contact-card .detail-list dt {
  color: rgba(255, 255, 255, 0.68);
}

.contact-card a {
  color: #ffffff;
}

.mission-grid,
.activity-grid,
.legal-grid,
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mission-card,
.activity-card,
.legal-item,
.action-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mission-card {
  border-top: 4px solid var(--green);
}

.mission-card:nth-child(2) {
  border-top-color: var(--saffron);
}

.mission-card:nth-child(3) {
  border-top-color: var(--teal);
}

.activity-card h3,
.mission-card h3,
.legal-item h3 {
  margin-bottom: 0.6rem;
}

.activity-card p,
.mission-card p,
.legal-item p {
  margin: 0;
  color: var(--muted);
}

.gallery-section {
  padding-top: 5.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 0.9rem;
}

.gallery-item {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #d7ded8;
  cursor: pointer;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
}

.bank-panel h3 {
  margin-bottom: 1rem;
}

.bank-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bank-row span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.bank-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bank-row button {
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.notice {
  padding: 1rem;
  border-left: 4px solid #ffd19b;
  background: rgba(255, 255, 255, 0.09);
}

.copy-status {
  min-height: 1.5rem;
  margin: 0.5rem 0 0;
  color: #ffd19b;
  font-weight: 700;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.team-card img {
  width: 130px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.team-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.action-card {
  display: grid;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
}

.action-card strong {
  font-size: 1.1rem;
}

.action-card span {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem max(1rem, calc((100% - 1180px) / 2));
  background: #0f1d1a;
  color: #ffffff;
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 800;
}

.footer-links a {
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

.gallery-dialog {
  width: min(900px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #0f1d1a;
  color: #ffffff;
}

.gallery-dialog::backdrop {
  background: rgba(15, 29, 26, 0.82);
}

.gallery-dialog img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #0f1d1a;
}

.gallery-dialog p {
  margin: 0;
  padding: 1rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(15, 29, 26, 0.78);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 980px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 0.75rem;
  }

  .stat-grid,
  .mission-grid,
  .activity-grid,
  .legal-grid,
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-split,
  .donation-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-ribbon-inner {
    justify-content: space-between;
    gap: 0.55rem;
  }

  .header-ribbon-message,
  .ribbon-divider {
    display: none;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand-mark {
    width: 3.3rem;
    height: 3.3rem;
  }

  .brand-text {
    font-size: 0.94rem;
  }

  .brand-subtitle {
    font-size: 0.73rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    padding: 4rem 0 4.5rem;
  }

  h1 {
    font-size: 2.18rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .stat-grid,
  .mission-grid,
  .activity-grid,
  .legal-grid,
  .action-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .bank-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .bank-row button {
    width: fit-content;
    padding: 0.3rem 0.7rem;
  }

  .team-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .team-card img {
    width: 96px;
    height: 112px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
