/* ============================================================
   Dyer Democrats – Town Council 2026
   Shared stylesheet for all pages.

   HOW COLORS WORK:
   The site has a shared "base" theme (Democratic blue).
   Each candidate page overrides two colors near the top of that
   page's HTML file, inside a <style> block, like this:

       :root {
         --accent: #6a1b9a;      <-- main color
         --accent-dark: #4a0072; <-- darker shade for hovers
       }

   You normally never need to edit THIS file. Change colors on the
   page itself. Change text and images directly in the page HTML.
   ============================================================ */

:root {
  /* Base Democratic palette (used on home + shared elements) */
  --blue:        #1a3a6b;   /* deep Democratic navy-blue */
  --blue-dark:   #12294c;
  --blue-light:  #3a63a8;
  --yellow:      #f4c20d;   /* combined-sign yellow accent */
  --white:       #ffffff;
  --ink:         #1c1c1c;   /* body text */
  --muted:       #5c6470;   /* secondary text */
  --line:        #e3e6ea;   /* borders */
  --bg-soft:     #f6f8fb;   /* soft section background */

  /* Accent = per-candidate color. Defaults to blue on shared pages. */
  --accent:      var(--blue);
  --accent-dark: var(--blue-dark);
  --on-accent:   #ffffff;   /* text color that sits on the accent */

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20,30,50,.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.05rem;
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  display: grid; place-items: center;
  font-weight: 900;
}
.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .15s ease;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.16); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--on-accent);
  padding: 66px 0 60px;
}
.hero .container { text-align: center; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: .82rem;
  opacity: .9;
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  font-weight: 900;
}
.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 26px;
  opacity: .95;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #f0f0f0; }
.btn-outline {
  background: transparent;
  color: var(--on-accent);
  border-color: currentColor;
}
.btn-outline:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--blue-dark);
}
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 32px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* Accent bar under headings */
.accent-bar {
  width: 64px; height: 5px; border-radius: 5px;
  background: var(--accent);
  margin: 0 0 22px;
}
.center .accent-bar { margin-left: auto; margin-right: auto; }

/* ---------- Candidate cards (home) ---------- */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.candidate-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.candidate-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(20,30,50,.16); }
.candidate-card .photo {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: .9rem;
  border-bottom: 4px solid var(--card-accent, var(--blue));
}
.candidate-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.candidate-card .body { padding: 20px 20px 24px; }
.candidate-card .ward {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--card-accent, var(--blue));
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.candidate-card h3 { margin: 0 0 6px; font-size: 1.35rem; color: var(--blue-dark); }
.candidate-card p { margin: 0 0 16px; color: var(--muted); }

/* ---------- Content layout ---------- */
.split {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.photo-slot {
  background: var(--bg-soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 20px;
  font-size: .92rem;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Priorities list ---------- */
.priorities {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.priority {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
}
.priority h4 { margin: 0 0 6px; color: var(--blue-dark); font-size: 1.1rem; }
.priority p { margin: 0; color: var(--muted); }

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery .photo-slot { aspect-ratio: 1/1; }

/* ---------- Get involved / contact ---------- */
.involve-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.involve-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.involve-card .ico {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; margin: 0 auto 14px;
  font-size: 1.4rem; font-weight: 900;
}
.involve-card h3 { margin: 0 0 8px; color: var(--blue-dark); }
.involve-card p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Simple form ---------- */
.form {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
.form .btn { margin-top: 18px; width: 100%; border: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #dbe4f2;
  padding: 40px 0 28px;
  margin-top: 20px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-grid h4 { margin: 0 0 10px; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 5px 0; }
.disclaimer {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  font-size: .85rem;
  opacity: .85;
}

/* ---------- Utility ---------- */
.notice {
  background: #fffbe6;
  border: 1px solid #f4e08a;
  color: #6b5900;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .9rem;
  margin: 14px 0;
}
