/* TransitionForestry.nz — shared styles
   Natural / earthy theme: forest greens, warm neutrals, serif headings */

:root {
  --forest:    #2f4a35;   /* deep canopy green */
  --forest-2:  #3e6048;   /* mid green */
  --moss:      #6e8b5a;   /* moss accent */
  --bark:      #5a4632;   /* warm brown */
  --clay:      #b5703f;   /* terracotta accent */
  --sand:      #f3eee4;   /* warm paper */
  --sand-2:    #e8e0d0;   /* slightly deeper paper */
  --ink:       #24281f;   /* near-black warm */
  --ink-soft:  #4a4f43;   /* soft body text */
  --line:      #d8cfbd;   /* hairline */
  --white:     #fbf9f4;

  --maxw: 980px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36,40,31,.06), 0 8px 28px rgba(36,40,31,.07);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; color: var(--forest-2); }

p { margin: 0 0 1.1em; }
a { color: var(--forest-2); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,238,228,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem;
  color: var(--forest); text-decoration: none; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.brand .leaf {
  width: 22px; height: 22px; flex: none;
}
.nav-links {
  display: flex; gap: 22px; flex-wrap: wrap; align-items: center;
}
.nav-links a {
  font-size: .98rem; text-decoration: none; color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-links a.active { border-bottom: 2px solid var(--clay); padding-bottom: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(110,139,90,.28), transparent 60%),
    linear-gradient(180deg, #34503a, #2f4a35);
  color: var(--white);
  padding: 92px 0 78px;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(251,249,244,.9); max-width: 56ch; margin-bottom: 1.6em;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--moss); margin-bottom: 14px;
}
.hero .eyebrow { color: #c7d8b6; }

/* page header (non-hero) */
.page-head { padding: 64px 0 8px; }
.page-head .eyebrow { color: var(--clay); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; font-size: 1rem;
  transition: transform .08s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: #a3602f; color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-2); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--sand-2); }
.section-intro { max-width: 60ch; margin-bottom: 14px; }

/* card links on homepage */
.card-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(36,40,31,.12); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin-bottom: 1em; }
.card .more { margin-top: auto; color: var(--clay); font-weight: 600; font-size: .95rem; }

/* problem / solution columns */
.ps-grid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.ps-grid .panel {
  border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
}
.panel.problem { background: #f6ece4; border-color: #e6d2c2; }
.panel.solution { background: #eef1e6; border-color: #d9e2c6; }
.panel h3 { color: var(--bark); }
.panel.solution h3 { color: var(--forest); }
.panel ul { padding-left: 1.1em; margin: 0; }
.panel li { margin-bottom: .55em; }

/* partner list */
.partner {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.partner:last-child { border-bottom: 0; }
.partner h3 { margin: 0; }
.partner .role { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--moss); font-weight: 700; }
.partner p { margin: 4px 0 0; }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 20px; margin: 26px 0 6px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.fact .num { font-family: var(--serif); font-size: 1.9rem; color: var(--forest); display: block; line-height: 1.1; }
.fact .lbl { font-size: .9rem; }

/* callout */
.callout {
  background: var(--forest); color: var(--white); border-radius: var(--radius);
  padding: 34px; margin-top: 30px;
}
.callout h2, .callout h3 { color: #fff; }
.callout p { color: rgba(251,249,244,.92); }
.callout a { color: #e9d3bf; }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); margin-top: 24px;
}
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
input, textarea, select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--sand); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--moss); border-color: var(--moss); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest); color: rgba(251,249,244,.85);
  padding: 46px 0 38px; margin-top: 20px;
}
.site-footer a { color: #e9d3bf; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.site-footer .fine { font-size: .85rem; color: rgba(251,249,244,.6); margin-top: 26px; }

/* utility */
.lede { font-size: 1.2rem; color: var(--ink); }
.mt-0 { margin-top: 0; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

@media (max-width: 680px) {
  .ps-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  body { font-size: 17px; }
}
