/* ============================================================
   BrownPeak Legacy LP — Contour Survey Theme
   Palette (survey paper / summit ink):
   CONTOUR-PAPER  #F1EDE3  body paper
   RIDGE-SLATE    #47505A  primary text
   SUMMIT-RUST    #A64F2C  accent ink
   TRAIL-PINE     #4E6B52  secondary (dashes, chips)
   VALLEY-DEEP    #2E3640  deepest map blocks
   HACHURE-GREY   #9AA0A4  thin contour lines
   LEDGE-TAN      #E2D8C4  raised plateau faces
   ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: #A64F2C;
}

/* ---------- scroll reveal (class based only) ---------- */
html.js .reveal-pre {
  opacity: 0;
  transform: translateY(14px);
}

html.js .reveal-pre.is-shown {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION — TRAILHEAD MARKERS
   ============================================================ */
.trailnav {
  width: 100%;
  background-color: #2E3640;
  border-bottom: 4px solid #A64F2C;
}

.trailnav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.trailnav-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  padding: 16px 0 10px;
}

.trailnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F1EDE3;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: Georgia, serif;
}

.trailnav-tri {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 19px solid #A64F2C;
  display: inline-block;
}

.trailnav-sub {
  color: #E2D8C4;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
}

.trailnav-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.trailnav-tab {
  position: relative;
  display: inline-block;
  background-color: #E2D8C4;
  color: #2E3640;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px 16px;
  border-top: 3px solid #9AA0A4;
  border-left: 1px solid #9AA0A4;
  border-right: 1px solid #9AA0A4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.trailnav-tab:hover {
  background-color: #A64F2C;
  color: #F1EDE3;
}

.trailnav-tab .tn-elev {
  position: absolute;
  left: 14px;
  bottom: 2px;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: #4E6B52;
}

.trailnav-tab:hover .tn-elev {
  color: #F1EDE3;
}

.trailnav-tab.tn-rise-1 { margin-bottom: 10px; }
.trailnav-tab.tn-rise-2 { margin-bottom: 4px; }
.trailnav-tab.tn-rise-3 { margin-bottom: 0; }
.trailnav-tab.tn-rise-4 { margin-bottom: 7px; }
.trailnav-tab.tn-rise-5 { margin-bottom: 12px; }

.trailnav-toggle {
  display: none;
  background-color: #A64F2C;
  color: #F1EDE3;
  border: none;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 8px 14px;
  cursor: pointer;
}

/* ============================================================
   HERO — CONTOUR MASSIF
   ============================================================ */
.massif {
  background-color: #F1EDE3;
  border-bottom: 1px solid #9AA0A4;
}

.massif-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 62px 24px 70px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.massif-copy {
  flex: 1 1 52%;
}

.massif-kicker {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #4E6B52;
  margin: 0 0 14px;
}

.massif-head {
  font-size: 2.6rem;
  line-height: 1.18;
  color: #47505A;
  margin: 0 0 22px;
  font-weight: 700;
}

.massif-head .peaksummit {
  color: #A64F2C;
}

.massif-body {
  font-size: 1.05rem;
  color: #47505A;
  margin: 0 0 26px;
  max-width: 620px;
}

.massif-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stationmark {
  display: inline-block;
  background-color: #A64F2C;
  color: #F1EDE3;
  text-decoration: none;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 24px;
  border: 2px solid #A64F2C;
}

.stationmark-ghost {
  background-color: #F1EDE3;
  color: #A64F2C;
  border: 2px solid #A64F2C;
}

.stationmark small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: #E2D8C4;
}

.stationmark-ghost small {
  color: #4E6B52;
}

/* --- CSS map sheet with nested contour rings --- */
.massif-map {
  flex: 1 1 40%;
  min-width: 300px;
}

.mapsheet {
  position: relative;
  background-color: #E2D8C4;
  border: 2px solid #47505A;
  padding: 26px;
  height: 440px;
  box-shadow: 10px 10px 0 #9AA0A4;
}

.contourring {
  position: absolute;
  border: 2px solid #9AA0A4;
  border-radius: 46% 54% 52% 48% / 52% 48% 54% 46%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cr-1 { width: 92%; height: 88%; }
.cr-2 { width: 78%; height: 74%; border-color: #9AA0A4; }
.cr-3 { width: 64%; height: 60%; }
.cr-4 { width: 50%; height: 46%; }
.cr-5 { width: 36%; height: 32%; }
.cr-6 {
  width: 22%;
  height: 19%;
  background-color: #A64F2C;
  border-color: #A64F2C;
}

.summitspark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid #F1EDE3;
}

.ridgetrail {
  position: absolute;
  border-top: 4px dashed #4E6B52;
  transform-origin: left center;
}

.rt-1 {
  width: 62%;
  top: 34%;
  left: 18%;
  transform: rotate(24deg);
}

.rt-2 {
  width: 54%;
  top: 58%;
  left: 26%;
  transform: rotate(-18deg);
}

.rt-3 {
  width: 42%;
  top: 46%;
  left: 38%;
  transform: rotate(40deg);
}

.map-elev {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  color: #47505A;
  background-color: #F1EDE3;
  padding: 1px 5px;
  border: 1px solid #9AA0A4;
}

.me-1 { top: 14%; left: 12%; }
.me-2 { top: 70%; left: 8%; }
.me-3 { top: 24%; right: 8%; }
.me-4 { bottom: 12%; right: 18%; }

.cartouche {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background-color: #2E3640;
  color: #F1EDE3;
  border: 1px solid #9AA0A4;
  padding: 10px 14px;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 1px;
  line-height: 1.5;
  max-width: 190px;
}

.cartouche strong {
  color: #E2D8C4;
  display: block;
  letter-spacing: 2px;
}

/* ============================================================
   HIGH CAMP ROWS — CONTOUR SHELVES
   ============================================================ */
.camprows {
  background-color: #F1EDE3;
  padding: 8px 0 0;
}

.camprows-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 34px;
}

.camprows-intro h2 {
  font-size: 2rem;
  color: #2E3640;
  margin: 0 0 12px;
}

.camprows-intro p {
  max-width: 760px;
  margin: 0 0 10px;
  color: #47505A;
}

.contourshelf {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-top: 3px solid #9AA0A4;
  border-bottom: 3px solid #9AA0A4;
}

.shelf-a { background-color: #E2D8C4; }
.shelf-b { background-color: #D8CCB4; }

.shelf-invert {
  background-color: #2E3640;
  border-top: 3px solid #A64F2C;
  border-bottom: 3px solid #A64F2C;
}

.skew-l { transform: skewY(-1deg); }
.skew-r { transform: skewY(1deg); }

.shelf-elev {
  flex: 0 0 210px;
  background-color: #2E3640;
  color: #F1EDE3;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.shelf-invert .shelf-elev {
  background-color: #A64F2C;
}

.campnum {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #F1EDE3;
}

.campmark {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #A64F2C;
}

.shelf-invert .campmark {
  border-bottom-color: #F1EDE3;
}

.camphalt {
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #9AA0A4;
}

.shelf-panel {
  flex: 1 1 380px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.shelf-invert .shelf-panel {
  color: #E2D8C4;
}

.shelf-panel h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #2E3640;
}

.shelf-invert .shelf-panel h3 {
  color: #F1EDE3;
}

.shelf-panel p {
  margin: 0;
  max-width: 780px;
}

.shelf-invert .shelf-panel p {
  color: #E2D8C4;
}

.shelf-panel a.shelflink {
  color: #A64F2C;
  text-decoration: underline;
  font-weight: 700;
}

.shelf-invert .shelf-panel a.shelflink {
  color: #E2D8C4;
}

.bearingline {
  position: relative;
  height: 6px;
  background-color: #9AA0A4;
  margin-top: 4px;
}

.bearingfill {
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  background-color: #A64F2C;
}

.bear-1 { width: 12%; }
.bear-2 { width: 28%; }
.bear-3 { width: 45%; }
.bear-4 { width: 62%; }
.bear-5 { width: 82%; }
.bear-6 { width: 100%; }

.bearinggrade {
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  letter-spacing: 2px;
  color: #4E6B52;
}

.shelf-invert .bearinggrade {
  color: #E2D8C4;
}

/* ============================================================
   SUMMIT WINDOW ACCENT STRIP
   ============================================================ */
.summitwindow {
  background-color: #A64F2C;
  color: #F1EDE3;
  border-top: 8px solid #2E3640;
  border-bottom: 8px solid #2E3640;
}

.summitwindow-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 24px;
  text-align: center;
}

.summitwindow-line {
  height: 2px;
  background-color: #F1EDE3;
  max-width: 880px;
  margin: 0 auto;
}

.summitwindow-tri {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 21px solid #F1EDE3;
  display: inline-block;
  margin: 18px 0;
}

.summitwindow h2 {
  font-size: 1.9rem;
  margin: 0 0 14px;
  color: #F1EDE3;
}

.summitwindow p {
  max-width: 820px;
  margin: 0 auto 20px;
  color: #F1EDE3;
  font-size: 1.05rem;
}

.summitwindow .windowcta {
  display: inline-block;
  background-color: #F1EDE3;
  color: #A64F2C;
  text-decoration: none;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 13px 26px;
  border: 2px solid #F1EDE3;
}

/* ============================================================
   NARRATIVE / LEDGER BLOCKS (homepage prose)
   ============================================================ */
.ledgerblock {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px;
}

.ledgerblock h2 {
  font-size: 1.9rem;
  color: #2E3640;
  margin: 0 0 16px;
}

.ledgerblock p {
  margin: 0 0 14px;
  max-width: 900px;
}

.ledgerblock a.inlinelink {
  color: #A64F2C;
  font-weight: 700;
}

.ledgercols {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 26px;
}

.ledgercard {
  flex: 1 1 300px;
  background-color: #E2D8C4;
  border-left: 6px solid #A64F2C;
  padding: 22px 24px;
}

.ledgercard h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #2E3640;
}

.ledgercard p {
  margin: 0;
  font-size: 0.96rem;
}

.ledgercard a.inlinelink {
  color: #A64F2C;
  font-weight: 700;
}

/* counters strip (not a metric band — thin station tally) */
.stationtally {
  background-color: #2E3640;
  border-top: 3px solid #4E6B52;
  border-bottom: 3px solid #4E6B52;
}

.stationtally-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
}

.tallyitem {
  flex: 1 1 160px;
  border-left: 2px dashed #4E6B52;
  padding-left: 16px;
}

.tallyitem span.tallynum {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 1.9rem;
  color: #A64F2C;
  letter-spacing: 2px;
}

.tallyitem span.tallylabel {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E2D8C4;
}

/* ============================================================
   BASECAMP LEDGE FOOTER
   ============================================================ */
.baseledge {
  background-color: #2E3640;
  color: #E2D8C4;
  border-top: 6px solid #9AA0A4;
  margin-top: 0;
}

.baseledge-contourrail {
  height: 12px;
  background-color: #2E3640;
  border-bottom: 2px solid #9AA0A4;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 8%;
}

.cairnstack {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #9AA0A4;
}

.baseledge-groups {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.basegroup {
  flex: 1 1 220px;
  background-color: #3A434E;
  border-top: 3px solid #4E6B52;
  padding: 18px 20px;
}

.basegroup h4 {
  margin: 0 0 12px;
  color: #F1EDE3;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "Courier New", monospace;
}

.basegroup a {
  display: block;
  color: #E2D8C4;
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 7px;
}

.basegroup a:hover {
  color: #A64F2C;
}

.baseplate {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  border-top: 1px solid #9AA0A4;
}

.plate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: #F1EDE3;
}

.plate-brand .trailnav-tri {
  border-bottom-color: #A64F2C;
}

.plate-blurb {
  flex: 1 1 320px;
  font-size: 0.9rem;
  color: #E2D8C4;
  margin: 0;
}

.baseledge-foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  border-top: 1px solid #9AA0A4;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: #E2D8C4;
}

.baseledge-foot a {
  color: #E2D8C4;
  text-decoration: none;
}

.baseledge-foot a:hover {
  color: #A64F2C;
}

.benchmark {
  border: 2px solid #A64F2C;
  color: #A64F2C;
  padding: 3px 9px;
  font-size: 0.72rem;
  letter-spacing: 2px;
}

/* ============================================================
   SHARED PAGE BANNERS (services / contact)
   ============================================================ */
.pagebanner {
  background-color: #2E3640;
  border-bottom: 5px solid #A64F2C;
}

.pagebanner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px;
}

.pagebanner h1 {
  color: #F1EDE3;
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.pagebanner p {
  color: #E2D8C4;
  max-width: 780px;
  margin: 0;
}

/* services detail panels */
.servicerow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px;
  border-bottom: 1px solid #9AA0A4;
}

.servicerow h2 {
  color: #2E3640;
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.servicerow h2 span.servnum {
  font-family: "Courier New", monospace;
  color: #A64F2C;
  margin-right: 12px;
  font-size: 1rem;
}

.servicerow p {
  max-width: 900px;
  margin: 0 0 12px;
}

.processband {
  background-color: #E2D8C4;
  border-top: 4px solid #4E6B52;
  border-bottom: 4px solid #4E6B52;
}

.processband-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
}

.processband h2 {
  color: #2E3640;
  margin: 0 0 16px;
}

.processstep {
  border-left: 4px dashed #4E6B52;
  padding: 6px 0 6px 18px;
  margin-bottom: 16px;
}

.processstep h3 {
  margin: 0 0 4px;
  color: #2E3640;
}

.processstep p {
  margin: 0;
  max-width: 860px;
}

/* contact page */
.contactgrid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.contactcard {
  flex: 1 1 340px;
  background-color: #E2D8C4;
  border-top: 6px solid #A64F2C;
  padding: 26px 26px 30px;
}

.contactcard h2 {
  margin: 0 0 14px;
  color: #2E3640;
  font-size: 1.4rem;
}

.contactform .field {
  margin-bottom: 16px;
}

.contactform label {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4E6B52;
  margin-bottom: 6px;
}

.contactform input,
.contactform textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #9AA0A4;
  background-color: #F1EDE3;
  color: #2E3640;
  font-family: Georgia, serif;
  font-size: 0.98rem;
}

.contactform textarea {
  min-height: 130px;
  resize: vertical;
}

.contactform button {
  background-color: #A64F2C;
  color: #F1EDE3;
  border: 2px solid #A64F2C;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.84rem;
  padding: 13px 26px;
  cursor: pointer;
}

.formnote {
  font-size: 0.84rem;
  color: #4E6B52;
  margin-top: 12px;
}

.contactfacts p {
  margin: 0 0 10px;
}

.contactfacts strong {
  color: #2E3640;
}

.hourslist {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.hourslist li {
  border-bottom: 1px dashed #9AA0A4;
  padding: 7px 0;
  font-size: 0.95rem;
}

.faqblock {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 50px;
}

.faqblock h2 {
  color: #2E3640;
}

.faqitem {
  border-left: 6px solid #A64F2C;
  background-color: #E2D8C4;
  padding: 16px 22px;
  margin-bottom: 14px;
}

.faqitem h3 {
  margin: 0 0 6px;
  color: #2E3640;
  font-size: 1.05rem;
}

.faqitem p {
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .trailnav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .trailnav-tabs {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-bottom: 10px;
  }

  .trailnav-tabs.is-open {
    display: flex;
    flex-wrap: wrap;
  }

  .trailnav-tab {
    flex: 1 1 44%;
    margin-bottom: 6px;
  }

  .massif-head {
    font-size: 1.9rem;
  }

  .mapsheet {
    height: 340px;
  }

  .shelf-elev {
    flex: 1 1 100%;
  }
}

@media (max-width: 520px) {
  .massif-head {
    font-size: 1.55rem;
  }

  .trailnav-tab {
    flex: 1 1 100%;
  }
}
