/* How we serve farms (/how-we-serve-farms.html) — the "For Farmers" page:
   the welcome page's Farmer button, the market's farm link and the header's
   For Farmers tab land here. Layout follows Bryce's "Partner with us"
   concept (green hero slab with a matted photo, a gold eyebrow and an
   italic gold second line; numbered qualify rows; a licensing note; a green
   get-in-touch band), on the FarmSource Design System: radii from its
   4/7/8/10/14 ramp, the photo warm grade, letterpress bites on filled
   buttons. Design toolkit rules: 14px content / >=16px headings, semibold,
   immediate hover color changes. No motion. */

* { box-sizing: border-box; }

body.deslop-farms {
  --hw-paper: var(--surface-card, #F5F0E8);
  --hw-linen: var(--surface-linen, #E8E2D8);
  --hw-ground: #F3EFE8;
  --hw-ink: var(--text-primary, #2D2A26);
  --hw-soft: var(--text-secondary, #5C4A32);
  --hw-rule: rgba(107, 94, 80, .45);
  --hw-hairline: rgba(92, 74, 50, .24);
  --hw-green: var(--green-700, #37671E);
  --hw-green-deep: #294D20;
  --hw-slab: #2C4D24;
  --hw-slab-shadow: #1F3819;
  --hw-gold: #E6CB80;
  --hw-olive: #8A7A3C;
  --hw-cream: #FDFBF7;
  --hw-width: min(1180px, calc(100% - 80px));
  margin: 0;
  color: var(--hw-ink);
  background: var(--hw-ground);
  font-family: var(--font-body, 'Golos Text', sans-serif);
  overflow-x: clip;
}

.deslop-farms #fs-app-header {
  background: var(--hw-paper) !important;
  border-bottom-color: var(--hw-hairline) !important;
}

.hw-page { min-height: 100vh; }

/* ---------- Eyebrows ---------------------------------------------------- */
.hw-eyebrow,
.hw-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hw-eyebrow { color: var(--hw-gold); }
.hw-kicker { color: var(--hw-olive); margin-bottom: 10px; }

/* ---------- Hero: Bryce's green slab, the Freeman family photo ---------- */
.hw-hero {
  color: var(--hw-cream);
  background: var(--hw-slab);
}

.hw-hero__inner {
  width: var(--hw-width);
  margin: 0 auto;
  padding: 64px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: center;
}

/* (0,1,1)+: site-deslop-v4.css sets every deslop h1-h3 to the body face. */
.deslop-farms .hw-hero h1 {
  margin: 0;
  color: var(--hw-cream);
  font: 700 clamp(36px, 3.7vw, 54px)/1.1 var(--font-display, Georgia, serif);
  text-wrap: balance;
}

.deslop-farms .hw-hero h1 em,
.deslop-farms .hw-contact h2 em {
  display: block;
  color: var(--hw-gold);
  font-style: italic;
  font-weight: 600;
}

.hw-hero__lead {
  max-width: 36rem;
  margin: 24px 0 0;
  color: rgba(253, 251, 247, .92);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 32px;
}

/* Jump links: the page's section titles, under the lead. Same-page
   anchors; the browser scrolls (smoothly unless reduced motion is set). */
.hw-jump { margin-top: 22px; }

.hw-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-jump a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  color: var(--hw-cream);
  background: rgba(253, 251, 247, .08);
  box-shadow: inset 0 0 0 1px rgba(253, 251, 247, .3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.hw-jump a svg,
.hw-jump a i {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--hw-gold);
}

.hw-jump a:hover {
  color: var(--hw-gold);
  background: rgba(253, 251, 247, .16);
}

@media (prefers-reduced-motion: no-preference) {
  html:has(body.deslop-farms) { scroll-behavior: smooth; }
}

/* mobile-responsive.css pads every anchor jump 72-88px for sticky
   headers; this page's header scrolls away, so the jump lands the
   section 16px from the top instead (its own padding gives the air). */
html:has(body.deslop-farms) { scroll-padding-top: 0; }

.hw-section[id],
.hw-contact[id] { scroll-margin-top: 16px; }

/* Matted photo: cream mat with a hard green offset, as in Bryce's concept. */
.hw-hero__photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-hero__mat {
  padding: 10px;
  border-radius: 4px;
  background: var(--hw-paper);
  box-shadow: 4px 5px 0 var(--hw-slab-shadow);
  aspect-ratio: 3 / 2;
}

.hw-hero__mat img,
.hw-why__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.96) sepia(.06);
}

.hw-hero__photo figcaption {
  color: rgba(253, 251, 247, .8);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Buttons ----------------------------------------------------- */
.hw-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  color: var(--hw-cream);
  background: #477E25;
  box-shadow: inset 0 -1px #2D3A27;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.hw-button:hover { background: var(--hw-green); }
.hw-button:active { background: var(--hw-green-deep); }

/* On the green slabs: a cream button, a cream focus ring. */
.hw-button--cream {
  color: var(--hw-ink);
  background: #F5F0E8;
  box-shadow: inset 0 -1px #8B7D6B;
}

.hw-button--cream:hover { background: var(--hw-cream); }
.hw-button--cream:active { background: #EDE8DE; }

.hw-hero a:focus-visible,
.hw-contact a:focus-visible {
  outline: 2px solid var(--hw-cream);
  outline-offset: 3px;
  border-radius: 4px;
}

.hw-text-link {
  color: var(--hw-cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(253, 251, 247, .5);
  text-underline-offset: 3px;
  border-radius: 4px;
}

.hw-text-link:hover { color: var(--hw-gold); text-decoration-color: currentColor; }

/* ---------- Sections ---------------------------------------------------- */
.hw-section {
  width: var(--hw-width);
  margin: 0 auto;
  padding: 72px 0 0;
}

.hw-section .hw-section__title {
  margin: 0 0 28px;
  color: var(--hw-ink);
  font: 600 clamp(28px, 3vw, 40px)/1.15 var(--font-display, Georgia, serif);
}

/* Why we started: Evan's blurb beside one photo. */
.hw-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hw-why .hw-section__title { margin-bottom: 20px; }

.hw-why__copy p:not(.hw-kicker) {
  margin: 0 0 16px;
  color: var(--hw-soft);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hw-why__photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--hw-linen);
}

/* ---------- Fees: Evan's block, unchanged ------------------------------- */
.hw-fees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px;
  border-radius: 14px;
  background: var(--hw-paper);
  border: 1px solid var(--border-warm, #8B7D6B);
  box-shadow: inset 0 1px 0 rgba(253, 251, 247, .75), inset 0 -1px 0 rgba(139, 125, 107, .35);
}

.hw-fees .hw-fees__keep {
  margin: 0;
  color: var(--hw-ink);
  font: 600 clamp(26px, 2.8vw, 36px)/1.15 var(--font-display, Georgia, serif);
  text-wrap: balance;
}

.hw-fees p {
  margin: 14px 0 0;
  color: var(--hw-soft);
  font-size: 16px;
  line-height: 1.6;
}

.hw-fees__who {
  color: var(--hw-ink) !important;
  font-weight: 600;
}

.hw-rates {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.4;
}

.hw-rates thead th {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hw-rule);
  color: var(--hw-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.hw-rates thead th:last-child,
.hw-rates td { text-align: right; }

.hw-rates tbody th,
.hw-rates td {
  padding: 14px 0;
  border-bottom: 1px solid var(--hw-hairline);
  vertical-align: baseline;
}

.hw-rates tbody th {
  padding-right: 16px;
  color: var(--hw-soft);
  font-weight: 400;
  text-align: left;
}

.hw-rates td {
  color: var(--hw-ink);
  font-weight: 600;
}

.hw-fees .hw-rates__note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 7px;
  color: var(--hw-ink);
  background: #E4ECDA;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* mobile-responsive.css turns every `main table` below 640px into a
   horizontally scrolling block with nowrap cells and !important padding.
   This two-column table wraps instead (the padding needs !important). */
.deslop-farms .hw-rates {
  display: table;
  overflow: visible;
  font-size: 16px;
}

.deslop-farms .hw-rates :is(th, td) { white-space: normal; }
.deslop-farms .hw-rates thead th { padding: 0 0 10px !important; }
.deslop-farms .hw-rates tbody th { padding: 14px 16px 14px 0 !important; }
.deslop-farms .hw-rates td { padding: 14px 0 !important; }

/* ---------- Who can sell: Bryce's three numbered rows ------------------- */
.hw-section .hw-qualify__lead {
  margin: -16px 0 28px;
  color: var(--hw-soft);
  font: italic 600 clamp(20px, 2vw, 24px)/1.3 var(--font-display, Georgia, serif);
}

.hw-ways {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hw-rule);
}

.hw-way {
  display: grid;
  grid-template-columns: 64px minmax(0, .85fr) minmax(0, 1fr);
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hw-rule);
}

.hw-way__num {
  color: var(--hw-olive);
  font: italic 400 36px/1 var(--font-display, Georgia, serif);
}

.deslop-farms .hw-way h3 {
  margin: 0;
  color: var(--hw-ink);
  font: 600 clamp(20px, 2vw, 26px)/1.25 var(--font-display, Georgia, serif);
}

.hw-way p {
  margin: 0;
  color: var(--hw-soft);
  font-size: 16px;
  line-height: 1.65;
}

.hw-note {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 8px 32px;
  margin-top: 28px;
  padding: 28px 32px;
  border-radius: 7px;
  border-left: 4px solid #B8964A;
  background: #EAE3D8;
}

.deslop-farms .hw-note h3 {
  margin: 0;
  color: var(--hw-ink);
  font: 600 clamp(20px, 2vw, 24px)/1.25 var(--font-display, Georgia, serif);
}

.hw-note p {
  margin: 0;
  color: var(--hw-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Get started: Evan's six steps, Farm Hand beside them -------- */
.hw-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  gap: 56px;
  align-items: start;
}

.hw-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hw-rule);
}

.hw-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hw-hairline);
}

.hw-step__num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--hw-cream);
  background: var(--hw-slab);
  font: 600 16px/1 var(--font-display, Georgia, serif);
}

.deslop-farms .hw-step h3 {
  margin: 4px 0 6px;
  color: var(--hw-ink);
  font: 600 clamp(19px, 1.8vw, 22px)/1.3 var(--font-display, Georgia, serif);
}

.hw-step p {
  margin: 0;
  color: var(--hw-soft);
  font-size: 16px;
  line-height: 1.6;
}

.hw-step p strong { color: var(--hw-ink); font-weight: 600; }

.hw-step a {
  color: var(--hw-green);
  font-weight: 600;
  text-underline-offset: 3px;
  text-decoration-color: rgba(55, 103, 30, .45);
}

.hw-step a:hover { color: var(--hw-green-deep); text-decoration-color: currentColor; }

.hw-start__shot {
  position: sticky;
  top: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hw-start__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(45, 42, 38, .16), 0 2px 6px rgba(45, 42, 38, .10);
}

.hw-start__shot figcaption {
  color: var(--hw-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Get in touch: Bryce's green band ---------------------------- */
.hw-contact {
  margin-top: 80px;
  color: var(--hw-cream);
  background: var(--hw-slab);
}

.hw-contact__inner {
  width: var(--hw-width);
  margin: 0 auto;
  padding: 56px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px 56px;
}

.deslop-farms .hw-contact h2 {
  margin: 0;
  color: var(--hw-cream);
  font: 700 clamp(32px, 3.4vw, 46px)/1.12 var(--font-display, Georgia, serif);
}

.hw-contact__body {
  margin: 0;
  color: rgba(253, 251, 247, .92);
  font-size: 18px;
  line-height: 1.6;
}

.hw-contact__lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  margin: 20px 0 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 251, 247, .3);
  font-size: 16px;
  font-weight: 600;
}

.hw-contact__lines a {
  color: var(--hw-cream);
  text-underline-offset: 3px;
  text-decoration-color: rgba(253, 251, 247, .5);
}

.hw-contact__lines a:hover { color: var(--hw-gold); }

/* ---------- Footer (About's) ------------------------------------------- */
.hw-footer {
  background: var(--hw-linen);
  border-top: 1px solid var(--hw-rule);
}

.hw-footer__inner {
  width: var(--hw-width);
  margin: 0 auto;
  padding: 28px 0 31px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--hw-soft);
  font-size: 12px;
  line-height: 1.55;
}

.hw-footer a {
  color: var(--hw-green);
  text-underline-offset: 3px;
  text-decoration-color: rgba(55, 103, 30, .45);
}

.hw-footer a:hover { color: var(--hw-green-deep); text-decoration-color: currentColor; }

/* ---------- Tablet / phone --------------------------------------------- */
@media (max-width: 960px) {
  body.deslop-farms { --hw-width: min(100% - 48px, 1180px); }
  .hw-hero__inner,
  .hw-why { gap: 40px; }
  .hw-fees { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .hw-way { grid-template-columns: 56px minmax(0, 1fr); }
  .hw-way p { grid-column: 2; }
  .hw-note { grid-template-columns: minmax(0, 1fr); }
  .hw-contact__inner { grid-template-columns: minmax(0, 1fr); }
  .hw-start__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 40px; }
}

/* Phones: copy first, so the heading, Register your farm and I'm here to buy
   are in the first screen; the photograph follows. */
@media (max-width: 768px) {
  body.deslop-farms { --hw-width: calc(100% - 32px); }

  .hw-hero__inner,
  .hw-why {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .hw-hero__inner { padding: 32px 0 40px; }
  .deslop-farms .hw-hero h1 { font-size: 36px; }
  .hw-hero__lead { font-size: 16px; margin-top: 16px; }
  .hw-hero__actions { margin-top: 24px; gap: 14px 20px; }
  .hw-jump { margin-top: 18px; }
  .hw-jump a { padding: 5px 10px 5px 7px; }

  .hw-section { padding-top: 56px; }
  .hw-why__copy p:not(.hw-kicker) { font-size: 16px; }
  .hw-fees { padding: 24px 20px; }

  .hw-way { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; }
  .hw-way p { grid-column: auto; }
  .hw-way__num { font-size: 28px; }
  .hw-note { padding: 22px 20px; }

  .hw-start__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hw-start__shot { position: static; width: min(100%, 320px); justify-self: center; }
  .hw-step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; }

  .hw-contact { margin-top: 56px; }
  .hw-contact__inner { padding: 44px 0 48px; }
  .hw-contact .hw-button { width: 100%; }

  .hw-footer__inner { flex-direction: column; gap: 8px; }
}
