/* The Upright Clinic: black #111111, gold #F2B705, white #FFFFFF.
   Gold is a fill only on white (buttons, bands, blocks); never text or thin lines on white. */
:root {
  --black: #111111;
  --gold: #F2B705;
  --white: #FFFFFF;
  --muted: #474747;
  --line: #E3E3DF;
  --soft: #F5F5F2;
  --dark-muted: #CFCFCF;
  --f-head: "Schibsted Grotesk", "Segoe UI", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 2.4vw + 22px, 48px); }
h2 { font-size: clamp(26px, 1.4vw + 20px, 36px); }
h3 { font-size: 19px; line-height: 1.3; margin-bottom: .35em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--black); font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Logo lockup (from the brand board) ---------- */
.uw { display: inline-grid; justify-items: start; gap: .3em; }
.uw-w { font-family: "Schibsted Grotesk", Arial, sans-serif; font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.uw-w svg { width: .32em; height: .703em; vertical-align: baseline; overflow: visible; }
/* Pre-fitted values (measured from fit()); the script still re-fits after fonts load. */
.uw-d { font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: .2437em; letter-spacing: .08em; margin-right: -.08em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
.on-dark .uw-w { color: var(--white); }
.on-dark .uw-d { color: var(--gold); }

/* ---------- Buttons: one system. Primary = gold fill + black text. ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--f-body); font-weight: 600; font-size: 17px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: #FFC51A; border-color: #FFC51A; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.on-dark .btn-outline { color: var(--white); border-color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--black); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s, color .15s, border-color .15s; } }

/* ---------- Header (sticky on every screen, so Book stays reachable) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); border-bottom: 1px solid #2A2A2A; }
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: 68px; }
.logo { display: inline-flex; text-decoration: none; font-size: 27px; padding: 6px 0; margin-right: auto; }
.hdr-call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--white); font-weight: 600; text-decoration: none; }
.hdr-call:hover { text-decoration: underline; }
.hdr-call svg { width: 18px; height: 18px; }
.hdr-call .num { display: none; }
.site-header .btn { min-height: 44px; padding: 8px 16px; font-size: 16px; }
/* Site nav: in the bar from 760px; below it on phones as a strip that scrolls away, so the
   sticky bar keeps only logo + Call + Book. Gold underline marks the current page (on black only). */
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #8A8A8A; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-bar { display: none; }
.nav-strip { background: var(--black); border-bottom: 1px solid #2A2A2A; }
.nav-strip .wrap { display: flex; gap: 24px; }
@media (min-width: 760px) {
  .nav-strip { display: none; }
  .nav-bar { display: flex; gap: 22px; margin-right: 12px; }
  .nav-bar a { font-size: 16px; }
  .logo { font-size: 32px; }
  .hdr-call .lbl { display: none; }
  .hdr-call .num { display: inline; }
  .site-header .wrap { gap: 14px; min-height: 76px; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.soft { background: var(--soft); }
.band-gold { background: var(--gold); }
.band-dark { background: var(--black); color: var(--white); }
.lede { font-size: 18px; color: var(--muted); max-width: 40em; }
.photo { border-radius: var(--radius); width: 100%; object-fit: cover; }

/* Hero */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero .sub { font-size: 19px; color: var(--muted); margin-bottom: 24px; max-width: 30em; }
.hero-media { position: relative; margin-right: 12px; margin-bottom: 12px; }
.hero-media::before { content: ""; position: absolute; right: -12px; bottom: -12px; width: 62%; height: 72%; background: var(--gold); border-radius: var(--radius); }
.hero-media img { position: relative; aspect-ratio: 3 / 2; object-position: 50% 50%; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-media::before { right: -16px; bottom: -16px; }
}

/* What people come in for */
.reasons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .reasons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.reasons li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; line-height: 1.4; }
.tick { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: var(--gold); border-radius: 6px; color: var(--black); }
.tick svg { width: 18px; height: 18px; }

/* Session steps */
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; background: var(--black); color: var(--white); border-radius: 50%; font-family: var(--f-head); font-weight: 700; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); }
.steps-media img { aspect-ratio: 3 / 2; object-position: 40% 50%; }

/* Pricing */
.price-card { max-width: 620px; margin: 0 auto; padding: 28px 20px; background: var(--white); border-radius: 12px; text-align: center; }
@media (min-width: 600px) { .price-card { padding: 40px; } }
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0 18px; }
.price { padding: 18px 4px; border: 1px solid var(--line); border-radius: var(--radius); }
.price .len { display: block; font-weight: 600; font-size: clamp(13.5px, 1vw + 10px, 16px); color: var(--muted); }
.price .amt { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(27px, 4.4vw + 10px, 44px); line-height: 1.1; }
.price-card .note { color: var(--muted); }

/* Why Upright */
.why { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 600px) { .why { grid-template-columns: 1fr 1fr; } }
.why li { padding-top: 16px; border-top: 3px solid var(--black); }
.why p { margin: 0; color: var(--muted); }
.why-media img { aspect-ratio: 4 / 3; object-position: 50% 55%; }
@media (min-width: 900px) { .why-media img { aspect-ratio: 4 / 5; } }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid #CFCFCA; }
.faq details:first-of-type { border-top: 1px solid #CFCFCA; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--f-head); font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); font-family: var(--f-body); font-weight: 600; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--muted); max-width: 44em; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans a { color: var(--black); font-weight: 600; }

/* Final CTA */
.cta { text-align: center; }
.cta p { color: var(--dark-muted); font-size: 18px; }
.cta .btn-row { justify-content: center; margin-top: 8px; }

/* Footer */
.site-footer { background: var(--black); color: var(--dark-muted); border-top: 1px solid #2A2A2A; padding: 40px 0 32px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer .logo { font-size: 26px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.site-footer li { display: flex; align-items: center; min-height: 44px; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer p { margin: 0; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; } .site-footer .meta { grid-column: 1 / -1; } }

/* Plain text pages */
.doc { max-width: 760px; padding: 48px 16px 72px; }
@media (min-width: 600px) { .doc { padding: 64px 24px 96px; } }
.doc h2 { font-size: 22px; margin-top: 1.6em; }
.doc p, .doc li { color: #2B2B2B; }
.doc .meta-line { color: var(--muted); }

/* Links to the therapists page from the landing page */
.go-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 600; color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.go-link svg { width: 18px; height: 18px; flex: none; }
.team-band { padding: 32px 0; }
.team-band .wrap { display: grid; gap: 16px; align-items: center; }
.team-band h2 { font-size: clamp(22px, 1vw + 18px, 28px); margin-bottom: .3em; }
.team-band p { margin: 0; color: var(--dark-muted); }
@media (min-width: 760px) { .team-band .wrap { grid-template-columns: 1fr auto; gap: 32px; } }

/* Therapists page */
.page-head { padding: 40px 0 8px; }
@media (min-width: 900px) { .page-head { padding: 64px 0 12px; } }
.page-head .lede { margin: 0; }
.t-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 680px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .t-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.t-card { display: flex; flex-direction: column; height: 100%; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.t-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.t-photo, .t-initials { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.t-photo { object-fit: cover; object-position: 50% 30%; background: var(--soft); }
.t-initials { display: grid; place-items: center; background: var(--gold); color: var(--black); font-family: var(--f-head); font-weight: 700; font-size: 32px; }
.t-name { font-size: 21px; margin: 0; }
.t-cred { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.t-bio { font-size: 16px; line-height: 1.6; color: #2B2B2B; }
.t-bio p { margin: 0 0 .8em; }
.t-bio p:last-child { margin-bottom: 0; }
.t-more { display: none; }
/* Clamp only when the script is running (no-JS visitors see the full bio). */
.js .t-bio { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.js .t-more { display: block; }
.js .t-card.is-open .t-bio, .js .t-card.is-short .t-bio { max-height: none; -webkit-mask-image: none; mask-image: none; }
.js .t-card.is-short .t-more { display: none; }
.t-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.t-more summary::-webkit-details-marker { display: none; }
.t-more .less, .t-more[open] .more { display: none; }
.t-more[open] .less { display: inline; }
.t-foot { margin-top: auto; padding-top: 16px; }
.t-foot .btn { width: 100%; }

/* Booking-page explanation (the Jane page carries the Utah Veterans Massage name) */
.book-note { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 32em; }
.cta .book-note { margin: 16px auto 0; font-size: 15px; color: var(--dark-muted); }
.price-card .book-note { margin: 14px auto 0; }

/* Utah Veterans Massage endorsement: gold strip above the header (scrolls away; the sticky bar stays logo + Call + Book) */
.endorse { background: var(--gold); color: var(--black); font-size: 14px; line-height: 1.35; text-align: center; padding: 8px 0; }
.endorse strong { font-weight: 700; }

/* Hero facts line */
.hero .sub { margin-bottom: 10px; }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 600; color: var(--black); }
.facts li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--black); flex: none; }
.endorse .nw { white-space: nowrap; }

/* Who we are: the Utah Veterans Massage story (the strongest band on the page) */
.story .kicker { margin: 0 0 10px; color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.story h2 { color: var(--white); max-width: 18em; }
.story .intro { max-width: 40em; margin-bottom: 0; font-size: 18px; color: #E4E4E4; }
.story .intro a { color: var(--white); font-weight: 600; }
.points { list-style: none; margin: 28px 0 20px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; } }
.points li { padding: 20px; background: #1E1E1E; border-top: 4px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
.points h3 { color: var(--white); }
.points p { margin: 0; color: var(--dark-muted); }
.on-dark .go-link { color: var(--white); }

/* Footer: part of Utah Veterans Massage */
.site-footer .parent { grid-column: 1 / -1; color: var(--white); }
.site-footer .parent a { font-weight: 600; }
