/* ============================================================
   Building Green, Made Simple — site stylesheet
   Palette per BGMS Style Guide v1 (Earth & Forest)
   ============================================================ */
:root {
  --forest: #2D5A27;
  --forest-deep: #1F3F1B;
  --terracotta: #B05A1A;
  --sage: #7FB069;
  --leaf-tint: #E4EFDC;
  --cream: #F7F3EA;
  --charcoal: #2B2B2B;
  --stone: #8A8680;
  --paper: #FFFFFF;
  --rule: #D8D2C4;

  /* Six-zone sidebar system from the print guide */
  --zone-hh: #2D5A27;
  --zone-hd: #B05A1A;
  --zone-tm: #7FB069;
  --zone-co: #8A8680;
  --zone-ha: #2B2B2B;
  --zone-mx: #A9C68C;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", Calibri, "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

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

/* ---- Zone band: the site's signature element.
   A six-color strip, one band per climate zone, runs across the
   top of every page — the guide's organising idea made visual. */
.zone-band { display: flex; height: 8px; width: 100%; }
.zone-band span { flex: 1; }
.zone-band .hh { background: var(--zone-hh); }
.zone-band .hd { background: var(--zone-hd); }
.zone-band .tm { background: var(--zone-tm); }
.zone-band .co { background: var(--zone-co); }
.zone-band .ha { background: var(--zone-ha); }
.zone-band .mx { background: var(--zone-mx); }

header.site {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 1.2rem;
}
header.site .inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em;
  color: var(--forest); text-decoration: none;
}
.brand em { font-style: normal; color: var(--terracotta); }
nav.site a {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  color: var(--charcoal); text-decoration: none; margin-right: 1.1rem;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--terracotta); }

main { max-width: 980px; margin: 0 auto; padding: 1.5rem 1.2rem 4rem; }

h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15; color: var(--forest); margin: 1.2rem 0 0.4rem;
}
h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.25rem;
  color: var(--forest); margin: 2.2rem 0 0.6rem;
}
h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin: 1.4rem 0 0.4rem; }

.lede { font-size: 1.12rem; max-width: 46rem; }
.kicker {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta);
}
.note { font-size: 0.88rem; color: var(--stone); }

a { color: var(--forest); }
a:hover { color: var(--terracotta); }

.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.95rem; padding: 0.65rem 1.2rem; border-radius: 6px;
  text-decoration: none; border: 2px solid var(--forest);
  color: var(--forest); background: transparent; cursor: pointer;
}
.btn.primary { background: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--forest-deep); color: #fff; }
.btn:hover { background: var(--leaf-tint); }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--terracotta); outline-offset: 2px;
}

/* Zone chips */
.chip {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.15rem 0.55rem;
  border-radius: 999px; color: #fff; vertical-align: middle;
}
.chip.hh { background: var(--zone-hh); }
.chip.hd { background: var(--zone-hd); }
.chip.tm { background: var(--zone-tm); color: var(--forest-deep); }
.chip.co { background: var(--zone-co); }
.chip.ha { background: var(--zone-ha); }
.chip.mx { background: var(--zone-mx); color: var(--forest-deep); }
.chip.ghost { background: var(--cream); color: var(--stone); border: 1px solid var(--rule); }

/* Cards & callouts (echo the print callout system) */
.card {
  background: var(--cream); border: 1px solid var(--rule);
  border-radius: 8px; padding: 1.1rem 1.2rem; margin: 0.9rem 0;
}
.card.win    { border-left: 6px solid var(--forest); }
.card.number { border-left: 6px solid var(--terracotta); }
.card.wisdom { border-left: 6px solid var(--sage); }

.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th { background: var(--forest); color: #fff; font-family: var(--font-head); font-weight: 600; text-align: left; padding: 0.5rem 0.7rem; }
td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:nth-child(even) td { background: var(--leaf-tint); }

input[type="text"], select {
  font-family: var(--font-body); font-size: 1.05rem;
  padding: 0.7rem 0.9rem; border: 2px solid var(--forest);
  border-radius: 6px; width: 100%; background: #fff; color: var(--charcoal);
}

footer.site {
  border-top: 1px solid var(--rule); background: var(--cream);
  padding: 1.4rem 1.2rem; font-size: 0.85rem; color: var(--stone);
}
footer.site .inner { max-width: 980px; margin: 0 auto; }
footer.site a { color: var(--forest); }

.badge-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.4rem 0; }
.tag {
  font-family: var(--font-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--leaf-tint); color: var(--forest-deep);
  border-radius: 4px; padding: 0.15rem 0.5rem;
}
.tag.pay { background: #F3E3D3; color: var(--terracotta); }
.tag.fin { background: #EFEFEF; color: var(--charcoal); }
