/* Smart Growth Alliance — palette drawn from the logo:
   deep eucalyptus greens, warm cream, valley-sky blue. */

:root {
  --green-900: #2c421f;
  --green-700: #3f5e2f;
  --green-500: #5a7a44;
  --green-100: #e9efdd;
  --cream: #faf7ef;
  --sky: #e3eef6;
  --ink: #26301f;
  --muted: #5c6653;
  --line: #d9d9c9;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Overscroll: anything revealed above the page shows cream, anything below
   shows the footer green, so the page visually ends at the footer. */
html {
  background: linear-gradient(to bottom, #faf7ef 50%, #2c421f 50%) fixed;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--green-900); line-height: 1.25; }
h1 { font-size: 2.3rem; margin-bottom: 0.8rem; }
h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
p, ul, ol { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; }
a { color: var(--green-700); }
img { max-width: 100%; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 720px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--green-700);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem;
  padding: 0.7rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 52px; height: 52px; }
.brand span {
  font-family: Georgia, serif; font-size: 1.25rem; font-weight: bold; color: var(--green-900);
}
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; }
.site-nav a {
  text-decoration: none; color: var(--green-900); font-size: 0.97rem; padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--green-700); }

/* Hamburger toggle (shown on small screens only) */
.nav-toggle { display: none; margin-left: auto; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle span {
  display: block; width: 24px; height: 3px; background: var(--green-900);
  margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; margin: 0.4rem 0 0.2rem; }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.7rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom-color: transparent; }
  .site-nav a[aria-current="page"] { color: var(--green-700); font-weight: 600; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  text-align: center; padding: 3.5rem 1.25rem 3rem;
}
.hero img.logo { width: min(400px, 85vw); margin-bottom: 1.2rem; }
.hero h1 { font-size: 2.6rem; }
.hero .tagline { font-size: 1.25rem; color: var(--muted); max-width: 620px; margin: 0.6rem auto 1.6rem; }
.counter { font-family: Georgia, serif; font-size: 1.15rem; color: var(--green-700); margin-bottom: 1.6rem; }
.counter strong { font-size: 1.5rem; }

/* Buttons */
.button {
  display: inline-block; background: var(--green-700); color: var(--white);
  padding: 0.75rem 1.7rem; border-radius: 6px; text-decoration: none;
  font-size: 1.05rem; border: none; cursor: pointer;
}
.button:hover { background: var(--green-900); }
.button.secondary { background: var(--white); color: var(--green-900); border: 2px solid var(--green-700); }

/* Sections & cards */
main.container { padding-top: 40px; padding-bottom: 3.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem 1.4rem;
}
.card h3 { margin-top: 0; }
.callout {
  background: var(--green-100); border-left: 5px solid var(--green-700);
  padding: 1.1rem 1.4rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.note { color: var(--muted); font-size: 0.92rem; }

/* Forms */
form { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem; margin: 1.5rem 0; }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.3rem; color: var(--green-900); }
label .optional { font-weight: normal; color: var(--muted); font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; background: var(--cream);
}
input:focus, textarea:focus { outline: 2px solid var(--green-500); background: var(--white); }
textarea { min-height: 110px; resize: vertical; }
.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.3rem 0; }
.checkbox-row input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; }
.checkbox-row label { margin: 0; font-weight: normal; }
.form-message { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: 6px; display: none; }
.form-message.success { display: block; background: var(--green-100); color: var(--green-900); }
.form-message.error { display: block; background: #f7e6e2; color: #7a3326; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Tables (admin) */
table { border-collapse: collapse; width: 100%; background: var(--white); font-size: 0.92rem; }
th, td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
th { background: var(--green-100); color: var(--green-900); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }

/* Footer */
.site-footer {
  background: var(--green-900); color: #e8eddc; padding: 2.2rem 0; margin-top: 2rem;
  font-size: 0.95rem;
}
.site-footer a { color: #cfe0b8; }
.site-footer .container > p { margin-bottom: 0.6rem; }
.acknowledgement { font-style: italic; opacity: 0.85; margin-top: 1.2rem; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
}
