/* ===========================================================
   Farm Root — shared styles
   Palette drawn from logo: forest green + deep pine + cream,
   warmed with a golden cashew tone.
   =========================================================== */

:root {
  --pine:   #16321a;   /* deep pine — text, dark panels */
  --forest: #3f7d2e;   /* logo green — accents, brand */
  --forest-deep: #2f5e22;
  --leaf:   #6ba644;   /* lighter green for hovers */
  --cream:  #f4f1e6;   /* logo cream — page bg */
  --paper:  #fbfaf3;   /* lighter cream — cards */
  --cashew: #d9a441;   /* golden cashew — highlight */
  --cashew-soft: #e8c988;
  --ink:    #1c2a18;   /* body text */
  --muted:  #5c6b52;   /* secondary text */
  --line:   #d9d5c3;   /* hairlines on cream */
  --line-dark: rgba(244,241,230,.16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--pine);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "dlig" 0, "swsh" 0, "calt" 0;
}

p { margin: 0 0 1.1em; }
.amp { font-family: var(--sans); font-weight: 500; font-style: normal; }
a { color: var(--forest-deep); text-decoration: none; }
a:hover { color: var(--leaf); }

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

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--forest-deep);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-primary { background: var(--cashew); color: var(--pine); }
.btn-primary:hover { background: var(--cashew-soft); color: var(--pine); transform: translateY(-1px); }
.btn-ghost { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn-ghost:hover { background: var(--pine); color: var(--cream); }
.btn-ondark { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn-ondark:hover { background: var(--cream); color: var(--pine); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,241,230,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { width: 58px; height: 58px; border-radius: 10px; }
.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--pine);
  line-height: 1;
}
.brand-tag { font-size: .66rem; color: var(--muted); letter-spacing: .06em; line-height: 1; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .98rem; color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--forest-deep); }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--pine); margin: 5px auto; transition: .25s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: .5rem 4% 1.2rem;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: .8rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--pine);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle organic texture using layered radial gradients */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 82% 18%, rgba(217,164,65,.16), transparent 70%),
    radial-gradient(closest-side at 12% 88%, rgba(107,166,68,.20), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: block;
  gap: var(--gap);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.8rem, 3.5vw, 2.6rem);
}
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: .35em;
}
.hero h1 .seed { color: var(--cashew); font-style: italic; }
.hero p.lead { font-size: 1.15rem; color: rgba(244,241,230,.85); max-width: 60ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-meta {
  margin-top: 2.4rem; display: flex; gap: 1.8rem; flex-wrap: wrap;
  border-top: 1px solid var(--line-dark); padding-top: 1.4rem;
}
.hero-meta div { font-size: .9rem; color: rgba(244,241,230,.8); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--cashew); font-weight: 500; }

/* full-width hero image band */
.hero-photo {
  position: relative;
  width: 100%;
  height: clamp(240px, 34vw, 460px);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .hero-photo { height: clamp(200px, 46vw, 300px); }
}

/* ---------- Sections ---------- */
section { padding: clamp(2.2rem, 4.5vw, 3.8rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 1.9rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.bg-paper { background: var(--paper); }
.bg-pine { background: var(--pine); color: var(--cream); }
.bg-pine h2, .bg-pine h3 { color: var(--cream); }
.bg-pine p { color: rgba(244,241,230,.85); }

/* ---------- Value / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
}
.pillar .ic { width: 40px; height: 40px; color: var(--forest-deep); margin-bottom: 1rem; }
.pillar h3 { font-size: 1.28rem; }
.pillar p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Product categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.cat {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--cream);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(244,241,230,.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,50,26,.18); }
.cat.feature { grid-column: span 2; }
/* image fill */
.cat .cat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(22,50,26,.30), transparent 55%);
}
/* white label holding the text */
.cat .cat-label {
  position: relative; z-index: 2;
  background: rgba(251,250,243,.94);
  border-radius: 10px;
  padding: .7rem .85rem;
  box-shadow: 0 4px 14px rgba(22,50,26,.18);
}
.cat .tag { font-size: .7rem; color: var(--forest-deep); font-weight: 700; letter-spacing:.04em; text-transform: uppercase; margin-bottom: .15rem; display:block; }
.cat h3 { color: var(--pine); font-size: 1.2rem; margin: 0 0 .15rem; line-height: 1.1; }
.cat p { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 620px) { .cat.feature { grid-column: span 1; } }
@media (max-width: 620px) { .cat.feature { grid-column: span 1; } }

/* ---------- Split / about band ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: 16px;
  min-height: 320px;
  background:
    radial-gradient(circle at 30% 25%, rgba(217,164,65,.25), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 60%, var(--pine) 100%);
  display: grid; place-items: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-media svg { width: 45%; opacity: .85; }
.split-media.has-photo { padding: 0; background: var(--forest-deep); }
.split-media.has-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Segments strip ---------- */
.segments { display: flex; flex-wrap: wrap; gap: .7rem; }
.seg {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--pine);
  background: var(--paper);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--cashew); color: var(--pine); text-align: center; }
.cta-band h2 { color: var(--pine); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band p { color: #5a4715; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-primary { background: var(--pine); color: var(--cream); }
.cta-band .btn-primary:hover { background: var(--forest-deep); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--pine); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63,125,46,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .req { color: #a33; }
.form-note { font-size: .86rem; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Info rows (contact) ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list .ic { width: 22px; height: 22px; color: var(--forest-deep); flex-shrink: 0; margin-top: .2rem; }
.info-list strong { display: block; color: var(--pine); font-family: var(--serif); }
.info-list span { color: var(--muted); font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(244,241,230,.8); padding: 3.5rem 0 1.5rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand img { width: 46px; border-radius: 8px; margin-bottom: .8rem; }
.foot-brand p { font-size: .92rem; max-width: 34ch; }
.foot-col h4 { color: var(--cream); font-family: var(--sans); font-size: .82rem; letter-spacing: .05em; font-weight: 700; margin-bottom: 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .55rem; }
.foot-col a, .foot-col span { color: rgba(244,241,230,.8); font-size: .94rem; }
.foot-col a:hover { color: var(--cashew-soft); }
.social { display: flex; gap: .7rem; margin-top: .3rem; }
.social a {
  width: 38px; height: 38px; border: 1px solid rgba(244,241,230,.25);
  border-radius: 50%; display: grid; place-items: center; color: rgba(244,241,230,.8);
}
.social a:hover { border-color: var(--cashew); color: var(--cashew); }
.social svg { width: 18px; height: 18px; }
.foot-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .84rem; color: rgba(244,241,230,.6);
}
.foot-bottom a { color: rgba(244,241,230,.7); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--pine); color: var(--cream); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.5rem); }
.page-hero .eyebrow { color: var(--cashew); }
.page-hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: rgba(244,241,230,.82); max-width: 56ch; font-size: 1.1rem; margin: 0; }

/* ---------- misc ---------- */
.lead-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.lead-list li { display: flex; gap: .7rem; margin-bottom: .8rem; align-items: flex-start; }
.lead-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cashew); margin-top: .55rem; flex-shrink: 0; }
.fade-up { opacity: 0; transform: translateY(16px); }
.fade-up.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* ---------- Vision & Mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: stretch; }
.vm-media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--forest-deep);
  min-height: 380px;
  border: 1px solid var(--line);
}
.vm-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 380px; }
.vm-media.placeholder {
  display: grid; place-items: center; color: rgba(244,241,230,.6);
  background:
    radial-gradient(circle at 30% 25%, rgba(217,164,65,.25), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 60%, var(--pine) 100%);
  text-align: center; padding: 2rem; font-size: .95rem;
}
.vm-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.vm-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cashew);
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
}
.vm-card .eyebrow { margin-bottom: .5rem; }
.vm-card h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.vm-card p { color: var(--muted); margin: 0; font-size: 1.02rem; }
@media (max-width: 820px) {
  .vm-grid { grid-template-columns: 1fr; }
  .vm-media, .vm-media img { min-height: 260px; }
}

/* ---------- Search ---------- */
.nav-search-btn {
  background: none; border: none; cursor: pointer; padding: .4rem;
  color: var(--pine); display: inline-flex; align-items: center; margin-left: .3rem;
}
.nav-search-btn svg { width: 20px; height: 20px; }
.nav-search-btn:hover { color: var(--forest-deep); }
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22,50,26,.55); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 12vh 5% 5%;
}
.search-overlay.open { display: flex; }
.search-box {
  width: min(640px, 100%); background: var(--paper);
  border-radius: 16px; padding: 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.search-box input {
  width: 100%; font-family: var(--sans); font-size: 1.1rem;
  padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
}
.search-box input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63,125,46,.15); }
.search-results { margin-top: 1rem; max-height: 46vh; overflow-y: auto; }
.search-results a {
  display: block; padding: .85rem 1rem; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none; color: var(--pine);
}
.search-results a:hover { background: var(--cream); border-color: var(--line); }
.search-results .r-title { font-family: var(--serif); font-size: 1.08rem; margin-bottom: .15rem; }
.search-results .r-snip { font-size: .9rem; color: var(--muted); }
.search-results .r-empty { padding: 1rem; color: var(--muted); text-align: center; }
.search-hint { font-size: .82rem; color: var(--muted); margin: .8rem .2rem 0; }
