@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  --harvest: #2e5339;
  --harvest-deep: #23402c;
  --amber: #b8860b;
  --amber-deep: #8d6808;
  --parchment: #fbf9f5;
  --parchment-deep: #f3efe6;
  --slate: #2c2c2c;
  --slate-soft: #4e4e4e;
  --line: #e3ddd2;
  --white: #ffffff;
  --max: 72rem;
  --header-offset: 8.25rem;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --shadow: 0 10px 30px rgba(44, 44, 44, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--parchment);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--harvest);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--harvest-deep);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

[data-pending] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--amber);
  color: var(--slate);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  box-shadow: 0 1px 0 var(--line);
}

.header-brand {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: min(16.5rem, 58vw);
  height: auto;
}

.header-brand .header-donate {
  display: inline-flex;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  background: var(--harvest);
}

.site-nav > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: var(--max);
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--parchment);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav > ul > li {
  display: flex;
  align-items: center;
  position: relative;
}

.site-nav > ul > li > a {
  padding: 0.85rem 0.75rem;
  border-bottom: 3px solid transparent;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber);
}

.sub-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--parchment);
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.sub-toggle span {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 16.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.4rem 0;
  z-index: 20;
}

.submenu a {
  display: block;
  color: var(--slate);
  padding: 0.55rem 1rem;
  font-weight: 500;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--parchment-deep);
  color: var(--harvest);
}

.has-sub.is-open > .submenu {
  display: block;
}

.site-nav > ul > li.nav-cta {
  display: none;
}

.nav-cta .btn {
  margin: 0.4rem 0;
  padding: 0.55rem 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  background: var(--harvest);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.btn:hover {
  background: var(--harvest-deep);
  color: var(--white);
}

.btn-amber {
  background: var(--amber);
  color: var(--slate);
}

.btn-amber:hover {
  background: var(--amber-deep);
  color: var(--white);
}

.btn-green {
  background: var(--harvest);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--harvest);
  border-color: var(--harvest);
}

.btn-outline:hover {
  background: var(--harvest);
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Type */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--harvest);
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.3rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--slate-soft);
  max-width: 42rem;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--amber);
  margin: 0 0 0.4rem;
}

.section {
  padding: 3.25rem 1.25rem;
}

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

.page {
  padding: 2.5rem 1.25rem 4rem;
}

.section-alt {
  background: var(--parchment-deep);
}

.section-green {
  background: var(--harvest);
  color: var(--parchment);
}

.section-green h2,
.section-green h3 {
  color: var(--parchment);
}

/* Home hero */
.hero {
  position: relative;
  min-height: clamp(26rem, 70vh, 38rem);
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 40, 30, 0.82) 0%, rgba(26, 40, 30, 0.45) 55%, rgba(26, 40, 30, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  width: 100%;
}

.hero h1,
.hero p {
  color: var(--white);
  max-width: 38rem;
}

.hero .lede {
  color: rgba(251, 249, 245, 0.92);
  font-size: 1.15rem;
}

/* Stats */
.stats {
  background: var(--harvest);
  color: var(--parchment);
}

.stats ul {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 16rem));
  justify-content: center;
  gap: 1rem;
}

.stats li {
  text-align: center;
  padding: 0.5rem 0.75rem;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}

.stats span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.served-map {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 435;
  margin: 0.25rem 0 0;
  border: 0;
  background: var(--parchment);
}

.served-countries {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.served-countries li,
.prose .served-countries li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  color: var(--slate);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

.card-body {
  padding: 1.2rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.card-body p {
  margin: 0;
  color: var(--slate-soft);
  flex: 1;
}

.card-body .btn {
  align-self: flex-start;
}

.video-wrap {
  margin: 1.5rem auto 0;
  max-width: 52rem;
  aspect-ratio: 16 / 9;
  background: #1c1c1c;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: clamp(12rem, 32vw, 18rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--harvest-deep);
}

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

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 64, 44, 0.15), rgba(35, 64, 44, 0.72));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.25rem 1.6rem;
}

.page-hero h1 {
  color: var(--white);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

.split img,
.frame img {
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.prose p,
.prose li {
  color: var(--slate-soft);
}

.prose p {
  margin: 0 0 0.95rem;
}

.highlight-list {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.highlight-list li {
  background: var(--white);
  border-left: 4px solid var(--amber);
  padding: 0.8rem 1rem;
}

.highlight-list strong {
  color: var(--harvest);
}

.person-grid,
.board-list,
.tier-grid,
.advantage-grid,
.channel-grid {
  display: grid;
  gap: 1rem;
}

.person-grid,
.advantage-grid {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.person-card,
.panel,
.tier,
.advantage,
.channel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem;
}

.person-card .role,
.tier .amount {
  color: var(--amber-deep);
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.board-list {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.board-list li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.process-list {
  display: grid;
  gap: 2rem;
}

.process-step {
  display: grid;
  grid-template-columns: minmax(0, 18rem) 1fr;
  gap: 1.4rem;
  align-items: center;
}

.process-step.no-photo {
  grid-template-columns: 1fr;
}

.process-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  color: var(--amber-deep);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

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

.field-photos {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  max-width: 52rem;
}

.field-photos img {
  aspect-ratio: 3 / 4;
  object-position: center 18%;
}

.crop-top {
  object-position: center 16%;
}

.crop-rack {
  object-position: center 32%;
}

.crop-bottom {
  object-position: center 82%;
}

.content-photo {
  width: 100%;
  margin: 0.25rem 0 1.1rem;
  border: 1px solid var(--line);
}

.tier-grid,
.channel-grid {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.tier .amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.tier .btn,
.channel .btn {
  margin-top: 0.85rem;
}

.channel input[type="image"] {
  max-width: 10rem;
}

#give-online .qgiv-embed-container {
  margin: 1rem auto 0;
  max-width: 100%;
}

.channel img {
  width: auto;
  max-height: 2.6rem;
  margin-bottom: 0.75rem;
}

.channel img[alt="Venmo for Sus Manos Gleaners"] {
  max-height: 4.5rem;
}

.channel form {
  margin: 0.75rem 0 0;
}

.supply-list,
.crop-groups {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--slate-soft);
}

.crop-groups {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
}

.crop-groups h3 {
  margin-bottom: 0.25rem;
}

/* Forms */
.form {
  display: grid;
  gap: 0.8rem;
}

.form label,
.checks label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.checks {
  border: 1px solid var(--line);
  padding: 0.8rem 1rem;
  margin: 0;
}

.checks legend {
  font-weight: 700;
  padding: 0 0.3rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-top: 0.35rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  width: 100%;
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--slate-soft);
  margin: 0 0 0.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.news-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.news-links a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
}

.news-links a:hover {
  border-color: var(--harvest);
}

.stat-note {
  background: #e7f0e4;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--harvest);
  margin: 1rem 0;
  color: var(--slate-soft);
}

/* Footer */
.site-footer {
  background: var(--harvest);
  color: var(--parchment);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr auto;
  gap: 1.75rem;
}

.footer-brand img {
  width: 9.5rem;
  background: var(--parchment);
  padding: 0.65rem;
}

.tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.85rem 0 0;
  color: var(--white);
}

.site-footer h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--parchment);
  margin: 0.2rem 0;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-legal {
  border-top: 1px solid rgba(251, 249, 245, 0.2);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.4rem;
  font-size: 0.9rem;
  color: rgba(251, 249, 245, 0.88);
}

.footer-legal p {
  margin: 0.2rem 0;
}

@media (min-width: 861px) {
  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu {
    display: block;
  }
}

@media (max-width: 860px) {
  :root {
    --header-offset: 5.5rem;
  }

  .header-brand {
    flex-wrap: wrap;
  }

  .nav-toggle,
  .sub-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

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

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 0 0.8rem;
    gap: 0;
  }

  .site-nav > ul > li {
    flex-wrap: wrap;
    align-items: center;
  }

  .site-nav > ul > li > a {
    flex: 1;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    border: 0;
    box-shadow: none;
    background: var(--harvest-deep);
    padding: 0 0 0.4rem;
  }

  .submenu a {
    color: var(--parchment);
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    background: transparent;
    color: var(--white);
  }

  .nav-cta {
    display: none;
  }

  .card-grid,
  .split,
  .contact-grid,
  .process-step,
  .photo-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .photo-strip,
  .field-photos {
    grid-template-columns: 1fr 1fr;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(26, 40, 30, 0.35), rgba(26, 40, 30, 0.82));
  }
}

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