/* =============================================
   Salish Municipal Parks District
   ============================================= */

:root {
  --green-dark:   #1a4a2e;
  --green-mid:    #2d7a4f;
  --green-light:  #4caf78;
  --green-pale:   #e8f5ed;
  --gold:         #c8913a;
  --gold-light:   #f0c46a;
  --text:         #1e2a1e;
  --text-muted:   #5a6b5a;
  --white:        #ffffff;
  --off-white:    #f9fdf9;
  --border:       #d0e4d8;
  --shadow:       rgba(26, 74, 46, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  line-height: 1.25;
  color: var(--green-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; color: var(--green-mid); }

p { margin-bottom: 1.1em; }

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.1em; }
li { margin-bottom: 0.4em; }

/* ── Navigation ──────────────────────────────── */
.site-nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 0;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.nav-logo-text {
  color: var(--white);
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--green-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
}

.nav-donate {
  background: var(--gold) !important;
  color: var(--white) !important;
  font-weight: bold;
  border-radius: 4px;
}

.nav-donate:hover {
  background: var(--gold-light) !important;
  color: var(--green-dark) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  background: var(--green-mid);
  color: var(--white);
}

.nav-dropdown-caret {
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--green-dark);
  border-radius: 6px;
  box-shadow: 0 8px 20px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--white);
  padding: 0.5rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d5a3a 50%, #1a4a2e 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(76, 175, 120, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 145, 58, 0.1) 0%, transparent 40%);
}

.hero-content { position: relative; max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }

.hero .tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85em 2em;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--shadow); text-decoration: none; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover { background: #d9a04a; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover { border-color: var(--white); color: var(--white); }

.btn-green {
  background: var(--green-mid);
  color: var(--white);
}

.btn-green:hover { background: var(--green-dark); color: var(--white); }

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 1.5rem; }

.section-alt { background: var(--green-pale); }

.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p { color: var(--white); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--green-mid);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-dark .section-header .eyebrow { color: var(--green-light); }

/* ── Cards ───────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); }

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { margin-bottom: 0.5rem; }

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
  background: var(--green-mid);
  color: var(--white);
  padding: 2rem 1.5rem;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
  text-align: center;
}

.stat-item {}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  line-height: 1;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

/* ── Donate Banner ───────────────────────────── */
.donate-banner {
  background: linear-gradient(135deg, var(--gold) 0%, #d9a04a 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.donate-banner h2 { color: var(--white); margin-bottom: 0.75rem; }
.donate-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 1.75rem; font-size: 1.05rem; }

/* ── FAQ ─────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  padding: 1.2rem 1.5rem;
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--green-mid);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq-question::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ── Page Hero (inner pages) ─────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), #2d5a3a);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto; font-size: 1.1rem; font-style: italic; }

/* ── Prose content ───────────────────────────── */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { margin-top: 1.5rem; color: var(--green-mid); }

.callout {
  background: var(--green-pale);
  border-left: 4px solid var(--green-mid);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
}

.callout.gold {
  background: #fef9ee;
  border-left-color: var(--gold);
}

/* ── Two-column ──────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Timeline ────────────────────────────────── */
.timeline { max-width: 700px; margin: 0 auto; }

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline-marker.deadline {
  background: #c0392b;
  font-size: 1.1rem;
}

.timeline-item:not(:last-child) .timeline-marker::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 1rem);
  background: var(--border);
}

.timeline-content { padding-top: 0.4rem; }
.timeline-content h4 { color: var(--green-dark); font-size: 1rem; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #111d14;
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 { color: var(--green-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Progress bar ────────────────────────────── */
.progress-wrap { margin: 1.5rem 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 0.4rem; font-weight: bold; white-space: nowrap; }
.progress-bar { background: var(--border); border-radius: 99px; height: 14px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-mid), var(--green-light)); border-radius: 99px; transition: width 0.6s; }

/* ── Notice bar ──────────────────────────────── */
.notice-bar {
  background: linear-gradient(135deg, var(--gold) 0%, #d9a04a 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
}

.notice-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.notice-bar-message {
  color: var(--white);
  font-weight: bold;
  white-space: nowrap;
}

.notice-bar-message:hover { color: var(--green-dark); }

.notice-bar-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  flex-shrink: 0;
}

.notice-bar-metrics .progress-wrap { margin: 0; flex: 1 1 200px; }
.notice-bar-metrics .progress-label { color: var(--white); font-size: 0.75rem; }
.notice-bar-metrics .progress-bar { height: 8px; background: rgba(255,255,255,0.35); }
.notice-bar-metrics .progress-fill { background: var(--green-dark); }

@media (max-width: 800px) {
  .notice-bar-inner { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.6rem; overflow-x: visible; }
  .notice-bar-metrics { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .notice-bar-metrics .progress-wrap { flex: 0 0 auto; width: 100%; }
}

/* ── Responsive nav ──────────────────────────── */
@media (max-width: 800px) {
  .nav-inner {
    padding: 0.75rem 1rem;
    position: relative;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 8px 20px var(--shadow);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a { padding: 0.85rem 0.5rem; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 0.5rem;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    width: 100%;
    margin: 0.25rem 0;
  }

  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}
