/* =========================================================
   Emerald Heritage Farm — Site Styles
   Palette: the farm's Canva colors, used exactly.
   Greens carry text; orange/brown are shapes + accents only
   (they fail readability as small text on light backgrounds).
   ========================================================= */

@import url('../fonts/fonts.css');

:root {
  --green-900: #02551a;   /* Canva "Dark Green"   — headings, header/footer, buttons */
  --green-700: #01701b;   /* Canva "Dark Green 3" — hover, secondary headings */
  --green-500: #018918;   /* Canva "Dark Green 2" — leaf accents, strokes */
  --gold:      #e8b130;   /* Canva "Orange"       — sunrise, accents, gold buttons */
  --brown:     #ba8311;   /* Canva "Brown"        — outlines, borders, details */
  --cream:     #fbf7ee;   /* page background */
  --cream-2:   #f3ead6;   /* alternate section background */
  --white:     #ffffff;
  --ink:       #223026;   /* body text (green-tinted charcoal) */
  --ink-soft:  #4d5c51;   /* muted text — passes AA on cream */
  --line:      rgba(186, 131, 17, 0.28);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(2, 85, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 85, 26, 0.16);
  --container: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

/* subtle paper grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-900); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 10px;
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--cream-2); }
.section--green { background: var(--green-900); color: var(--cream); }
.section--green h2, .section--green h3 { color: var(--cream); }
.section--green .eyebrow { color: var(--gold); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--green-900); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 247, 238, 0.7);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(251, 247, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(2, 85, 26, 0.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green-900);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--green-900);
  transition: background 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(2, 85, 26, 0.08); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--green-900); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease; position: relative; content: '';
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .brand span { font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid var(--green-900);
  background: var(--green-900);
  color: var(--cream);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--green-700); border-color: var(--green-700); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: #f0be47; border-color: #f0be47; color: var(--green-900); }
.btn--ghost { background: transparent; color: var(--green-900); }
.btn--ghost:hover { background: rgba(2, 85, 26, 0.08); }
.section--green .btn--ghost { color: var(--cream); border-color: var(--cream); }
.section--green .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn svg { width: 20px; height: 20px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 56px) clamp(72px, 9vw, 120px);
  text-align: center;
}
.hero__sky {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 177, 48, 0.28), transparent 65%),
              linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero__sun {
  position: absolute; left: 50%; bottom: -8vw; z-index: 0;
  width: min(120vw, 1100px); aspect-ratio: 1 / 1;
  transform: translate(-50%, 55%);
  animation: sunrise 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.hero__sun circle { fill: url(#sunGrad); }
.hero__sun .ray { stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: 0.55; transform-origin: 500px 500px; animation: rays 40s linear infinite; }
@keyframes sunrise { to { transform: translate(-50%, 42%); } }
@keyframes rays { to { transform: rotate(360deg); } }
.hero .container { position: relative; z-index: 1; }
.hero__logo { width: clamp(170px, 30vw, 260px); margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(2, 85, 26, 0.18)); }
.hero h1 { margin-inline: auto; max-width: 16ch; }
.hero .lede { margin: 0 auto 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__hills {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1;
  width: 100%; height: clamp(60px, 9vw, 130px);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(1, 137, 24, 0.18); }

/* =========================================================
   Cards + grids
   ========================================================= */
.grid { display: grid; gap: clamp(18px, 3vw, 30px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 2px 0 rgba(186, 131, 17, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 72px; height: 72px; margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.card__icon img, .card__icon svg { width: 46px; height: 46px; }
.card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; }
.card a.more::after { content: ' →'; }

/* =========================================================
   Mission / quote
   ========================================================= */
.mission { position: relative; }
.mission blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--cream);
  font-variation-settings: 'opsz' 72, 'SOFT' 60;
  text-align: center;
}
.mission blockquote::before {
  content: '“';
  display: block;
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 18px;
  font-style: normal;
}
.mission .leaf { width: 54px; margin: 26px auto 0; }

/* slogan band */
.slogan {
  background: var(--green-900);
  color: var(--cream);
  padding-block: 34px;
  overflow: hidden;
}
.slogan ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 500;
  font-variation-settings: 'opsz' 48;
}
.slogan li { display: flex; align-items: center; padding-inline: clamp(12px, 3vw, 28px); }
.slogan li + li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: clamp(24px, 6vw, 56px); }

/* =========================================================
   Feature rows (Farm Stand page)
   ========================================================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.feature + .feature { margin-top: clamp(40px, 6vw, 80px); }
.feature:nth-child(even) .feature__art { order: 2; }
.feature__art {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
  position: relative;
}
.feature__art::before {
  content: ''; position: absolute; inset: 12px; border: 1px dashed var(--line); border-radius: calc(var(--radius) - 6px); pointer-events: none;
}
.feature__art img { width: min(100%, 320px); margin-inline: auto; }
.feature h2 { margin-bottom: 0.4em; }
.feature p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__art { order: 0; }
}

/* =========================================================
   Seasons
   ========================================================= */
.season {
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--gold);
}
.season--spring { border-top-color: var(--green-500); }
.season--summer { border-top-color: var(--gold); }
.season--fall { border-top-color: var(--brown); }
.season--winter { border-top-color: var(--green-900); }
.season h3 { display: flex; align-items: center; gap: 10px; }
.season h3 svg { width: 28px; height: 28px; flex: none; }
.season ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.season li + li { margin-top: 6px; }
.season .now { display: inline-block; margin-left: auto; font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--green-900); background: rgba(232, 177, 48, 0.35); padding: 4px 9px; border-radius: 999px; }

/* =========================================================
   Journey timeline
   ========================================================= */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 720px; margin-inline: auto; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), var(--green-500)); }
.timeline li { position: relative; padding: 0 0 34px 60px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: 10px; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--green-500);
}
.timeline li.is-done::before { background: var(--green-500); }
.timeline li.is-now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 6px rgba(232, 177, 48, 0.25); }
.timeline li.is-next::before { border-style: dashed; border-color: var(--brown); }
.timeline h3 { margin-bottom: 0.2em; }
.timeline p { color: var(--ink-soft); margin: 0; }
.timeline .when { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--green-700); }

/* =========================================================
   Signup spot (Phase A placeholder) + social
   ========================================================= */
.signup {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.signup h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.signup p { color: var(--ink-soft); }
.social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream);
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--green-900);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social a:hover { transform: translateY(-2px); background: var(--white); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.section--green .social a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: var(--cream); }
.section--green .social a:hover { background: rgba(255, 255, 255, 0.16); }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.contact-card dt { font-weight: 700; color: var(--green-900); }
.contact-card dd { margin: 0; color: var(--ink-soft); }
.map-note { border-radius: var(--radius); background: var(--green-900); color: var(--cream); padding: clamp(24px, 3.5vw, 40px); }
.map-note h3 { color: var(--cream); }
.map-note p { color: rgba(251, 247, 238, 0.85); }
.map-note svg { width: 100%; height: auto; margin-bottom: 14px; }

/* =========================================================
   Prose pages (privacy)
   ========================================================= */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose .meta { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--green-900); color: rgba(251, 247, 238, 0.85); padding-block: 44px 24px; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; } }
.footer .brand span { color: var(--cream); }
.footer p { margin: 12px 0 0; max-width: 40ch; }
.footer h4 { color: var(--gold); font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__slogan { max-width: none; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(251, 247, 238, 0.18); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--cream); text-align: center; }
.footer__bottom { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 0.86rem; color: rgba(251, 247, 238, 0.65); }
.footer__bottom a { color: inherit; }

/* =========================================================
   Reveal on scroll (auto-off with reduced motion)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__sun { animation: none; transform: translate(-50%, 42%); }
  .hero__sun .ray { animation: none; }
  .card, .btn, .social a { transition: none; }
}

/* =========================================================
   404
   ========================================================= */
.lost { text-align: center; padding-block: clamp(56px, 9vw, 110px); }
.lost img { width: 160px; margin: 0 auto 20px; }
.lost h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
