/* WA Grains - site styles */

:root {
  --paddock: #225a40;   /* brand green */
  --canopy: #143626;    /* deep green: footer, text on gold */
  --harvest: #fdb713;   /* logo gold */
  --harvest-dark: #e2a106;
  --chaff: #f1f4ee;     /* pale section tint */
  --ink: #17211b;
  --rule: #d3dbd1;
  --white: #fff;
  --error: #a3231a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: 1.25rem;
  --section: clamp(3rem, 7vw, 5.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--paddock); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--canopy); }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: 0.94; }
h2 { font-size: clamp(2rem, 4vw, 2.875rem); }
h3 { font-size: 1.625rem; line-height: 1.1; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 70rem); margin-inline: auto; }
.measure { max-width: 40rem; }
.lede { font-size: 1.25rem; line-height: 1.5; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--harvest); color: var(--canopy); padding: 0.5rem 1rem; font-weight: 700;
}
.skip:focus { top: 0.5rem; z-index: 10; }

/* Header ---------------------------------------------------------------- */

.site-header { background: var(--paddock); color: var(--white); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem;
  padding-block: 0.875rem;
}
.site-header__logo img { width: auto; height: 3.25rem; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a {
  color: var(--white); text-decoration: none; font-weight: 600;
  padding-block: 0.25rem; border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: rgb(255 255 255 / 0.5); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--harvest); }

@media (max-width: 47.99em) {
  .site-header__inner { gap: 0.625rem 0.75rem; }
  .site-header__logo img { height: 2.625rem; }
  .site-header__call { margin-left: auto; padding-inline: 0.75rem; font-size: 0.9375rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 0.5rem; }
  .site-nav a { font-size: 1rem; }
}

/* Buttons --------------------------------------------------------------- */

.button {
  display: inline-block; border: 0; border-radius: 2px; cursor: pointer;
  padding: 0.8em 1.4em;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  background: var(--harvest); color: var(--canopy);
}
.button:hover { background: var(--harvest-dark); color: var(--canopy); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button--small { padding: 0.55em 1em; font-size: 1rem; white-space: nowrap; }

/* Page title band (inner pages) ----------------------------------------- */

.band { background: var(--harvest); color: var(--canopy); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.band .lede { margin-top: 1.25rem; max-width: 40rem; font-weight: 500; }

/* Home hero ------------------------------------------------------------- */

.hero { background: var(--paddock); color: var(--white); }
.hero__photo { width: 100%; height: clamp(15rem, 46vh, 32rem); object-fit: cover; object-position: 50% 62%; }
.hero__body {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 3rem; align-items: end;
  padding-bottom: var(--section);
}
.hero__slab {
  position: relative; margin-top: -5.5rem;
  background: var(--paddock); padding: 2.25rem 2.5rem 0 0;
}
/* Carry the slab's green out to the left edge of the viewport. */
.hero__slab::before {
  content: ""; position: absolute; inset: 0 100% 0 auto; width: 100vw; background: var(--paddock);
}
.hero__slab h1 { margin-bottom: 1.5rem; }
.hero__slab p { max-width: 36rem; }
.hero__call { padding-bottom: 0.25rem; }
.hero__call p { margin: 0; font-weight: 600; }
.hero__phone {
  display: block; margin-block: 0.1em 0.35em;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem); font-weight: 800; font-stretch: 75%; line-height: 1;
  color: var(--harvest); text-decoration: none; white-space: nowrap;
}
.hero__phone:hover { color: var(--white); }
.hero__call a:not(.hero__phone) { color: var(--white); }

@media (max-width: 47.99em) {
  .hero__body { grid-template-columns: minmax(0, 1fr); }
  .hero__slab { margin-top: 0; padding: 2rem 0 0; }
}

/* Sections -------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section--chaff { background: var(--chaff); }
.section--green { background: var(--paddock); color: var(--white); }
.section--green a:not(.button) { color: var(--white); }
.section__head { margin-bottom: 2.25rem; max-width: 46rem; }
.section__head p { margin-top: 1rem; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; align-items: center; }
.split--top { align-items: start; }
.split img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split h2 { margin-bottom: 1.25rem; }

.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.columns h3 { margin-bottom: 0.75rem; }

@media (max-width: 47.99em) {
  .split, .columns { grid-template-columns: minmax(0, 1fr); }
}

/* Home: the two ways in -------------------------------------------------- */

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; }
.door { border-top: 6px solid var(--harvest); padding-top: 1.5rem; }
.door h2 { margin-bottom: 1rem; }
.door a { font-weight: 700; }
@media (max-width: 47.99em) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* Growers: benefits and commodities ------------------------------------- */

.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.ticks li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--rule); font-weight: 600; }
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 0.875rem; height: 0.875rem; background: var(--harvest);
}

.commodities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; list-style: none; margin: 0; padding: 0; }
.commodities img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 1.1rem; }
.commodities h3 { margin-bottom: 0.5rem; }
@media (max-width: 59.99em) { .commodities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 35.99em) { .commodities { grid-template-columns: minmax(0, 1fr); } }

/* Buyers: guarantees ---------------------------------------------------- */

.guarantees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0 0 2rem; padding: 0; border-block: 2px solid var(--ink); }
.guarantees li {
  padding: 1.5rem 1.5rem 1.5rem 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; font-stretch: 75%; line-height: 1.05;
}
.guarantees li + li { padding-left: 1.5rem; border-left: 2px solid var(--ink); }
@media (max-width: 47.99em) {
  .guarantees { grid-template-columns: minmax(0, 1fr); }
  .guarantees li, .guarantees li + li { padding: 1rem 0; border-left: 0; }
  .guarantees li + li { border-top: 1px solid var(--rule); }
}

/* About: photo strip ---------------------------------------------------- */

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 35.99em) { .strip { grid-template-columns: minmax(0, 1fr); } }

/* Closing call to action ------------------------------------------------ */

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { margin-bottom: 0.75rem; }
.cta p { max-width: 34rem; }

/* Contact details ------------------------------------------------------- */

.details { margin: 0; }
.details div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.details div:last-child { border-bottom: 1px solid var(--rule); }
.details dt { font-weight: 700; }
.details dd { margin: 0; font-size: 1.25rem; }

/* Forms ----------------------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.form__field--wide, .form__actions, .form-message { grid-column: 1 / -1; }
.form label { font-weight: 600; font-size: 1rem; }
.form input, .form textarea {
  width: 100%; padding: 0.7rem 0.8rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 2px;
}
.form textarea { min-height: 9rem; resize: vertical; }
.section--green .form input { border-color: var(--white); }
.form__trap { position: absolute; left: -9999px; }
@media (max-width: 35.99em) { .form { grid-template-columns: minmax(0, 1fr); } }

.form-message { padding: 0.85rem 1rem; border-radius: 2px; font-weight: 600; background: var(--white); border-left: 6px solid var(--paddock); color: var(--canopy); }
.form-message[data-state="error"] { border-left-color: var(--error); color: var(--error); }
.section--green .form-message { border-left-color: var(--harvest); }
.section--green .form-message[data-state="error"] { border-left-color: var(--error); }

/* Long-form text (privacy policy, site terms) ---------------------------- */

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.75rem; margin: 2.5rem 0 0.75rem; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1em; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--paddock); }

/* Footer ---------------------------------------------------------------- */

.site-footer { background: var(--canopy); color: var(--white); padding-block: 3.5rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.site-footer img { width: auto; height: 4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
@media (max-width: 47.99em) { .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__logo { grid-column: 1 / -1; } }
