/* =========================================================
   American Covenant PAC • styles.css  (drop-in replacement)
   Button mapping is intentional:
   - .btn-secondary = Donate (filled, high-contrast)
   - .btn-primary   = Join   (light, readable on dark hero)
   ========================================================= */

/* --- CSS Reset / Base --- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
a { color: inherit; }

/* --- Theme Tokens --- */
:root{
  --bg: #f3f6fb;
  --text: #14203a;
  --text-muted: #505a6b;

  --hero-top: #0e2b66;   /* deeper blue for contrast */
  --hero-bot: #2b4a92;   /* lighter blue grad */
  --accent:  #b8860b;    /* gold for Donate */
  --accent-600: #9f740a;

  --card-bg: #ffffff;
  --chip: #e7efff;

  --radius: 18px;
  --shadow-1: 0 6px 20px rgba(0,0,0,.12);
  --shadow-2: 0 10px 30px rgba(0,0,0,.18);

  --container: 1120px;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
}

/* --- Typography --- */
body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3{ color: var(--text); margin: 0 0 var(--space-4); line-height: 1.2; }
h1{ font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: .2px; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
h3{ font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 800; }
p { margin: 0 0 var(--space-4); color: var(--text-muted); }
.prose p { max-width: 72ch; }

/* --- Layout Utilities --- */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section{ padding: var(--space-8) 0; }
.section.alt{ background:#f7f9fe; }

/* --- Top Navigation --- */
header{ background:#fff; border-bottom:1px solid rgba(0,0,0,.06); }
.nav.container{
  display:flex; align-items:center; justify-content:space-between;
  padding: var(--space-4) var(--space-4);
}
.brand a{ text-decoration:none; font-weight:900; color:#0e1a34; }
.nav ul[role="list"]{ list-style:none; margin:0; padding:0; display:flex; gap: var(--space-4); }
.nav a{ text-decoration:none; font-weight:700; color:#223; padding:.35rem .6rem; border-radius: 999px; }
.nav a:hover{ background:#f0f4ff; }
.nav [aria-current="page"]{ background: var(--chip); color: var(--hero-top); }

/* --- Hero --- */
.hero{
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bot) 100%);
  color:#fff;
  padding: var(--space-8) 0 var(--space-6);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
.hero h1{ color:#fff; text-shadow: 0 2px 6px rgba(0,0,0,.25); }
.hero p{ color:#fff; opacity:1; }
.actions{ display:flex; flex-wrap:wrap; gap: var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.donation-tagline{
  color:#fff; font-weight:800;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* --- Buttons --- */
.btn{
  display:inline-block; cursor:pointer; user-select:none;
  padding: .75rem 1.25rem;
  font-weight:700; border-radius:999px;
  border:2px solid transparent; text-align:center;
  box-shadow: var(--shadow-1);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }

/* JOIN = .btn-primary  (light, readable on hero) */
.btn.btn-primary{
  color:#fff;
  background: rgba(255,255,255,0.18);    /* subtle fill so it doesn't look disabled */
  border-color:#fff;                      /* visible outline */
}
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible{
  background:#fff;
  color: var(--hero-top);
  box-shadow: var(--shadow-2);
}

/* DONATE = .btn-secondary  (filled, high-contrast) */
.btn.btn-secondary{
  background: var(--accent);
  color:#fff;
  border:none;
}
.btn.btn-secondary:hover,
.btn.btn-secondary:focus-visible{
  background: var(--accent-600);
  box-shadow: var(--shadow-2);
}

/* --- Cards / Grid --- */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 820px){
  .grid{ grid-template-columns: 1fr 1fr; }
}
.card{
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
}
.card h3{ margin-bottom: var(--space-3); }
.card p{ margin:0; }

/* --- Footer --- */
.footer{
  background:#fff; border-top:1px solid rgba(0,0,0,.06);
  padding: var(--space-6) 0;
}
.footer .legal{
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

/* --- Small helpers --- */
.small{ font-size:.9rem; }
.muted{ color: var(--text-muted); }
