:root {
  --ink: #183333;
  --muted: #5b6d6b;
  --paper: #fffdf8;
  --white: #ffffff;
  --mint: #d9f1e7;
  --teal: #20796f;
  --teal-dark: #115f58;
  --coral: #d75f4f;
  --gold: #f0b44c;
  --sky: #dfeffc;
  --line: rgba(24, 51, 51, 0.16);
  --shadow: 0 18px 60px rgba(24, 51, 51, 0.13);
  --max-width: 1180px;
  --header-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.skip-link,
.visually-hidden {
  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: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 6px;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 34px rgba(24, 51, 51, 0.11);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 260px;
  max-width: min(520px, calc(100vw - 128px));
  padding-left: 16px;
  text-decoration: none;
}

.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 36px;
  background: linear-gradient(180deg, var(--gold), var(--coral));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(240, 180, 76, 0.32);
  transform: translateY(-50%);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

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

.brand small {
  color: currentColor;
  opacity: 0.78;
  font-size: 0.78rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.primary-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.is-scrolled .primary-nav a:hover,
.site-header.is-scrolled .primary-nav a:focus-visible,
.site-header.menu-active .primary-nav a:hover,
.site-header.menu-active .primary-nav a:focus-visible {
  background: var(--mint);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: currentColor;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

.hero {
  position: relative;
  isolation: isolate;
  --hero-shift: 0px;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 54px) clamp(18px, 5vw, 68px) 130px;
  overflow: hidden;
  color: var(--white);
}

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

.hero-image {
  z-index: -2;
  object-fit: cover;
  transform: translate3d(0, var(--hero-shift), 0) scale(1.1);
  transform-origin: center;
  will-change: transform;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 42, 42, 0.82), rgba(17, 95, 88, 0.54) 44%, rgba(24, 51, 51, 0.16)),
    linear-gradient(0deg, rgba(24, 51, 51, 0.54), rgba(24, 51, 51, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -7vw;
  bottom: -58px;
  left: -7vw;
  height: 118px;
  background: var(--paper);
  border-radius: 50% 50% 0 0 / 58% 58% 0 0;
  box-shadow: 0 -28px 60px rgba(17, 95, 88, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 7.2vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions,
.donate-layout .button {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.2;
}

.button-primary {
  color: var(--white);
  background: var(--coral);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #bd4d3f;
  outline: 3px solid rgba(240, 180, 76, 0.55);
  outline-offset: 2px;
}

.button-secondary {
  color: var(--ink);
  background: var(--gold);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #ffd079;
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.impact-strip {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 68px);
  bottom: 28px;
  left: clamp(18px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.impact-strip div {
  padding: 18px;
  background: rgba(10, 51, 48, 0.68);
}

.impact-strip dt {
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 950;
}

.impact-strip dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 68px);
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

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

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

.section-heading.compact {
  margin-bottom: 24px;
}

.split-layout,
.donate-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.section-care {
  background: var(--white);
}

.section-care p {
  color: var(--muted);
  font-size: 1.06rem;
}

.check-list,
.donation-list,
.needs-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.check-list li,
.donation-list li,
.needs-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li + li,
.donation-list li + li {
  margin-top: 12px;
}

.check-list li::before,
.donation-list li::before,
.needs-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border: 3px solid var(--mint);
  border-radius: 50%;
}

.media-panel {
  margin: 0;
}

.media-panel img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-programs {
  background: var(--sky);
}

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

.program-card,
.team-card,
.legal-card {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(24, 51, 51, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.program-card:hover,
.team-card:hover,
.legal-card:hover {
  border-color: rgba(32, 121, 111, 0.28);
  box-shadow: 0 20px 46px rgba(24, 51, 51, 0.12);
  transform: translateY(-4px);
}

.program-card h3,
.team-card h3,
.legal-card h3 {
  color: var(--teal-dark);
}

.program-card p,
.team-card p,
.legal-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-needs {
  background: var(--teal-dark);
  color: var(--white);
}

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

.needs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.needs-list li {
  min-height: 86px;
  padding: 18px 18px 18px 46px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.needs-list li::before {
  top: 23px;
  left: 18px;
  border-color: rgba(255, 255, 255, 0.18);
}

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

.team-card {
  min-height: 250px;
}

.team-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--coral);
  font-weight: 950;
  font-size: 0.9rem;
}

.section-family {
  background: var(--white);
}

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

.timeline-item {
  padding-top: 26px;
  border-top: 3px solid var(--teal);
}

.timeline-item span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 16px;
  color: var(--white);
  background: var(--teal);
  border-radius: 50%;
  font-weight: 900;
}

.timeline-item p {
  color: var(--muted);
}

.section-donate {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 95, 88, 0.96), rgba(32, 121, 111, 0.94)),
    var(--teal);
}

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

.donate-layout {
  align-items: start;
}

.donate-layout p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
}

.donation-list {
  margin-top: 0;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.donation-list li::before {
  background: var(--coral);
}

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

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

.legal-card {
  min-height: 210px;
}

.compliance-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compliance-bar span {
  padding: 16px;
  background: var(--white);
  color: var(--muted);
  font-weight: 760;
}

.section-contact {
  background: var(--white);
}

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

.contact-layout p,
address {
  color: var(--muted);
}

address {
  font-style: normal;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(32, 121, 111, 0.24);
  border-color: var(--teal);
}

.full-span,
.flash-stack {
  grid-column: 1 / -1;
}

.flash-stack {
  display: grid;
  gap: 8px;
}

.flash {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 760;
}

.flash-success {
  color: #164d35;
  background: #d9f1e7;
}

.flash-error {
  color: #7a241d;
  background: #ffe0dc;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 68px);
  color: var(--white);
  background: #17302f;
}

.site-footer p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

html.js [data-reveal] {
  --reveal-x: 0;
  --reveal-y: 34px;
  --reveal-scale: 0.98;
  --reveal-rotate: 0deg;
  --reveal-delay: 0ms;
  opacity: 0;
  filter: blur(8px);
  transform:
    translate3d(var(--reveal-x), var(--reveal-y), 0)
    scale(var(--reveal-scale))
    rotate(var(--reveal-rotate));
  transition:
    opacity 720ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 720ms ease,
    transform 880ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay);
  will-change: opacity, filter, transform;
}

html.js [data-reveal="left"] {
  --reveal-x: -64px;
  --reveal-y: 18px;
}

html.js [data-reveal="right"] {
  --reveal-x: 64px;
  --reveal-y: 18px;
}

html.js [data-reveal="rise"] {
  --reveal-y: 58px;
  --reveal-scale: 0.96;
}

html.js [data-reveal="zoom"] {
  --reveal-y: 22px;
  --reveal-scale: 0.9;
}

html.js [data-reveal="tilt-left"] {
  --reveal-x: -46px;
  --reveal-y: 24px;
  --reveal-scale: 0.94;
  --reveal-rotate: -2.4deg;
}

html.js [data-reveal="tilt-right"] {
  --reveal-x: 46px;
  --reveal-y: 24px;
  --reveal-scale: 0.94;
  --reveal-rotate: 2.4deg;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

html.js .program-card[data-reveal].is-visible:hover,
html.js .team-card[data-reveal].is-visible:hover,
html.js .legal-card[data-reveal].is-visible:hover {
  transform: translate3d(0, -4px, 0);
}

@media (max-width: 1040px) {
  .program-grid,
  .team-grid,
  .needs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid,
  .compliance-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    grid-template-columns: 1fr;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .primary-nav a {
    color: var(--ink);
  }

  .hero {
    min-height: 92vh;
    padding-bottom: 178px;
  }

  .impact-strip,
  .split-layout,
  .donate-layout,
  .contact-layout,
  .timeline {
    grid-template-columns: 1fr;
  }

  .impact-strip {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .impact-strip div {
    padding: 14px;
  }

  .media-panel img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .brand {
    min-width: 0;
    max-width: calc(100vw - 112px);
  }

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

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100vh;
    padding-top: 116px;
    padding-bottom: 54px;
    align-items: start;
  }

  .impact-strip {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 26px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .button,
  .site-footer {
    width: 100%;
  }

  .button {
    min-height: 50px;
  }

  .program-grid,
  .team-grid,
  .needs-list,
  .legal-grid,
  .compliance-bar,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .program-card,
  .team-card,
  .legal-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .program-card:hover,
  .team-card:hover,
  .legal-card:hover,
  html.js .program-card[data-reveal].is-visible:hover,
  html.js .team-card[data-reveal].is-visible:hover,
  html.js .legal-card[data-reveal].is-visible:hover {
    transform: none;
  }
}
