:root {
  --forest-900: #1e2d22;
  --forest-700: #2f4f36;
  --forest-500: #48654a;
  --leaf-200: #dfe8dc;
  --surface: #ffffff;
  --text: #1f2a21;
  --muted: #4f5e52;
  --border: #d6e0d2;
}

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

body {
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.03rem;
  color: var(--text);
  background: #f4f6f2;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  padding-top: 2.35rem;
}

/* Open-Meteo weather — Eriegrove (lat/lon in script.js, from Google Maps) */
.weather-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e8f6ea;
  background: linear-gradient(180deg, rgb(24 38 28 / 96%) 0%, rgb(20 32 24 / 94%) 100%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  box-shadow: 0 2px 12px rgb(0 0 0 / 15%);
}

.weather-strip .weather-temp {
  font-variant-numeric: tabular-nums;
}

.weather-strip .weather-condition {
  text-transform: lowercase;
  opacity: 0.95;
}

.weather-strip .weather-condition::first-letter {
  text-transform: uppercase;
}

.weather-strip .weather-source {
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 0.35rem;
}

.weather-strip .weather-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.weather-strip.is-hidden {
  display: none;
}

body.weather-strip-off {
  padding-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 600;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  color: #f8fbf7;
  background:
    linear-gradient(rgb(22 36 25 / 72%), rgb(22 36 25 / 72%)),
    url("assets/images/main (2).JPG"),
    radial-gradient(circle at top, #3f6146 0%, var(--forest-900) 75%);
  background-position: center;
  background-size: cover;
  padding-bottom: 5rem;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 12%) 100%);
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-tab {
  display: inline-block;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgb(248 251 247 / 42%);
  color: #f8fbf7;
  text-decoration: none;
  font: 700 0.8rem/1.1 "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nav-tab:hover {
  background: rgb(248 251 247 / 16%);
}

.nav-tab-active {
  background: rgb(248 251 247 / 24%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 2rem;
  max-width: min(1100px, 92%);
}

.hero-content > .eyebrow,
.hero-content > h2,
.hero-content > p:first-of-type {
  max-width: 42rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.hero h2 {
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: 0.015em;
  margin-bottom: 1.1rem;
}

.hero p {
  margin-bottom: 1.35rem;
  max-width: 68ch;
}

.hero-camping-grid {
  display: grid;
  grid-template-columns: 1fr min(42%, 320px);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
  max-width: 100%;
}

.hipcamp-cta {
  margin-top: 0;
  min-width: 0;
}

.hipcamp-book-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.availability-pill {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgb(102 187 106 / 24%);
  border: 1px solid rgb(170 224 173 / 70%);
  color: #ebffed;
  font: 700 0.76rem/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hipcamp-book-link {
  display: inline-flex;
  line-height: 0;
}

.hipcamp-book-img {
  display: block;
  margin: 0;
}

.hero-camping-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgb(248 251 247 / 35%);
  box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
}

.hero-camping-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hipcamp-points {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.hipcamp-points li {
  margin: 0.28rem 0;
  font-size: 1rem;
  line-height: 1.55;
}

.lead {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.78;
}

.lead a {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.lead a:hover {
  color: var(--forest-500);
}

.section {
  padding: 4rem 0;
}

.section h3 {
  font-size: clamp(1.7rem, 2.5vw, 2rem);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

.about-media {
  min-height: 320px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgb(47 79 54 / 20%), rgb(47 79 54 / 20%)),
    url("assets/images/main (2).JPG"),
    #d7e1d2;
  background-position: center;
  background-size: cover;
  box-shadow: 0 8px 22px rgb(24 33 25 / 8%);
}

.section-alt {
  background: var(--leaf-200);
}

.trees-hero {
  background:
    linear-gradient(rgb(19 33 22 / 75%), rgb(19 33 22 / 75%)),
    url("assets/images/Overview.JPG"),
    radial-gradient(circle at top, #3f6146 0%, var(--forest-900) 75%);
  background-position: center;
  background-size: cover;
}

.species-card {
  position: relative;
  overflow: hidden;
}

.species-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 10%, rgb(72 101 74 / 9%) 0, transparent 42%),
    radial-gradient(circle at 84% 92%, rgb(72 101 74 / 9%) 0, transparent 40%);
  pointer-events: none;
}

.species-intro {
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.species-planted-note {
  position: relative;
  margin: 0 0 1.1rem;
  max-width: 48rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.species-list-status {
  position: relative;
  min-height: 1.2rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.species-list-error {
  break-inside: avoid;
  list-style: none;
  padding: 0.75rem;
  color: #6b2c2c;
  font-size: 0.95rem;
}

.species-list-error code {
  font-size: 0.88em;
}

.species-list {
  position: relative;
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.species-list li {
  break-inside: avoid;
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.45rem;
  border-left: 2px solid #cbd8c7;
}

.species-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.leaf-thumb {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #cdd8c9;
  background: #f2f7ef;
}

.species-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.species-link:hover {
  color: var(--forest-700);
}

.species-list span {
  color: var(--forest-500);
  font-size: 0.9em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 8px 22px rgb(24 33 25 / 8%);
}

.card h4 {
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.donate-panel {
  max-width: 540px;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0.68rem 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

.btn-primary:hover {
  background: var(--forest-500);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgb(248 251 247 / 55%);
}

.btn-outline:hover {
  background: rgb(248 251 247 / 14%);
}

.footer {
  padding: 1.65rem 0;
  text-align: center;
  color: var(--muted);
  background: #edf2ea;
  border-top: 1px solid #dde6d8;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.footer-address {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.footer-address a {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact {
  margin-top: 0.35rem;
}

.footer-contact a {
  color: var(--forest-700);
  font-weight: 600;
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 240px;
  }

  .hero-content {
    padding-top: 3.2rem;
  }

  .nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-camping-grid {
    grid-template-columns: 1fr;
  }

  .hero-camping-photo {
    max-width: 100%;
  }

  .species-list {
    columns: 1;
  }
}
