/*
Theme Name: Emplant
Theme URI: https://emplant.org
Author: Emplant
Description: Lightweight custom theme for Emplant. We help communities grow their own food, wealth, and health.
Version: 1.1.0
License: Proprietary
Text Domain: emplant
*/

/* ==========================================================================
   EMPLANT — brand.css
   Design tokens + reusable components. Link this on every page; do not
   redeclare palette/type/spacing per-page — extend with a page-specific
   stylesheet only if a page needs something truly unique.
   ========================================================================== */

/* ---- Fonts (Google Fonts, free) ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Brand palette (final, deeper/warmer set) */
  --forest: #14351B;      /* ground / dark backgrounds, primary headings */
  --green: #2C6417;       /* primary green, links, icons */
  --green-light: #4B9D27; /* lighter accent green */
  --orange: #FB5F11;      /* warm accent — sprout, CTAs, highlights */
  --soil: #3D2500;        /* earth brown — grounding detail */
  --cream: #F0F0F0;       /* page background / off-white */
  --cream-deep: #E4E4DC;  /* slightly deeper cream for card fills */
  --ink: #232821;         /* body text on light backgrounds */
  --ink-soft: #5A5F58;    /* secondary/muted text */
  --white: #FFFFFF;

  /* Type */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-ui: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', system-ui, Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Radius / shadow */
  --radius: 20px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 53, 27, 0.10);

  /* Layout */
  --container-w: 1120px;
}

/* ---- Reset (minimal) ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; font-family: var(--font-ui); font-weight: 600; }
h4 { font-size: 1.1rem; font-family: var(--font-ui); font-weight: 600; }
p { margin: 0 0 var(--space-sm); color: var(--ink); }
.eyebrow {
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green);
  margin: 0 0 var(--space-xs);
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.serif-quote {
  font-family: var(--font-heading); font-style: italic; font-weight: 500;
  color: var(--green); font-size: 1.4rem; line-height: 1.4;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%; max-width: var(--container-w); margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-2xl) 0; }
.section--tight { padding: var(--space-xl) 0; }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p { color: #C9D3C7; }
.section--card { background: var(--white); }
.grid {
  display: grid; gap: var(--space-lg);
}
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-sm); }
.row { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--font-ui); font-weight: 600;
  font-size: 15px; padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--forest); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { opacity: .9; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 240, 240, 0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20,53,27,0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-sm); padding-bottom: var(--space-sm);
}
.brand-logo { display: flex; align-items: center; gap: 10px; }
/* Header logo: transparent green wordmark (Emplant_Logos/emplant-wordmark-green-transparent.svg) */
.brand-logo img, .brand-logo svg { height: 40px; width: auto; }
.brand-logo-word { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--forest); }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a {
  font-family: var(--font-ui); font-weight: 500; font-size: 15px; color: var(--ink);
}
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta { margin-left: var(--space-sm); }
.site-header .container { gap: var(--space-md); }
.nav-links a { white-space: nowrap; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--white); }
@media (max-width: 760px) {
  .brand-logo img, .brand-logo svg { height: 30px; }
  .nav-links { gap: var(--space-sm); }
  .nav-links a { font-size: 13px; }
  .nav-links .btn { padding: 8px 14px; font-size: 13px; margin-left: 0; }
}
@media (max-width: 560px) {
  .site-header .container { flex-direction: column; gap: var(--space-xs); }
}

/* ---- Footer ---- */
.site-footer { background: var(--forest); color: #C9D3C7; padding: var(--space-xl) 0 var(--space-lg); }
.site-footer .container {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-xl);
  align-items: start;
}
.site-footer .container > div:first-child { max-width: 340px; }
.site-footer .container > div:not(:first-child) { min-width: 150px; }
.site-footer .stack { gap: var(--space-xs); }
.site-footer h4 { color: var(--cream); margin-bottom: var(--space-xs); }
.site-footer a { color: #C9D3C7; }
.site-footer a:hover { color: var(--cream); }
.social { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(240,240,240,0.35); }
.social a:hover { background: var(--cream); color: var(--forest); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-tagline { font-family: var(--font-heading); font-style: italic; color: var(--cream); font-size: 1.1rem; }
.footer-bottom {
  max-width: var(--container-w); margin: var(--space-lg) auto 0; padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid rgba(240,240,240,0.15); font-size: 13px; color: #9FB09B;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs);
}
@media (max-width: 760px) {
  .site-footer .container { grid-template-columns: 1fr; gap: var(--space-lg); }
  .site-footer .container > div:first-child { max-width: none; }
}

/* ---- Cards ---- */
.card {
  background: var(--white); border-radius: var(--radius); padding: var(--space-lg);
  box-shadow: var(--shadow); border: 1px solid rgba(20,53,27,0.06);
}
.card--cream { background: var(--cream-deep); box-shadow: none; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-sm);
}

/* ---- Hero ---- */
.hero { padding: var(--space-lg) 0 var(--space-xl); }
.hero svg { max-width: 400px; margin-left: auto; }
.hero h1 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-xl); align-items: center; }
.hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* ---- Interior page hero + helpers ---- */
.page-hero { padding: var(--space-xl) 0 var(--space-md); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; }
.anchor { scroll-margin-top: 110px; }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--space-md); }
.check-list li { position: relative; padding-left: 28px; margin-bottom: var(--space-xs); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) translateY(-50%); }
.card h4 { margin-top: var(--space-md); }
.card .btn { margin-top: var(--space-sm); }

/* ---- Tag / pill ---- */
.pill {
  display: inline-block; font-family: var(--font-ui); font-weight: 500; font-size: 12.5px;
  padding: 6px 14px; border-radius: 999px; background: var(--cream-deep); color: var(--forest);
}
.pill--accent { background: #FDE3D3; color: #A8380A; }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-soft); }
.divider { height: 1px; background: rgba(20,53,27,0.1); border: 0; margin: var(--space-lg) 0; }


/* ---- WordPress adjustments ---- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.entry p, .entry li { color: var(--ink); }
.entry img { border-radius: var(--radius-sm); }
