/* Logan County Republican Central Committee
   Palette sampled from the committee seal: navy, red, white. */

:root {
  --navy: #17305c;
  --navy-deep: #0e1f3d;
  --navy-soft: #2a4a80;
  --red: #b0202b;
  --red-dark: #8c1922;
  --paper: #ffffff;
  --bg: #f4f6f9;
  --line: #dde2ea;
  --text: #1b2430;
  --muted: #5c6673;

  --wrap: 1120px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(14, 31, 61, 0.06), 0 8px 24px rgba(14, 31, 61, 0.08);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
h3 { font-size: 1.2rem; color: var(--navy); }
p { margin: 0 0 1em; }
a { color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--paper { background: var(--paper); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Skip link — keyboard users land here first. */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 1px 12px rgba(14, 31, 61, 0.07);
}
.hdr__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
/* Logo is a circular seal on a white square — clipping to a circle drops the corners. */
.brand__mark { width: 52px; height: 52px; border-radius: 50%; display: block; flex: none; }
.brand__text { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.brand__text span { display: block; font-family: var(--font); font-weight: 400; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 6px; text-decoration: none;
  color: var(--text); font-size: 0.95rem; font-weight: 500;
}
.nav a:hover { background: var(--bg); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }

.nav__toggle {
  margin-left: auto; display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 8px 12px; font-size: 1.1rem; cursor: pointer; color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .06s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--donate { background: var(--red); color: #fff; }
.btn--donate:hover { background: var(--red-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: 9px 18px; font-size: 0.92rem; }
.btn--lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff; padding: 88px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.04);
}
.hero__inner { position: relative; z-index: 1; max-width: 46rem; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255, 255, 255, 0.82); }
.hero__eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 6px 14px;
  background: rgba(176, 32, 43, 0.9); border-radius: 4px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Page banner (interior pages) ---------- */
.banner {
  background: linear-gradient(150deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 56px 0;
}
.banner h1 { color: #fff; margin-bottom: .2em; }
.banner p { color: rgba(255,255,255,.8); margin: 0; max-width: 62ch; }

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

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--bg); color: var(--red);
  display: grid; place-items: center; font-size: 1.3rem;
}

/* Event list — rendered from content/events.json */
.event {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
}
.event__date {
  flex: none; text-align: center; min-width: 62px;
  background: var(--navy); color: #fff; border-radius: 6px; padding: 8px 6px;
}
.event__mon { display: block; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.event__day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.event__body h3 { margin: 0 0 4px; }
.event__meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 6px; }
.event__body p:last-child { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }

.empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 36px; text-align: center; color: var(--muted); background: var(--paper);
}

/* ---------- Donate band ---------- */
.band {
  background: var(--red); color: #fff; padding: 64px 0; text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; }
.band .btn--donate { background: #fff; color: var(--red); }
.band .btn--donate:hover { background: rgba(255,255,255,.88); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field .hint { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(23, 48, 92, 0.18); outline-offset: 0; border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 130px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { margin-top: 5px; }
.field--check label { font-weight: 400; font-size: 0.95rem; color: var(--text); }
.required { color: var(--red); }

/* Honeypot — hidden from humans, catches naive bots. Not display:none (bots skip that). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg { padding: 14px 18px; border-radius: 6px; font-weight: 500; }
.formmsg--ok { background: #e6f4ea; border: 1px solid #a8d5b5; color: #1b5e2a; }
.formmsg--err { background: #fdeaec; border: 1px solid #f0b4ba; color: var(--red-dark); }
[hidden] { display: none !important; }

/* ---------- Callouts ---------- */
.note {
  background: #fff8e6; border: 1px solid #f0dfae; border-left: 4px solid #d9a406;
  border-radius: var(--radius); padding: 20px 24px;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--navy); }

.legal {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; font-size: 0.92rem; color: var(--muted);
}
.legal p:last-child { margin-bottom: 0; }

.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.linklist a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; text-decoration: none; color: var(--navy); font-weight: 600;
  box-shadow: var(--shadow);
}
.linklist a:hover { border-color: var(--navy); }
.linklist span { color: var(--muted); font-weight: 400; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 28px; font-size: 0.94rem; }
.ftr a { color: #fff; }
.ftr__grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.ftr h4 { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin: 0 0 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr__legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 0.86rem; color: rgba(255,255,255,.6);
}
.ftr__legal strong { color: rgba(255,255,255,.9); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--red); padding: 8px;
    box-shadow: 0 12px 24px rgba(14,31,61,.12);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; border-radius: 0; }
  .nav .btn { margin-top: 8px; text-align: center; }
  .hdr__inner { position: relative; }
  .hero::after { display: none; }
  .ftr__grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
