/* Peridot-Initiative — shared styles (frontend) */
:root {
  --peridot: #9fc131;
  --peridot-soft: #e7f0c3;
  --deep: #0b3d2e;
  --deep-2: #125240;
  --ink: #14211c;
  --muted: #5a6b63;
  --cream: #f7f9ef;
  --white: #ffffff;
  --sun: #f4b942;
  --sky: #2f8fb8;
  --danger: #c2410c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.12);
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--deep-2); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; color: var(--deep); margin: 0 0 .6rem; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.section { padding: 3.5rem 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--deep); color: #eaf3ee; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--deep-2); }
.section.dark .eyebrow { color: var(--peridot); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section.dark .lead { color: #cfe3d8; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--deep); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 249, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(11, 61, 46, .1); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--deep); font-family: Georgia, serif; font-weight: 700; font-size: 1.15rem; }
.brand svg { width: 34px; height: 34px; }
.nav-toggle { background: none; border: 2px solid var(--deep); color: var(--deep); border-radius: 10px; padding: .35rem .7rem; font-size: 1rem; font-weight: 700; cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid rgba(11, 61, 46, .12); padding: .5rem 1rem 1rem; }
.nav.open { display: block; }
.nav a { display: block; padding: .8rem .4rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(11, 61, 46, .08); }
.nav a[aria-current="page"] { color: var(--deep-2); }
.nav a.cta { margin-top: .8rem; text-align: center; background: var(--deep); color: #fff; border-radius: 999px; border: 0; }
@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav { display: flex !important; position: static; background: none; border: 0; padding: 0; align-items: center; gap: .2rem; }
  .nav a { border: 0; padding: .5rem .8rem; border-radius: 999px; }
  .nav a:hover { background: var(--peridot-soft); }
  .nav a[aria-current="page"] { background: var(--peridot-soft); }
  .nav a.cta { margin: 0 0 0 .5rem; }
  .nav a.cta:hover { background: var(--deep-2); }
}

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--peridot); color: var(--deep); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(159,193,49,.45), transparent 60%), linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #f1f8f3; padding: 4rem 0 4.5rem; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--peridot); font-style: normal; }
.hero .lead { color: #d3e6da; }
.hero-gem { position: absolute; right: -60px; bottom: -60px; width: 320px; opacity: .18; pointer-events: none; }
.page-hero { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%); color: #eaf3ee; padding: 3rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 3rem); }
.page-hero .lead { color: #cfe3d8; }

/* Grids and cards */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid rgba(11, 61, 46, .06); }
.section.alt .card { background: var(--cream); }
.card .icon { font-size: 1.8rem; margin-bottom: .5rem; }
.stat { text-align: center; }
.stat .num { font-family: Georgia, serif; font-size: 2.3rem; font-weight: 700; color: var(--deep-2); }
.section.dark .stat .num { color: var(--peridot); }
.stat p { margin: 0; color: var(--muted); font-size: .95rem; }
.section.dark .stat p { color: #cfe3d8; }
.note { font-size: .88rem; color: var(--muted); }
.section.dark .note { color: #b6cfc2; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Accordion */
details { background: var(--white); border-radius: 14px; border: 1px solid rgba(11, 61, 46, .1); padding: 0 1.2rem; margin-bottom: .8rem; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 700; color: var(--deep); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--deep-2); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; }
label { font-weight: 700; display: block; margin-bottom: .3rem; color: var(--deep); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: .8rem 1rem; border: 2px solid rgba(11, 61, 46, .18); border-radius: 12px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--deep-2); outline: none; box-shadow: 0 0 0 3px var(--peridot-soft); }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; gap: .5rem; }
.checks label { font-weight: 500; display: flex; gap: .6rem; align-items: center; margin: 0; color: var(--ink); }
.checks input { width: 20px; height: 20px; accent-color: var(--deep-2); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: .9rem 1rem; border-radius: 12px; display: none; font-weight: 600; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--peridot-soft); color: var(--deep); }
.form-msg.err { background: #fde8dc; color: var(--danger); }

/* Calculator */
.calc-result { margin-top: 1.4rem; padding: 1.4rem; border-radius: var(--radius); background: var(--deep); color: #fff; display: none; }
.calc-result.show { display: block; }
.calc-total { font-family: Georgia, serif; font-size: 2.4rem; color: var(--peridot); }
.bar-row { display: grid; grid-template-columns: 90px 1fr 70px; gap: .6rem; align-items: center; margin: .5rem 0; font-size: .92rem; }
.bar { height: 12px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--peridot); width: 0; transition: width .7s ease; }
.compare { font-size: .95rem; color: #d3e6da; }

/* Challenge */
.progress { height: 14px; background: var(--peridot-soft); border-radius: 999px; overflow: hidden; margin: .6rem 0 1.2rem; }
.progress > span { display: block; height: 100%; width: 0; background: var(--deep-2); transition: width .4s ease; }
.challenge-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.challenge-list label { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; background: var(--white); padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(11,61,46,.1); cursor: pointer; color: var(--ink); }
.challenge-list input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--deep-2); flex: none; }
.challenge-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.pledge-wall { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { background: var(--peridot-soft); color: var(--deep); padding: .35rem .8rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }

/* Timeline / steps */
.steps { counter-reset: step; display: grid; gap: 1rem; padding: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 4rem; position: relative; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--peridot); color: var(--deep); font-weight: 800; display: grid; place-items: center; }

/* Footer */
.site-footer { background: #072a20; color: #bcd3c6; padding: 3rem 0 2rem; }
.site-footer a { color: #e7f0c3; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; font-size: .88rem; }

.to-top { position: fixed; right: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: var(--shadow); display: none; z-index: 90; }
.to-top.show { display: block; }

@media print { .site-header, .site-footer, .to-top, .btn-row { display: none; } body { background: #fff; } }
