/* ============================================================
   Eco ʻAina Forest Farm — ecoaina.com
   "Hilo Food Forest" visual system (see Website Design Spec.md)
   ============================================================ */

:root {
  --cream: #F7F2E9;        /* Coconut Cream — page background */
  --charcoal: #26261F;     /* Volcanic Charcoal — body text */
  --canopy: #1E3D2C;       /* Forest Canopy — header/footer/headings */
  --tileaf: #4F8061;       /* Ti Leaf Green — secondary, links, badges */
  --tileaf-soft: #E4ECE0;  /* soft Ti-Leaf tint for illustration blobs */
  --lychee: #C0432E;       /* Lychee Red — one CTA per page */
  --papaya: #E0A341;       /* Papaya Gold — badges, small highlights */
  --white: #FFFFFF;

  --font-head: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", "Work Sans", Arial, sans-serif;

  --radius: 10px;          /* soft organic edges, 8–12px */
  --shadow: 0 2px 12px rgba(38, 38, 31, 0.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

/* ---------- Type scale ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--canopy);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: 52px; font-weight: 600; }
h2 { font-size: 34px; font-weight: 600; }
h3 { font-size: 23px; font-weight: 500; }

p { margin: 0 0 1em; }

a { color: var(--tileaf); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--tileaf);
  margin-bottom: 0.75em;
}

.lead { font-size: 19px; }

/* ---------- Layout ---------- */

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

section { padding: 72px 0; }

.band {
  background: var(--canopy);
  color: var(--white);
}
.band h2, .band h3 { color: var(--white); }
.band a { color: var(--cream); text-decoration: underline; }

/* ---------- Header / nav ---------- */

header.site {
  background: var(--canopy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-desktop { height: 56px; width: auto; }
.logo-mobile { display: none; height: 76px; width: auto; }

nav.main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

nav.main a {
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

nav.main a:hover { border-bottom-color: var(--papaya); text-decoration: none; }
nav.main a.active { border-bottom-color: var(--lychee); }

/* hamburger (CSS-only) */
.nav-toggle { display: none; }
.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--cream);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  padding: 14px 28px;
  min-height: 44px;
  text-decoration: none;
  text-align: center;
  transition: filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }

.btn-primary { background: var(--lychee); color: var(--white); }
.btn-secondary { background: var(--tileaf); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--canopy);
  border: 2px solid var(--tileaf);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 14px;
}
.badge-now { background: var(--tileaf); color: var(--white); }
.badge-soon { background: var(--papaya); color: var(--charcoal); }
.badge-seasonal {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--papaya);
}

/* ---------- Cards & grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card .card-body .btn { margin-top: auto; align-self: flex-start; }

.price {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 22px;
  color: var(--canopy);
}

/* ---------- Illustration placeholder slots (fixed ratios) ---------- */

.ph { width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--tileaf-soft); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-169 { aspect-ratio: 16 / 9; border-radius: 0; }   /* Home hero */
.ph-11 { aspect-ratio: 1 / 1; }                       /* thumbnails, shop */
.ph-32 { aspect-ratio: 3 / 2; }                       /* Our Farm strip */
.ph-43 { aspect-ratio: 4 / 3; }                       /* Products lines */

.card .ph { border-radius: 0; }

figure.slot { margin: 0; }
figure.slot figcaption {
  font-size: 13.5px;
  color: var(--tileaf);
  font-style: italic;
  margin-top: 8px;
}
.card figure.slot figcaption { padding: 0 24px; margin-top: 10px; }

/* ---------- Hero ---------- */

.hero { padding: 0; }
.hero .ph-169 { max-height: 480px; }
.hero-text { text-align: center; padding: 56px 24px 16px; max-width: 820px; margin: 0 auto; }

.positioning {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 16px;
  text-align: center;
}
.positioning blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--canopy);
  border-top: 2px solid var(--papaya);
  border-bottom: 2px solid var(--papaya);
  padding: 22px 8px;
}

/* ---------- Page intro block ---------- */

.page-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 64px 24px 0; }

.cta-row { text-align: center; padding: 8px 24px 72px; }

/* divider leaf motif */
.leaf-divider { text-align: center; padding: 8px 0 0; }
.leaf-divider svg { display: inline-block; }

/* ---------- Shop ---------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.note {
  background: var(--white);
  border-left: 4px solid var(--papaya);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15.5px;
}

/* ---------- Footer ---------- */

footer.site {
  background: var(--canopy);
  color: var(--cream);
  padding: 48px 0 36px;
  margin-top: 24px;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
footer.site img { height: 64px; width: auto; }
footer.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
footer.site nav a { color: var(--cream); font-weight: 600; font-size: 14.5px; text-decoration: none; }
footer.site nav a:hover { text-decoration: underline; }
footer.site .fine { font-size: 14px; color: #BFD2C5; width: 100%; margin: 6px 0 0; }
footer.site .fine a { color: #BFD2C5; }

/* ============================================================
   Mobile / responsive (Phase 6.5) — single column at phone width
   ============================================================ */

@media (max-width: 860px) {
  .grid-3, .grid-2, .shop-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 32px; }
  h2 { font-size: 25px; }
  h3 { font-size: 20px; }
  .lead { font-size: 17px; }
  .positioning blockquote { font-size: 18px; }

  section { padding: 40px 0; }
  .page-head { padding-top: 40px; }
  .hero-text { padding: 36px 20px 8px; }

  .grid-3, .grid-2, .shop-grid { grid-template-columns: 1fr; }

  /* full-width tappable CTA */
  .cta-row .btn, .card .card-body .btn { display: block; width: 100%; align-self: stretch; }

  /* logo swap: stacked mark in the dark mobile header */
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }

  /* nav collapses to hamburger */
  .hamburger { display: block; }
  nav.main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--canopy);
    display: none;
    box-shadow: var(--shadow);
  }
  nav.main ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  nav.main a { display: block; padding: 14px 28px; border-bottom: none; }
  nav.main a.active { color: var(--papaya); }
  .nav-toggle:checked ~ nav.main { display: block; }

  footer.site .wrap { flex-direction: column; align-items: flex-start; }
}
