:root {
  /* ink & surfaces */
  --ink:        #313131;  /* charcoal — all body text, dark header/footer bg */
  --paper:      #ffffff;
  --gray-line:  #dadada;  /* rules, borders, muted UI */
  --gray-soft:  #f5f5f4;  /* alternate section background (new — subtle warmth) */

  /* brand hues — GRAPHICS & LARGE FILLS ONLY (not body-size text on white) */
  --green:      #1aad61;  /* brand green — illustrations, bands, large display type */
  --green-hover:#19cb6f;
  --orange:     #f8a033;  /* logo tile orange — graphics, rules, hover accents */

  /* text-safe / interactive variants (WCAG AA on white — verify in QA, §12.4) */
  --green-action: #0e7a43; /* button fills + CTA band bg (white text 5.4:1), text links, small green text */
  --green-action-hover: #095c32; /* button hover fill (white text ≈8.1:1) — NOT --green: white on #1aad61 = 2.9:1, fails AA */
  --orange-text:  #b45f06; /* eyebrow label text (≈4.6:1) — #f8a033 fails AA at 2.1:1 */

  /* type */
  --font-body:    "Figtree", system-ui, sans-serif;          /* 400, 700 */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif; /* 700 only, ALL CAPS use */

  /* rhythm */
  --container: 1140px;
  --section-pad: clamp(56px, 9vw, 104px);
  --radius: 0;             /* square corners everywhere — brand rule */
}

/* ============================================================
   Fonts — self-hosted, latin subset only (design §4)
   ============================================================ */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree-400.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/figtree-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

/* ============================================================
   Reset & base
   ============================================================ */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
a {
  color: var(--green-action);
}
button {
  font-family: inherit;
}

/* ============================================================
   Utilities
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.page-section {
  padding-block: var(--section-pad);
}
.page-section--soft {
  background: var(--gray-soft);
}
.text-block {
  max-width: 62ch;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 100;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--ink);
}

/* ============================================================
   Type scale (design §3)
   ============================================================ */
h1 {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
}
h2 {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
}
h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
}
small, .text-small {
  font-size: 14px;
}
.display-accent {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 44px);
}
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--orange-text);
  margin-bottom: 8px;
}

/* ============================================================
   Buttons (design §5.3 / §3 rule 2)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: background .3s;
}
.btn-primary {
  background: var(--green-action);
  border-color: var(--green-action);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-action-hover);
  border-color: var(--green-action-hover);
}
.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--green-action);
  border-color: var(--green-action);
  color: var(--paper);
}
.btn-onband {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-onband:hover, .btn-onband:focus-visible {
  background: var(--gray-soft);
  border-color: var(--gray-soft);
}

/* ============================================================
   Forms (design §5.3)
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field label {
  font-weight: 700;
  font-size: 15px;
}
.field input,
.field textarea,
.field select {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid var(--green-action);
  outline-offset: 1px;
}
.field-error {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #b3261e;
}
.field-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.field-check label {
  font-weight: 400;
  font-size: 15px;
}

/* ============================================================
   Skip link (design §5.1)
   ============================================================ */
.skip-link {
  top: 8px;
  left: 8px;
}

/* ============================================================
   Header & nav (design §5.1)
   ============================================================ */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  gap: 24px;
}
.site-header .logo {
  display: flex;
}
.site-header .logo img {
  height: 40px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: var(--paper);
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--green);
}
.nav-list .btn-primary {
  padding: 10px 20px;
  font-size: 15px;
}

@media (max-width: 767.98px) {
  .nav-toggle {
    display: block;
  }
  html.no-js .nav-toggle {
    display: none;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    padding: 8px 24px 24px;
  }
  .nav-list.is-open {
    display: flex;
  }
  html.no-js .nav-list {
    display: flex;
    position: static;
    padding: 8px 0 0;
  }
  .nav-list li {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
  }
  .nav-list .btn-primary {
    display: inline-flex;
    margin-top: 4px;
  }
}

/* ============================================================
   Footer (design §5.2)
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-pad);
}
.site-footer a {
  color: var(--paper);
}
.site-footer .logo-footer img {
  height: 32px;
  width: auto;
  margin-bottom: 32px;
}
.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-location h3 {
  color: var(--paper);
  margin-bottom: 8px;
}
.footer-location p {
  margin: 0 0 4px;
}
.footer-location .hours {
  color: var(--gray-line);
  font-size: 14px;
  margin-top: 8px;
}
.social-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--paper);
}
.social-links img {
  width: 24px;
  height: 24px;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px;
}

@media (min-width: 768px) {
  .footer-locations {
    flex-direction: row;
    gap: 64px;
  }
}

/* ============================================================
   Home page (design §6.1)
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}
.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 669;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.services-heading {
  text-align: center;
  margin-bottom: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.service-tile {
  text-align: center;
}
.service-tile img {
  width: 120px;
  height: auto;
  margin: 0 auto 20px;
}
.service-tile a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--green-action);
  text-decoration: none;
}
.service-tile a:hover {
  text-decoration: underline;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.why-farmer-inner {
  margin-inline: auto;
  text-align: left;
}
.why-farmer-sig {
  margin-top: 32px;
  max-width: 220px;
}
.why-farmer-credit {
  font-weight: 700;
  margin-top: 8px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--green-action);
  color: var(--paper);
  text-align: center;
  padding-block: var(--section-pad);
}
.cta-band h2,
.cta-band .cta-body {
  color: var(--paper);
}
.cta-body {
  max-width: 62ch;
  margin-inline: auto;
  font-weight: 700;
}
.cta-arrow {
  position: absolute;
  width: 48px;
  height: auto;
  opacity: .35;
}
.cta-arrow--left {
  top: 24px;
  left: 5%;
}
.cta-arrow--right {
  bottom: 24px;
  right: 5%;
  transform: rotate(180deg);
}

/* ============================================================
   About page (design §6.2)
   ============================================================ */
.values-line {
  color: var(--green-action);
  margin-bottom: 20px;
}
.person-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.person-card-photo img {
  width: 100%;
  height: auto;
  max-width: 320px;
  aspect-ratio: 900 / 750;
}
.person-card-title {
  font-weight: 700;
  color: var(--green-action);
  margin-bottom: 16px;
}
.about-cta .btn {
  margin-top: 20px;
}
@media (min-width: 768px) {
  .person-card {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }
}

/* ============================================================
   Client Portal page (design §6.3)
   ============================================================ */
.portal-primary-btn {
  font-size: 20px;
  padding: 18px 32px;
  margin-top: 24px;
}
.portal-note {
  margin-top: 16px;
  color: var(--ink);
  font-size: 14px;
}
.portal-help-list {
  margin-top: 16px;
  padding-left: 20px;
}
.portal-help-list li {
  margin-bottom: 12px;
}

/* ============================================================
   Contact page (design §6.4 / §8)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
  }
}
.field-interested {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.field-interested legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  padding: 0;
}
.field-interested .field-check {
  display: flex;
  margin-bottom: 8px;
}
.field-consent {
  align-items: flex-start;
}
.field-consent input {
  margin-top: 4px;
}
.botcheck-wrap {
  display: none;
}
.form-status {
  margin-top: 16px;
  padding: 16px;
  background: var(--gray-soft);
  color: var(--ink);
  font-weight: 700;
}
.form-error {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid #b3261e;
  color: #b3261e;
  font-weight: 700;
}
.contact-form button[type="submit"]:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.offices-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) {
  .offices-grid {
    flex-direction: row;
    gap: 64px;
  }
}
.office-card h3 {
  margin-bottom: 8px;
}
.office-card .hours {
  color: var(--ink);
  font-size: 14px;
  margin-top: 8px;
}

/* ============================================================
   Contact/sent (design §8)
   ============================================================ */
.sent-hero .form-status {
  background: var(--gray-soft);
  padding: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.sent-actions {
  display: flex;
  gap: 16px;
}

/* ============================================================
   Privacy page (design §6.5)
   ============================================================ */
.privacy-date {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 32px;
}
.privacy-body h2 {
  margin-top: 40px;
}

/* ============================================================
   404 (design §6.6)
   ============================================================ */
.notfound-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.notfound-portal-link {
  margin-top: 20px;
}
