:root {
  --bg: #e8ece8;
  --panel: #f5f5f2;
  --white: #ffffff;
  --ink: #1f2a2b;
  --muted: #586469;
  --green: #2e6a3d;
  --green-deep: #173f2e;
  --gold: #cfae5c;
  --line: #d6dbd2;
  --shadow: 0 12px 28px rgba(20, 32, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #dfe7d5 0%, #edf1eb 100%);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-deep); }

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #2f3a40;
  color: #fff;
  border-bottom: 3px solid var(--green);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 1.2rem;
}
.brand a { color: #fff; }
.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.8rem 0.9rem;
  color: #edf2ef;
  font-size: 0.92rem;
  text-transform: none;
  border-radius: 4px;
}
.nav-list a:hover,
.nav-list a.is-current {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.page-shell {
  padding: 2rem 0 3rem;
}
.page-header {
  background: linear-gradient(135deg, rgba(18,44,26,0.78), rgba(36,80,58,0.66)),
    url('../images/documents/orangebanner.jpg') center/cover no-repeat;
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 3rem 1.2rem;
  box-shadow: var(--shadow);
}
.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}
.page-header p {
  margin: 0.8rem 0 0;
  max-width: 46rem;
  color: rgba(255,255,255,0.9);
}

.panel {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.content-wrap {
  padding: 2rem 1.5rem 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.7rem);
  line-height: 1.1;
}
.hero-copy p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.hero-photo img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--green);
  color: white;
}
.button.secondary {
  background: #edf4ef;
  color: var(--green-deep);
  border-color: #d6e7d8;
}

.feature-grid,
.info-grid,
.gallery-grid,
.doc-grid,
.card-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.doc-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card,
.info-card,
.doc-card,
.gallery-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem;
}
.card h3,
.info-card h3,
.doc-card h3,
.gallery-item h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.card img,
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}
.meta-list,
.link-list,
.species-list,
.resource-list {
  margin: 0;
  padding-left: 1.1rem;
}
.meta-list li,
.link-list li,
.species-list li,
.resource-list li {
  margin-bottom: 0.45rem;
}

.contact-box {
  background: linear-gradient(180deg, #f5f7f4, #edf5ed);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.contact-box h3 { margin-top: 0; }

.doc-card .button {
  margin-top: 0.8rem;
}

.gallery-item figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}
.gallery-item figure { margin: 0; }

.species-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.species-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
}
.species-block h3 { margin-top: 0; }

.page-footer {
  background: #2b373c;
  color: #e8efe7;
  padding: 1.2rem 0;
  margin-top: 2rem;
}
.page-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.gallery-link img {
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.gallery-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(20, 32, 28, 0.12);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(17, 22, 20, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 90vh;
  padding: 1.2rem 1.2rem 0.8rem;
  border-radius: 18px;
  background: rgba(20, 29, 27, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lightbox.is-open .lightbox-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.lightbox-figure {
  margin: 0;
}
#lightbox-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.36s ease, transform 0.36s ease;
}
#lightbox-image.is-visible {
  opacity: 1;
  transform: scale(1);
}
.lightbox-caption {
  margin-top: 0.9rem;
  min-height: 1.5em;
  color: #edf5eb;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.lightbox-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.lightbox-close {
  top: 0.8rem;
  right: 0.8rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-arrow {
  top: 50%;
  width: 3.1rem;
  height: 3.1rem;
  font-size: 2rem;
  transform: translateY(-50%);
}
.lightbox-prev { left: 0.8rem; }
.lightbox-next { right: 0.8rem; }
.lightbox-close:hover,
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%) scale(1.04);
}
.lightbox-close:hover {
  transform: scale(1.04);
}
.lightbox-arrow:disabled,
.lightbox-close:disabled {
  opacity: 0.45;
  cursor: default;
}
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  outline: 2px solid #dcd8a9;
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .site-header-inner,
  .page-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero,
  .feature-grid,
  .info-grid,
  .card-grid,
  .species-columns {
    grid-template-columns: 1fr;
  }
  .nav-list {
    gap: 0.2rem;
  }
  .nav-list a {
    padding: 0.65rem 0.8rem;
    font-size: 0.8rem;
  }
}
