/* ==========================================================================
   Firefly Innovations — design tokens
   Palette: roasted-garri gold, cassava-leaf green, soil brown, warm husk paper
   Type: Fraunces (display, warm/organic) + Karla (body) + Spline Sans Mono (labels)
   Signature element: the "Harvest Ledger" journey strip (farm -> table)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Karla:wght@400;500;600;700&family=Spline+Sans+Mono:wght@400;500&display=swap');

:root {
  --paper: #F3ECD8;
  --paper-card: #FFFCF5;
  --bark: #20301D;
  --soil: #3B2F22;
  --gold: #C68A3D;
  --gold-deep: #A6702B;
  --leaf: #4C6B3F;
  --leaf-deep: #37502D;
  --line: rgba(59, 47, 34, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, monospace;

  --radius: 6px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--soil);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--bark);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  display: inline-block;
  margin-bottom: 0.9em;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--bark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .mark {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,138,61,0.18);
}

nav.primary { display: flex; gap: 28px; }
nav.primary a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--soil);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; }

@media (max-width: 780px) {
  nav.primary {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px 12px; font-family: var(--font-mono); font-size: 0.8rem; cursor: pointer;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: #241505; }
.btn-gold:hover { background: var(--gold-deep); }

.btn-outline { background: transparent; border-color: var(--bark); color: var(--bark); }
.btn-outline:hover { background: var(--bark); color: var(--paper-card); }

.btn-leaf { background: var(--leaf); color: #F6F4E9; }
.btn-leaf:hover { background: var(--leaf-deep); }

/* ---------- hero ---------- */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { max-width: 760px; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--soil);
  max-width: 56ch;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { max-width: 780px; }

/* ---------- section ---------- */

section.block { padding: 64px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

/* ---------- harvest ledger (signature journey strip) ---------- */

.ledger {
  background: var(--bark);
  color: #EFE9D6;
  border-radius: 10px;
  padding: 40px 32px;
  margin: 8px 0;
}
.ledger .eyebrow { color: var(--gold); }
.ledger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
}
.ledger-step {
  border-left: 1px solid rgba(239,233,214,0.22);
  padding: 0 20px;
}
.ledger-step:first-child { border-left: none; padding-left: 0; }
.ledger-step .stage {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.ledger-step h3 { color: #F6F4E9; font-size: 1.05rem; margin-bottom: 6px; }
.ledger-step p { color: rgba(239,233,214,0.78); font-size: 0.92rem; margin: 0; }

@media (max-width: 780px) {
  .ledger-row { grid-template-columns: 1fr; gap: 24px; }
  .ledger-step { border-left: none; border-top: 1px solid rgba(239,233,214,0.22); padding: 20px 0 0; }
  .ledger-step:first-child { border-top: none; padding-top: 0; }
}

/* ---------- product / feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon { font-size: 1.6rem; margin-bottom: 10px; display: block; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--soil); font-size: 0.95rem; margin-bottom: 14px; }
.card a.order-link { font-weight: 700; font-size: 0.9rem; color: var(--leaf-deep); text-decoration: none; }
.card a.order-link:hover { text-decoration: underline; }

/* ---------- testimonials ---------- */

.testimonial {
  background: var(--paper-card);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.testimonial p.quote { font-family: var(--font-display); font-size: 1.05rem; font-style: italic; color: var(--bark); }
.testimonial .who { font-family: var(--font-mono); font-size: 0.8rem; color: var(--leaf-deep); }

/* ---------- forms ---------- */

form.stack {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin-top: 28px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-card);
  color: var(--soil);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-note { font-size: 0.88rem; color: var(--soil); opacity: 0.8; margin-top: -6px; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 40px;
  font-size: 0.9rem;
}
footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
footer.site-footer a { text-decoration: none; }
footer.site-footer .col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 10px;
}
footer.site-footer .col a { display: block; margin-bottom: 6px; color: var(--soil); }
footer.site-footer .copyright {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soil);
  opacity: 0.7;
  font-size: 0.82rem;
}

/* ---------- whatsapp float button ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  background: var(--leaf);
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(32,48,29,0.35);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); background: var(--leaf-deep); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- pay callout ---------- */

.pay-callout {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pay-callout p { margin: 0; font-size: 0.92rem; max-width: 40ch; }
