/* ============================================================
   Meredith Westfall — DD2 School Board District 4
   Brand: navy #071c43 · purple #84397a (sampled from logo)
   Fonts: Great Vibes (script, logo-style), Oswald (display),
          Source Sans 3 (body)
   ============================================================ */

:root {
  --navy: #071c43;
  --navy-soft: #10295c;
  --navy-deep: #040f27;
  --purple: #84397a;
  --purple-bright: #a34d97;
  --purple-soft: #b06aa6;
  --plum-tint: #f4ecf3;
  --cream: #faf8fb;
  --ink: #1c1c24;
  --gray: #5d6070;
  --border: #e6e0e8;
  --grad-hero: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 38%, #3c2660 72%, var(--purple) 100%);
  --grad-cta: linear-gradient(120deg, var(--purple) 0%, var(--purple-bright) 55%, #c05fb0 100%);
  --grad-band: linear-gradient(120deg, var(--navy) 0%, #2a1e55 55%, var(--purple) 130%);
  --grad-text: linear-gradient(105deg, var(--purple-bright), #d581c5);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(7, 28, 67, 0.12);
  --shadow-deep: 0 24px 60px rgba(7, 28, 67, 0.28);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

.script {
  font-family: "Great Vibes", cursive;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

p { margin: 0 0 1em; }
a { color: var(--purple); }
img { max-width: 100%; display: block; }

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

/* ---------- Announcement bar ---------- */
.topbar {
  background: var(--grad-band);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  text-transform: uppercase;
  font-weight: 600;
}
.topbar a { color: #f2c7ea; text-decoration: none; }

/* ---------- Header ---------- */
header.site-header {
  background: rgba(250, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 54px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active { border-bottom-color: var(--purple); }
.nav-cta {
  background: var(--grad-cta);
  color: #fff !important;
  padding: 11px 26px !important;
  border-radius: 999px;
  border-bottom: none !important;
  box-shadow: 0 6px 18px rgba(132, 57, 122, 0.35);
}
.nav-cta:hover { filter: brightness(1.07); }

.nav-toggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--navy); cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    gap: 2px; padding: 14px 24px 22px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { width: 100%; padding: 11px 0; }
  .nav-cta { margin-top: 10px; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: "Source Sans 3", sans-serif;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-donate {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 26px rgba(132, 57, 122, 0.4);
}
.btn-donate:hover { filter: brightness(1.08); box-shadow: 0 14px 32px rgba(132, 57, 122, 0.5); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(7,28,67,0.3); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background: var(--grad-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(163, 77, 151, 0.35), transparent 50%),
    radial-gradient(ellipse at 8% 92%, rgba(163, 77, 151, 0.22), transparent 45%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
  padding-top: 72px;
}
.hero-copy { padding-bottom: 84px; }
.hero-script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: #d9a1cf;
  display: block;
  margin-bottom: -14px;
}
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero .role-line {
  display: inline-block;
  border-top: 2px solid var(--purple-soft);
  border-bottom: 2px solid var(--purple-soft);
  padding: 6px 2px;
  color: #e9d2e6;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.hero p.lead { color: #cfd4e6; font-size: 1.18rem; max-width: 46ch; margin-bottom: 30px; }

.hero-photo-frame {
  position: relative;
  align-self: end;
  line-height: 0;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 24px -24px -0px 24px;
  background: var(--grad-cta);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.55;
}
.hero-photo-frame img {
  position: relative;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-deep);
}

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-bottom: 0; order: 1; }
  .hero-photo-frame { order: 2; max-width: 430px; margin: 0 auto; }
}

/* ---------- Tagline ribbon ---------- */
.ribbon {
  background: var(--grad-band);
  color: #fff;
  text-align: center;
  padding: 26px 20px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-weight: 500;
}
.ribbon .script { color: #e0aad6; font-size: 1.5em; letter-spacing: 0; text-transform: none; margin: 0 8px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.alt { background: #fff; }
section.tint { background: var(--plum-tint); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-cta);
}
.card .num {
  font-family: "Oswald", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.quote-card {
  background: var(--grad-band);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow-deep);
}
.quote-card::before { display: none; }
.quote-card p { color: #e8e3f2; font-size: 1.18rem; }
.quote-card .attribution { color: #d9a1cf; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; }

/* ---------- Photo slots (swap-ready) ---------- */
.photo-slot {
  border-radius: var(--radius);
  border: 2px dashed #cbb8d3;
  background: repeating-linear-gradient(135deg, #f2ebf4, #f2ebf4 12px, #ece2ef 12px, #ece2ef 24px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--gray); font-size: 0.85rem;
  padding: 20px; min-height: 230px;
  background-size: cover; background-position: center;
}
.photo-slot code {
  display: block; margin-top: 6px; font-size: 0.78rem;
  background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--border);
}
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 640px) { .gallery-strip { grid-template-columns: 1fr; } }

/* ---------- Bio page ---------- */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 76px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(163,77,151,0.35), transparent 55%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .hero-script { margin-bottom: -10px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: #cfd4e6; max-width: 640px; margin: 0 auto; }

.bio-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .bio-block { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
form.stack { display: flex; flex-direction: column; gap: 18px; }
label { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.98rem;
  font-family: inherit;
  margin-top: 6px;
  background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--purple-soft); border-color: var(--purple); }
textarea { min-height: 120px; resize: vertical; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
@media (max-width: 640px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-grid label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
  background: #fff; border: 1.5px solid var(--border);
  padding: 12px 14px; border-radius: 10px; cursor: pointer;
}
.checkbox-grid label:hover { border-color: var(--purple-soft); }
.checkbox-grid input { width: auto; margin: 0; accent-color: var(--purple); }
.hp-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; color: var(--gray); }
.form-status { padding: 13px 17px; border-radius: 10px; font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #ecf6ee; color: #1e6b37; }
.form-status.err { background: #fdecec; color: #a32330; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad-cta);
  color: #fff;
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 15% 20%, rgba(7,28,67,0.35), transparent 55%);
}
.cta-banner .container { position: relative; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 26px; }
.btn-white { background: #fff; color: var(--purple); }
.btn-white:hover { filter: brightness(0.96); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #b9c0d6;
  padding: 60px 0 28px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  color: #fff; font-family: "Oswald", sans-serif;
  font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 14px;
}
.footer-logo-card {
  display: inline-block;
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
footer .footer-logo { height: 84px; width: auto; display: block; }
footer .footer-contact { margin-top: 10px; }
footer .footer-contact a { font-weight: 700; color: #fff; }
footer a { color: #b9c0d6; text-decoration: none; }
footer a:hover { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 9px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px; font-size: 0.78rem; color: #7c86a3;
  text-align: center;
}

.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-cta); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
