/* ── Design tokens ──────────────────────────────────────────────────── */
:root{
  --paper:      #F4F0E6;   /* warm cream/paper background */
  --paper-deep: #ECE5D5;
  --card:       #FBF9F3;
  --ink:        #2B2622;   /* deep charcoal */
  --ink-soft:   rgba(43,38,34,0.66);
  --ink-faint:  rgba(43,38,34,0.42);
  --taupe:      #8C7F71;   /* muted taupe */
  --stone:      #DDD3C0;   /* soft stone */
  --clay:       #A9765F;   /* accent — muted, not bright */
  --line:       rgba(43,38,34,0.12);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1120px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}

.section-label{
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--taupe);
  font-weight: 500;
  margin-bottom: 12px;
}

p{ max-width: 62ch; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover{ background: #423B34; }

.btn-secondary{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-secondary:hover{ background: var(--ink); color: var(--paper); }

.btn-text{
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
}
.btn-text:hover{ border-color: var(--ink); }

.btn-block{ width: 100%; }

/* ── Focus & accessibility ─────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
/* =========================================================
   TREATMENT INFORMATION MODAL
========================================================= */

.treatment-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(43, 38, 34, 0.52);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.treatment-info-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.treatment-info-modal {
  width: min(720px, 100%);
  max-height: min(820px, 90vh);

  background: var(--card, #FBF9F3);

  border: 1px solid rgba(169, 118, 95, 0.18);
  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(43, 38, 34, 0.22),
    0 8px 25px rgba(43, 38, 34, 0.10);

  overflow: hidden;

  transform: translateY(15px) scale(0.98);
  transition: transform 0.25s ease;

  display: flex;
  flex-direction: column;
}

.treatment-info-overlay.is-open
.treatment-info-modal {
  transform: translateY(0) scale(1);
}

.treatment-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 28px 32px 20px;

  border-bottom: 1px solid var(--line, rgba(43,38,34,0.12));
}

.treatment-info-header h2 {
  margin: 0;

  font-family:
    "DM Serif Display",
    Georgia,
    serif;

  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.1;

  color: var(--ink, #2B2622);
}

.treatment-info-close {
  width: 40px;
  height: 40px;

  flex: 0 0 auto;

  border: 0;
  border-radius: 50%;

  background: var(--paper-deep, #ECE5D5);

  color: var(--ink, #2B2622);

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.treatment-info-close:hover {
  background: var(--stone, #DDD3C0);
  transform: rotate(4deg);
}

.treatment-info-body {
  padding: 28px 32px 32px;

  overflow-y: auto;
}

.treatment-info-description {
  margin: 0 0 26px;

  font-size: 17px;
  line-height: 1.75;

  color: var(--ink-soft, rgba(43,38,34,0.66));

  white-space: pre-line;
}

.treatment-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-bottom: 30px;

  border: 1px solid var(--line, rgba(43,38,34,0.12));
  border-radius: 18px;

  overflow: hidden;
}

.treatment-overview-item {
  padding: 17px 14px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  background: var(--paper-lightest, #F9F5EB);

  border-right: 1px solid var(--line, rgba(43,38,34,0.12));
}

.treatment-overview-item:last-child {
  border-right: 0;
}

.treatment-overview-item strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: var(--taupe, #8C7F71);
}

.treatment-overview-item span {
  font-size: 14px;
  font-weight: 600;

  color: var(--ink, #2B2622);
}

.treatment-info-about {
  margin-bottom: 30px;
}

.treatment-info-about p {
  margin: 0 0 17px;

  font-size: 15.5px;
  line-height: 1.75;

  color: var(--ink-soft, rgba(43,38,34,0.66));
}

.treatment-info-about p:last-child {
  margin-bottom: 0;
}

.treatment-journey {
  margin-top: 28px;
  margin-bottom: 30px;
}

.treatment-journey h3,
.treatment-packages h3 {
  margin: 0 0 18px;

  font-family:
    "DM Serif Display",
    Georgia,
    serif;

  font-size: 25px;
  font-weight: 400;

  color: var(--ink, #2B2622);
}

.treatment-journey-item {
  padding: 17px 0;

  border-bottom: 1px solid var(--line, rgba(43,38,34,0.12));
}

.treatment-journey-item:first-of-type {
  border-top: 1px solid var(--line, rgba(43,38,34,0.12));
}

.treatment-journey-item strong {
  display: block;

  margin-bottom: 5px;

  font-size: 15px;

  color: var(--ink, #2B2622);
}

.treatment-journey-item p {
  margin: 0;

  font-size: 14.5px;
  line-height: 1.65;

  color: var(--ink-soft, rgba(43,38,34,0.66));
}

.treatment-packages {
  margin-bottom: 30px;
}

.treatment-packages .fh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.treatment-packages .fh-pills span {
  padding: 9px 15px;

  border-radius: 999px;

  background: var(--paper-deep, #ECE5D5);

  font-size: 13px;
  font-weight: 600;

  color: var(--ink, #2B2622);
}

.treatment-info-actions {
  padding-top: 22px;

  border-top: 1px solid var(--line, rgba(43,38,34,0.12));

  display: flex;
  justify-content: center;
}

.treatment-info-actions .btn {
  min-width: 220px;
}


/* Prevent the page behind the modal from scrolling */

body.treatment-modal-open {
  overflow: hidden;
}


/* =========================================================
   TREATMENT CARD CLICK INDICATOR
========================================================= */

.treatment-card {
  cursor: pointer;
}

.treatment-card-link {
  position: relative;
  z-index: 1;

  display: inline-block;

  margin-top: 12px;

  font-size: 13px;
  font-weight: 600;

  color: var(--clay, #A9765F);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .treatment-info-overlay {
    padding: 12px;
  }

  .treatment-info-modal {
    max-height: 94vh;
    border-radius: 22px;
  }

  .treatment-info-header {
    padding: 22px 20px 17px;
  }

  .treatment-info-header h2 {
    font-size: 30px;
  }

  .treatment-info-body {
    padding: 22px 20px 25px;
  }

  .treatment-info-description {
    font-size: 15.5px;
    line-height: 1.7;
  }

  .treatment-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatment-overview-item {
    border-right: 0;
    border-bottom: 1px solid var(--line, rgba(43,38,34,0.12));
  }

  .treatment-overview-item:nth-child(odd) {
    border-right: 1px solid var(--line, rgba(43,38,34,0.12));
  }

  .treatment-overview-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .treatment-info-actions .btn {
    width: 100%;
    min-width: 0;
  }
}
