/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
  --green:       #5fa832;
  --green-dark:  #4a8a25;
  --dark:        #1a1f16;
  --dark2:       #252b1e;
  --light-bg:    #f5f5f0;
  --card-bg:     #ffffff;
  --text:        #2c2c2c;
  --muted:       #6b7280;
  --radius:      12px;
  --shadow:      0 4px 20px rgba(0,0,0,0.10);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary.btn-large { padding: 10px 26px; font-size: 0.9rem; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: transparent;
}
.btn-outline:hover { background: var(--green); color: #fff; }

.btn-delete {
  background: none;
  border: 1px solid #e0e0e0;
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-delete:hover { border-color: #c0392b; color: #c0392b; }


/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 18px 40px;
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

/* Sticky state — kicks in once user scrolls past the hero */
.navbar.scrolled {
  position: fixed;
  background: rgba(18, 24, 14, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  padding: 12px 40px;
}

/* Left group: Home, About, Journal — pushed to center from the left */
.nav-left {
  flex: 1;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

/* Center spacer — holds the gap where the hero logo sits */
.nav-center {
  width: 170px;
  flex-shrink: 0;
}

/* Right group: Shorts, Trail Log, YouTube, Contact Us, Login — pushed to center from the right */
.nav-right {
  flex: 1;
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.nav-left a, .nav-right a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-left a:hover, .nav-right a:hover { color: #fff; }

.hero-center-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  height: 264px;
  width: auto;
  z-index: 99;
  pointer-events: none;
}

/* Subtle nav link (login / logout) */
.nav-subtle-link {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.nav-subtle-link:hover { color: #fff; }

/* Navbar on form pages — always fixed + dark (no hero to transition from) */
.form-page .navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(18, 24, 14, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  padding: 12px 40px;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 88vh;
  min-height: 500px;
  background:
    url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=1920&q=90')
    center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 26, 16, 0.55) 0%,
    rgba(20, 26, 16, 0.75) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: min(450px, calc(100% - 310px));
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 24px;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.92rem, 4.2vw, 2.88rem);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 22px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Wave divider ────────────────────────────────────────────────────────── */
.wave-divider {
  background: var(--dark);   /* matches bottom of hero */
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { display: block; width: 100%; height: 80px; }

/* ── Light section ───────────────────────────────────────────────────────── */
.section-light {
  /* Nature image visible behind the cards, with a soft white veil over it */
  background:
    linear-gradient(rgba(245, 245, 240, 0.60), rgba(245, 245, 240, 0.60)),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80')
    center / cover fixed;
  padding: 64px 0 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header { text-align: center; margin-bottom: 48px; }

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
}

/* ── Cards grid ──────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 32px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

/* Video embed */
.card-media {
  position: relative;
  padding-top: 56.25%;   /* 16:9 ratio */
  background: var(--dark2);
}
.card-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.no-video {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  background: var(--dark2);
}

/* Card body */
.card-body { padding: 20px 24px 24px; }

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f0eb;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.stat-icon { font-size: 0.85rem; }

/* Difficulty badge colors */
.difficulty-easy   { background: #e8f5e2; color: #3a7d1a; }
.difficulty-moderate { background: #fff3e0; color: #e67e22; }
.difficulty-hard   { background: #fde8e8; color: #c0392b; }
.difficulty-expert { background: #f3e8ff; color: #7c3aed; }

/* Expandable description */
.card-notes-wrapper {
  position: relative;
  max-height: 76px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  border-top: 1px solid #f0f0eb;
  margin-top: 4px;
  padding-top: 12px;
  cursor: pointer;
}

/* Fade-out gradient at the bottom when collapsed */
.card-notes-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, #ffffff);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* On card hover: expand to fixed scroll box */
.card:hover .card-notes-wrapper {
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8d8c0 transparent;
}
.card:hover .card-notes-wrapper::after {
  opacity: 0;
}
/* Webkit scrollbar styling */
.card:hover .card-notes-wrapper::-webkit-scrollbar {
  width: 4px;
}
.card:hover .card-notes-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.card:hover .card-notes-wrapper::-webkit-scrollbar-thumb {
  background: #c8d8c0;
  border-radius: 4px;
}

.card-notes {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* "Hover to read more" hint */
.card-notes-hint {
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 6px;
  transition: opacity 0.3s;
}
.card:hover .card-notes-hint { opacity: 0; }

/* ── Trail Journal section (homepage preview) ───────────────────────────── */
.section-journal {
  background:
    linear-gradient(rgba(245, 245, 240, 0.60), rgba(245, 245, 240, 0.60)),
    url('https://images.unsplash.com/photo-1501854140801-50d01698950b?auto=format&fit=crop&w=1920&q=80')
    center / cover fixed;
  padding: 80px 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.journal-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  background: rgba(255, 255, 255, 0.82);
}

.journal-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
}
.journal-card-title a {
  color: inherit;
  text-decoration: none;
}
.journal-card-title a:hover { color: var(--green); }

.journal-card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* Shared blog meta + read more styles */
.blog-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--muted);
}
.blog-author {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 600;
}
.blog-read-more {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.blog-read-more:hover { text-decoration: underline; }

/* ── Blog list page ──────────────────────────────────────────────────────── */
.blog-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

.blog-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 8px 0;
  line-height: 1.35;
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--green); }

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 8px 0 14px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Individual post page ────────────────────────────────────────────────── */
.blog-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 28px;
}
.blog-back:hover { text-decoration: underline; }

.blog-post {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}

.blog-post-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin: 10px 0 24px;
}

.blog-post-body p {
  font-size: 0.95rem;
  color: #3a3a3a;
  line-height: 1.8;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .blog-post { padding: 24px 20px; }
  .blog-post-title { font-size: 1.4rem; }
  .journal-grid { grid-template-columns: 1fr; }
}

/* ── YouTube Shorts section ─────────────────────────────────────────────── */
.section-shorts {
  background:
    linear-gradient(rgba(245, 245, 240, 0.60), rgba(245, 245, 240, 0.60)),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80')
    center / cover fixed;
  padding: 80px 0;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.short-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.short-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.short-media {
  position: relative;
  aspect-ratio: 9 / 16;
}
.short-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.short-mute-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.short-mute-btn:hover {
  background: rgba(0,0,0,0.85);
}

.short-body {
  padding: 12px 16px 16px;
}
.short-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
}

.shorts-empty {
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .shorts-grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ── Parallax banners ────────────────────────────────────────────────────── */
.parallax-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-size: cover;
  background-position: center 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Semi-transparent dark overlay so cards above/below stay readable */
.parallax-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 12, 0.52);
}

.parallax-banner-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255,255,255,0.88);
}
.parallax-banner-text p {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}
.parallax-banner-text h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.banner-river {
  background-image: url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&w=1920&q=80');
}
.banner-stones {
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1920&q=80');
}
/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 10px; }
.empty-state p  { color: var(--muted); margin-bottom: 28px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}
.footer a { color: var(--green); }
.footer a:hover { text-decoration: underline; }

/* ── Form page ───────────────────────────────────────────────────────────── */
.form-page { background: var(--light-bg); }

/* Blog / post pages — hero photo background */
.blog-page {
  background:
    linear-gradient(
      to bottom,
      rgba(20, 26, 16, 0.55) 0%,
      rgba(20, 26, 16, 0.75) 100%
    ),
    url('https://images.unsplash.com/photo-1551632811-561732d1e306?auto=format&fit=crop&w=1920&q=90')
    center center / cover fixed;
  min-height: 100vh;
}
/* Transparent container — photo shows through */
.blog-page .blog-container {
  background: transparent;
  box-shadow: none;
}
/* Header text readable over the photo */
.blog-page .form-header { text-align: center; }
.blog-page .section-eyebrow { color: var(--green); text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.blog-page .form-title { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.blog-page .form-subtitle { color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.blog-page .blog-back { text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
/* Semi-transparent frosted post article (individual post pages) */
.blog-page .blog-post {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Semi-transparent frosted cards so the photo shows through */
.blog-page .blog-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.blog-page .blog-card:hover {
  background: rgba(255, 255, 255, 0.82);
}
/* Logo in blog navbar */
.blog-nav-logo {
  height: 44px;
  width: auto;
  display: block;
}

.form-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 80px;
}

.form-container {
  width: 100%;
  max-width: 640px;
}

.form-header { margin-bottom: 36px; }
.form-title { font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.form-subtitle { color: var(--muted); }

.hike-form { display: flex; flex-direction: column; gap: 20px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

input, select, textarea {
  padding: 12px 16px;
  border: 1.5px solid #dde0d8;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(95,168,50,0.15);
}
textarea { resize: vertical; }

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.flash-error {
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.35);
  color: #c0392b;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

/* ── About section ───────────────────────────────────────────────────────── */
.section-about {
  background:
    linear-gradient(rgba(245, 245, 240, 0.72), rgba(245, 245, 240, 0.72)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1920&q=80')
    center / cover fixed;
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 48px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: block;
}

/* Shown only when image fails to load */
.photo-placeholder-label { display: none; }
.about-photo-wrap.photo-missing .about-photo {
  background: var(--dark2);
  min-height: 460px;
}
.about-photo-wrap.photo-missing .photo-placeholder-label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  border-radius: 20px;
  background: var(--dark2);
  text-align: center;
  padding: 24px;
}

.about-photo-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(95,168,50,0.4);
}

.about-title {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.about-badge {
  background: #e8f5e2;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.about-badge:hover,
.about-badge--active {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

/* Frosted pill behind the hero text */
.hero-content-inner {
  background: rgba(15, 20, 12, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px 36px;
  display: inline-block;
  text-align: center;
  max-width: 460px;
  pointer-events: auto;
}

/* ── Hero improvements ───────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  background: rgba(255,255,255,0.08);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
}

.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(10, 14, 8, 0.65);
  backdrop-filter: blur(6px);
  padding: 18px 32px;
}

.hero-stat {
  text-align: center;
  padding: 0 36px;
}
.hero-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-top: 4px;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* ── Section subtitle ────────────────────────────────────────────────────── */
.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* ── Comments section ────────────────────────────────────────────────────── */
.section-comments {
  background: var(--dark);
  padding: 80px 0;
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.comment-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, transform 0.2s;
}
.comment-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-3px);
}

.comment-text {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comment-avatar {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.comment-source {
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 2px;
}

/* Cycle progress dots */
.comments-cycle-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.cycle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.cycle-dot:hover {
  background: rgba(255,255,255,0.55);
}
.cycle-dot.active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.3);
}

/* ── Adventure Map (inline in about section) ─────────────────────────────── */
.about-map-wrap {
  display: flex;
  flex-direction: column;
}

.map-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
}

#usa-map {
  width: 100%;
  flex: 1;
  display: block;
  min-height: 0;
}

#usa-map path.state {
  transition: fill 0.15s ease;
  cursor: pointer;
}

@keyframes state-strobe {
  0%, 100% { fill: #e74c3c; }
  50%       { fill: #ff8a80; }
}
#usa-map path.state.strobing {
  animation: state-strobe 0.45s ease-in-out infinite;
  transition: none;
}

.map-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-dot.visited   { background: var(--green); }
.legend-dot.unvisited { background: #d4e6d4; border: 1px solid #b8d4b8; }

.map-tooltip {
  position: absolute;
  background: rgba(26, 31, 22, 0.88);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 260px 1fr; }
  .about-map-wrap { grid-column: 1 / -1; max-width: 600px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 320px; margin: 0 auto; }
  .about-map-wrap { max-width: 500px; }
}

/* ── Hamburger button ────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile dropdown menu ────────────────────────────────────────────────── */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  background: rgba(15, 20, 12, 0.70);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 80px 32px 40px;
  gap: 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.nav-mobile-menu.open {
  transform: translateY(0);
}
.nav-mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: #fff; }
.nav-mobile-menu .nav-mobile-cta {
  margin-top: 24px;
  border-bottom: none;
  color: var(--green);
  font-size: 1rem;
}
.nav-mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.nav-mobile-close:hover { color: #fff; }

/* ── Mobile hero fixes ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Switch navbar to flex, center the logo, show hamburger on the right */
  .navbar {
    display: flex;
    justify-content: center;
    padding: 10px 20px;
    gap: 0;
  }
  .nav-left { display: none; }
  .nav-center { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; position: absolute; right: 20px; }
  .nav-mobile-menu { display: flex; }

  /* Hide floating thumbnail collage — too cluttered on small screens */
  .hero-collage { display: none; }

  /* Scale down center logo to fit mobile header */
  .hero-center-logo { height: 187px; }

  /* Move hero text box down — bottom: 450px overshoots on short viewports */
  .hero-content { bottom: 100px; }

  /* Tighten inner pill padding and constrain width */
  .hero-content-inner {
    padding: 20px 22px;
    max-width: 90vw;
  }

  /* Slightly smaller hero title on mobile */
  .hero-title { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Tighten hero subtitle */
  .hero-subtitle { font-size: 0.8rem; max-width: 280px; }
}

/* ── Mobile landscape fixes ──────────────────────────────────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
  /* Show hamburger, hide desktop nav groups */
  .nav-left { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; position: absolute; right: 20px; }
  .nav-mobile-menu { display: flex; }

  /* Compact menu in landscape — shrink padding/font so it doesn't fill the screen */
  .nav-mobile-menu {
    padding: 52px 24px 16px;
    overflow-y: auto;
    max-height: 100vh;
  }
  .nav-mobile-menu a { font-size: 1rem; padding: 11px 0; }
  .nav-mobile-close { top: 14px; }

  /* Hero is very short in landscape — shrink everything to fit */
  .hero { height: 100vh; min-height: 360px; }

  /* Much smaller logo so it doesn't eat the whole header */
  .hero-center-logo { height: 70px; }

  /* Drop content closer to the stats bar */
  .hero-content { bottom: 60px; }

  /* Tighter pill */
  .hero-content-inner { padding: 12px 20px; }

  /* Smaller title & hide subtitle to save vertical space */
  .hero-title { font-size: clamp(1.1rem, 4vw, 1.5rem); margin-bottom: 8px; }
  .hero-subtitle { display: none; }
  .hero-eyebrow { margin-bottom: 8px; font-size: 0.7rem; }

  /* Compact action buttons */
  .hero-actions { gap: 10px; }
  .btn-primary.btn-large,
  .btn-outline-white { padding: 8px 18px; font-size: 0.82rem; }

  /* Compact stats bar */
  .hero-stats { padding: 10px 16px; }
  .hero-stat { padding: 0 14px; }
  .hero-stat-num { font-size: 1.1rem; }

  /* Navbar compact — switch to flex, center logo */
  .navbar { display: flex; justify-content: center; padding: 10px 20px; gap: 0; }

  /* Hide floating thumbnail collage in landscape — too cluttered */
  .hero-collage { display: none; }
}

@media (max-width: 600px) {
  .navbar { padding: 16px 20px; }
  .container { padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .comments-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; padding: 14px 16px; }
  .hero-stat { padding: 0 16px; }
  .hero-stat-num { font-size: 1.2rem; }
  /* Further reduce logo on very small phones */
  .hero-center-logo { height: 140px; }
  /* Push content to just above stats bar */
  .hero-content { bottom: 80px; }
}

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.login-icon { font-size: 2.5rem; margin-bottom: 16px; }
.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.login-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form input[type="password"] {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: #fff;
  text-align: center;
  letter-spacing: 0.15em;
  font-size: 1rem;
}
.login-form input[type="password"]::placeholder {
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}
.login-form input[type="password"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(95,168,50,0.2);
}
.login-error {
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.35);
  color: #e07070;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
}
.login-back {
  display: block;
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.login-back:hover { color: rgba(255,255,255,0.7); }
