/* ===================================================================
   Upward Christian Academy — Fundraiser Site
   Design tokens
   =================================================================== */

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

:root {
  /* Color */
  --ink:        #201636;  /* Upward brand purple — headlines, primary text */
  --ink-soft:   #3E2F5C;  /* lighter brand purple — nav, secondary surfaces */
  --paper:      #EFF3F1;  /* cool morning-mist off-white — background */
  --paper-2:    #FFFFFF;  /* card surfaces */
  --gold:       #D9A441;  /* sunrise gold — primary accent / CTA */
  --gold-deep:  #B9832E;  /* hover state for gold */
  --coral:      #E2708A;  /* warm rose — secondary accent */
  --sage:       #6E8B74;  /* growth green — tertiary accent, tags */
  --line:       #D6DDD8;  /* hairline borders */
  --text-muted: #55637C;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Typography scale ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text-muted); }
p.lede { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FAF9F6;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-logo {
  width: 220px;
  height: auto;
  margin-bottom: 14px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  color: #C9BFE0;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #FAF9F6;
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: #E8B65C; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #FAF9F6;
  padding: 8px 12px;
  font-size: 1rem;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-row { flex-wrap: wrap; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #E8B65C; }
.btn-ghost { background: transparent; color: var(--paper-2); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Sunrise hero graphic ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 0;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; }
}

.hero-copy h1 { color: #FAF9F6; }
.hero-copy p.lede { color: #C9BFE0; margin-top: 18px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.sunrise {
  position: relative;
  height: 340px;
}
.sunrise svg { width: 100%; height: 100%; }
.sunrise-arc { transform-origin: 50% 100%; animation: rise 1.4s ease-out; }
@keyframes rise {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Ascending steps (signature element) ---------- */
.progress-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
}
.progress-figures {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.progress-figures .raised {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
}
.progress-figures .goal {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.steps {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
}
.step {
  flex: 1;
  background: #E3E8E4;
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background 0.2s ease;
}
.step.filled { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%); }
.step:nth-child(1) { height: 22%; }
.step:nth-child(2) { height: 38%; }
.step:nth-child(3) { height: 54%; }
.step:nth-child(4) { height: 70%; }
.step:nth-child(5) { height: 86%; }
.step:nth-child(6) { height: 100%; }
.progress-caption {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}
.card .icon {
  width: 42px; height: 42px;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; }

/* ---------- Tag ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(110,139,116,0.14);
  color: var(--sage);
  padding: 4px 10px;
  border-radius: 3px;
}
.tag.coral { background: rgba(226,112,138,0.14); color: #C2506C; }
.tag.gold { background: rgba(217,164,65,0.16); color: var(--gold-deep); }

/* ---------- Event rows ---------- */
.event-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.event-row:first-child { border-top: 1px solid var(--line); }
.event-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sage);
  line-height: 1.5;
}
.event-date .day { font-size: 1.8rem; color: var(--ink); font-weight: 700; display: block; font-family: var(--font-display); }
@media (max-width: 700px) {
  .event-row { grid-template-columns: 70px 1fr; }
  .event-row .btn { grid-column: 1 / -1; margin-top: 8px; justify-self: start; }
}

/* ---------- Info blocks (Donate / Contact) ---------- */
.info-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 26px 30px;
  margin-bottom: 20px;
}
.info-block h3 { margin-bottom: 8px; }
.info-block .placeholder { color: var(--coral); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9BFE0;
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9C8FB8;
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 0.92rem; color: #C9BFE0; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8779A0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.center-text { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
