:root {
  --ink: #182625;
  --muted: #5d6f6c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --teal: #1b7f78;
  --teal-dark: #0f5652;
  --coral: #e8725c;
  --gold: #f1bd57;
  --mint: #dff0ea;
  --line: #d9e4df;
  --shadow: 0 18px 45px rgba(24, 38, 37, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 54px);
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 250, 246, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(24, 38, 37, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  min-width: 0;
}

.brand small {
  display: block;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.76;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: rgba(27, 127, 120, 0.2);
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(24, 38, 37, 0.12);
}

.brand-mark img {
  width: 128%;
  height: 128%;
  object-fit: cover;
  object-position: center;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.96rem;
  font-weight: 650;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-cta,
.button.primary {
  background: var(--coral);
  color: #ffffff;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--teal-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(18px, 5vw, 72px) 76px;
  color: #ffffff;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 38, 37, 0.86), rgba(9, 38, 37, 0.54) 45%, rgba(9, 38, 37, 0.14) 100%),
    linear-gradient(0deg, rgba(9, 38, 37, 0.3), rgba(9, 38, 37, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.section,
.mission-band,
.access-band,
.volunteer-band {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.mission-band {
  background: var(--teal-dark);
  color: #ffffff;
}

.mission-grid,
.access-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.mission-grid p:last-child,
.access-copy p,
.volunteer-layout p,
.contact-intro > p {
  margin: 0;
  color: currentColor;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.mission-grid p:last-child {
  color: rgba(255, 255, 255, 0.86);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 285px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 25px rgba(24, 38, 37, 0.05);
}

.icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.access-band {
  background: #eef6f1;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
}

.step span {
  color: var(--teal);
  font-weight: 850;
}

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

.impact-section {
  background: var(--paper);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.impact-item {
  min-height: 172px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.impact-item strong,
.impact-item span {
  display: block;
}

.impact-item strong {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.impact-item span {
  color: var(--muted);
}

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

.volunteer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) auto;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.volunteer-layout p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section {
  background: #ffffff;
}

.documents-section {
  background: #f7f1e5;
}

.documents-layout {
  display: grid;
  gap: 26px;
}

.documents-intro {
  max-width: 780px;
}

.documents-intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.login-panel,
.document-library {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  gap: 18px;
  max-width: 560px;
  padding: clamp(20px, 4vw, 34px);
}

.login-panel.is-hidden {
  display: none;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.login-form input {
  width: 100%;
  border: 1px solid #cbdad4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

.login-form input:focus {
  outline: 3px solid rgba(27, 127, 120, 0.18);
  border-color: var(--teal);
}

.login-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.document-library {
  display: grid;
  gap: 28px;
  padding: clamp(20px, 4vw, 34px);
}

.document-library.is-locked {
  display: none;
}

.document-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.document-toolbar h3,
.document-toolbar p,
.document-group h4 {
  margin: 0;
}

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

.document-group {
  display: grid;
  gap: 14px;
}

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

.document-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-card:hover,
.document-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 14px 28px rgba(24, 38, 37, 0.1);
}

.document-card span {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 850;
}

.document-card strong {
  line-height: 1.22;
}

.document-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  color: var(--teal-dark);
  font-weight: 750;
}

.forms-stack {
  display: grid;
  gap: 22px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.volunteer-form {
  background: #f3faf7;
}

.form-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

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

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid #cbdad4;
  border-radius: 6px;
}

.contact-form legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 750;
}

.contact-form .choice {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 650;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbdad4;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
}

.contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  padding: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(27, 127, 120, 0.18);
  border-color: var(--teal);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.site-footer {
  background: #10211f;
  color: rgba(255, 255, 255, 0.76);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    cursor: pointer;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    display: none;
    grid-column: 1 / -1;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

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

  .hero {
    min-height: 88vh;
  }

  .mission-grid,
  .access-grid,
  .contact-grid,
  .volunteer-layout {
    grid-template-columns: 1fr;
  }

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

  .volunteer-layout .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 18px 58px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 38, 37, 0.88), rgba(9, 38, 37, 0.58)),
      linear-gradient(0deg, rgba(9, 38, 37, 0.32), rgba(9, 38, 37, 0.08));
  }

  h1 {
    font-size: clamp(3rem, 20vw, 5.2rem);
  }

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

  .button {
    width: 100%;
  }

  .service-grid,
  .impact-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .document-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .document-toolbar .button {
    width: 100%;
  }

  .service-card,
  .impact-item {
    min-height: auto;
  }

  .form-row,
  .contact-form fieldset {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
