/* Treatment pages (treatment.mjs). Same header, FAQ and footer as the homepage, plus:
   an ivory hero with the photo beside the words, the price list in one white box on sand,
   the visit in three short columns, and three related treatments.
   Flat surfaces, no italics, no badges on photos. */

main:focus { outline: none; }

/* Links inside running text */
.tp-menu-lead a, .tp-prose a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--camel-ink) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color .25s var(--ease);
}
.tp-menu-lead a:hover, .tp-prose a:hover { text-decoration-color: var(--cocoa); }

/* ---------- Hero ---------- */
.tp-hero { padding-block: clamp(36px, 4.4vw, 64px) clamp(72px, 8vw, 112px); }
.tp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}
.tp-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.tp-crumbs li { display: flex; align-items: center; gap: 10px; }
.tp-crumbs li + li::before { content: "/"; color: color-mix(in srgb, var(--mute) 55%, transparent); }
.tp-crumbs a { transition: color .2s var(--ease); }
.tp-crumbs a:hover { color: var(--cocoa); }
.tp-crumbs [aria-current] { color: var(--cocoa); font-weight: 600; }

.tp-title {
  margin-top: clamp(40px, 5vw, 72px);
  max-width: 11ch;
  font-size: calc(clamp(46px, 6vw, 90px) * var(--display-scale));
  font-weight: var(--hero-weight);
  color: var(--cocoa);
}
.tp-lead { margin-top: 28px; max-width: 48ch; text-wrap: pretty; }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.tp-actions .btn svg { width: 18px; height: 18px; }
.tp-note { margin-top: 22px; max-width: 46ch; font-size: 14.5px; line-height: 1.6; color: var(--mute); }

.tp-photo {
  justify-self: end;
  width: 100%;
  max-width: 560px;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-img);
  background: var(--sand-2);
}
.tp-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Prices: heading left, one white box of rows right ---------- */
.tp-menu { background: var(--sand); }
.tp-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(48px, 7vw, 128px);
  align-items: start;
}
.tp-menu-side { position: sticky; top: calc(var(--header-h) + 36px); }
.tp-menu-side h2 { color: var(--cocoa); }
.tp-menu-lead { margin-top: 24px; max-width: 36ch; text-wrap: pretty; }

.tp-prices {
  padding-inline: clamp(22px, 2.6vw, 40px);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: 0 1px 2px #3A322E0A;
}
.tp-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  padding-block: clamp(24px, 2.2vw, 32px);
}
.tp-price + .tp-price { border-top: 1px solid var(--line); }
.tp-price-name {
  font-size: calc(clamp(21px, 1.9vw, 27px) * var(--display-scale));
  line-height: 1.2;
  color: var(--cocoa);
}
.tp-price-with { margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--camel-ink); }
.tp-price-text { margin-top: 8px; max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--mute); text-wrap: pretty; }
.tp-price-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; white-space: nowrap; }
.tp-price-meta strong { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--cocoa); font-variant-numeric: lining-nums; }
.tp-price-meta span { font-size: 14px; line-height: 1.4; color: var(--mute); }

/* ---------- Article: one row per part ---------- */
.tp-part {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(48px, 7vw, 128px);
  align-items: start;
  padding-block: clamp(44px, 4.8vw, 72px);
  border-top: 1px solid var(--line);
}
.tp-part:first-child { padding-top: 0; border-top: 0; }
.tp-part:last-child { padding-bottom: 0; }
.tp-part-title { position: sticky; top: calc(var(--header-h) + 36px); max-width: 13ch; color: var(--cocoa); }

.tp-prose { max-width: 62ch; font-size: clamp(16px, 1.2vw, 17.5px); line-height: 1.7; color: var(--ink); }
.tp-prose p + p, .tp-prose ul + p, .tp-prose p + ul { margin-top: 1em; }
.tp-prose h3 {
  margin: 36px 0 10px;
  font-size: calc(clamp(21px, 1.8vw, 26px) * var(--display-scale));
  line-height: 1.2;
  color: var(--cocoa);
}
.tp-prose > h3:first-child { margin-top: 0; }
.tp-prose ul { display: grid; gap: 10px; }
.tp-prose li { position: relative; padding-left: 24px; }
.tp-prose li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--camel-ink); }

/* ---------- Your visit: one heading, three short columns (before, on the day, afterwards) ---------- */
.tp-visit-title { max-width: 16ch; color: var(--cocoa); }
.tp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 64px);
  margin-top: clamp(36px, 4.4vw, 64px);
}
.tp-steps { gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tp-step { padding: clamp(24px, 2.6vw, 36px); border-left: 1px solid var(--line); }
.tp-step:first-child { border-left: 0; }
.tp-ic { display: block; width: 28px; height: 28px; margin-bottom: 18px; color: var(--camel-ink); }
.tp-step-label { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--camel-ink); }
.tp-step-title {
  margin-top: 10px;
  font-size: calc(clamp(24px, 2.2vw, 32px) * var(--display-scale));
  line-height: 1.15;
  color: var(--cocoa);
}
.tp-step .tp-prose { margin-top: 14px; max-width: 40ch; font-size: 16px; line-height: 1.65; color: var(--mute); }

/* ---------- Related treatments ---------- */
/* Ivory like the booking band below it, so the gap between them is the footer's own top space */
.tp-related { padding-bottom: 0; }
.tp-related-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.tp-related-head h2 { color: var(--cocoa); }
.tp-all { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 15px; font-weight: 600; color: var(--cocoa); }
.tp-all svg, .tp-card-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tp-all:hover svg { transform: translateX(3px); }

.tp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.tp-card { position: relative; display: flex; flex-direction: column; }
.tp-card-image { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-img); background: var(--sand-2); }
.tp-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tp-card-title { margin-top: 22px; font-size: calc(clamp(24px, 2.2vw, 32px) * var(--display-scale)); line-height: 1.1; color: var(--cocoa); }
/* The title link covers the whole card, so the photo opens it too */
.tp-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-img); }
.tp-card-link:focus-visible { outline: none; }
.tp-card-link:focus-visible::after { outline: 2px solid var(--camel-ink); outline-offset: 4px; }
.tp-card-text { margin-top: 10px; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--mute); text-wrap: pretty; }
.tp-card-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--cocoa); }
.tp-card:hover .tp-card-image img { transform: scale(1.03); }
.tp-card:hover .tp-card-more svg { transform: translateX(3px); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .tp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tp-title { max-width: 14ch; }
  .tp-photo { justify-self: stretch; max-width: none; aspect-ratio: 3 / 2; }
  .tp-menu-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .tp-menu-side { position: static; }
  .tp-menu-lead { max-width: 56ch; }
  .tp-part { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .tp-part-title { position: static; max-width: 20ch; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .tp-cards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tp-card-image { aspect-ratio: 3 / 2; }
  .tp-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tp-step { border-left: 0; border-top: 1px solid var(--line); }
  .tp-step:first-child { border-top: 0; }
  .tp-related-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 600px) {
  .tp-photo { aspect-ratio: 4 / 5; }
  .tp-title { margin-top: 32px; }
}
@media (max-width: 480px) {
  .tp-price { grid-template-columns: minmax(0, 1fr); padding-block: 22px; }
  .tp-price-meta { flex-direction: row; align-items: baseline; gap: 12px; text-align: left; }
  .tp-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-card-image img, .tp-all svg, .tp-card-more svg { transition: none; }
}

/* ---------- The other pages (pages.mjs): all treatments, rewards, privacy and terms ---------- */
.tp-hero--plain { padding-bottom: clamp(40px, 5vw, 72px); }
.tp-hero--plain .tp-title { max-width: 16ch; }
.tp-hero--plain .tp-lead { max-width: 56ch; }
.tp-lead a, .tp-note a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--camel-ink) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.tp-date { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--mute); }
.tp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tp-tabs > * { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--cocoa); }
.tp-tabs [aria-current] { border-color: var(--cocoa); background: var(--cocoa); color: var(--ivory); }
.tp-tabs a { transition: border-color .2s var(--ease); }
.tp-tabs a:hover { border-color: var(--cocoa); }
/* 404: the pages a lost visitor most likely wanted, as the same pills as the legal tabs */
.tp-lost { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.tp-lost a { display: block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--cocoa); transition: border-color .2s var(--ease); }
.tp-lost a:hover { border-color: var(--cocoa); }

/* All treatments: four across, then two, then one */
.tp-all-list { padding-bottom: clamp(72px, 8vw, 112px); }
.tp-cards--all { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: clamp(44px, 5vw, 72px); }
.tp-cards--all .tp-card-title { font-size: calc(clamp(22px, 1.9vw, 28px) * var(--display-scale)); }
.tp-card-price { margin-top: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--cocoa); font-variant-numeric: lining-nums; }
.tp-cards--all .tp-card-more { margin-top: 12px; }

/* Rewards: the card artwork is a cut-out, shown whole on stone */
.tp-photo--art { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--sand); }
.tp-photo--art img { width: 88%; height: auto; object-fit: contain; }
.tp-band { background: var(--sand); }
.tp-actions--after { margin-top: clamp(36px, 4vw, 56px); }

/* Privacy and terms */
.tp-legal { padding-top: 0; }
.tp-legal .tp-part:first-child { padding-top: clamp(44px, 4.8vw, 72px); border-top: 1px solid var(--line); }
.tp-prose address { margin-block: 1em; font-style: normal; line-height: 1.6; }
.tp-prose p + address, .tp-prose address + p { margin-top: 1em; }
.tp-prose ol { display: grid; gap: 10px; padding-left: 22px; list-style: decimal; }
.tp-prose ol li { padding-left: 4px; }
.tp-prose ol li::before { content: none; }
.tp-prose ul + ul, .tp-prose p + ol, .tp-prose ol + p { margin-top: 1em; }

@media (max-width: 1100px) { .tp-cards--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .tp-photo--art { aspect-ratio: 3 / 2; } .tp-photo--art img { width: auto; height: 84%; } }
@media (max-width: 600px) { .tp-photo--art { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .tp-cards--all { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Rewards: five rewards in one strip ---------- */
.rw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 28px; }
.rw-title { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; color: var(--cocoa); }
.rw-lead { font-size: 16px; color: var(--mute); }
.rw-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--paper); border-radius: var(--r-card); overflow: hidden; }
.rw-item { display: grid; gap: 4px; align-content: start; padding: 24px 24px 26px; border-left: 1px solid var(--line); }
.rw-item:first-child { border-left: 0; }
.rw-item .tp-ic { width: 26px; height: 26px; margin-bottom: 10px; }
.rw-when { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.rw-what { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: 21px; line-height: 1.15; color: var(--cocoa); }
.rw-item.is-final { background: var(--cocoa); border-left: 0; }
.is-final .tp-ic, .is-final .rw-when { color: var(--camel); }
.is-final .rw-what { color: var(--ivory); }
.rw-foot { margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--mute); }
@media (max-width: 820px) {
  .rw-strip { grid-template-columns: minmax(0, 1fr); }
  .rw-item { grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .rw-item:first-child { border-top: 0; }
  .rw-item .tp-ic { margin: 0; }
  .rw-what { text-align: right; font-size: 19px; }
}

/* Rewards: join by QR code on a computer or tablet, by button on a phone */
.rw-join { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3vw, 40px); margin-top: 20px; padding: 20px clamp(20px, 2.6vw, 36px) 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); }
.rw-qr { display: block; width: 132px; height: 132px; border-radius: 10px; }
.rw-join-title { font-size: calc(clamp(22px, 2vw, 28px) * var(--display-scale)); line-height: 1.15; color: var(--cocoa); }
.rw-join-copy p { margin-top: 8px; max-width: 52ch; font-size: 16px; line-height: 1.6; color: var(--mute); }
.rw-mob { display: none; }
@media (max-width: 820px) {
  .rw-join { grid-template-columns: 132px minmax(0, 1fr); }
  .rw-join .btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
  .rw-join { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .rw-qr, .rw-desk { display: none; }
  .rw-mob { display: inline; }
  .rw-join .btn { grid-column: auto; }
}

