:root {
  --brand-teal: #0d5c63;
  --brand-green: #2e9e5b;
  --brand-forest: #123c2a;
  --brand-lime: #8bd155;
  --hero-bg: #eaf5ec;
  --text-dark: #1c2b28;
  --text-body: #3c4a47;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
}

/* ---------- Header ---------- */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  border-bottom: 1px solid var(--brand-green);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: auto;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dark);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-green);
}

.menu-btn {
  background: var(--brand-teal);
  border: none;
  width: 44px;
  height: 40px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ============ Homepage ============ */

/* ---------- Homepage: hero ---------- */
.hp-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-forest);
  color: #fff;
  padding: 88px 48px 68px;
}

.hp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #123c2a url("../img/hero-farm.jpg") center / cover no-repeat;
}

.hp-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(9,38,27,0.188) 0%, rgba(12,50,36,0.16) 42%, rgba(22,82,56,0.092) 100%),
    linear-gradient(180deg, rgba(11,44,32,0.02) 30%, rgba(9,34,24,0.124) 100%);
}

.hp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.hp-overline {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--brand-green);
}
.hp-overline.light { color: var(--brand-lime); }

.hp-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.6px;
  max-width: 20ch;
}

.hp-hero-foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 40px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.hp-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-solid,
.btn-ghost-light {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
}
.btn-solid {
  background: var(--brand-lime);
  color: #0b2c20;
  border: 1px solid var(--brand-lime);
}
.btn-solid:hover { background: #9ada6a; border-color: #9ada6a; }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  font-weight: 700;
}
.btn-ghost-light:hover { border-color: var(--brand-lime); color: var(--brand-lime); }

/* ---------- Homepage: section heads ---------- */
.hp-section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.hp-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}
.hp-section-head.on-dark h2 { color: #fff; }

/* ---------- Homepage: crops ---------- */
.hp-crops {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 48px 8px;
}

.hp-crop {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid #dfe7de;
}
.hp-crop:last-child { border-bottom: 1px solid #dfe7de; }

.hp-crop-visual {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0 0 0 56px;
  background: #eaf1ea;
}
.hp-crop-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-crop-body h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.hp-crop-body p {
  margin: 0 0 16px;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.hp-crop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hp-crop-meta li {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--brand-teal);
  border: 1px solid #cfe0d3;
  border-radius: 2px;
}

/* ---------- Homepage: process ---------- */
.hp-process {
  margin-top: 64px;
  padding: 80px 48px;
  background: var(--brand-teal);
  background-image: linear-gradient(160deg, #0d5c63, #0a4147);
  color: #fff;
}
.hp-process .hp-section-head {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.hp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.hp-steps li {
  padding-top: 20px;
  border-top: 3px solid var(--brand-lime);
}
.hp-steps h4 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.hp-steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
}

/* ---------- Homepage: figures ---------- */
.hp-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 48px;
}
.hp-figures div {
  padding-left: 20px;
  border-left: 3px solid var(--brand-green);
}
.hp-figures strong {
  display: block;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-dark);
}
.hp-figures span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brand-teal);
}

/* ---------- Homepage: what's next ---------- */
.hp-next {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 48px 80px;
}
.hp-next .hp-section-head {
  margin-bottom: 20px;
}
.hp-next-lead {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
}

/* ---------- Homepage: CTA ---------- */
.hp-cta {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 72px 48px;
  background: var(--brand-forest);
  background-image: linear-gradient(155deg, #123c2a, #0b2c20);
  color: #fff;
}
.hp-cta-text { max-width: 620px; }
.hp-cta-text h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.hp-cta-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
}
.hp-cta .hp-actions { justify-content: flex-end; }

/* ---------- Homepage: responsive ---------- */
@media (max-width: 900px) {
  .hp-crop { grid-template-columns: 190px 1fr; gap: 24px; }
  .hp-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hp-hero { padding: 56px 22px 44px; }
  .hp-hero-foot { grid-template-columns: 1fr; align-items: start; gap: 22px; }
  .hp-crops { padding: 56px 22px 4px; }
  .hp-crop { grid-template-columns: 1fr; gap: 16px; }
  .hp-crop-visual { width: 100%; max-width: 320px; }
  .hp-process { padding: 56px 22px; }
  .hp-steps { grid-template-columns: 1fr; gap: 22px; }
  .hp-figures { grid-template-columns: 1fr; gap: 22px; padding: 48px 22px; }
  .hp-next { padding: 4px 22px 56px; }
  .hp-cta { grid-template-columns: 1fr; padding: 48px 22px; }
  .hp-cta .hp-actions { justify-content: flex-start; }
}

/* ---------- Generic page content (About) ---------- */
.page-hero {
  background: var(--hero-bg);
  border-radius: 18px;
  margin: 32px 48px;
  padding: 56px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
}

.prose {
  margin: 40px 48px 64px;
  max-width: 760px;
}

.prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-teal);
  margin: 36px 0 12px;
}

.prose h2:first-child { margin-top: 0; }

.prose p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 16px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-body);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  margin: 40px 48px 64px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8d6;
  border-radius: 8px;
  font: inherit;
  margin-bottom: 18px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand-green);
  border-color: var(--brand-green);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .errorlist {
  list-style: none;
  padding: 0;
  margin: -12px 0 14px;
  color: #b3261e;
  font-size: 13px;
}

.submit-btn {
  background: var(--brand-teal);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.alert-success {
  background: var(--hero-bg);
  border: 1px solid var(--brand-green);
  color: var(--brand-teal);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 0 0 24px;
  font-weight: 600;
}

.contact-info h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--brand-teal);
}

.contact-info p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 14px;
}

@media (max-width: 780px) {
  .page-hero { margin: 20px; padding: 36px 24px; }
  .page-hero h1 { font-size: 28px; }
  .prose { margin: 28px 20px 48px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; margin: 24px 20px 48px; }
}

/* ---------- Footer ---------- */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px;
  border-top: 2px solid var(--brand-green);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo .logo-mark {
  width: auto;
  height: 30px;
}

.footer-logo span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.footer-copy {
  font-size: 14px;
  color: var(--text-dark);
  white-space: nowrap;
}

@media (max-width: 780px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
  }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 640px) {
  header { padding: 14px 20px; }
  .menu-btn { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--brand-green);
    padding: 4px 20px 14px;
    z-index: 20;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
}
