/* ─────────────────────────────────────────────────────────────────
   Black Diamond Spa — Home v4
   Fonts: DM Serif Display (headings) + Jost (body)
   Inspired by Okura Spa & Bliss Spa aesthetic
───────────────────────────────────────────────────────────────── */

/* ── CSS overrides for new fonts ─────────────────── */
:root {
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script:  'Pinyon Script', 'Segoe Script', cursive;
}

/* ── Section shell ───────────────────────────────── */
.sec { padding-block: clamp(5rem, 11vw, 7.5rem); }
.sec--dark { background: var(--bg-primary); }
.sec--alt  { background: var(--bg-tertiary); }
.sec--how  { background: var(--bg-secondary); }

.sec__hd {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.sec__hd--center { text-align: center; }
.sec__hd--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 768px) {
  .sec__hd--split {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.sec__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1rem;
}

.sec__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.18;
  margin-bottom: 1.5rem;
}

.sec__title--large {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.12;
  margin-bottom: 0;
}

.sec__sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 58ch;
  line-height: 1.8;
  margin: 0;
}
.sec__hd--center .sec__sub { margin-inline: auto; }

.sec__more {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ── Entrance keyframes ──────────────────────────── */
@keyframes heroImgReveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroLineIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Hero ────────────────────────────────────────── */
.hero2 {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
}

.hero2__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  animation: heroImgReveal 2.2s cubic-bezier(.4,0,.2,1) both;
}
.hero2__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero2__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 12, 0.72) 0%,
      rgba(14, 14, 16, 0.5) 45%,
      rgba(8, 8, 10, 0.82) 100%
    );
}

.hero2__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  min-height: calc(100svh - var(--nav-height));
  min-height: calc(100dvh - var(--nav-height));
  padding: calc(var(--nav-height) + 1rem) var(--container-pad) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.hero2__title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: .01em;
  color: var(--text-primary);
  max-width: 20ch;
  margin-bottom: 1rem;
  animation: heroFadeUp 1.1s ease .75s both;
}
.hero2__title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.22em;
  line-height: 0.95;
  color: var(--tiffany-light);
  letter-spacing: 0.02em;
  display: inline-block;
  padding-inline: 0.08em;
  vertical-align: baseline;
}

.hero2__sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.75vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: min(42ch, 100%);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  animation: heroFadeUp 1.1s ease 1s both;
}

.hero2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 1.1s ease 1.25s both;
  max-width: 100%;
  min-width: 0;
}

.hero2__actions .btn--lg {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  min-height: 48px;
}

.hero2__actions .btn--ghost.btn--lg {
  font-size: 1rem;
}

@media (max-width: 767px) {
  .hero2 {
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero2__inner {
    min-height: calc(100svh - var(--nav-height));
    min-height: calc(100dvh - var(--nav-height));
    padding: calc(var(--nav-height) + env(safe-area-inset-top) + 0.5rem)
      1rem
      1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
    min-width: 0;
  }

  .hero2__title {
    font-size: clamp(2rem, 9.5vw, 2.85rem);
    max-width: 100%;
    width: 100%;
    line-height: 1.08;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.75rem;
    padding-inline: 0;
  }

  .hero2__title em {
    font-size: 1.15em;
    line-height: 0.92;
  }

  .hero2__sub {
    font-size: 0.9rem;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    padding-inline: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .hero2__actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    padding-inline: 0;
  }

  .hero2__actions .btn,
  .hero2__actions .btn--lg {
    width: auto;
    max-width: min(100%, 16rem);
    align-self: center;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 0.6rem 1.1rem;
    min-height: 42px;
  }

  .hero2__actions .btn--primary {
    box-shadow: 0 2px 10px rgba(10, 186, 181, 0.22);
  }

  .hero2__actions .btn--ghost.btn--lg {
    font-size: 0.78rem;
    padding-inline: 0.5rem;
    min-height: auto;
  }

  .hero2__bg img {
    object-position: center center;
  }

  body.has-mob-bar .hero2 {
    min-height: calc(100dvh - 54px - env(safe-area-inset-bottom));
  }

  body.has-mob-bar .hero2__inner {
    min-height: calc(100dvh - var(--nav-height) - 54px - env(safe-area-inset-bottom));
    padding-bottom: 0.5rem;
  }

  .sec__title--large br {
    display: none;
  }

  .sec--how .container,
  .proc-layout,
  .proc-intro,
  .proc-acc {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .proc-intro .sec__title--large {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .proc-acc__trigger {
    padding: 1.15rem 1rem;
    font-size: 1.15rem;
    gap: 0.75rem;
    touch-action: manipulation;
  }

  .proc-acc__panel.is-open {
    max-height: 320px;
  }

  .faq__question {
    touch-action: manipulation;
  }
}

/* ── Service cards (compact thumbs) ──────────────── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}

.svc-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: stretch;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.svc-card:hover {
  border-color: rgba(10,186,181,.28);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.svc-card__img {
  width: 124px;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  flex-shrink: 0;
}
.svc-card__img img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.svc-card:hover .svc-card__img img { transform: scale(1.05); }

.svc-card__body {
  padding: 1.35rem 1.5rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  min-width: 0;
}

.svc-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
}

.svc-card__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  flex: 1;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.svc-card__tags .tag {
  font-size: .8rem;
}

.svc-card__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-card .btn--ghost { font-size: .875rem; margin-top: .35rem; }

@media (max-width: 479px) {
  .svc-card { grid-template-columns: 100px 1fr; }
  .svc-card__img { width: 100px; }
  .svc-card__img img { min-height: 100px; }
  .svc-card__body { padding: 1rem 1rem 1rem .875rem; }
  .svc-card__name { font-size: 1.25rem; }
}

/* ── Therapist list (avatar + modal) ─────────────── */
.th-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .625rem;
}

@media (min-width: 640px) {
  .th-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}
@media (min-width: 1024px) {
  .th-grid { grid-template-columns: repeat(3, 1fr); }
}

.th-card {
  background: var(--bg-secondary);
  border: 1px solid var(--divider);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  text-align: left;
  padding: 1.125rem 1.25rem;
  transition: border-color .3s ease, background .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.th-card:hover {
  border-color: rgba(10,186,181,.35);
  background: rgba(10,186,181,.04);
}

.th-card__img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
  flex-shrink: 0;
  border: 1px solid var(--divider);
}
.th-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.th-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.th-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}
.th-card__spec {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tiffany);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-card__hint {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  border: 1px solid var(--divider);
  border-radius: 50%;
  transition: color .25s, border-color .25s;
}
.th-card:hover .th-card__hint {
  color: var(--tiffany);
  border-color: rgba(10,186,181,.4);
}

/* ── Process accordion ───────────────────────────── */
.proc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .proc-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
}

.proc-intro .sec__label { margin-bottom: 1rem; }

.proc-acc {
  border: 1px solid var(--divider);
  border-radius: 16px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.proc-acc__item + .proc-acc__item {
  border-top: 1px solid var(--divider);
}

.proc-acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
  min-height: 52px;
  transition: color .25s ease, background .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.proc-acc__trigger:hover,
.proc-acc__trigger[aria-expanded="true"] {
  color: var(--tiffany-light);
  background: rgba(255, 255, 255, 0.02);
}

.proc-acc__title { flex: 1; min-width: 0; }

.proc-acc__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  transition: color .25s ease;
}

.proc-acc__trigger[aria-expanded="true"] .proc-acc__mark {
  color: var(--tiffany);
}

.proc-acc__mark::before { content: '+'; }
.proc-acc__trigger[aria-expanded="true"] .proc-acc__mark::before { content: '−'; }

.proc-acc__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

.proc-acc__panel.is-open { max-height: 240px; }

.proc-acc__text {
  padding: 0 1.5rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: none;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 760px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--divider); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color .25s;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.faq__question:hover,
.faq__question[aria-expanded="true"] { color: var(--tiffany-light); }

.faq__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  transition: color .25s ease;
}

.faq__question[aria-expanded="true"] .faq__mark { color: var(--tiffany); }

.faq__mark::before { content: '+'; }
.faq__question[aria-expanded="true"] .faq__mark::before { content: '−'; }

.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq__answer.is-open { max-height: 600px; }
.faq__answer-inner {
  padding-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: none;
}

/* ── CTA section ─────────────────────────────────── */
.cta-sec {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 9rem);
  background: var(--bg-deep);
}
.cta-sec__bg {
  position: absolute;
  inset: 0;
}
.cta-sec__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cta-sec__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(14,17,21,.92) 0%,
    rgba(14,17,21,.8) 100%
  );
  border-top: 1px solid rgba(10,186,181,.25);
}
.cta-sec__inner {
  position: relative;
  z-index: 1;
}
.cta-sec__title {
  font-size: clamp(2.35rem, 6vw, 4rem);
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.cta-sec__sub {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 3rem;
  font-size: 1.125rem;
  font-weight: 400;
}
.cta-sec__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.sec__more .btn--lg {
  font-size: 1rem;
  min-height: 56px;
  padding: 1.1rem 2.5rem;
}

/* ── Therapist modal ─────────────────────────────── */
.th-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-top: calc(1.25rem + env(safe-area-inset-top));
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}
.th-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.th-modal__bd {
  position: absolute;
  inset: 0;
  background: rgba(14,17,21,.78);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.th-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
  max-height: calc(100dvh - 2.5rem);
  max-height: calc(100svh - 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-secondary);
  border: 1px solid rgba(10,186,181,.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,.65);
  transform: translateY(36px) scale(.97);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .4s ease;
  -webkit-overflow-scrolling: touch;
}
.th-modal.is-open .th-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (min-width: 680px) {
  .th-modal__panel { grid-template-columns: 44% 56%; }
}

.th-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,23,27,.9);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.th-modal__close:hover { border-color: rgba(10,186,181,.5); color: var(--tiffany); }

.th-modal__photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 3/4;
}
@media (min-width: 680px) {
  .th-modal__photo-wrap { aspect-ratio: auto; }
}
.th-modal__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.th-modal__info {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.th-modal__name {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

.th-modal__tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.th-modal__bio {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: none;
}

.th-modal__svcs-title {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
}

.th-modal__svcs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin-top: -.25rem;
}

/* ── Tags (override) ─────────────────────────────── */
.tag {
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Scroll reveal ───────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Mobile modal fullscreen ─────────────────────── */
@media (max-width: 599px) {
  .th-modal { padding: 0; align-items: stretch; }
  .th-modal__panel {
    max-width: none;
    max-height: 100dvh;
    max-height: 100svh;
    border-radius: 0;
    border: none;
  }
  .th-modal__close {
    top: calc(1rem + env(safe-area-inset-top));
    right: calc(1rem + env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-modal, .th-modal__panel, [data-reveal] { transition: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
