/* ==========================================================
   Wayside Produce Farm — Dayton, VA
   Palette:
     leaf      #2F5233  (deep green — header, dark sections)
     leaf-deep #24402A
     cream     #F4EFE3  (warm paper — page background)
     marigold  #C7A33B  (accent — CTAs, highlights)
     soil      #5B4636  (warm brown — text, soil section)
     soil-deep #3E2F24
     sage      #7E8F7A  (muted labels)
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --leaf: #2F5233;
  --leaf-deep: #24402A;
  --cream: #F4EFE3;
  --cream-dark: #E9E1CF;
  --marigold: #C7A33B;
  --marigold-dark: #A6862B;
  --soil: #5B4636;
  --soil-deep: #3E2F24;
  --sage: #7E8F7A;
  --display: "Fraunces", "Georgia", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --pad-x: 6vw;
  --hero-photo: none;   /* set to url("images/hero.jpg") once photos arrive */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--soil);
  line-height: 1.65;
  font-size: 1.05rem;
}

a { color: var(--leaf); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--leaf); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.2rem; max-width: 46rem; margin-bottom: 2.5rem; }
.prose { max-width: 46rem; margin-bottom: 1.1rem; }
.small { font-size: 0.9rem; opacity: 0.8; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--pad-x);
  background: var(--leaf);
  color: var(--cream);
}

.topbar-name {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-nav { display: flex; gap: 1.5rem; }
.topbar-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}
.topbar-nav a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 4px; }

.topbar-phone {
  color: var(--cream);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 2px;
  white-space: nowrap;
}
.topbar-phone:hover { color: #fff; border-bottom-color: #fff; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 70vh;
}

.hero-inner {
  padding: clamp(3rem, 8vw, 6rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  color: var(--leaf);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-style: italic;
}

.hero-tagline { font-size: 1.25rem; max-width: 34rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Placeholder art: quiet green panel with a leaf mark. Replace with a photo via --hero-photo. */
.hero-art {
  background-color: var(--leaf);
  background-image:
    var(--hero-photo),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 78 C50 50 30 40 22 30 C45 30 58 45 50 78 Z' fill='%23F4EFE3' fill-opacity='0.18'/%3E%3Cpath d='M50 78 C50 55 66 44 78 36 C58 38 48 52 50 78 Z' fill='%23C7A33B' fill-opacity='0.45'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #3B6B3F 0%, var(--leaf) 60%, var(--leaf-deep) 100%);
  background-size: cover, min(46%, 260px), cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
  min-height: 320px;
}
.hero.has-photo .hero-art { background-image: var(--hero-photo); background-size: cover; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--marigold); color: var(--soil-deep); }
.btn-primary:hover { background: var(--marigold-dark); }
.btn-secondary { border: 2px solid var(--leaf); color: var(--leaf); }
.btn-secondary:hover { background: var(--leaf); color: var(--cream); }

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--leaf-deep);
  color: var(--cream);
}
.fact {
  padding: 1.6rem var(--pad-x);
  border-right: 1px solid rgba(244,239,227,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fact:last-child { border-right: none; }
.fact-value { font-family: var(--display); font-size: 1.7rem; color: var(--marigold); }
.fact-label { font-size: 0.9rem; opacity: 0.85; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x); }

.section-dark { background: var(--leaf); color: var(--cream); }
.section-dark h2 { color: var(--cream); }
.section-dark .eyebrow { color: var(--marigold); }
.section-dark a { color: var(--marigold); }

.section-soil { background: var(--soil-deep); color: var(--cream); }
.section-soil h2 { color: var(--cream); }
.section-soil .eyebrow { color: var(--marigold); }
.section-soil a { color: var(--marigold); }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.75rem;
  border-top: 4px solid var(--marigold);
}
.card-icon { width: 44px; height: 44px; color: var(--leaf); margin-bottom: 1rem; }
.card-icon svg { width: 100%; height: 100%; }
.card h3 { color: var(--leaf); }

/* ---------- crop list ---------- */
.crop-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
  max-width: 50rem;
}
.crop-list li {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(244,239,227,0.35);
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- channels ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 1rem;
}
.channel h3 { color: var(--leaf); }
.channel p { margin-bottom: 0.6rem; }

.text-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--marigold);
  padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: currentColor; }

/* ---------- community split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.quote-block blockquote {
  border-left: 4px solid var(--marigold);
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.quote-block p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.quote-block cite { font-style: normal; font-weight: 600; opacity: 0.8; }

/* ---------- story ---------- */
.story { columns: 2; column-gap: 3rem; max-width: 70rem; }
.story .prose { max-width: none; break-inside: avoid; }
.story .prose:first-child::first-letter {
  font-family: var(--display);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding: 0.1em 0.12em 0 0;
  color: var(--leaf);
}

/* ---------- contact grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-item h3 { color: var(--marigold); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--body); }
.contact-item p { margin-bottom: 0.5rem; }

/* ---------- footer ---------- */
.footer {
  padding: 1.5rem var(--pad-x);
  background: var(--leaf-deep);
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.95;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 240px; order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 1px solid rgba(244,239,227,0.15); }
  .fact:nth-child(2n) { border-right: none; }
  .split { grid-template-columns: 1fr; }
  .story { columns: 1; }
  .topbar-nav { display: none; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: none; }
}

/* ---------- map ---------- */
.map {
  display: block;
  position: relative;
  margin: 1.5rem 0 2.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--marigold);
  aspect-ratio: 16 / 7;
  min-height: 280px;
  background: var(--leaf-deep);
  text-decoration: none;
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;   /* whole map acts as a link to Google Maps */
  filter: saturate(0.9);
}
.map-cta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 1rem;
  background: rgba(36, 64, 42, 0.92);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.map:hover .map-cta { background: var(--marigold); color: var(--soil-deep); }
@media (max-width: 600px) {
  .map { aspect-ratio: 4 / 3; }
}
