/* ============================================================
   BLUM FOR WA — Main Stylesheet
   Brand: blumforwa.com | LD-29 Washington State Legislature
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --red:        #991c1e;
  --red-light:  #b52325;
  --navy:       #00142a;
  --navy-mid:   #002244;
  --white:      #ffffff;
  --off-white:  #f7f5f0;
  --warm-gray:  #e8e4dc;
  --text:       #1a1a1a;
  --text-muted: #5a5a5a;
  --border:     #d4cfc5;
  --serif:      'Libre Baskerville', 'Baskerville Old Face', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --max-w:      1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.02em; }
h3, h4, p, li, label, input, textarea, button { font-family: var(--sans); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: clamp(0.95rem, 1.5vw, 1.05rem); color: var(--text-muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
section { padding: var(--section-pad) 0; }
.section-header { margin-bottom: 3.5rem; }
.section-header p { max-width: 56ch; margin-top: 1rem; font-size: 1.05rem; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-light); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.45); }
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--off-white); }

/* ── NAVIGATION ──────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 0.8rem 0;
}
#navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.8rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo-img {
  height: 48px;
  width: auto;
  /* Navy-background logos — no blend-mode needed */
  border-radius: 4px;
}
.nav-logo-text { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.nav-logo-text span { display: block; font-family: var(--sans); font-size: 0.63rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 0.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.nav-cta { background: var(--red) !important; color: var(--white) !important; padding: 0.5rem 1.1rem; font-weight: 600 !important; }
.nav-cta:hover { background: var(--red-light) !important; border-bottom: none !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; position: fixed; inset: 0; background: var(--navy); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--serif); font-size: 2rem; color: var(--white); transition: color 0.2s; }
.nav-mobile a:hover { color: var(--red); }
.nav-mobile .btn-primary { font-family: var(--sans); font-size: 0.9rem; margin-top: 1rem; }

/* ── HERO (Homepage) ─────────────────────────────────────── */
.hero {
  min-height: 100svh; background: var(--navy);
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center top; opacity: 0.28;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy) 0%, rgba(0,20,42,0.65) 45%, rgba(0,20,42,0.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 6rem 0 clamp(4rem, 8vw, 7rem);
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s ease forwards;
}
.hero-content h1 { color: var(--white); margin-bottom: 1.4rem; }
.hero-content h1 em { font-style: italic; color: rgba(255,255,255,0.65); }
.hero-content .lead {
  color: rgba(255,255,255,0.75); font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 52ch; margin-bottom: 2.5rem; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); z-index: 3; }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--navy); background-image: url('../images/hero-rainier.jpg'); background-size: cover;
  background-position: center 20%; padding: clamp(7rem, 12vw, 10rem) 0 clamp(3rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; background: rgba(0, 20, 42, 0.72); /* ← adjust opacity to taste */
  z-index: 0; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-top: 1rem; }

/* ── ISSUE CARDS ─────────────────────────────────────────── */
.issues-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; background: var(--border); border: 1.5px solid var(--border);
}
a.issue-card { display: block; text-decoration: none; color: inherit; }
a.issue-card:hover { background: var(--off-white); }
.issue-card { background: var(--white); padding: 2.5rem 2rem; transition: background 0.2s; }
.issue-card:hover { background: var(--off-white); }
.issue-icon { width: 36px; height: 36px; background: var(--red); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.issue-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.issue-card h3 { margin-bottom: 0.6rem; color: var(--navy); }
.issue-card p { font-size: 0.92rem; }

/* ── ENDORSEMENT CARDS ───────────────────────────────────── */
.endorsements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.endorsement-card { border: 1.5px solid var(--border); padding: 2rem; background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.endorsement-card:hover { border-color: var(--navy); box-shadow: 0 4px 20px rgba(0,20,42,0.08); }
.endorsement-card .e-name { font-weight: 600; color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; }
.endorsement-card .e-title { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--red); text-transform: uppercase; font-weight: 600; }
.endorsement-card blockquote { margin-top: 1rem; font-style: italic; font-family: var(--serif); font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; border-left: 3px solid var(--red); padding-left: 1rem; }
.org-endorsements { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 3rem; }
.org-badge { padding: 0.55rem 1.1rem; background: var(--off-white); border: 1.5px solid var(--border); font-size: 0.82rem; font-weight: 500; color: var(--navy); }

/* ── ISSUES ───────────────────────────────────────────────── */
.issue-detail[id] { scroll-margin-top: 4rem; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.about-photo-wrap { position: sticky; top: 6rem; }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; background: var(--warm-gray); border-radius: 16px;}
.about-photo-caption { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; letter-spacing: 0.04em; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.2rem; }
.bio-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; padding: 2rem; background: var(--off-white); border-left: 4px solid var(--red); }
.bio-fact .label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.25rem; }
.bio-fact .value { font-size: 0.95rem; color: var(--navy); font-weight: 500; }

/* ── SUPPORT ─────────────────────────────────────────────── */
.support-banner { background: var(--red); padding: var(--section-pad) 0; text-align: center; }
.support-banner h2, .support-banner p { color: var(--white); }
.support-banner p { max-width: 52ch; margin: 1rem auto 2.5rem; opacity: 0.9; }
.donate-tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.donate-tier { padding: 0.65rem 1.4rem; border: 2px solid rgba(255,255,255,0.4); color: var(--white); font-weight: 600; font-size: 1rem; cursor: pointer; background: transparent; transition: all 0.2s; font-family: var(--sans); }
.donate-tier:hover, .donate-tier.active { background: rgba(255,255,255,0.15); border-color: var(--white); }
.support-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border);
  background: var(--white); font-family: var(--sans); font-size: 1rem; color: var(--text);
  outline: none; transition: border-color 0.2s; border-radius: 0; appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; }

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7.5px;
  height: 13.5px;
  border: 3px solid var(--white);
  border-top: none;
  border-left: none;
  transform: translate(-50%, -70%) rotate(45deg);
}

input[type="checkbox"]:hover {
  border-color: var(--red);
}

input[type="checkbox"]:not(:checked) {
  border-color: var(--border);
  background: var(--white);
}

input[type="checkbox"]:not(:checked):hover {
  border-color: var(--red);
}

/* ── PULL QUOTE ──────────────────────────────────────────── */
.pull-quote { background: var(--navy); padding: clamp(3rem, 6vw, 5rem) 0; text-align: center; }
.pull-quote blockquote { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem); font-style: italic; color: var(--white); max-width: 780px; margin: 0 auto; line-height: 1.55; }
.pull-quote cite { display: block; margin-top: 1.5rem; font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.pull-quote .red-rule { width: 40px; height: 3px; background: var(--red); margin: 1.5rem auto 0; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--navy); color: rgba(255,255,255,0.55); padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer-disclaimer { margin-top: 1rem; font-size: 0.73rem; line-height: 1.7; max-width: 38ch; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ── UTILS ───────────────────────────────────────────────── */
.bg-off-white { background: var(--off-white); }
.bg-navy { background: var(--navy); }
.text-center { text-align: center; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { position: static; }
  .about-photo { aspect-ratio: 3/2; }
  .bio-facts { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .donate-tiers { gap: 0.5rem; }
}
