/* ============ Heartland Bigfoot ============ */

:root {
  --bg: #0d1f17;
  --bg-elevated: #14271e;
  --bg-card: #1c3328;
  --bg-card-hover: #233d31;
  --accent: #c19a4a;          /* warm wood-amber */
  --accent-hover: #d4ad5c;
  --accent-glow: rgba(193, 154, 74, 0.35);
  --text: #f0e9d8;
  --text-dim: #b8b3a4;
  --text-faint: #7a7868;
  --border: rgba(193, 154, 74, 0.18);
  --border-strong: rgba(193, 154, 74, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(193, 154, 74, 0.08), transparent),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.01) 40px, rgba(255,255,255,0.01) 41px);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 { font-family: 'Cinzel', serif; font-weight: 700; line-height: 1.2; }

a { color: inherit; }

/* ============ NAV ============ */

nav {
  position: sticky;
  top: 0;
  background: rgba(13, 31, 23, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .logo span { display: none; }
}

/* ============ HERO ============ */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at top, rgba(193, 154, 74, 0.15), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, #f5d896 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.cta {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all .2s;
  border: 2px solid var(--accent);
}

.cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
}

.cta.secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.hero-stats > div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.hero-stats span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ============ SECTIONS ============ */

section { padding: 5rem 0; }

section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--text);
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ============ MAP ============ */

.map-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.map-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.map-filters button {
  background: var(--bg-card);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

.map-filters button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.map-filters button.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

#map-container {
  height: 540px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.map-credit {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 1rem;
}

.map-credit a { color: var(--accent); text-decoration: none; }
.map-credit a:hover { text-decoration: underline; }

/* Custom marker styling */
.sighting-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-pin {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  transition: transform .15s;
}

.marker-pin span {
  transform: rotate(45deg);
  font-size: 14px;
}

.sighting-marker:hover .marker-pin {
  transform: rotate(-45deg) scale(1.15);
  background: var(--accent-hover);
}

.leaflet-popup-content-wrapper {
  background: #f5efe6;
  color: #1c3328;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.leaflet-popup-content {
  margin: 1rem 1.25rem;
  font-family: 'Inter', sans-serif;
  min-width: 220px;
}

.leaflet-popup-tip { background: #f5efe6; }

.popup-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: #0d1f17;
  margin-bottom: 0.4rem;
}

.popup-meta {
  font-size: 0.8rem;
  color: #6b6b6b;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.popup-badge {
  background: var(--accent);
  color: var(--bg);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.popup-content p {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============ SIGHTINGS LIST ============ */

.sightings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.sighting-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: all .25s;
  cursor: pointer;
}

.sighting-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.sighting-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  align-items: center;
}

.badge {
  background: var(--accent);
  color: var(--bg);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sighting-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.sighting-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============ VIDEOS ============ */

.videos { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-card) 100%);
  position: relative;
}

.thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(193, 154, 74, 0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(193, 154, 74, 0.12), transparent 50%);
}

.thumb > * { position: relative; }

.thumb-1 { background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%); }
.thumb-2 { background: linear-gradient(135deg, #2e1f1a 0%, #1f150f 100%); }
.thumb-3 { background: linear-gradient(135deg, #1a2e2e 0%, #0f1f1f 100%); }
.thumb-4 { background: linear-gradient(135deg, #2e2a1a 0%, #1f1a0f 100%); }

.video-meta { padding: 1.125rem 1.25rem 1.25rem; }

.video-meta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.video-meta p {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ============ MERCH ============ */

.merch-coming-soon {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  aspect-ratio: 16/9;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.merch-coming-soon .cs-image {
  position: absolute;
  inset: 0;
  background-image: url('img/monster-bigfoot.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.05);
  transform: scale(1.0);
  transition: transform .6s;
}

.merch-coming-soon:hover .cs-image {
  transform: scale(1.04);
}

.merch-coming-soon .cs-overlay {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.merch-coming-soon .cs-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--accent);
}

.merch-coming-soon .cs-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.merch-coming-soon .cs-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

@media (max-width: 720px) {
  .merch-coming-soon {
    aspect-ratio: 4/5;
  }
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all .25s;
}

.merch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.merch-art {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.merch-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 30%, rgba(193, 154, 74, 0.3), transparent 60%);
}

.art-1 { background: linear-gradient(135deg, #2a3a2a 0%, #1a2a1a 100%); }
.art-2 { background: linear-gradient(135deg, #3a2a2a 0%, #2a1a1a 100%); }
.art-3 { background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2a 100%); }
.art-4 { background: linear-gradient(135deg, #3a3a2a 0%, #2a2a1a 100%); }

.merch-art::before {
  content: '🦶';
  font-size: 5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.merch-card .info {
  padding: 1.25rem;
  text-align: center;
}

.merch-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.merch-card .price {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.875rem;
  font-size: 1.1rem;
}

.buy-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all .2s;
}

.buy-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============ SUBMIT ============ */

.submit {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  text-align: center;
}

.submit h2 { margin-bottom: 1rem; }

.submit p {
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

.submit-note {
  margin-top: 1.25rem !important;
  font-size: 0.875rem !important;
  color: var(--text-faint) !important;
}

.submit-note strong {
  color: var(--accent);
}

/* ============ Sighting Form ============ */

.sighting-form {
  max-width: 720px;
  margin: 2rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-field label .optional {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.form-field label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-faint);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(193, 154, 74, 0.15);
  background: var(--bg-elevated);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(168, 92, 62, 0.5);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.sighting-form button[type="submit"] {
  align-self: center;
  margin-top: 0.5rem;
}

.sighting-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
  font-weight: 500;
}

.form-status.success {
  display: block;
  background: rgba(122, 155, 142, 0.15);
  border: 1px solid rgba(122, 155, 142, 0.4);
  color: #a8c9b8;
}

.form-status.error {
  display: block;
  background: rgba(168, 92, 62, 0.15);
  border: 1px solid rgba(168, 92, 62, 0.4);
  color: #d8826a;
}

/* ============ FOOTER ============ */

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}

.footer-social a:hover { color: var(--accent); }

.footer-fine {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 720px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-stats { gap: 2rem; }
  .hero-stats strong { font-size: 2rem; }
  section { padding: 3.5rem 0; }
  #map-container { height: 420px; }
}
