/* West22 Trails public site styles. Palette taken from the trail photos: forest green + trail dirt. */
:root {
  --forest: #26402a;
  --forest-2: #3d5e3a;
  --moss: #e8eee2;
  --dirt: #b8692f;
  --dirt-dark: #96531f;
  --paper: #faf8f3;
  --ink: #1f2420;
  --muted: #5b655c;
  --line: #dcdfd6;
  --radius: 10px;
  --head: "Bitter", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--forest); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 16px; }
.narrow { max-width: 760px; }

.btn {
  display: inline-block; background: var(--dirt); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 2px solid var(--dirt); cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--dirt-dark); border-color: var(--dirt-dark); }
.btn-outline { background: transparent; color: var(--dirt-dark); }
.btn-outline:hover { color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Header + nav (CSS-only mobile menu) */
.preview-banner { background: #fff3c4; color: #5c4400; text-align: center; padding: 8px 16px; font-size: .9rem; }
.site-header { background: var(--forest); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 1.1rem; }
.brand-mark { background: var(--dirt); border-radius: 8px; padding: 4px 7px; font-size: .85rem; letter-spacing: .04em; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { color: #e6eee3; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-toggle, .nav-toggle-label { display: none; }

@media (max-width: 760px) {
  .nav-toggle-label { display: block; width: 40px; height: 40px; position: relative; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    position: absolute; left: 9px; width: 22px; height: 2px; background: #fff; content: "";
  }
  .nav-toggle-label span { top: 19px; }
  .nav-toggle-label span::before { left: 0; top: -7px; }
  .nav-toggle-label span::after { left: 0; top: 7px; }
  .site-nav { display: none; flex-direction: column; width: 100%; padding-bottom: 12px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(rgba(20,34,22,.55), rgba(20,34,22,.65)), var(--hero) center/cover no-repeat;
  color: #fff; padding: clamp(80px, 14vw, 160px) 0;
}
.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
a.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 16px; }
.card-body p { color: var(--muted); font-size: .95rem; }

/* Feature */
.feature { background: var(--moss); padding: 56px 0; }
.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.highlights li { background: #fff; border-left: 4px solid var(--dirt); padding: 10px 14px; border-radius: 6px; font-weight: 600; color: var(--forest); }
@media (max-width: 760px) { .feature-inner { grid-template-columns: 1fr; } }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 20px 0; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 14px 16px; }
.news-card h3 a { color: var(--forest); text-decoration: none; }
time { color: var(--muted); font-size: .85rem; display: block; margin-bottom: 4px; }
.post-img { border-radius: var(--radius); margin: 16px 0 24px; }

/* Membership + sponsors */
.membership-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--dirt); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0;
}
.membership-card h2 { margin: 0; font-size: 1.3rem; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--dirt-dark); margin: 4px 0 0; }
.terms { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; color: var(--muted); font-size: .95rem; }
.terms summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 4px 0; }
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.sponsor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; text-decoration: none; }
.sponsor p { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.sponsor-logo { max-height: 70px; width: auto; }

/* Contact */
.contact-form { display: grid; gap: 14px; margin: 20px 0 28px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 8px; }
.notice.ok { background: #e3f1df; color: #24521d; }
.notice.err { background: #fbe4e0; color: #7a2418; }

/* Footer */
.site-footer { background: var(--forest); color: #cfdacb; padding: 32px 0; margin-top: 40px; }
.site-footer strong { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #fff; }
