/* ============================================
   Jessie Cave for School Board — Design Tokens
   ============================================ */

:root {
  --navy-deep: #0E1830;
  --navy: #16233F;
  --navy-soft: #223458;
  --blue: #2F6FB0;
  --blue-light: #6FA3D8;
  --blue-pale: #E7F0FA;
  --gold: #C89B3C;
  --gold-light: #E3C077;
  --cream: #F7F4EC;
  --paper: #FFFDF9;
  --ink: #1A1F2B;
  --slate: #5B6472;
  --slate-light: #8A93A3;
  --line: rgba(22, 35, 63, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow .ballot {
  width: 14px; height: 14px;
}

p.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 60ch;
}

/* ---------- Ballot check icon (signature motif) ---------- */
.ballot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.ballot::after {
  content: "";
  position: absolute;
  left: 3px; top: 0px;
  width: 6px; height: 10px;
  border-right: 2.5px solid var(--gold);
  border-bottom: 2.5px solid var(--gold);
  transform: rotate(40deg);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--gold);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}

.brand-text { line-height: 1.2; }
.brand-text .name { font-weight: 700; font-size: 1.15rem; display: block; }
.brand-text .role { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-light); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav.main-nav a {
  color: #DCE4F0;
  font-size: 0.95rem;
  font-weight: 500;
}
nav.main-nav a:hover { color: #fff; text-decoration: none; }
nav.main-nav a.active { color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

.nav-toggle {
  display: none;
  background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-deep);
  background-image:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 42px);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: #fff; }
.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 10px;
  background: var(--gold);
  opacity: 0.55;
  z-index: -1;
  transform: skewX(-8deg);
}

.hero p.lede { color: #C9D3E4; }

.hero-ctas { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

.hero-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 0.9rem;
  padding: 24px;
}

.hero-photo--filled {
  border: 4px solid var(--gold);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(14, 24, 48, 0.35);
}
.hero-photo--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-blue-pale { background: var(--blue-pale); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

/* ---------- Pull quote ---------- */
.pullquote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin: 0;
}
.pullquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.35;
}
.pullquote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 600;
}
.bg-navy .pullquote p { color: #fff; }
.bg-navy .pullquote cite { color: var(--blue-light); }

/* ---------- Priority cards (numbered — real sequence) ---------- */
.priorities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.priority-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.priority-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue-pale);
  -webkit-text-stroke: 1.5px var(--blue-light);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.priority-card h3 { margin-bottom: 10px; }
.priority-card p { color: var(--slate); margin-bottom: 16px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tick-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}
.tick-list li .ballot { color: var(--navy); margin-top: 2px; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Placeholder boxes ---------- */
.placeholder-box {
  border: 2px dashed var(--slate-light);
  border-radius: var(--radius-md);
  background: rgba(91,100,114,0.06);
  color: var(--slate);
  padding: 22px;
  font-size: 0.92rem;
  text-align: center;
}

.placeholder-photo {
  aspect-ratio: 1/1;
  border: 2px dashed var(--slate-light);
  border-radius: 50%;
  background: rgba(91,100,114,0.06);
  color: var(--slate-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: var(--blue-light); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #A9B4C7;
  padding: 52px 0 32px;
  margin-top: 40px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
footer a { color: #A9B4C7; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #7482996;
  color: #7C879C;
}

/* ---------- Timeline (bio page) ---------- */
.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 28px; display: grid; gap: 32px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
}
.timeline-item .yr { font-weight: 700; color: var(--blue); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------- Endorsement cards ---------- */
.endorsement-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.endorsement-card .quote-mark { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 0.5; }
.endorsement-card .name { font-weight: 700; color: var(--navy); }
.endorsement-card .title { color: var(--slate); font-size: 0.88rem; }

/* ---------- Form elements ---------- */
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  margin-bottom: 18px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: -8px; margin-bottom: 18px; }

/* ---------- Event / news cards ---------- */
.event-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  align-items: center;
}
.event-date {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 12px 6px;
}
.event-date .mon { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.event-date .day { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }

/* ---------- Community gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Full-width scrolling photo banner ---------- */
.photo-banner {
  width: 100%;
  overflow: hidden;
  background: var(--navy-deep);
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  position: relative;
}
.photo-banner-track {
  display: flex;
  width: max-content;
  animation: banner-scroll 38s linear infinite;
}
.photo-banner:hover .photo-banner-track {
  animation-play-state: paused;
}
.photo-banner-track img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  border-right: 3px solid var(--navy-deep);
  display: block;
}
@keyframes banner-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 880px) {
  .photo-banner-track img { height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-banner-track { animation: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 64px 0 56px;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: var(--blue-light); max-width: 62ch; margin: 0; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; margin: 0 auto; }
  .priorities-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  footer.site-footer .wrap { grid-template-columns: 1fr; gap: 28px; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px 28px 26px;
    gap: 16px;
    border-bottom: 3px solid var(--gold);
  }
  .event-card { grid-template-columns: 70px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
