/* ============================================================
   South Atlanta Farms — shared site stylesheet  (v2 design pass)
   Rebalanced: green + cream lead, soil brown is the dark,
   gold demoted to fine accents, clay red does real work.
   No metallic. No braid — the collard leaf is the mark.
   ============================================================ */

:root {
  --collard: #1B5E20;      /* deep collard green — THE text/structure color */
  --collard-deep: #14451A; /* darker green for hovers/depth */
  --growth: #2E7D32;       /* mid green */
  --leaf-bright: #43A047;  /* bright leaf green for small lively touches */
  --gold: #E8A91C;         /* warm harvest gold — energy + CTAs */
  --gold-deep: #C98E0F;    /* gold hover */
  --gold-soft: #F2C75C;    /* soft gold for accents on dark */
  --clay: #A0341E;         /* clay red — MICRO-accents only, never text near green */
  --soil: #4E342E;         /* soil brown — dark sections only */
  --soil-deep: #3B2723;    /* deepest brown: footer/header/quotes */
  --soil-text: #4A3A33;    /* body text — warm dark brown, high contrast */
  --cream: #FAF6EE;        /* brightened sunlight canvas */
  --cream-warm: #F4EDDD;
  --cream-deep: #EBE1CB;
  --maxw: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  color: var(--soil-text); background: var(--cream);
  line-height: 1.6; font-size: 17px; overflow-x: hidden; position: relative;
}
h1, h2, h3, h4 { font-family: 'Source Serif 4', serif; line-height: 1.05; font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: var(--collard); }
a:hover { color: var(--growth); }

/* Legacy class kept harmless: metallic treatment removed site-wide.
   Anything still tagged .metallic renders as plain inherited color. */
.metallic { background: none; -webkit-text-fill-color: inherit; color: inherit; filter: none; }
/* On dark sections, give old .metallic spans the soft gold accent instead */
.on-dark .metallic, .cta .metallic { color: var(--gold-soft); }
.voice .metallic { color: var(--gold-deep); }

/* ===== LEAF MARK (inline SVG symbol #leaf) ===== */
.leaf-mark { display: inline-block; width: 18px; height: 26px; vertical-align: middle; }
.leaf-mark svg { width: 100%; height: 100%; display: block; }
.leaf-rule { display: flex; align-items: center; gap: 12px; }
.leaf-rule::after { content: ''; height: 1px; width: 56px; background: currentColor; opacity: 0.35; }

/* ===== HEADER ===== */
header {
  background: rgba(250,246,238,0.94); /* sunlight */
  color: var(--collard); padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(27,94,32,0.15);
  backdrop-filter: blur(10px);
}
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.logo-text { font-family: 'Source Serif 4', serif; font-weight: 900; font-size: 21px; letter-spacing: -0.01em; color: var(--collard); display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-text:hover { color: var(--collard); }
.logo-text .leaf-mark { width: 20px; height: 28px; }
.logo-leaf { height: 34px; width: auto; display: block; }
.footer-brand .logo-leaf { height: 38px; }
nav ul { display: flex; list-style: none; gap: 24px; align-items: center; }
nav a { color: var(--soil-text); text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: 0.02em; transition: color 0.18s; }
nav a:hover, nav a.active { color: var(--growth); }
.nav-cta { background: var(--gold); color: var(--soil-deep) !important; padding: 10px 22px; border-radius: 2px; font-weight: 800; border: none; transition: background 0.18s; letter-spacing: 0.04em; }
.nav-cta:hover { background: var(--gold-soft); }
.nav-toggle { display: none; background: none; border: none; color: var(--collard); font-size: 26px; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn { padding: 16px 32px; border-radius: 2px; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.08em; transition: all 0.2s; display: inline-block; text-transform: uppercase; cursor: pointer; border: none; }
.btn-gold, .btn-gold-fill { background: var(--gold); color: var(--soil-deep); }
.btn-gold:hover, .btn-gold-fill:hover { background: var(--gold-soft); color: var(--soil-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--cream); border: 1.5px solid rgba(245,240,230,0.65); }
.btn-outline:hover { background: var(--cream); color: var(--soil); border-color: var(--cream); }
.btn-green { background: var(--collard); color: var(--cream); border: none; }
.btn-green:hover { background: var(--collard-deep); }

/* ===== SECTION COMMON ===== */
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.section-eyebrow { color: var(--growth); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow.dark { color: var(--gold-soft); }
.section-title { font-size: clamp(38px, 5.4vw, 72px); color: var(--collard); line-height: 1.02; margin-bottom: 30px; max-width: 22ch; font-weight: 900; letter-spacing: -0.02em; }
.section-title .gold { color: var(--gold-deep); }
.section-title .clay { color: var(--gold-deep); }
.section-lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.55; color: var(--soil-text); max-width: 60ch; margin-bottom: 56px; font-family: 'Source Serif 4', serif; font-style: italic; }
.section-lede.dark { color: rgba(245,240,230,0.82); }

/* ===== PAGE HERO (interior pages) ===== */
.page-hero { background: var(--cream); color: var(--soil-text); position: relative; overflow: hidden; padding: 100px 0 90px; }
.page-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center 45%; opacity: 1; }
.page-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(250,246,238,0.96) 0%, rgba(250,246,238,0.88) 38%, rgba(250,246,238,0.45) 68%, rgba(27,94,32,0.18) 100%); }
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--growth); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 80px); color: var(--collard); line-height: 0.98; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 24px; }
.page-hero h1 .gold-line { display: block; color: var(--gold-deep); }
.page-hero .lede { font-size: clamp(18px, 1.5vw, 22px); max-width: 58ch; color: var(--soil-text); font-family: 'Source Serif 4', serif; font-style: italic; }

/* ===== KNOW BAND ===== */
.know-band { background: var(--collard-deep); overflow: hidden; border-top: 1px solid rgba(217,188,107,0.3); border-bottom: 1px solid rgba(217,188,107,0.3); }
.know-marquee { display: flex; animation: marquee 60s linear infinite; padding: 20px 0; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.know-marquee span { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 18px; color: var(--cream); margin-right: 60px; font-style: italic; }
.know-marquee span::before { content: '·'; color: var(--gold-soft); margin-right: 60px; font-size: 22px; vertical-align: middle; font-style: normal; }

/* ===== VOICE ===== */
.voice { padding: 100px 0; background: var(--cream-warm); color: var(--soil-text); position: relative; overflow: hidden; }
.voice::before { content: '"'; position: absolute; top: 24px; left: 5%; font-family: 'Source Serif 4', serif; font-size: 360px; opacity: 0.07; line-height: 0.8; font-weight: 900; color: var(--collard); }
.voice-inner { max-width: 1080px; margin: 0 auto; padding: 0 32px; position: relative; }
.voice-eyebrow { color: var(--growth); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 800; margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.voice blockquote { font-family: 'Source Serif 4', serif; font-size: clamp(25px, 3.1vw, 44px); line-height: 1.22; color: var(--collard); font-weight: 600; font-style: italic; margin-bottom: 34px; letter-spacing: -0.01em; }
.voice blockquote .accent { font-style: normal; color: var(--gold-deep); }
.voice blockquote .clay-accent { color: var(--gold-deep); font-style: normal; }
.voice cite { font-style: normal; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--growth); font-weight: 700; }

/* ===== CTA ===== */
.cta { padding: 100px 0; background: var(--growth); text-align: center; position: relative; color: var(--cream); }
.cta-inner { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.cta h2 { font-size: clamp(38px, 5.4vw, 76px); color: var(--cream); line-height: 0.97; margin-bottom: 24px; font-weight: 900; letter-spacing: -0.02em; }
.cta h2 .gold { color: var(--gold-soft); }
.cta p { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: rgba(245,240,230,0.88); margin-bottom: 40px; font-family: 'Source Serif 4', serif; font-style: italic; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-outline:hover { color: var(--collard); }

/* ===== FOOTER ===== */
footer { background: var(--soil-deep); color: rgba(245,240,230,0.78); padding: 60px 0 32px; font-size: 14px; border-top: 3px solid var(--collard); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-brand .logo-text { font-size: 24px; margin-bottom: 16px; display: inline-flex; }
.footer-brand p { color: rgba(245,240,230,0.65); line-height: 1.6; max-width: 36ch; font-family: 'Source Serif 4', serif; font-style: italic; }
footer h4 { color: var(--gold-soft); font-family: 'Source Sans 3', sans-serif; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 800; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer a { color: rgba(245,240,230,0.78); text-decoration: none; transition: color 0.18s; }
footer a:hover { color: var(--gold-soft); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 24px 32px 0; border-top: 1px solid rgba(245,240,230,0.12); display: flex; justify-content: space-between; color: rgba(245,240,230,0.5); font-size: 12px; letter-spacing: 0.04em; align-items: center; gap: 20px; flex-wrap: wrap; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== LIGHTBOX ===== */
.lightbox { position: fixed; inset: 0; background: rgba(35,22,19,0.95); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border: 1px solid rgba(217,188,107,0.5); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lightbox .lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--cream); font-family: 'Source Serif 4', serif; font-style: italic; font-size: 16px; }
.lightbox .lb-close { position: absolute; top: 24px; right: 32px; color: var(--cream); font-size: 38px; cursor: pointer; line-height: 1; border: none; background: none; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--gold-soft); font-size: 48px; cursor: pointer; background: none; border: none; padding: 0 18px; user-select: none; }
.lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }

/* ===== RESPONSIVE NAV ===== */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 0; padding: 12px 0; border-bottom: 2px solid var(--collard); box-shadow: 0 16px 30px rgba(59,39,35,0.12); }
  nav ul.open { display: flex; }
  nav ul li { width: 100%; }
  nav ul li a { display: block; padding: 14px 32px; }
  .nav-cta { margin: 8px 32px; text-align: center; }
}
@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}


/* ===== Collard & Sunlight additions ===== */
/* photos get a touch more life */
.page-hero-photo, .pull-bg, .sc-photo, .pc-photo, .story-media, .prog-media, .g, .founder-photo, .startme-photo, .story-hero-photo { filter: saturate(1.08) contrast(1.02); }

/* hover-zoom utility (applied via .zoomable wrapper or directly) */
.zoom-img { overflow: hidden; }
.zoom-img > * , .g, .sc-photo, .pc-photo { transition: transform 0.45s cubic-bezier(.2,.7,.3,1), filter 0.45s; }
.g:hover, .scard:hover .sc-photo, .produce-card:hover .pc-photo { transform: scale(1.045); filter: saturate(1.18) contrast(1.03) brightness(1.04); }

/* photo captions */
.capfig { position: relative; }
.capfig .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px; font-family: 'Source Serif 4', serif; font-style: italic; font-size: 13px; color: var(--cream); background: linear-gradient(to top, rgba(59,39,35,0.78), transparent); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.capfig:hover .cap { opacity: 1; transform: translateY(0); }

/* stat counter */
.stat-num[data-count] { font-variant-numeric: tabular-nums; }

/* marquee: pause on hover */
.know-band:hover .know-marquee { animation-play-state: paused; }

/* leaf draw-in */
.leaf-mark.draw svg path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: leafdraw 1.6s ease forwards; }
@keyframes leafdraw { to { stroke-dashoffset: 0; } }

/* scroll progress on story pages */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gold); width: 0%; z-index: 200; transition: width 0.1s linear; }

/* in-season spotlight strip (home) */
.spotlight { background: var(--cream-warm); padding: 70px 0; border-top: 1px solid var(--cream-deep); border-bottom: 1px solid var(--cream-deep); }
.spotlight-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.spotlight h2 { color: var(--collard); font-size: clamp(26px,2.8vw,38px); font-weight: 900; }
.spotlight .season-note { font-family: 'Source Serif 4', serif; font-style: italic; color: var(--soil-text); }
.spotlight-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.spot { border-radius: 2px; overflow: hidden; text-decoration: none; background: #fff; box-shadow: 0 8px 20px rgba(59,39,35,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.spot:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(59,39,35,0.15); }
.spot .sp-img { aspect-ratio: 1/1; background-size: cover; background-position: center; transition: transform 0.45s; }
.spot:hover .sp-img { transform: scale(1.06); }
.spot .sp-name { padding: 10px 12px 12px; font-weight: 800; font-size: 13px; color: var(--collard); line-height: 1.2; }
@media (max-width: 900px) { .spotlight-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .spotlight-row { grid-template-columns: repeat(2, 1fr); } }

/* ===== VIDEO HERO + FULL-BLEED + MOTION (round 5) ===== */
/* Video hero: video fills, poster shows first, light LEFT-anchored wash */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg,
    rgba(250,246,238,0.95) 0%,
    rgba(250,246,238,0.82) 30%,
    rgba(250,246,238,0.42) 55%,
    rgba(250,246,238,0.08) 78%,
    rgba(27,94,32,0.10) 100%);
}
@media (max-width: 760px) {
  /* phones: heavier wash for text legibility over poster */
  .hero-media::after { background: linear-gradient(180deg, rgba(250,246,238,0.92) 0%, rgba(250,246,238,0.7) 45%, rgba(250,246,238,0.5) 100%); }
}

/* Full-bleed parallax band */
.fullbleed { position: relative; height: 78vh; min-height: 460px; max-height: 760px; overflow: hidden; display: flex; align-items: flex-end; }
.fullbleed .fb-img { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.fullbleed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,63,26,0.82) 0%, rgba(20,63,26,0.25) 45%, rgba(20,63,26,0.05) 100%); }
.fullbleed .fb-caption { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 32px 56px; width: 100%; color: var(--cream); }
.fullbleed .fb-eyebrow { color: var(--gold-soft); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.fullbleed .fb-caption h2 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 900; line-height: 1.02; color: var(--cream); letter-spacing: -0.02em; max-width: 18ch; }
.fullbleed .fb-caption p { font-family: 'Source Serif 4', serif; font-style: italic; font-size: clamp(17px, 1.5vw, 21px); color: rgba(245,240,230,0.92); margin-top: 14px; max-width: 52ch; }
@media (max-width: 600px) { .fullbleed { height: 60vh; min-height: 380px; } }

/* slightly longer, softer reveal easing */
.reveal { transition: opacity 1.05s cubic-bezier(.2,.6,.2,1), transform 1.05s cubic-bezier(.2,.6,.2,1); }
