/* Pinelands Friends of the Oval — site styles */

:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --cream: #f8f5f0;
  --cream-dark: #ede8df;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --shadow: rgba(26, 77, 46, 0.12);
  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header banner ---- */

.site-header {
  position: relative;
  overflow: hidden;
  background-color: var(--green-dark);
  background-image:
    linear-gradient(
      to bottom,
      rgba(15, 45, 28, 0.45) 0%,
      rgba(20, 55, 35, 0.35) 50%,
      rgba(15, 45, 28, 0.5) 100%
    ),
    url("/files/LowerOval.jpg");
  /* Top-aligned: mountain/sky fixed at top; cover crops the bottom (grass/rope) */
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  /* Fixed height keeps the same vertical crop on all screen widths */
  height: 13rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px var(--shadow);
}

@media (max-width: 640px) {
  .site-header {
    height: 11.5rem;
  }
}

.site-header__badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.site-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.site-header__tagline {
  margin: 0;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 400;
  max-width: 36em;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/* ---- Navigation ---- */

.site-nav {
  background: var(--white);
  border-bottom: 3px solid var(--green-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-nav a {
  display: block;
  padding: 0.9rem 1.25rem;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-mid);
  background: var(--cream);
  outline: none;
}

.site-nav a.active {
  color: var(--green-mid);
  border-bottom-color: var(--green-mid);
}

/* ---- Main content ---- */

main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

main h2 {
  color: var(--green-dark);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cream-dark);
}

main h3 {
  color: var(--green-mid);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}

main p {
  margin: 0 0 1rem;
}

main ul,
main ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

main li {
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.callout {
  background: var(--white);
  border-left: 4px solid var(--green-light);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 10px var(--shadow);
}

.callout strong {
  color: var(--green-dark);
}

.btn-primary {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--green-mid);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-dark);
  color: var(--white);
  outline: none;
}

/* ---- Gallery ---- */

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.gallery-grid figure {
  margin: 0;
  width: 100%;
}

.gallery-caption,
.gallery-group-caption {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.gallery-group-caption {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 10px var(--shadow);
}

/* ---- Contact form ---- */

.contact-form {
  max-width: 36em;
  margin: 1.5rem 0 2rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 500px) {
  .form-row--two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--cream-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.25);
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form .btn-primary {
  margin-top: 0.25rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.placeholder-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  padding: 0 0 1.25rem 1.25rem;
  border-left: 3px solid var(--green-light);
  margin-bottom: 0.25rem;
}

.timeline li strong {
  color: var(--green-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.doc-list a {
  font-weight: 600;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--green-dark);
  color: var(--white);
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.site-footer p,
.site-footer a {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
  outline: none;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  color: var(--white);
  transform: scale(1.08);
  outline: none;
}

.site-footer__social svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.site-footer__copy {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  opacity: 0.75;
  text-align: center;
}
