/* Therapy for Men RVA — The River Map
   USGS quadrangle-sheet grammar. Each ink has one job:
   ink carries the words, woodland carries the ground you walk,
   water carries depth and quiet, contour carries the linework,
   blaze carries exactly one thing: the booking action. */

:root {
  --paper: #F2EEE1;
  --paper-deep: #E9E3D0;
  --woodland: #C9DAB8;
  --woodland-deep: #B2C99C;
  --water: #AECDDB;
  --river: #1F4A63;
  --river-deep: #16374B;
  --ink: #24302A;
  --ink-soft: #48564E;
  --contour: #A97A4E;
  --contour-line: #C29A6F;
  --blaze: #D9531E;
  --blaze-deep: #B23E0F;
  --on-river: #DCE9E4;
  --on-river-dim: #A8C2CE;

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --ui: "Saira", "Helvetica Neue", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "Sometype Mono", "Courier New", monospace;

  --measure: 66ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: var(--river); color: var(--on-river); }

:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 2px; }

html { scrollbar-color: var(--contour) var(--paper-deep); }

a { color: inherit; text-decoration-color: var(--contour); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--blaze); }

abbr[title] { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
  font-family: var(--ui); font-size: .9rem; transition: top .2s ease-out;
}
.skip-link:focus { top: 1rem; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: .95; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 10.5vw, 5.8rem); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 600; letter-spacing: .015em; }
h3 { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 600; letter-spacing: .03em; }
h4 { font-family: var(--ui); font-size: 1.02rem; font-weight: 600; letter-spacing: .01em; }

p, ul, ol { max-width: var(--measure); }

.deck {
  font-size: clamp(1.15rem, 2.6vw, 1.4rem); line-height: 1.5;
  font-style: italic; color: var(--ink-soft);
}

.mono-note {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 500;
}

.water-word { font-style: italic; color: var(--river); }

strong { font-weight: 600; }

/* ---------- blaze button: the one job of orange ---------- */

.blaze-btn {
  display: inline-block; background: var(--blaze); color: var(--ink);
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: 1.22rem; letter-spacing: .03em; line-height: 1;
  padding: .95rem 1.5rem .85rem; text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 10px rgba(36, 48, 42, .25);
  transition: background .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.blaze-btn:hover { background: #E9661F; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(36, 48, 42, .3); }
.blaze-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(36, 48, 42, .3); }
.blaze-btn-small { font-size: 1.18rem; padding: .55rem 1rem .45rem; box-shadow: none; }

.ghost-btn {
  display: inline-block; font-family: var(--display); font-weight: 600;
  text-transform: uppercase; font-size: 1.1rem; letter-spacing: .04em; line-height: 1;
  color: var(--ink); padding: .9rem 1.4rem .8rem;
  border: 2px solid var(--ink); text-decoration: none;
  transition: background .15s ease-out, color .15s ease-out;
}
.ghost-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- nav ---------- */

.topo-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.6rem;
}
.wordmark {
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.blaze-mark { width: 1.05rem; height: 1.05rem; fill: var(--blaze); stroke: var(--ink); stroke-width: 1.5; flex: none; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: 2px solid var(--ink);
  padding: .55rem .5rem; cursor: pointer;
}
.nav-toggle-bar { width: 1.35rem; height: 2px; background: var(--ink); transition: transform .2s ease-out, opacity .2s ease-out; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-menu { display: none; }
.site-menu.open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); border-bottom: 2px solid var(--ink);
  max-height: calc(100vh - 3.6rem); overflow-y: auto;
}
.menu-root { list-style: none; padding: .75rem var(--gutter) 1.25rem; }
.menu-root > li { border-bottom: 1px solid var(--paper-deep); }
.menu-root > li:last-child { border-bottom: 0; }
.menu-root a, .sub-toggle {
  display: block; width: 100%; text-align: left; text-decoration: none;
  font-family: var(--ui); font-weight: 600; font-size: 1.02rem;
  padding: .8rem 0; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-root a[aria-current="page"] { color: var(--blaze-deep); }
.sub-toggle::after { content: " +"; color: var(--contour); }
.sub-toggle[aria-expanded="true"]::after { content: " \2212"; }
.submenu { list-style: none; display: none; padding: 0 0 .6rem .9rem; border-left: 1px solid var(--contour-line); margin-left: .2rem; }
.sub-toggle[aria-expanded="true"] + .submenu { display: block; }
.submenu a { font-family: var(--serif); font-weight: 400; font-size: .98rem; padding: .42rem 0; }
.menu-cta { padding: 1rem 0 .25rem; }

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .site-menu { display: block; position: static; }
  .menu-root { display: flex; align-items: center; gap: 1.4rem; padding: 0; }
  .menu-root > li { border-bottom: 0; position: relative; }
  .menu-root a, .sub-toggle { padding: 1.05rem 0; font-size: .98rem; white-space: nowrap; }
  .submenu {
    position: absolute; top: 100%; left: -1rem; min-width: 15.5rem;
    background: var(--paper); border: 2px solid var(--ink); border-top: 0;
    padding: .5rem 1rem; margin: 0; display: none;
  }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
  .submenu a { padding: .4rem 0; }
  .menu-cta { padding: 0; }
}

/* ---------- hero ---------- */

.quad-hero {
  position: relative; overflow: hidden;
  background: var(--woodland);
  border-bottom: 2px solid var(--ink);
}
.quad-hero .contour-field {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.quad-inner {
  position: relative; max-width: 74rem; margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--gutter) clamp(2.6rem, 7vw, 5rem);
  min-height: min(88svh, 46rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.4rem;
}
.quad-margin {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.quad-margin .mono-note { color: var(--ink); }
.quad-margin .mono-note + .mono-note { text-align: right; }

.quad-title-block { max-width: 46rem; }
.quad-title-block h1 { margin-bottom: 1.1rem; }
.quad-title-block .deck { color: var(--ink); max-width: 34rem; margin-bottom: 1.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero-sub { margin-top: 1.1rem; }

/* ---------- section scaffolding ---------- */

.field { padding: var(--section) 0; }
.field-inner { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.field-woodland { background: var(--woodland); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.field-water { background: var(--water); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.field-river { background: var(--river); color: var(--on-river); }
.field-river ::selection { background: var(--paper); color: var(--ink); }
.field-river a { text-decoration-color: var(--on-river-dim); }
.field-paper-deep { background: var(--paper-deep); }

.field h2 { margin-bottom: 1.4rem; }
.field h3 { margin-top: 2.2rem; margin-bottom: .7rem; }
.field p + p, .field p + ul, .field ul + p { margin-top: 1rem; }

.contour-rule {
  border: 0; height: 7px; margin: 0;
  background:
    linear-gradient(var(--contour-line), var(--contour-line)) 0 1px / 100% 1px no-repeat,
    linear-gradient(var(--contour-line), var(--contour-line)) 0 5px / 100% 1px no-repeat;
}

/* ---------- waypoint board (services index) ---------- */

.waypoint-board { list-style: none; max-width: none; border-top: 2px solid var(--ink); margin-top: 2.2rem; }
.waypoint-row { border-bottom: 1px solid var(--ink); }
.waypoint-link {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline;
  column-gap: 1.1rem; row-gap: .15rem;
  padding: 1.05rem .35rem; text-decoration: none;
  transition: background .15s ease-out;
}
.waypoint-link:hover { background: rgba(242, 238, 225, .55); }
.waypoint-num {
  font-family: var(--mono); font-weight: 500; font-size: .84rem;
  color: var(--paper);
  background: var(--ink);
  padding: .28rem .45rem .22rem; align-self: center;
  min-width: 2.2rem; text-align: center;
}
.waypoint-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 3.4vw, 1.8rem); letter-spacing: .02em; }
.waypoint-desc { grid-column: 2; font-size: .98rem; color: var(--ink-soft); max-width: 46rem; }
@media (min-width: 48rem) {
  .waypoint-link { grid-template-columns: auto 17rem 1fr; }
  .waypoint-desc { grid-column: 3; align-self: center; }
}

/* ---------- plates (photography) ---------- */

.plate { margin: 0; }
.plate img { border: 2px solid var(--ink); width: 100%; object-fit: cover; }
.plate figcaption { margin-top: .55rem; }

.plate-pair { display: grid; gap: 1.8rem; margin-top: 2.4rem; }
@media (min-width: 48rem) { .plate-pair { grid-template-columns: 1fr 1fr; } }

.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); } }

/* ---------- field notes (testimonials) ---------- */

.field-note { border-left: 1px solid var(--contour-line); padding-left: 1.4rem; max-width: var(--measure); }
.field-note blockquote { font-size: clamp(1.1rem, 2.4vw, 1.3rem); font-style: italic; line-height: 1.55; }
.field-note cite { display: block; font-style: normal; margin-top: .8rem; }
.note-grid { display: grid; gap: 2.4rem; margin-top: 2.4rem; }
@media (min-width: 56rem) { .note-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- deep-water quote ---------- */

.deep-quote { text-align: center; }
.deep-quote blockquote {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-style: italic; line-height: 1.45;
  max-width: 46rem; margin: 0 auto;
}
.deep-quote cite { display: block; font-style: normal; margin-top: 1.3rem; color: var(--on-river-dim); }

/* ---------- provider rows ---------- */

.survey-party { display: grid; gap: 2.6rem; margin-top: 2.4rem; }
@media (min-width: 56rem) { .survey-party { grid-template-columns: repeat(3, 1fr); } }
.surveyor { text-decoration: none; display: block; }
.surveyor img { border: 2px solid var(--ink); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .2s ease-out; }
.surveyor:hover img { transform: translateY(-4px); }
.surveyor h3 { margin-top: .9rem; margin-bottom: .2rem; }
.surveyor .mono-note { display: block; }

/* ---------- session modes ---------- */

.route-legs { list-style: none; max-width: none; display: grid; gap: 0; border-top: 2px solid var(--ink); margin-top: 2.2rem; }
.route-leg { border-bottom: 1px solid var(--ink); padding: 1.6rem .2rem; display: grid; gap: .4rem; }
.route-leg h3 { margin: 0; }
.route-leg p { color: inherit; }
@media (min-width: 56rem) {
  .route-leg { grid-template-columns: 15rem 1fr; gap: 2.5rem; align-items: start; }
}

/* ---------- FAQ / survey notes ---------- */

.survey-notes { max-width: var(--measure); margin-top: 1.6rem; }
.survey-notes details { border-top: 1px solid var(--ink); }
.survey-notes details:last-child { border-bottom: 1px solid var(--ink); }
.survey-notes summary {
  font-family: var(--ui); font-weight: 600; font-size: 1.05rem;
  padding: 1rem 1.8rem 1rem .2rem; cursor: pointer; list-style: none; position: relative;
}
.survey-notes summary::-webkit-details-marker { display: none; }
.survey-notes summary::after {
  content: "+"; position: absolute; right: .3rem; top: .95rem;
  font-family: var(--mono); color: var(--contour); font-size: 1.1rem;
}
.survey-notes details[open] summary::after { content: "\2212"; }
.survey-notes details > div { padding: 0 .2rem 1.3rem; }
.survey-notes details > div p + p { margin-top: .8rem; }

/* ---------- checklist (symptoms) ---------- */

.bearing-list { list-style: none; }
.bearing-list li { padding-left: 1.6rem; position: relative; margin-top: .55rem; }
.bearing-list li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: .7em; height: .7em;
  background: var(--contour-line); border: 1.5px solid var(--ink); transform: rotate(45deg);
}
.field-river .bearing-list li::before { border-color: var(--on-river); }

/* ---------- CTA band ---------- */

.trailhead-cta { text-align: center; }
.trailhead-cta h2 { margin-bottom: 1rem; }
.trailhead-cta p { margin: 0 auto 1.8rem; }
.trailhead-cta .mono-note { display: block; margin-top: 1.1rem; }
.trailhead-cta .mono-note a { color: inherit; }

/* ---------- page hero for interior pages ---------- */

.sheet-head { border-bottom: 2px solid var(--ink); background: var(--paper); }
.sheet-head-inner {
  max-width: 74rem; margin: 0 auto; padding: clamp(2.4rem, 6vw, 4.2rem) var(--gutter);
}
.sheet-head .quad-margin { margin-bottom: 1.6rem; }
.sheet-head h1 { max-width: 15em; }
.sheet-head .deck { margin-top: 1rem; max-width: 40rem; }
.sheet-head-woodland { background: var(--woodland); }
.sheet-head-water { background: var(--water); }

/* ---------- pricing ---------- */

.fee-table { max-width: var(--measure); border-top: 2px solid var(--ink); margin-top: 2rem; }
.fee-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--ink); padding: 1.1rem .2rem; }
.fee-row .fee { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.15rem; font-weight: 500; white-space: nowrap; }

/* ---------- elevation profile ---------- */

.profile-svg { width: 100%; height: auto; margin-top: 2.2rem; }

/* ---------- newsletter ---------- */

.signal-box {
  border: 2px solid var(--ink); background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 44rem;
}
.signal-box h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .45rem; }
.signal-box .mono-note { margin-bottom: .9rem; display: block; }
.signal-box p { margin-bottom: 1.4rem; }

/* ---------- hero contour animation ----------
   Motion grammar: one orchestrated dash-trace moment. Contours draw
   themselves, then the route reveals progressively Robious -> Pony Pasture
   through a mask (dash phase stays fixed; the reveal does the tracing). */

.contour-field .draw { stroke-dasharray: 2400; stroke-dashoffset: 0; }
.contour-field .route-path { stroke-dasharray: 8 10; }
.contour-field .route-reveal { stroke-dasharray: 100; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .contour-field .draw { animation: contour-draw 2.2s cubic-bezier(.16, 1, .3, 1) both; }
  .contour-field .draw:nth-child(2) { animation-delay: .1s; }
  .contour-field .draw:nth-child(3) { animation-delay: .2s; }
  .contour-field .draw:nth-child(4) { animation-delay: .3s; }
  .contour-field .draw:nth-child(5) { animation-delay: .4s; }
  .contour-field .draw:nth-child(6) { animation-delay: .5s; }
  .contour-field .draw:nth-child(7) { animation-delay: .6s; }
  .contour-field .draw:nth-child(8) { animation-delay: .7s; }
  .contour-field .route-reveal { stroke-dashoffset: 100; animation: route-trace 2.4s .6s cubic-bezier(.16, 1, .3, 1) forwards; }
}
@keyframes contour-draw { from { stroke-dashoffset: 2400; } to { stroke-dashoffset: 0; } }
@keyframes route-trace { to { stroke-dashoffset: 0; } }

/* ---------- spacing utilities ---------- */
.gap-top { margin-top: 2.2rem; }
.gap-top-lg { margin-top: 3.5rem; }
.gap-top-sm { margin-top: 1.4rem; }
h2.gap-top-lg { margin-top: 3.5rem; }

/* hero route garnish is desktop-only; mobile text owns the field */
.route-group { display: none; }
@media (min-width: 62rem) { .route-group { display: block; } }

/* portrait crop bias toward faces */
.surveyor img, .plate img[src*="parke"], .plate img[src*="daniel"], .plate img[src*="devin"] { object-position: 50% 22%; }
.surveyor img[src*="devin"] { object-position: 62% 24%; }

/* nav CTA keeps its blaze chip despite menu link resets */
.menu-root .blaze-btn {
  background: var(--blaze); border: 2px solid var(--ink);
  padding: .5rem .9rem .4rem; display: inline-block; width: auto;
  font-family: var(--display); font-weight: 700; font-size: 1.18rem;
}
.menu-root .blaze-btn:hover { background: #E9661F; }

/* ---------- legend footer: the deep water ---------- */

.legend-footer {
  background: var(--river); color: var(--on-river);
  border-top: 2px solid var(--ink);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}
.legend-footer ::selection { background: var(--paper); color: var(--ink); }
.legend-inner { max-width: 74rem; margin: 0 auto; padding: 0 var(--gutter); }
.legend-head { margin-bottom: 3rem; }
.legend-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .02em; line-height: 1;
}
.legend-tag { margin: .8rem 0 1.6rem; max-width: 34rem; color: var(--on-river-dim); font-style: italic; }
.legend-cols { display: grid; gap: 2.2rem; padding-top: 2.4rem; border-top: 1px solid rgba(220, 233, 228, .28); }
@media (min-width: 48rem) { .legend-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .legend-cols { grid-template-columns: 1fr 1fr 1fr 1.35fr; } }
.legend-label {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--on-river-dim); font-weight: 500;
  margin-bottom: .7rem;
}
.legend-contact .legend-label { margin-top: 1.4rem; }
.legend-contact .legend-label:first-child { margin-top: 0; }
.legend-cols ul { list-style: none; }
.legend-cols li { margin-top: .35rem; }
.legend-cols a { text-decoration-color: rgba(220, 233, 228, .4); }
.legend-cols a:hover { text-decoration-color: var(--on-river); }
.legend-contact p { font-size: .98rem; }
.colophon {
  margin-top: 3rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(220, 233, 228, .28);
  color: var(--on-river-dim); font-size: .9rem;
}
.colophon p + p { margin-top: .35rem; }
