/* ============================================================
   J&E Produce — dev site
   Brand tokens mirror brand.json. Single sheet, no framework.
   ============================================================ */

:root {
  --primary:    #1f5731;
  --primary-dk: #143a20;
  --accent:     #8a3e1a;
  --accent-lt:  #c4661f;
  --ink:        #1c1c1c;
  --ink-soft:   #5a4a35;
  --paper:      #fbf7ee;
  --paper-warm: #f4ead2;
  --rule:       #d8c8a3;
  --leaf:       #5fa450;
  --tomato:     #c4321f;

  --f-wordmark: 'Yellowtail', 'Brush Script MT', cursive;
  --f-display:  'Playfair Display', Georgia, serif;
  --f-body:     'Source Sans 3', 'Source Sans Pro', system-ui, -apple-system, sans-serif;

  --container: 1140px;
  --gutter: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lt); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.2; color: var(--primary-dk); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.75em; }
h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
p  { margin-bottom: 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -------- Header / nav -------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--rule);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  flex: 0 0 auto;
}
.brand img { width: 160px; }
.brand .lockup-text {
  display: none;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.site-nav a {
  color: var(--primary-dk);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-style: normal;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav a.cta:hover { background: var(--accent-lt); color: #fff; }

@media (max-width: 800px) {
  .site-nav ul { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { font-size: 1rem; }
}

/* -------- Hero -------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% 20%, rgba(196,102,31,0.18), transparent 60%),
    radial-gradient(900px 500px at 15% 85%, rgba(95,164,80,0.16), transparent 55%),
    linear-gradient(160deg, var(--primary-dk) 0%, #0d2614 55%, #1f5731 100%);
  color: #fff;
  padding: 96px 0 112px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* subtle "produce" texture: soft circles suggesting fruit/cases */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 70%, rgba(196,50,31,0.12) 0 40px, transparent 41px),
    radial-gradient(circle at 88% 30%, rgba(196,102,31,0.10) 0 60px, transparent 61px),
    radial-gradient(circle at 70% 75%, rgba(95,164,80,0.10) 0 50px, transparent 51px),
    radial-gradient(circle at 25% 25%, rgba(244,234,210,0.06) 0 30px, transparent 31px);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  color: #fff;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero .kicker {
  color: var(--paper-warm);
  font-family: var(--f-wordmark);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 8px;
  display: block;
}
.hero .lede {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 24px auto 32px;
  color: #f7eecf;
}
.hero .actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* -------- Buttons -------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  transition: 150ms;
}
.btn:hover { background: var(--accent-lt); border-color: var(--accent-lt); color: #fff; text-decoration: none; }
.btn.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.btn-ghost:hover { background: #fff; color: var(--primary-dk); border-color: #fff; }

/* -------- Section base -------- */
section { padding: 72px 0; }
section.alt { background: var(--paper-warm); }
section.dark { background: var(--primary-dk); color: #fff; }
section.dark h2 { color: #fff; }
section.dark p  { color: #f7eecf; }

.section-eyebrow {
  font-family: var(--f-wordmark);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 6px;
}
section.dark .section-eyebrow { color: var(--paper-warm); }

/* -------- Three-up feature grid -------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 36px;
}
.feature {
  text-align: center;
  padding: 24px;
}
.feature .icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  color: var(--leaf);
}
.feature h3 { color: var(--primary-dk); }

/* -------- Map / service area -------- */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .map-wrap { grid-template-columns: 1fr; } }

.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.town-list {
  columns: 2;
  column-gap: 28px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary-dk);
}
.town-list li { padding: 4px 0; list-style: none; border-bottom: 1px dotted var(--rule); }

/* -------- About / story -------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }
.story .imgcol img { border-radius: 4px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }

.pull-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--primary-dk);
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}

/* -------- CTA band -------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p  { font-size: 1.15rem; max-width: 640px; margin: 12px auto 24px; }

/* -------- Newsletter -------- */
.newsletter form {
  display: flex; gap: 12px; max-width: 560px; margin: 24px auto 0; flex-wrap: wrap;
}
.newsletter input[type="email"], .newsletter input[type="text"] {
  flex: 1 1 200px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--primary-dk);
  color: #f7eecf;
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  color: var(--paper-warm);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #f7eecf; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 3px 0; }
.site-footer .since-tag {
  font-family: var(--f-wordmark);
  font-size: 1.6rem;
  color: var(--paper-warm);
  margin-top: 8px;
}
.site-footer .colophon {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(247,238,207,0.7);
}

/* -------- Diagonal stamp accent for the logo -------- */
.brand .stamp {
  display: inline-block;
  transform: rotate(-3deg);
  transform-origin: left center;
}
