/* =========================================================================
   Grace Lake Watershed Improvement Association — shared stylesheet
   ========================================================================= */

:root {
  --paper: #fbf8f2;
  --paper-warm: #f4efe3;
  --ink: #1a2330;
  --ink-soft: #2d3a4a;
  --ink-muted: #5a6b7d;
  --lake-deep: #0f4c5c;
  --lake-mid: #2e7d8e;
  --moss: #5a7a3a;
  --moss-bg: #e8efd9;
  --alert: #b45309;
  --alert-bg: #fef3c7;
  --alert-border: #fbbf24;
  --clp-red: #8b2f1f;
  --clp-bg: #fef2f2;
  --border: #d4cfbf;
  --border-soft: #e8e4d5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--lake-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--lake-mid); }

/* -------- MASTHEAD (top bar) -------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: block;
}
.brand-sub {
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-muted);
  margin-top: 2px;
  display: block;
  font-family: 'Fraunces', Georgia, serif;
}
.issue-info {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.5;
}
.issue-info strong {
  color: var(--clp-red);
  font-weight: 700;
  display: block;
  letter-spacing: 0.08em;
}

/* -------- SITE NAV -------- */
.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--lake-deep); }
.site-nav a.active {
  color: var(--lake-deep);
  border-bottom-color: var(--lake-deep);
  font-weight: 600;
}
.nav-donate {
  display: inline-block;
  padding: 8px 18px;
  background: var(--lake-deep);
  color: #fff !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  margin-left: auto;
  white-space: nowrap;
}
.nav-donate:hover { background: var(--lake-mid); color: #fff !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-nav-inner { padding: 10px 20px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open ul { max-height: 600px; padding-bottom: 10px; }
  .site-nav li { width: 100%; }
  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border-soft);
  }
  .site-nav a.active { border-bottom-color: var(--lake-deep); }
  .nav-donate { margin: 12px 4px 4px; width: fit-content; }
}

/* -------- PAGE WRAPPER -------- */
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* -------- HERO -------- */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-soft);
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clp-red);
  font-weight: 700;
  margin: 0 0 16px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--lake-deep);
  font-weight: 400;
}
.hero p.lede {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 680px;
  margin: 0 0 28px;
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 36px; }
  .hero p.lede { font-size: 18px; }
}

/* -------- SECTIONS -------- */
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}
section:last-child { border-bottom: none; }
section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}
section h2 .n {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clp-red);
  font-weight: 700;
  margin-bottom: 12px;
}
section h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 700;
  margin: 28px 0 10px;
}
.section-intro {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
section p { margin: 0 0 16px; }

/* -------- CARDS -------- */
.card {
  background: var(--paper-warm);
  padding: 24px 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 20px 0;
}
.card h3 { margin-top: 0; }

.alert-card {
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  padding: 22px 26px;
  border-radius: 6px;
  margin: 24px 0;
}
.alert-card .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clp-red);
  font-weight: 700;
  margin: 0 0 8px;
}
.alert-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}
.alert-card p { margin: 0 0 12px; color: var(--ink-soft); }
.alert-card p:last-child { margin-bottom: 0; }

.success-card {
  background: var(--moss-bg);
  border-left: 4px solid var(--moss);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 24px 0;
}
.success-card h3 {
  margin: 0 0 8px;
  color: #3a5520;
  font-size: 19px;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--lake-deep);
  color: #fff !important;
  border-color: var(--lake-deep);
}
.btn-primary:hover { background: var(--lake-mid); border-color: var(--lake-mid); }
.btn-secondary {
  background: transparent;
  color: var(--lake-deep) !important;
  border-color: var(--lake-deep);
}
.btn-secondary:hover { background: var(--lake-deep); color: #fff !important; }
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

/* -------- GRID LAYOUTS -------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* -------- PERSON / BOARD CARDS -------- */
.person-card {
  background: var(--paper-warm);
  padding: 20px 22px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.person-role {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clp-red);
  font-weight: 700;
  margin-bottom: 8px;
}
.person-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* -------- STAT GRID -------- */
.stat {
  background: var(--paper-warm);
  padding: 20px 22px;
  border-left: 4px solid var(--lake-deep);
  border-radius: 0 4px 4px 0;
}
.stat-number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--lake-deep);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* -------- LAKE PHOTO GALLERY -------- */
.lake-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px 240px 320px;
  gap: 14px;
  margin: 28px 0 12px;
}
.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper-warm);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.04);
}
.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  text-align: left;
}
.gallery-tall {
  grid-row: 1 / 3;
  grid-column: 1;
}
.gallery-wide {
  grid-column: 1 / span 4;
}
.gallery-half {
  grid-column: span 2;
}
@media (max-width: 900px) {
  .lake-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item, .gallery-tall {
    grid-row: auto;
    grid-column: auto;
    height: 220px;
  }
  .gallery-tall { grid-column: span 2; height: 320px; }
  .gallery-wide { grid-column: span 2; height: 280px; }
  .gallery-half { grid-column: auto; height: 220px; }
}
@media (max-width: 520px) {
  .lake-gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-tall, .gallery-half { height: 240px; grid-column: auto; }
}

/* -------- LIGHTBOX -------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  margin-top: 14px;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

/* -------- FOOTER -------- */
footer.site-footer {
  background: var(--ink);
  color: #d7dbe0;
  padding: 48px 28px 32px;
  margin-top: 60px;
  font-size: 14px;
  line-height: 1.6;
}
footer.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  footer.site-footer .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
footer.site-footer h4 {
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 12px;
}
footer.site-footer a { color: #8ab4c2; text-decoration: none; }
footer.site-footer a:hover { color: #b4d4dd; text-decoration: underline; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid #2b3949;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #7f8a97;
}
.footer-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

/* -------- RESOURCE LIST -------- */
.resource-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.resource-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.resource-list li > div { flex: 1; min-width: 260px; }
.r-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 4px;
}
.r-desc { font-size: 14px; color: var(--ink-muted); }
.resource-list li:last-child { border-bottom: none; }

/* -------- FORM (contact page) -------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lake-deep);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
}

/* -------- UTILITIES -------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
.small { font-size: 13.5px; color: var(--ink-muted); }

@media print {
  .site-nav, .nav-toggle, footer.site-footer, .btn-row { display: none !important; }
  body { background: #fff; }
}
