/* Cathi Frederiksen for Vice Chair
   Colors: navy and teal for text on white.
   Aqua, light green, and gold only for accents, borders, buttons,
   or text on a navy background. */

:root {
  --navy: #2a3b90;
  --teal: #127c86;
  --aqua: #3dbeb3;
  --green: #7dc57e;
  --gold: #ffc845;
  --white: #ffffff;
  --tint: #f3f5fb;           /* very light navy tint for alternating sections */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* Narrow sections share the same left edge as wide ones,
   but keep lines of text short enough to read comfortably. */
.wrap.narrow > p,
.wrap.narrow > ul,
.wrap.narrow > ol,
.wrap.narrow > form { max-width: 720px; }

.section { padding: 56px 0; }

.lead { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 3px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

/* ---------- 1. Hero ---------- */
.hero {
  padding: 40px 0 48px;
  text-align: center;
  border-bottom: 8px solid var(--navy);
}
.hero-logo { margin: 0 auto 24px; max-width: 640px; }
.slogan {
  font-weight: 800;
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  line-height: 1.3;
  color: var(--teal);
  max-width: 28ch;
  margin: 0 auto 28px;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

/* ---------- 2. Mission ---------- */
.mission { text-align: left; }

/* ---------- 3. Plan cards ---------- */
.plan { background: var(--tint); }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 8px solid var(--aqua);
  padding: 24px 22px 20px;
  box-shadow: 0 1px 3px rgba(42, 59, 144, 0.12);
}
.card p { margin: 0; }
.card-aqua  { border-top-color: var(--aqua); }
.card-green { border-top-color: var(--green); }
.card-gold  { border-top-color: var(--gold); }
.card-teal  { border-top-color: var(--teal); }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---------- 4. How we'll build it (navy band) ---------- */
.build { background: var(--navy); color: var(--white); }
.build h2 { color: var(--gold); }
.build .emphasis {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
  border-left: 6px solid var(--aqua);
  padding-left: 16px;
  margin: 1.5em 0 0;
}

/* ---------- 5. About ---------- */
.about-grid { display: grid; gap: 28px; }
.headshot { max-width: 280px; }
.headshot-placeholder {
  aspect-ratio: 1 / 1;
  border: 3px dashed var(--teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-weight: 800;
  background: var(--tint);
}
.headshot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  border: 4px solid var(--aqua);
}
.roles {
  list-style: none;
  padding: 0;
  margin: 1.25em 0 0;
}
.roles li {
  font-weight: 600;
  padding: 10px 0 10px 18px;
  border-left: 5px solid var(--green);
  margin-bottom: 10px;
}

/* ---------- 6. Supporters ---------- */
.supporters { background: var(--tint); }
/* Names list: one name per row, each with a light green marker,
   so long titles stay on one line instead of wrapping into a narrow column. */
.supporter-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  max-width: 720px;
}
.supporter-list li {
  font-weight: 600;
  padding: 12px 0 12px 18px;
  border-left: 5px solid var(--green);
  margin-bottom: 10px;
  background: var(--white);
  border-radius: 0 8px 8px 0;
}

/* Endorsement statements: white quote cards */
.statements {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
  max-width: 720px;
}
.statement {
  position: relative;
  margin: 0;
  background: var(--white);
  border-left: 6px solid var(--aqua);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 24px 22px 64px;
  box-shadow: 0 1px 3px rgba(42, 59, 144, 0.12);
}
.statement::before {               /* large decorative quotation mark */
  content: "\201C";
  position: absolute;
  left: 18px;
  top: 6px;
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--gold);
}
.statement blockquote { margin: 0 0 14px; padding: 0; }
.statement blockquote p {
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
}
.statement figcaption { font-weight: 800; color: var(--teal); }
.statement figcaption::before { content: "\2014"; }   /* em dash, no space */
.statement figcaption span { font-weight: 600; }

/* ---------- 7. Contact ---------- */
.contact-form { margin-top: 24px; display: grid; gap: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.contact-form .btn { justify-self: start; }
.optional { font-weight: 400; }
.hint { margin: -2px 0 8px; font-size: 0.95rem; color: var(--teal); }
.form-title { margin-top: 48px; font-size: 1.4rem; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy);
}
.field.check label { font-weight: 400; margin: 0; }

/* Honeypot: hidden from people, visible to many bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thank-you / error page from contact.php */
.notice { padding: 64px 0; }
.notice img { max-width: 320px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 28px 0;
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .section { padding: 72px 0; }
  .hero-buttons { flex-direction: row; justify-content: center; max-width: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 220px 1fr; align-items: start; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
  .section { padding: 88px 0; }
  .hero { padding: 64px 0 72px; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 48px; }
}

/* =========================================================
   PLAN PAGE (plan.html)
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.plan-header { border-bottom: 8px solid var(--navy); padding: 16px 0 20px; }
.plan-header-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
}
.back-link { font-size: 0.95rem; }
.plan-logo { display: block; width: 220px; }

.plan-intro { padding: 40px 0 8px; }
.plan-intro h1 { font-size: clamp(1.75rem, 6vw, 2.75rem); }

/* Table of contents */
.toc {
  background: var(--tint);
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px 14px;
  margin: 28px 0 0;
  max-width: 720px;
}
.toc-title { font-size: 1.05rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin-bottom: 8px; }

.plan-section { padding: 48px 0; }
.plan-section h2 { scroll-margin-top: 16px; }
.plan-section ul, .plan-section ol { padding-left: 1.3em; }
.plan-section li { margin-bottom: 10px; }

.two-jobs li::marker { font-weight: 800; color: var(--teal); }

/* Pillars: colored top rule like the home page cards */
.pillar .wrap { position: relative; padding-top: 30px; }
.pillar .wrap::before {           /* colored bar, same width as the text */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: min(720px, calc(100% - 2 * var(--gutter)));
  height: 8px;
  border-radius: 4px;
  background: var(--aqua);
}
.pillar-green .wrap::before { background: var(--green); }
.pillar-gold .wrap::before  { background: var(--gold); }
.pillar-teal .wrap::before  { background: var(--teal); }
.pillar { padding: 40px 0; }
.pillar-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 4px;
}
/* Bylaw references: small and muted, still 4.5:1 contrast */
.bylaws {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--teal);
  margin-top: 18px;
}

/* How we'll build it reuses the navy .build band from the home page */
.build .steps li::marker { color: var(--gold); font-weight: 800; }

/* First 100 Days timeline */
.timeline {
  list-style: none;
  padding: 0 !important;
  margin: 8px 0 0;
  max-width: 720px;
  position: relative;
}
.timeline::before {               /* the vertical line */
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--aqua);
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 40px;
  margin: 0;
}
.timeline li::before {            /* the dot */
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  border: 4px solid var(--gold);
}
.timeline .when {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

/* FAQ */
.faq-section { background: var(--tint); }
.faq { max-width: 720px; display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 6px solid var(--green);
  box-shadow: 0 1px 3px rgba(42, 59, 144, 0.12);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 48px 16px 20px;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {             /* plus / minus indicator */
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; }
.plan-cta { margin: 36px 0 0; }

@media (min-width: 640px) {
  .plan-header-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .plan-intro { padding-top: 56px; }
  .plan-section { padding: 64px 0; }
}
