/* REBNJB INC - Ridgeline Expedition Theme
   Dark pine palette, mountain operations character. */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
  line-height: 1.7;
  background-color: #101813;
  color: #b4c6b4;
  overflow-x: hidden;
}

.home-page img {
  max-width: 100%;
}

a {
  color: #6f9455;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  line-height: 1.2;
}

img {
  max-width: 100%;
}

/* Layout helpers */
.site-w {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* ---------------- RIDGELINE NAV ---------------- */
.cairnnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #1e2a20;
  box-shadow: 0 2px 0 #0b110c;
}

.ridge-strip {
  height: 14px;
  background-color: #0b110c;
  overflow: hidden;
  position: relative;
}
.ridge-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  display: block;
}
.ridge-mountains svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f6faf5;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 21px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
.cairn-glyph {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: linear-gradient(180deg, transparent 0 100%);
  position: relative;
}
.cairn-glyph span {
  display: block;
}
.cairn-s1 { width: 12px; height: 5px; background-color: #6f9455; margin: 0 auto; border-radius: 1px; }
.cairn-s2 { width: 8px; height: 5px; background-color: #6f9455; margin: 0 auto; border-radius: 1px; }
.cairn-s3 { width: 4px; height: 5px; background-color: #c98f3e; margin: 0 auto; border-radius: 1px; }
.cairn-glyph .cairn-s1 { margin-top: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.nav-links li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-links a {
  color: #b4c6b4;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  padding-bottom: 4px;
  font-weight: 600;
}
.nav-links a:hover {
  color: #6f9455;
  border-bottom: 2px solid #6f9455;
}
.trail-dot {
  width: 5px;
  height: 5px;
  background-color: #c98f3e;
  border-radius: 50%;
  display: inline-block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #6f9455;
  color: #f6faf5;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------------- BASECAMP HERO ---------------- */
.basecamphero {
  background-color: #101813;
  background-image: linear-gradient(180deg, #101813 40%, #0b110c 100%);
  padding: 88px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.eyebrow {
  display: inline-block;
  background-color: #6f9455;
  color: #0b110c;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  padding: 8px 14px;
  font-weight: 700;
}
.hero-title {
  font-size: 46px;
  color: #eef3ed;
  margin: 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
}
.hero-title .accent {
  color: #6f9455;
}
.hero-sub {
  font-size: 18px;
  color: #5e6e60;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary {
  background-color: #6f9455;
  color: #0b110c;
}
.btn-primary:hover {
  background-color: #8fae73;
}
.btn-outline {
  background: transparent;
  border: 1px solid #eef3ed;
  color: #eef3ed;
}
.btn-outline:hover {
  border-color: #6f9455;
  color: #6f9455;
}

/* Hero scene - right */
.hero-scene {
  position: relative;
  min-height: 480px;
}
.scene-layer {
  position: relative;
  z-index: 1;
}
.ridgetop-scene {
  width: 100%;
  display: block;
}
.ridge-svg {
  display: block;
  width: 100%;
}

/* Tent, trail, gear, map, compass, signboard are placed via absolutely
   positioned elements with solid fills only. */
.tent-scene {
  position: absolute;
  width: 180px;
  height: 130px;
  left: 6%;
  bottom: 16%;
  z-index: 3;
}
.tent-svg { width: 100%; height: 100%; display: block; }

.mapboard {
  position: absolute;
  background-color: #1e2a20;
  border: 1px solid #26332a;
  padding: 10px;
  width: 200px;
  right: 0;
  top: 6%;
  z-index: 4;
  transform: rotate(2deg);
}
.map-card {
  background-color: #f6faf5;
  padding: 14px;
  position: relative;
  min-height: 150px;
}
.map-contour {
  position: absolute;
  border: 2px solid #6f9455;
  border-radius: 50%;
}
.contour1 { width: 90px; height: 90px; top: -10px; left: 60px; opacity: 1; border-color: #a9c793; }
.contour2 { width: 60px; height: 60px; top: 4px; left: 76px; border-color: #6f9455; }
.contour3 { width: 34px; height: 34px; top: 16px; left: 89px; border-color: #c98f3e; }
.route-line {
  position: absolute;
  border-top: 3px dashed #c98f3e;
  width: 110px;
  top: 40px;
  left: 20px;
  transform: rotate(18deg);
}
.map-peak { position: absolute; top: 8px; left: 30px; width: 3px; height: 40px; background-color: #47544a; }

.compass-dial {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #0b110c;
  border: 2px solid #c98f3e;
  right: 4px;
  bottom: 4px;
  z-index: 4;
}
.compass-dial .needle {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 2px;
  height: 20px;
  background-color: #c98f3e;
  transform-origin: bottom center;
  transform: rotate(40deg);
}
.compass-dial .compass-n { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); color: #c98f3e; font-size: 9px; font-family: Verdana; font-weight: bold; }

.gear-wall {
  position: absolute;
  right: 6%;
  bottom: 34%;
  width: 90px;
  text-align: center;
  z-index: 5;
}
.carabiner {
  display: inline-block;
  margin: 0 4px 10px;
  font-size: 26px;
  color: #6f9455;
}
.rope-coil {
  width: 54px;
  height: 54px;
  border: 5px solid #c98f3e;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(20deg);
  margin: 0 auto 8px;
}

.gear-wall svg text,
.gear-wall .label {
  display: none;
}

.signboard {
  position: absolute;
  bottom: 2%;
  left: 26%;
  background-color: #1e2a20;
  color: #f6faf5;
  border-left: 6px solid #c98f3e;
  padding: 8px 16px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  transform: rotate(-2deg);
  z-index: 6;
}

.trail-dashed {
  position: absolute;
  bottom: 30%;
  left: 12%;
  width: 160px;
  height: 2px;
  background-image: linear-gradient(90deg, #eef3ed 0 10px, transparent 10px 18px);
  background-size: 32px 2px;
  z-index: 2;
}
.post-1, .post-2 {
  position: absolute;
  z-index: 3;
}
.post-1 { left: 10%; bottom: 34%; }
.post-2 { left: 20%; bottom: 27%; }
.marker-post {
  width: 6px;
  height: 34px;
  background-color: #1e2a20;
  position: relative;
}
.marker-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: #c98f3e;
}
.tent-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background-color: #c98f3e;
  border-radius: 50%;
  z-index: 0;
}

/* ---------------- ROUTE CARD SECTIONS ---------------- */
.section-pine {
  background-color: #101813;
}
.route-section-head {
  color: #6f9455;
  font-size: 34px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-align: center;
  margin-bottom: 16px;
}
.route-section-lead {
  color: #b4c6b4;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
  font-size: 17px;
}

.route-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-card {
  background-color: #f6faf5;
  border: 1px solid #26332a;
  display: grid;
  grid-template-columns: 120px 1fr 130px;
  align-items: center;
  gap: 24px;
  padding: 26px 26px;
  border-radius: 2px;
}
.bearing-post {
  background-color: #1e2a20;
  color: #f6faf5;
  width: 74px;
  padding: 10px 8px 8px;
  text-align: center;
  border-top: 4px solid #c98f3e;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  position: relative;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.bearing-post .buroute {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.bearing-post .bu-elev {
  font-size: 11px;
  color: #b4c6b4;
}
.bearing-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #c98f3e;
}
.route-body h3 {
  color: #1c2419;
  font-size: 22px;
  margin-bottom: 8px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
.route-body p {
  color: #47544a;
  font-size: 16px;
}
.elevation-tag {
  background-color: #6f9455;
  color: #f6faf5;
  border-radius: 2px;
  padding: 8px 10px;
  text-align: center;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 22px;
  font-weight: 700;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- EXPEDITION METRIC BAND ---------------- */
.metricband {
  background-color: #0b110c;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.metric-cell {
  text-align: center;
  padding: 12px;
  border-right: 1px solid #eef3ed;
}
.metric-cell:last-child {
  border-right: none;
}
.metric-num {
  font-size: 44px;
  font-weight: 700;
  color: #c98f3e;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
.metric-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: #b4c6b4;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  margin-top: 6px;
}

/* ---------------- STATEMENT BAND ---------------- */
.statementband {
  background-color: #1e2a20;
}
.statement {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: #f6faf5;
  border-left: 4px solid #c98f3e;
  padding-left: 24px;
  font-size: 24px;
  line-height: 1.6;
  font-family: Georgia, serif;
  text-align: left;
}
.statement-attrib {
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: #6f9455;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-align: left;
  max-width: 760px;
  border-left: 4px solid #c98f3e;
  padding-left: 24px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------- CTA BAND ---------------- */
.ctaband {
  background-color: #101813;
  text-align: center;
}
.ctaband h2 {
  color: #6f9455;
  font-size: 34px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  margin-bottom: 14px;
}
.ctaband p {
  color: #b4c6b4;
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 17px;
}

/* ---------------- TRAILHEAD FOOTER ---------------- */
.trailfoot {
  background-color: #070d08;
}
.switch-strip {
  height: 16px;
  overflow: hidden;
  background-color: #0b110c;
}
.switch-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.foot-inner {
  padding: 56px 24px 48px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.foot-brand {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: #f6faf5;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.foot-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 26px;
}
.foot-links a {
  color: #b4c6b4;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}
.foot-links a:hover {
  color: #6f9455;
}
.signpost-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px auto 26px;
}
.spine {
  width: 4px;
  height: 40px;
  background-color: #26332a;
  position: relative;
}
.spine::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 2px;
  width: 56px;
  height: 2px;
  background-color: #26332a;
  transform: rotate(-6deg);
  transform-origin: right center;
}
.spine::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 52px;
  height: 2px;
  background-color: #26332a;
  transform: rotate(8deg);
  transform-origin: left center;
}
.pine-sprig {
  color: #6f9455;
  font-size: 18px;
}
.foot-legal {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: #b4c6b4;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.foot-legal a {
  color: #b4c6b4;
}

.foot-watermark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-size: 120px;
  font-family: Georgia, serif;
  color: #0b110c;
  line-height: 1;
  visibility: hidden;
  user-select: none;
}

/* ---------------- SCROLL REVEAL ---------------- */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
}
.js .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-scene {
    min-height: 360px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-cell:nth-child(2) {
    border-right: none;
  }
  .metric-cell {
    border-bottom: 1px solid #26332a;
  }
  .route-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bearing-post {
    width: 104px;
  }
  .elevation-tag {
    justify-self: start;
    align-self: auto;
  }
}

@media (max-width: 680px) {
  section {
    padding: 56px 0;
  }
  .hero-title {
    font-size: 34px;
  }
  .nav-toggle {
    display: inline-block;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid #26332a;
    margin-top: 6px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .trail-dot {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-cell {
    border-right: none;
  }
  .statement {
    font-size: 19px;
  }
  .mapboard {
    left: 8%;
    right: auto;
  }
  .hero-scene {
    min-height: 300px;
  }
}
