/* Civic Grove — shared styles
   Brand: deep green #152E22, white, blush accent #D8B5A0. Marcellus wordmark + headings, Inter body. */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --forest: #152E22;        /* primary dark green — nav, footer, headings, dark bands */
  --pine: #1E4535;          /* secondary dark green */
  --teal: #152E22;          /* mapped to forest for compatibility */
  --teal-bright: #1E4535;   /* mapped to pine for compatibility */

  /* Accent */
  --clay: #D8B5A0;          /* blush — accents, highlights (never a background wash) */
  --clay-deep: #B98E74;     /* readable blush for small text on white */
  --sand: #F7F5F1;          /* light warm section background */
  --wheat: #D8B5A0;         /* mapped for compatibility */

  /* Neutrals */
  --ink: #1d211f;           /* body text */
  --slate: #5a615d;         /* secondary text */
  --paper: #ffffff;         /* page background */
  --white: #ffffff;
  --line: #e5e2dc;          /* hairline borders */

  /* Type */
  --sans: "Inter", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --serif: "Marcellus", Georgia, serif;
  --display: "Marcellus", Georgia, serif;

  /* Layout */
  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(21, 46, 34, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.section--sand { background: var(--sand); }
.section--pine { background: var(--pine); color: var(--white); }
.section--pine h2, .section--pine h3 { color: var(--white); }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: 0;
}
h3, h4 {
  font-family: var(--sans);
  line-height: 1.25;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.9rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; line-height: 1.7; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clay-deep);
  margin: 0 0 12px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.brand:hover { color: var(--white); }
.brand .mark { flex: 0 0 auto; }
.brand .name span { color: inherit; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.12); }
.nav-links a.nav-cta {
  background: var(--clay);
  color: var(--forest);
  font-weight: 700;
}
.nav-links a.nav-cta:hover { background: #cba488; color: var(--forest); }

/* Mobile nav toggle (CSS-only) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
  font-size: 1.4rem;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--pine); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-teal {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-teal:hover { background: var(--forest); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .container { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 96px; }
.hero h1 {
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 400;
  color: var(--forest);
  max-width: 15ch;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero .lead { color: var(--slate); max-width: 50ch; font-size: 1.15rem; margin-bottom: 8px; }
.hero .tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--clay-deep);
  margin: 0 0 22px;
}
.hero .btn-secondary {
  color: var(--forest);
  border-color: var(--forest);
}
.hero .btn-secondary:hover { background: var(--forest); color: var(--white); }

/* Page intro band (interior pages) */
.page-intro {
  background: linear-gradient(160deg, var(--forest), var(--pine));
  color: var(--white);
  padding: 60px 0;
}
.page-intro h1 { color: var(--white); }
.page-intro .lead { color: rgba(255,255,255,0.75); }
.page-intro .eyebrow { color: var(--clay); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}
.card .icon { color: var(--forest); margin-bottom: 12px; }

.card--accent { border-top: 3px solid var(--clay); }

/* Phase steps */
.phases { counter-reset: phase; display: grid; gap: 16px; }
.phase {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
}
.phase .step {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 400;
  color: var(--clay-deep);
  font-size: 1.6rem;
  line-height: 1;
  min-width: 44px;
}
.phase h3 { margin: 0 0 4px; }
.phase p { margin: 0; color: var(--slate); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--forest);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") no-repeat center / contain;
}

/* Role list */
.roles { display: grid; gap: 20px; }
.role {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.role h3 { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.role .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--sand);
  color: var(--forest);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.role ul { margin: 8px 0 0; padding-left: 20px; color: var(--slate); }
.role ul li { margin-bottom: 6px; }

/* Callout / CTA band */
.cta-band {
  background: var(--forest);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 48px 28px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: var(--clay); color: var(--forest); }
.cta-band .btn-primary:hover { background: #cba488; color: var(--forest); }

.fullband { background: var(--forest); color: var(--white); }
.fullband h2 { color: var(--white); }
.fullband .lead { color: rgba(255,255,255,0.75); }

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 620px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--forest);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(21, 46, 34, 0.18);
  border-color: var(--forest);
}
.field .hint { font-size: 0.85rem; color: var(--slate); margin-top: 4px; }
.required { color: var(--clay-deep); }

/* ---------- Misc ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.lead-list { padding-left: 20px; }
.lead-list li { margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.kicker-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 3px solid var(--clay);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.72);
  padding: 48px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.footer-brand .tagline {
  font-family: var(--display);
  color: var(--clay);
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}
.footer-bottom .nonpartisan {
  max-width: 60ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.65rem; }
  .hero h1 { font-size: 2.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 12px;
  }
  .nav-links a { padding: 12px; }
  .nav { flex-wrap: wrap; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .phase { flex-direction: row; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .hero .container { padding-top: 60px; padding-bottom: 64px; }
  .btn { width: 100%; text-align: center; }
  .btn-row .btn { width: 100%; }
}

/* ========== Gated Playbook ========== */
.pb-tag {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay);
  border: 1px solid rgba(216,181,160,0.5);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: middle;
}
.pb-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.pb-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  padding: 32px 20px 32px 24px;
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.pb-side-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay-deep);
  margin: 20px 0 8px;
}
.pb-side-label:first-child { margin-top: 0; }
.pb-side-nav { list-style: none; margin: 0 0 8px; padding: 0; }
.pb-side-nav li { margin: 0; }
.pb-side-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 0.9rem;
  color: var(--slate);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.35;
}
.pb-side-nav a:hover { background: var(--sand); color: var(--forest); }
.pb-side-nav a.active { background: var(--forest); color: #fff; font-weight: 600; }
.pb-main { padding: 40px 40px 64px; min-width: 0; }
.pb-head { border-bottom: 1px solid var(--line); padding-bottom: 24px; margin-bottom: 8px; }
.pb-head h1 { font-size: 2.4rem; margin-bottom: 8px; }
.pb-content { padding-top: 24px; }
.pb-content h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.pb-content h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
  color: var(--forest);
}
.pb-content p, .pb-content li { line-height: 1.7; }
.pb-content hr { display: none; }
.pb-content strong { color: var(--ink); font-weight: 700; }
.pb-content a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--clay); }
.pb-content ul.task-parent, .pb-content li.task { list-style: none; }
.pb-content li.task {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
}
.pb-content li.task::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border: 1.5px solid var(--clay-deep);
  border-radius: 4px;
}
.pb-content li.task.done::before {
  background: var(--forest);
  border-color: var(--forest);
}
.tbl { overflow-x: auto; margin: 1.2em 0; }
.pb-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
}
.pb-content th, .pb-content td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pb-content th {
  background: var(--sand);
  font-weight: 700;
  color: var(--forest);
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.pb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.12s ease, transform 0.05s ease;
}
.pb-card:hover { border-color: var(--forest); transform: translateY(-1px); }
.pb-card-num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--clay-deep);
  min-width: 28px;
}
.pb-card-title { font-weight: 600; color: var(--forest); line-height: 1.3; }
.pb-card--role { border-left: 3px solid var(--clay); }

@media (max-width: 860px) {
  .pb-shell { grid-template-columns: 1fr; }
  .pb-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 16px 24px;
  }
  .pb-side-label { width: 100%; margin: 8px 0 2px; }
  .pb-main { padding: 28px 24px 48px; }
  .pb-head h1 { font-size: 1.9rem; }
}
