/* ==========================================================================
   Amy Phillips for Naperville Park District
   Design tokens
   ========================================================================== */

:root {
  /* Color -- forest green / sage green / white, per campaign identity */
  --forest: #2F5C34;
  --forest-dark: #1E3D24;
  --sage: #AFCB8E;
  --sage-deep: #6E9A4E;
  --sage-pale: #EEF4E6;
  --paper: #FDFCF9;
  --ink: #212B1F;
  --ink-soft: #4B5647;
  --line: #D7E2C9;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --shadow-card: 0 1px 2px rgba(30, 61, 36, 0.06), 0 6px 20px rgba(30, 61, 36, 0.06);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
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 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--forest);
  text-decoration-color: var(--sage-deep);
  text-underline-offset: 3px;
}
a:hover { color: var(--forest-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule {
  position: relative;
  border-top: 1px solid var(--line);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rule-icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 0.4rem 0.7rem;
  line-height: 0;
}
.rule-icon svg {
  width: 20px;
  height: 20px;
  color: var(--sage-deep);
  opacity: 0.75;
}

/* Offset anchor targets so the sticky header doesn't cover them */
#bio, #priorities, #get-involved, #volunteer, #donate, #updates {
  scroll-margin-top: 84px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 0.75em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.btn-primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest);
}
.btn-ghost:hover { background: var(--sage-pale); }

.text-link {
  display: block;
  margin-top: 0.9em;
  font-size: 0.92rem;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(30, 61, 36, 0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand-mark {
  height: 46px;
  width: auto;
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--forest-dark);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--forest); }

.nav-cta {
  background: var(--forest);
  color: #fff !important;
  padding: 0.5em 1.1em;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--forest-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.25rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.2em;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.photo-frame {
  border: 1px solid var(--line);
  background: var(--sage-pale);
  padding: 0.5rem;
  border-radius: var(--radius);
}

.frame-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}

/* Priority images: shorter, wide aspect */
.priority-media .frame-photo { aspect-ratio: 4 / 3; }

/* ==========================================================================
   Bio
   ========================================================================== */

.bio { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.bio-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.bio h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.bio .lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--forest-dark);
}

.bio p { color: var(--ink); max-width: 42em; }
.bio .lede { max-width: 26em; }

.thanks {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.at-a-glance {
  background: var(--sage-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.glance-icon {
  width: 36px;
  height: 36px;
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
}
.at-a-glance h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9em;
}
.at-a-glance ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}
.at-a-glance li {
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.45;
}
.at-a-glance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
}

/* ==========================================================================
   Priorities
   ========================================================================== */

.priorities { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.priorities .section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 40em;
}
.priorities h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.priority {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.priority:last-of-type { margin-bottom: 0; }
.priority:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(30, 61, 36, 0.08), 0 18px 34px rgba(30, 61, 36, 0.10);
}
.priority-reverse .priority-media { order: 2; }
.priority-reverse .priority-copy { order: 1; }

.kicker {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.6em;
}

.priority-copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-bottom: 0.55em;
}

.priority-copy p { max-width: 42em; color: var(--ink); }

/* ==========================================================================
   Get Involved
   ========================================================================== */

.get-involved {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--sage-pale);
}

.get-involved .section-head { max-width: 40em; margin-bottom: clamp(2rem, 5vw, 3rem); }
.get-involved h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

.involved-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.involved-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.involved-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(30, 61, 36, 0.08), 0 18px 34px rgba(30, 61, 36, 0.10);
}

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--sage-deep);
  margin-bottom: 0.9rem;
}

.involved-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.involved-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.involved-card .btn { align-self: flex-start; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.signup-form input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.signup-form input:focus {
  border-color: var(--sage-deep);
}
.signup-form .btn { align-self: flex-start; margin-top: 0.2rem; }

.form-note {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--forest-dark);
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--forest-dark);
  color: #EAF1E4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: 2rem;
}

.footer-icon {
  width: 32px;
  height: 32px;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.15em;
}

.footer-tagline, .footer-date {
  font-size: 0.9rem;
  color: #C6D9BC;
  margin-bottom: 0.2em;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8em;
}

.footer-links a {
  display: inline-block;
  color: #EAF1E4;
  text-decoration-color: var(--sage);
  margin-bottom: 0.6em;
}
.footer-links a:hover { color: var(--sage); }

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.3rem;
}

.footer-legal {
  border-top: 1px solid rgba(234, 241, 228, 0.15);
  padding-top: 1.25rem;
  padding-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}
.footer-legal p {
  margin: 0;
  font-size: 0.8rem;
  color: #9FB693;
}

/* ==========================================================================
   Scroll reveal (progressive enhancement, respects reduced motion)
   ========================================================================== */

.reveal {
  opacity: 0;
  translate: 0 14px;
}
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}
.hero-copy, .hero-photo, .bio-grid,
.priorities .section-head, .get-involved .section-head,
.at-a-glance {
  transition: opacity 0.6s ease, translate 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }

  .bio-grid { grid-template-columns: 1fr; }

  .priority, .priority-reverse {
    grid-template-columns: 1fr;
  }
  .priority-reverse .priority-media,
  .priority-reverse .priority-copy { order: initial; }

  .involved-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 0.7em 0;
  }
  .nav-cta {
    margin-top: 0.4rem;
    text-align: center;
  }
}
