/* =========================================================
   Beaumont Council Campaign — Design System
   Palette:  ink #22262B | dusk #1E2A38 | sand #D8C9A3
             sage #6B7F5E | clay #A8471F | paper #FAF8F3
   Type:     Fraunces (display) / Public Sans (body) / IBM Plex Mono (labels)
   Signature: San Gorgonio Pass ridge line + wind-stroke dividers
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --ink: #22262B;
  --dusk: #1E2A38;
  --sand: #D8C9A3;
  --sage: #6B7F5E;
  --clay: #A8471F;
  --paper: #FAF8F3;
  --line: rgba(34, 38, 43, 0.14);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Public Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --max: 68rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

a { color: inherit; }

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

/* ---------- Header ---------- */

.site-header {
  background: var(--dusk);
  color: var(--paper);
  border-bottom: 3px solid var(--clay);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}

.brand .mark { flex-shrink: 0; }

nav.primary-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

nav.primary-nav a {
  text-decoration: none;
  color: var(--sand);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

nav.primary-nav a:hover,
nav.primary-nav a:focus-visible,
nav.primary-nav a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--clay);
}

.nav-donate {
  background: var(--clay);
  color: var(--paper) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}

/* ---------- Ridge line signature (SVG divider) ---------- */

.ridge {
  display: block;
  width: 100%;
  height: auto;
  color: var(--dusk);
}

.ridge-flip {
  transform: scaleY(-1);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--dusk) 0%, #223349 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1.1rem;
  max-width: 18ch;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--sand);
  max-width: 42ch;
  margin: 0 0 2.2rem;
}

.wind-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
}

.wind-lines path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 1;
  stroke-dasharray: 6 10;
  animation: drift 14s linear infinite;
}

.wind-lines path:nth-child(2) { animation-duration: 19s; opacity: 0.7; }
.wind-lines path:nth-child(3) { animation-duration: 24s; opacity: 0.5; }

@keyframes drift {
  to { stroke-dashoffset: -320; }
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--clay);
  color: var(--paper);
}
.btn-primary:hover { background: #8f3c1a; }

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250,248,243,0.4);
}
.btn-secondary:hover { border-color: var(--sand); }

.btn-ghost {
  background: transparent;
  color: var(--dusk);
  border-color: var(--dusk);
}
.btn-ghost:hover { background: var(--dusk); color: var(--paper); }

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }

.section-sand {
  background: var(--sand);
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Issues grid ---------- */

.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
}

.issue-card {
  border-left: 3px solid var(--sage);
  padding-left: 1.1rem;
}

.issue-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.issue-card p {
  margin: 0;
  color: #46433c;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--dusk);
  color: var(--paper);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin: 0 0 1.3rem;
}

.cta-banner .cta-row { justify-content: center; }

/* ---------- Forms ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  max-width: 34rem;
}

.field {
  margin-bottom: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dusk);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c9c3b3;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--body);
  text-transform: none;
  font-size: 0.95rem;
  letter-spacing: normal;
  color: var(--ink);
}

.submit-btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--clay);
  color: var(--paper);
  border: none;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
.submit-btn:hover { background: #8f3c1a; }

.form-note {
  font-size: 0.88rem;
  color: #5c584d;
  margin-top: 1rem;
}

/* ---------- Donate options ---------- */

.donate-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.amount-pill {
  font-family: var(--mono);
  font-size: 0.95rem;
  border: 1px solid var(--dusk);
  color: var(--dusk);
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
}
.amount-pill:hover { background: var(--dusk); color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: 2.5rem 0;
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.disclaimer {
  color: #a39c8a;
  max-width: 40ch;
}

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (max-width: 40rem) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  section { padding: 2.5rem 0; }
}
