/* ── RunBikeHike.us — Main Stylesheet ─────────────────────────────────────── */

:root {
  --green-dark:   #1e3a1e;
  --green:        #2d6a2d;
  --green-mid:    #3a7d44;
  --green-light:  #e8f5e9;
  --green-border: #c8e6c9;
  --orange:       #d4691e;
  --orange-light: #fff3e0;
  --cream:        #f8f5f0;
  --white:        #ffffff;
  --text:         #1a1a1a;
  --text-mid:     #444;
  --text-light:   #777;
  --border:       #ddd;
  --radius:       6px;
  --shadow:       0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.14);
  --max-w:        1100px;
  --font-body:    system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif:   Georgia, 'Times New Roman', serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ── Header ── */
.site-header {
  background: var(--green-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 62px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.site-logo span { color: #7cc97e; }
.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.site-nav a.active { background: var(--green-mid); color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); text-decoration: none; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-green { background: var(--green-mid); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ── Activity Cards ── */
.activity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
@media (max-width: 700px) { .activity-cards { grid-template-columns: 1fr; } }

.activity-card {
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-mid);
  transition: box-shadow .2s, transform .2s;
}
.activity-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.activity-card .icon { font-size: 2.4rem; margin-bottom: 12px; }
.activity-card h2 { font-size: 1.3rem; margin-bottom: 8px; color: var(--green-dark); }
.activity-card p  { color: var(--text-mid); font-size: .95rem; margin-bottom: 20px; }
.activity-card a.btn { font-size: .85rem; }

/* ── Section headings ── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-border);
}
.section-head h2 { font-size: 1.5rem; color: var(--green-dark); }
.section-head a  { font-size: .85rem; font-weight: 600; color: var(--green-mid); }

/* ── Post grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card-img {
  height: 200px;
  background: var(--green-light);
  overflow: hidden;
  position: relative;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--green-light), var(--green-border));
}
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  margin-bottom: 6px;
}
.post-card h3 { font-size: 1.05rem; line-height: 1.35; margin-bottom: 8px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--green-mid); text-decoration: none; }
.post-card-excerpt { font-size: .88rem; color: var(--text-mid); flex: 1; margin-bottom: 14px; }
.post-card-meta { font-size: .78rem; color: var(--text-light); }

/* ── Single post ── */
.post-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  padding: 56px 20px 48px;
}
.post-header .post-cat {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #7cc97e;
  margin-bottom: 12px;
}
.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.post-header .post-meta { font-size: .85rem; opacity: .8; }

.post-featured-img {
  max-height: 480px;
  overflow: hidden;
}
.post-featured-img img { width: 100%; object-fit: cover; }

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px;
}
.post-content { font-size: 1.05rem; }
.post-content h2 { font-size: 1.4rem; margin: 2em 0 .6em; color: var(--green-dark); }
.post-content h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; color: var(--green-dark); }
.post-content p  { margin-bottom: 1.2em; }
.post-content ul, .post-content ol { margin: 0 0 1.2em 1.6em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 4px solid var(--green-mid);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.post-content a { color: var(--green-mid); font-weight: 600; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .9rem; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--green-light); font-weight: 700; }
.post-content img { border-radius: var(--radius); margin: 1.5em auto; }

/* ── Affiliate disclosure (inline post footer) ── */
.affiliate-note {
  background: var(--orange-light);
  border: 1px solid #ffe0b2;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .85rem;
  color: var(--text-mid);
  margin: 2em 0;
}
.affiliate-note a { color: var(--orange); font-weight: 600; }

/* ── Trail Info Box ── */
.trail-info-box {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-left: 5px solid var(--green-mid);
  border-radius: 8px;
  padding: 24px;
  margin: 2em 0;
}
.trail-info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-border);
}
.trail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.trail-info-item { display: flex; flex-direction: column; }
.trail-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.trail-value { font-size: .92rem; font-weight: 600; color: var(--text); }
.diff-easy    { display: inline-block; background: #d4edda; color: #155724; border-radius: 12px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.diff-moderate{ display: inline-block; background: #fff3cd; color: #856404; border-radius: 12px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.diff-hard    { display: inline-block; background: #f8d7da; color: #721c24; border-radius: 12px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }
.diff-expert  { display: inline-block; background: #1a1a1a; color: #fff;    border-radius: 12px; padding: 2px 10px; font-size: .82rem; font-weight: 700; }

/* ── Category page header ── */
.cat-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.cat-header .icon { font-size: 2.8rem; margin-bottom: 10px; }
.cat-header h1 { font-size: 2rem; margin-bottom: 8px; }
.cat-header p  { opacity: .85; max-width: 500px; margin: 0 auto; }

/* ── Sidebar ── */
.sidebar {}
.sidebar-widget {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-border);
}
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { color: var(--text-mid); font-size: .9rem; }
.sidebar-links a:hover { color: var(--green-mid); }

/* ── Search ── */
.search-form { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--cream);
}
.search-input:focus { outline: 2px solid var(--green-mid); border-color: transparent; }
.search-btn {
  padding: 9px 16px;
  background: var(--green-mid);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-size: .85rem;
}

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 40px 0 20px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-mid);
}
.pagination a:hover { background: var(--green-light); border-color: var(--green-border); text-decoration: none; }
.pagination .current { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }

/* ── Page content ── */
.page-header { padding: 48px 20px 40px; max-width: 760px; margin: 0 auto; }
.page-header h1 { font-family: var(--font-serif); font-size: 2rem; color: var(--green-dark); }
.page-body { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }
.page-body h1 { margin-bottom: .6em; }
.page-body h2 { font-size: 1.3rem; margin: 2em 0 .6em; color: var(--green-dark); }
.page-body h3 { font-size: 1.1rem; margin: 1.5em 0 .5em; }
.page-body p  { margin-bottom: 1.1em; }
.page-body ul, .page-body ol { margin: 0 0 1.1em 1.6em; }
.page-body li { margin-bottom: .4em; }
.page-body a  { color: var(--green-mid); font-weight: 600; }
.page-body hr { border: none; border-top: 1px solid var(--border); margin: 2em 0; }

/* ── CTA band ── */
.cta-band {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-band p  { opacity: .85; margin-bottom: 24px; }

/* ── Footer ── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.6);
  padding: 40px 20px;
  font-size: .85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.5); }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { color: rgba(255,255,255,.4); }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .82rem; color: var(--text-light); padding: 12px 0; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green-mid); }
.breadcrumb span { margin: 0 6px; }

/* ── 404 ── */
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 4rem; color: var(--green-light); margin-bottom: 16px; }
.not-found h2 { font-size: 1.5rem; margin-bottom: 12px; }

/* ── Utilities ── */
.mt-0 { margin-top: 0; }
.section-wrap { padding: 56px 0; }
.bg-white { background: var(--white); }
.text-center { text-align: center; }
