/* ==========================================================================
   Hanke's Hunts — modern responsive stylesheet (mobile-first)
   ========================================================================== */

:root {
  --pine: #1c3325;
  --pine-dark: #142619;
  --moss: #2f5239;
  --field: #4a7a55;
  --tan: #d8c69a;
  --tan-light: #ece3cb;
  --cream: #f7f4ec;
  --ink: #24281f;
  --ink-soft: #4d5347;
  --white: #ffffff;
  --rust: #a64b2a;
  --shadow: 0 2px 10px rgba(20, 30, 20, 0.12);
  --radius: 10px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--pine);
  margin: 0 0 0.6em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

a { color: var(--moss); }
a:hover, a:focus { color: var(--rust); }

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pine-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  line-height: 1.15;
}

.brand .name {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: bold;
  color: var(--tan);
  letter-spacing: 0.02em;
}

.brand .tag {
  font-size: 0.72rem;
  color: #cfd8cc;
  letter-spacing: 0.04em;
}

.nav-toggle {
  appearance: none;
  background: none;
  border: 2px solid var(--tan);
  border-radius: 8px;
  color: var(--tan);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

.site-nav { display: none; }
.site-nav.open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.75rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.4rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus { background: var(--moss); color: var(--white); }

.site-nav a[aria-current="page"] {
  background: var(--moss);
  color: var(--tan);
  font-weight: 600;
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav ul {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }
  .site-nav a { padding: 0.5rem 0.85rem; }
}

/* ---------- Logo banner ---------- */

.logo-banner {
  background: var(--cream);
  padding: 0.9rem 0;
}

.logo-banner img {
  margin-inline: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--pine) center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 25, 16, 0.55), rgba(15, 25, 16, 0.75));
}

.hero .inner {
  position: relative;
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin-bottom: 0.4em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 42rem;
  margin: 0 auto 1.6em;
  color: var(--tan-light);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  margin: 0.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--rust); color: var(--white) !important; }
.btn-primary:hover { background: #8d3f23; }

.btn-outline { border-color: var(--tan); color: var(--tan) !important; }
.btn-outline:hover { background: rgba(216, 198, 154, 0.15); }

/* ---------- Page intro band (non-home pages) ---------- */

.page-title {
  background: var(--pine);
  color: var(--white);
  padding: 1.8rem 0;
}

.page-title h1 { color: var(--tan); margin: 0; }
.page-title p { margin: 0.35rem 0 0; color: #d6ddd2; font-size: 0.95rem; }

/* ---------- Main layout ---------- */

main { padding: 2rem 0 3rem; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  border-top: 4px solid var(--moss);
}

.card h2, .card h3 { margin-top: 0; }
.card h2 a, .card h3 a { text-decoration: none; }

.section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.2rem;
  margin: 0 0 1.6rem;
}

.section > h2:first-child, .section > h3:first-child { margin-top: 0; }

.notice {
  background: var(--tan-light);
  border-left: 4px solid var(--rust);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

ul.checklist {
  padding-left: 1.2rem;
}

ul.checklist li { margin: 0.25rem 0; }

.cta-strip {
  background: var(--moss);
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  padding: 1.6rem 1.2rem;
  margin: 2rem 0 0;
}

.cta-strip h2 { color: var(--tan); margin-top: 0; }
.cta-strip a.btn-primary { margin-top: 0.4rem; }
.cta-strip p { color: var(--tan-light); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

.gallery a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery a:hover img, .gallery a:focus img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */

.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 10, 0.92);
  padding: 1rem;
}

.lb-overlay[hidden] { display: none; }

.lb-img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  color: var(--tan-light);
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.95rem;
  max-width: 90vw;
}

.lb-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }

.lb-close { top: 0.9rem; right: 0.9rem; }
.lb-prev { left: 0.6rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.6rem; top: 50%; transform: translateY(-50%); }

/* ---------- Map / video embeds ---------- */

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.2rem 0;
}

@media (min-width: 700px) { .embed { aspect-ratio: 16 / 10; } }

.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Sponsors ---------- */

.sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.sponsors img {
  max-height: 70px;
  width: auto;
  filter: grayscale(15%);
}

/* ---------- Contact form ---------- */

.form-grid { display: grid; gap: 1rem; }

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

label { font-weight: 600; display: block; margin-bottom: 0.3rem; color: var(--pine); }

input, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  border: 1.5px solid #b9bfae;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: 2px solid var(--field);
  border-color: var(--field);
}

textarea { min-height: 9rem; resize: vertical; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

button[type="submit"] {
  font: inherit;
  font-weight: 700;
  background: var(--rust);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.4rem;
  cursor: pointer;
}

button[type="submit"]:hover { background: #8d3f23; }
button[type="submit"]:disabled { background: #9aa191; cursor: wait; }

.form-status {
  display: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-weight: 600;
}

.form-status.error { display: block; background: #f8e3d3; color: #7a3014; border: 1px solid #d9a37e; }
.form-status.success { display: block; background: #ddeede; color: #1d4a26; border: 1px solid #94bf9c; }

.contact-aside p { margin: 0.3rem 0; }

/* ---------- Archive year nav ---------- */

.year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.8rem 0;
}

.year-links a {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--moss);
  color: var(--moss);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}

.year-links a:hover { background: var(--moss); color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine-dark);
  color: #c4cfc1;
  padding: 2.2rem 0 1.6rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}

.site-footer .cols {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } }

.site-footer h3 { color: var(--tan); font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer a { color: #d8e2d4; }
.site-footer a:hover { color: var(--tan); }

.site-footer .legal {
  border-top: 1px solid rgba(216, 198, 154, 0.25);
  margin-top: 1.6rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #93a18f;
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img, .btn { transition: none; }
}
