/* ============================================================
   YesForMentalHealth.vote — site stylesheet
   One file controls the look of every page.
   Colors are defined once here, so changing the palette
   means editing only these few lines.
   ============================================================ */
:root {
  --green-dark: #1e5631;   /* headings, footer */
  --green: #2e7d32;        /* buttons, accents */
  --green-light: #e8f3ea;  /* tinted section backgrounds */
  --ink: #233027;          /* body text */
  --paper: #ffffff;
  --max-width: 1060px;
}

* { box-sizing: border-box; }

/* Safety net: no image may ever be wider than the screen */
img { max-width: 100%; height: auto; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.06rem;
}

h1, h2, h3 {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--green-dark);
  line-height: 1.25;
}

a { color: var(--green); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header / navigation ---------- */
header.site {
  background: var(--paper);
  border-bottom: 4px solid var(--green);
  padding: 14px 0;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
header.site img.logo { height: 72px; width: auto; }
header.site .site-name {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-dark);
}
nav.main { margin-left: auto; }
nav.main a {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 600;
  padding: 8px 10px;
}
nav.main a:hover,
nav.main a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
}

/* ---------- Hero banner ---------- */
.hero {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 48px 16px;
}
.hero h1 { color: #fff; font-size: 2.1rem; margin: 0 0 12px; }
.hero p { font-size: 1.2rem; margin: 0 0 20px; }
.hero img.yard-sign {
  display: block;
  margin: 0 auto 24px;
  max-width: 480px;
  width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

/* Responsive YouTube embed.
   The padding-bottom trick (56.25% = 16:9) works in every browser,
   including older Safari versions that lack aspect-ratio support. */
.video-frame {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  height: 0;
  padding-bottom: 56.25%;
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* CSS Framework graphic */
img.framework {
  display: block;
  margin: 24px auto;
  max-width: 100%;
  height: auto;
}
.columns.priority ul {
  background: var(--green-light);
  border-radius: 8px;
  padding: 14px 14px 14px 34px;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  color: var(--green-dark);
}

.button {
  display: inline-block;
  background: #f3b63a;
  color: #2b2b2b;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
}
.button:hover { background: #ffc957; color: #000; }

/* ---------- Sections ---------- */
section { padding: 40px 0; }
section.tinted { background: var(--green-light); }
section h2 { font-size: 1.7rem; margin-top: 0; }

/* Statistic cards on the home page */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.stat {
  background: var(--paper);
  border: 1px solid #cfe2d2;
  border-radius: 8px;
  padding: 20px;
}
.stat .big {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

/* Three service-category columns */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.columns h3 { margin-bottom: 8px; }
.columns ul { margin: 0; padding-left: 20px; }

/* Logo grid of partner agencies */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  align-items: center;
  justify-items: center;
  margin-top: 24px;
}
.logo-grid img {
  max-width: 150px;
  max-height: 120px;
  width: auto;
  height: auto;
}

/* ---------- Contact page ---------- */
.contact-card {
  background: var(--green-light);
  border-radius: 8px;
  padding: 28px;
  max-width: 560px;
}
.contact-card dt {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 14px;
}
.contact-card dd { margin: 2px 0 0 0; }

/* Disclaimer note (contact page) */
.disclaimer {
  border-left: 4px solid var(--green);
  background: #f6f8f6;
  padding: 14px 18px;
  max-width: 720px;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--green-dark);
  color: #e6efe8;
  padding: 28px 0;
  margin-top: 40px;
  font-size: 0.95rem;
}
footer.site a { color: #cfe8d4; }
footer.site .paid-for {
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  header.site .wrap { justify-content: center; text-align: center; }
  nav.main { margin-left: 0; }
  .hero h1 { font-size: 1.6rem; }
}
