/* ==========================================================
   e-NABLE Naperville — shared styles for every page
   Change the brand colors here and they update everywhere.
   ========================================================== */
:root {
  --orange: #C2410C;
  --orange-dark: #9A3412;
  --purple: #4C1D95;
  --ink: #1F1633;
  --muted: #4A4458;
  --tint: #F4EFFB;
  --line: #E7DFF3;
  --on-purple: #E4DAF5;
  --white: #FFFFFF;
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
a { color: var(--orange); }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--purple { background: var(--purple); color: var(--white); }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
h3 { font-size: 21px; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.section--purple .muted { color: var(--on-purple); }
.kicker { font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin: 0 0 16px; }
.section--purple .kicker { color: #FDBA8C; }

/* ---------- Header / nav ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: var(--white); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 700; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--purple); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav a.nav-cta { color: var(--white); background: var(--orange); padding: 12px 20px; border-radius: 999px; border: 0; }
.site-nav a.nav-cta:hover { background: var(--orange-dark); color: var(--white); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--outline { border: 2px solid var(--purple); color: var(--purple); }
.btn--outline:hover { background: var(--purple); color: var(--white); }

/* ---------- Page heroes ---------- */
.hero { padding: 96px 0 88px; }
.hero .wrap > div { max-width: 880px; }
.page-hero { padding: 72px 0 56px; background: var(--tint); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.stat-label { margin-top: 8px; color: var(--on-purple); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: var(--white); }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card--link { text-decoration: none; color: var(--ink); display: block; }
.card--link:hover { border-color: var(--purple); color: var(--ink); }
.card--link .go { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--orange); }
.panel { background: var(--tint); border-radius: 24px; padding: 36px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { background: var(--white); border-radius: 20px; padding: 28px; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px; }
.note { margin-top: 32px; padding: 20px 24px; background: var(--white); border-radius: 16px; font-size: 16px; color: var(--muted); }
.note strong { color: var(--ink); }

/* ---------- Team ---------- */
.team { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.member { text-align: center; padding: 28px 20px; border: 1px solid var(--line); border-radius: 20px; }
.avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--tint); color: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 32px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member--lead .avatar { background: var(--purple); color: var(--white); }
.member h3 { margin-bottom: 4px; }
.member p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 16px; }
.event { background: var(--white); border-radius: 20px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; border: 1px solid var(--line); }
.event-date { flex: 0 0 140px; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--orange); }
.event-body { flex: 1 1 300px; min-width: 0; }
.event-body p { margin: 0; color: var(--muted); font-size: 17px; }
.event--past .event-date { color: var(--purple); }

/* ---------- Donate ---------- */
.zelle { background: var(--white); color: var(--ink); border-radius: 24px; padding: 36px; }
.zelle h2 { font-size: 30px; margin-bottom: 6px; }
.zelle dl { margin: 0 0 24px; display: grid; gap: 16px; }
.zelle dl div { background: var(--tint); border-radius: 16px; padding: 18px 20px; }
.zelle dt { font-weight: 700; font-size: 15px; color: var(--muted); }
.zelle dd { margin: 4px 0 0; font-weight: 700; font-size: 20px; }
.zelle dd.big { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--purple); overflow-wrap: anywhere; }

/* ---------- Contact ---------- */
.contact-list { margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.checklist { margin: 0 0 28px; padding-left: 22px; color: var(--muted); }
.checklist li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--purple); color: var(--on-purple); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 40px; padding-bottom: 40px; }
.site-footer p { margin: 0; max-width: 560px; }
.site-footer a { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--purple); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(31, 22, 51, 0.28); border: 2px solid var(--white); }
.to-top:hover { background: var(--orange); color: var(--white); }


/* ---------- Past events with photos ---------- */
.past-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.past-event { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.past-photo { aspect-ratio: 16 / 10; background: var(--tint); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 16px; }
.past-photo:has(span) { border-bottom: 2px dashed #B9A9D6; }
.past-photo:has(img) { padding: 0; }
.past-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.past-info { padding: 24px 28px; }
.past-info .event-date { color: var(--purple); margin-bottom: 6px; }
.past-info p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- Team photos ---------- */
.avatar { position: relative; width: 120px; height: 120px; font-size: 36px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }