:root {
  --ink: #17211d;
  --muted: #5d6861;
  --paper: #fbfaf6;
  --white: #ffffff;
  --leaf: #286b4a;
  --leaf-dark: #17452f;
  --tomato: #c94f39;
  --gold: #e4aa3f;
  --blue: #2d6f86;
  --line: #d9ddd5;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--leaf-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.header-action,
.button.primary {
  color: var(--white);
  background: var(--leaf);
}

.button.primary:hover,
.header-action:hover {
  background: var(--leaf-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.78);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 71px);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.82) 0%, rgba(23, 33, 29, 0.62) 46%, rgba(23, 33, 29, 0.14) 100%),
    url("https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(86px, 13vh, 150px) clamp(18px, 6vw, 86px);
  color: var(--white);
}

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

.hero .eyebrow {
  color: #ffc85f;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

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

.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 66px);
  bottom: 28px;
  width: min(330px, calc(100% - 36px));
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card span {
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin: 5px 0;
  font-size: 2rem;
  line-height: 1;
}

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

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-actions a {
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 28px clamp(18px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-right: 0;
}

.quick-actions a:hover {
  background: #f5f1e9;
}

.icon {
  color: var(--tomato);
  font-size: 0.82rem;
  font-weight: 850;
}

.quick-actions small,
.section p,
.contact-card,
.pantry-card span,
.program-grid p,
.needs-list li {
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 86px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.contact-card {
  margin-top: 26px;
  padding: 18px;
  background: #eef6f1;
  border-left: 5px solid var(--leaf);
  border-radius: 8px;
}

.contact-card strong,
.contact-card span,
.contact-card a {
  display: block;
}

.contact-card strong {
  color: var(--ink);
}

.contact-card a {
  margin-top: 8px;
  color: var(--leaf-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.finder,
.donate-box,
.needs-list,
.shift-tabs {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.07);
}

.finder {
  padding: 20px;
}

.finder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.finder-head h3 {
  margin: 0;
}

label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

select {
  min-height: 40px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pantry-list {
  display: grid;
  gap: 12px;
}

.pantry-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pantry-card strong,
.pantry-card span {
  display: block;
}

.pantry-card em {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.programs {
  background: #eff4ef;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

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

.program-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-grid div {
  padding: 20px;
}

.program-grid p {
  margin-bottom: 0;
}

.volunteer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.volunteer-copy {
  max-width: 650px;
}

.shift-tabs {
  padding: 20px;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

button {
  min-height: 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
button.active,
button.selected {
  color: var(--white);
  background: var(--leaf);
  border-color: var(--leaf);
}

.shift-panel {
  min-height: 150px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--paper);
  border-radius: 8px;
}

.shift-panel p {
  margin-bottom: 14px;
}

.shift-panel dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0;
}

.shift-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.shift-panel dd {
  margin: 0;
}

.donate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 22px;
  background:
    linear-gradient(rgba(251, 250, 246, 0.86), rgba(251, 250, 246, 0.86)),
    url("https://images.unsplash.com/photo-1470549638415-0a0755be0619?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.donate-box,
.needs-list {
  padding: clamp(22px, 4vw, 38px);
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}

.donation-impact {
  min-height: 28px;
  color: var(--leaf-dark);
  font-weight: 850;
}

.needs-list ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 6vw, 86px);
  color: rgba(255, 255, 255, 0.86);
  background: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer a {
  display: block;
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin-bottom: 220px;
  }

  .quick-actions,
  .program-grid,
  .split,
  .volunteer,
  .donate {
    grid-template-columns: 1fr;
  }

  .quick-actions a {
    min-height: 124px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    background:
      linear-gradient(180deg, rgba(23, 33, 29, 0.76) 0%, rgba(23, 33, 29, 0.78) 62%, rgba(23, 33, 29, 0.52) 100%),
      url("https://images.unsplash.com/photo-1593113598332-cd288d649433?auto=format&fit=crop&w=1100&q=82") center / cover;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 14px 244px;
  }

  .hero-card {
    right: 14px;
    bottom: 18px;
  }

  .finder-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .site-footer a {
    text-align: left;
  }
}
