/* ==========================================================
   Bob Harvie for Congress — shared stylesheet
   ========================================================== */

:root {
  --navy: #0a2540;
  --navy-deep: #061a2e;
  --blue: #2563eb;
  --blue-deep: #1e40af;
  --cream: #f5f1e8;
  --paper: #fafaf6;
  --ink: #1a1a1a;
  --ink-muted: #4a4a4a;
  --rule: #d9d3c5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--blue); }

/* HEADER */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--blue);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand img { height: 56px; }
nav.primary ul {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
nav.primary a {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--cream);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.primary a:hover,
nav.primary a.current {
  border-bottom-color: var(--blue);
  color: #fff;
}

/* HERO (home) */
.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.1) 0%, rgba(10,37,64,0.55) 60%, rgba(10,37,64,0.85) 100%);
}
.hero-text {
  position: absolute;
  left: 0; right: 0; bottom: 64px;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  color: var(--cream);
}
.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
  margin-bottom: 16px;
  display: inline-block;
  padding: 6px 14px;
  background: var(--blue);
  color: #fff;
}
.hero-text h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.hero-text p {
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  max-width: 720px;
  line-height: 1.4;
  color: var(--cream);
}

/* PAGE HEADER (interior pages) */
.page-header {
  position: relative;
  height: 42vh;
  min-height: 280px;
  overflow: hidden;
  background: var(--navy);
}
.page-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.4) 0%, rgba(10,37,64,0.85) 100%);
}
.page-header-text {
  position: absolute;
  left: 0; right: 0; bottom: 48px;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-header-text h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.01em;
}

/* SECTIONS */
section { padding: 96px 32px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap-bio { max-width: 920px; margin: 0 auto; }
.wrap-narrow { max-width: 780px; margin: 0 auto; }

.section-kicker {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-kicker::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--blue);
}
h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 36px;
  letter-spacing: -0.01em;
}
h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--navy);
  margin: 56px 0 20px;
  letter-spacing: 0.01em;
}
h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  margin: 32px 0 12px;
}
p { margin-bottom: 20px; color: var(--ink); }
p strong { color: var(--navy); font-weight: 600; }

/* HOME: Meet Bob teaser */
.about-teaser {
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid .photo img {
  border: 1px solid var(--rule);
  box-shadow: 12px 12px 0 var(--navy);
}
.about-grid .photo .caption {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  margin-top: 24px;
  color: var(--navy);
}
.learn-more {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s;
}
.learn-more:hover {
  background: var(--navy);
  color: var(--cream);
}

/* HOME: American Dream block */
.dream-block {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
}
.dream-block h2 { color: #fff; max-width: 880px; margin: 0 auto 28px; }
.dream-block p { color: var(--cream); max-width: 720px; margin: 0 auto 24px; }
.dream-block .section-kicker {
  justify-content: center;
  color: var(--blue);
}
.dream-block .section-kicker::before { display: none; }
.dream-block .learn-more {
  color: var(--cream);
  border-color: var(--cream);
  margin-top: 24px;
}
.dream-block .learn-more:hover {
  background: var(--cream);
  color: var(--navy);
}

/* MEET BOB PAGE — full bleed (wider) */
.bio-wrap p {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.bio-wrap .section-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 22px;
  color: var(--blue);
  margin: 56px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
  line-height: 1.1;
}

/* PRIORITIES PAGE */
.priority-intro {
  border-left: 4px solid var(--blue);
  padding: 8px 0 8px 28px;
  margin-bottom: 48px;
  font-size: 20px;
  line-height: 1.55;
}
.pillar {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.pillar-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--blue);
  margin-bottom: 8px;
}
.pillar h3 { margin-top: 0; }

/* FOOTER — minimal */
footer.site {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 64px 32px 40px;
}
.foot-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.foot-logo img {
  height: 72px;
}
.foot-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
}
.foot-nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.foot-nav a:hover { color: #fff; }
.foot-paid {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.6);
  width: 100%;
  text-align: center;
}

/* ==========================================================
   BLOG — listing & single post
   ========================================================== */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 96px;
}
.blog-loading { color: var(--ink-muted); }

.blog-card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--blue);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.07); }

.blog-card-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
.blog-card-title a { color: var(--navy); text-decoration: none; transition: color 0.18s; }
.blog-card-title a:hover { color: var(--blue); }

.blog-card-excerpt {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.18s;
}
.blog-read-more svg { width: 16px; height: 16px; }
.blog-read-more:hover { color: var(--blue); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 0;
}
.pagination-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--rule);
  background: var(--paper);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.pagination-btn:hover { background: var(--cream); border-color: var(--blue); color: var(--navy); }
.pagination-btn.pagination-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-main { padding: 64px 32px 96px; }
.post-article { max-width: 780px; margin: 0 auto; }

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.18s;
}
.post-back svg { width: 16px; height: 16px; }
.post-back:hover { color: var(--navy); }

.post-header {
  border-bottom: 2px solid var(--rule);
  padding-bottom: 36px;
  margin-bottom: 40px;
}
.post-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}
.post-body { line-height: 1.75; }
.post-body h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  text-transform: uppercase;
  color: var(--navy);
  margin: 56px 0 18px;
}
.post-body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  color: var(--navy);
  margin: 40px 0 14px;
}
.post-body p { margin-bottom: 20px; font-size: 18px; color: var(--ink); line-height: 1.7; }
.post-body ul, .post-body ol { margin: 0 0 20px 28px; }
.post-body li { font-size: 18px; color: var(--ink); line-height: 1.65; margin-bottom: 10px; }
.post-body strong { color: var(--navy); font-weight: 600; }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  background: var(--cream);
  padding: 24px 28px;
  margin: 36px 0;
  font-style: italic;
  font-size: 19px;
  color: var(--navy);
}
.post-body hr { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }
.post-loading { color: var(--ink-muted); padding: 64px 0; }

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav-wrap { padding: 14px 20px; }
  .brand img { height: 44px; }
  nav.primary ul { gap: 22px; }
  nav.primary a { font-size: 13px; letter-spacing: 0.06em; }
  section { padding: 64px 20px; }
  .hero-text, .page-header-text { bottom: 40px; padding: 0 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .photo { max-width: 300px; }
  .about-grid .photo img { box-shadow: 8px 8px 0 var(--navy); }
  .priority-intro { padding-left: 20px; font-size: 18px; }
  .foot-nav { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  nav.primary ul { gap: 16px; }
  nav.primary a { font-size: 12px; }
  .hero { height: 70vh; min-height: 440px; }
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
