:root {
  --ink: #1f2933;
  --black: #111827;
  --paper: #fffdf8;
  --white: #ffffff;
  --mist: #eef4f6;
  --teal: #007c89;
  --deep-teal: #005e68;
  --coral: #e85d75;
  --gold: #f2b84b;
  --lavender: #8b5cf6;
  --border: #d8e1e5;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--teal);
  color: var(--white);
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand img { width: min(260px, 52vw); height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .9rem;
  font-weight: 700;
}
.site-nav a,
.nav-parent {
  border: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  padding: .6rem .25rem;
}
.site-nav a:hover,
.nav-parent:hover,
.site-nav a:focus-visible,
.nav-parent:focus-visible {
  color: var(--teal);
  outline: none;
}
.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  left: 0;
  top: calc(100% + .25rem);
  min-width: 240px;
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: .5rem;
  border-radius: 8px;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu { display: grid; }
.nav-menu a { padding: .75rem; border-radius: 6px; }
.nav-menu a:hover { background: var(--mist); }
.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: .7rem .9rem;
  font-weight: 800;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.button-primary { background: var(--teal); color: var(--white); }
.button-primary:hover { background: var(--deep-teal); }
.button-secondary { background: var(--white); color: var(--teal); border-color: var(--teal); }
.button-secondary:hover { background: #e6f5f6; }
.button-donate { background: var(--coral); color: var(--white); }
.button-donate:hover { background: #cc465f; }
.nav-donate { margin-left: .5rem; }
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--black);
}
.hero-page { min-height: 520px; }
.hero-media { position: absolute; inset: 0; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, .78), rgba(17, 24, 39, .44), rgba(17, 24, 39, .18));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.carousel-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.carousel-image.is-active { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0;
  color: var(--white);
}
.hero-content h1,
.page-heading h1,
.section-heading h2,
.split h2,
.newsletter h2 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
  color: inherit;
  letter-spacing: 0;
}
.hero-content h1 {
  max-width: 850px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .98;
}
.hero-copy {
  max-width: 680px;
  font-size: 1.15rem;
  margin: 1.5rem 0 0;
}
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--gold); }
.section {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0;
}
.section-muted {
  width: 100%;
  max-width: none;
  background: var(--mist);
  padding-left: max(1.5rem, calc((100vw - var(--container)) / 2));
  padding-right: max(1.5rem, calc((100vw - var(--container)) / 2));
}
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2,
.split h2,
.newsletter h2 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  color: var(--black);
}
.page-heading {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0 2rem;
}
.page-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  color: var(--black);
}
.page-heading p { max-width: 760px; font-size: 1.12rem; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; }
.copy-stack > * + * { margin-top: 1.2rem; }
.text-link {
  color: var(--teal);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.action-card,
.info-card,
.event-card,
.resource-card,
.team-card,
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.action-card { padding: 1.5rem; text-decoration: none; }
.action-card span {
  display: block;
  color: var(--black);
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: .5rem;
}
.action-card:hover { border-color: var(--teal); }
.event-card img,
.team-card img,
.partner-card img,
.resource-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.team-card img { aspect-ratio: 3 / 4; }
.event-card > div,
.info-card,
.team-card > div,
.partner-card > div,
.resource-card > div { padding: 1.35rem; }
.board-card h3 { margin-bottom: 0; }
.board-card h3 a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.board-card h3 a:hover { color: var(--teal); }
.board-cta { margin-top: 2rem; }
.meta {
  margin: 0 0 .35rem;
  color: var(--coral);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
h3 {
  margin: 0 0 .65rem;
  color: var(--black);
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.18;
}
.image-band {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
}
.image-band img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
}
.image-band img:nth-child(2) { margin-top: 3rem; }
.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--black);
  color: var(--white);
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 5rem;
}
.newsletter h2 { color: var(--white); }
.signup-form { display: flex; gap: .75rem; }
input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1rem;
  font: inherit;
}
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-grid {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo { max-width: 280px; margin-bottom: 1rem; }
.site-footer h2 {
  margin: 0 0 .8rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.site-footer a { display: block; text-decoration: none; margin: .4rem 0; }
.site-footer a:hover { color: var(--teal); }
.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;
}
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.list-card ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.step-list { counter-reset: steps; display: grid; gap: 1rem; padding: 0; }
.step-list li {
  counter-increment: steps;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}
.step-list li::before {
  content: counter(steps);
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-right: .75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
}
.cta-band {
  background: var(--teal);
  color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cta-band h2 { color: var(--white); margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.plain-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.plain-form label { display: grid; gap: .35rem; font-weight: 700; }
.directory-tools { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.is-open { display: flex; }
  .nav-menu {
    position: static;
    max-height: none;
    overflow: visible;
    display: grid;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1rem;
    background: transparent;
  }
  .nav-parent { pointer-events: none; font-weight: 800; }
  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .content-grid,
  .split,
  .newsletter,
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 2rem; }
  .signup-form,
  .directory-tools,
  .cta-band { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .header-inner {
    gap: .75rem;
    padding: 0 1rem;
  }
  .brand { min-width: 0; }
  .brand img { width: min(220px, 58vw); }
  .menu-toggle {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .hero-content {
    width: calc(100% - 2rem);
    max-width: 100%;
    padding: 5rem 0;
  }
  .hero-content h1 {
    font-size: clamp(2.25rem, 10vw, 3rem);
    overflow-wrap: break-word;
  }
  .button-row,
  .signup-form { flex-direction: column; }
  .button { width: 100%; }
  .section,
  .page-heading {
    width: calc(100% - 2rem);
    max-width: var(--container);
    padding: 3.5rem 0;
  }
  .image-band { grid-template-columns: 1fr; }
  .image-band img,
  .image-band img:nth-child(2) { height: 260px; margin-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
