/* ═══════════════════════════════════════════════════════
   THERAPISTS DIRECTORY — /therapists/
   Builds on tokens from global.css; no new colors added.
   ═══════════════════════════════════════════════════════ */

.therapists-page { background: var(--bg); }

/* ── Hero ─────────────────────────────────────────────── */
.th-hero {
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--bg) 100%);
  padding: 72px 36px 48px;
}
.th-hero-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.th-hero-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800; letter-spacing: -1.2px;
  line-height: 1.12; color: var(--gray-900);
  margin: 16px 0 14px;
}
.th-hero-desc {
  font-size: 18px; color: var(--text-2);
  line-height: 1.7; max-width: 560px; margin: 0 auto;
}

/* ── Filter bar ───────────────────────────────────────── */
.th-filterbar {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(249, 244, 240, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}
.th-filterbar-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 18px 36px;
  display: flex; flex-direction: column; gap: 12px;
}

.th-search {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  padding: 0 18px;
  transition: box-shadow .2s, transform .2s;
}
.th-search:focus-within {
  box-shadow: var(--shadow);
}
.th-search-icon {
  width: 20px; height: 20px;
  color: var(--text-3); flex-shrink: 0;
  margin-left: 10px;
}
.th-search input {
  flex: 1; border: none; background: none;
  font-family: var(--font);
  font-size: 16px; padding: 14px 4px;
  color: var(--text); outline: none;
  min-width: 0;
}
.th-search input::placeholder { color: var(--text-3); }
.th-search-clear {
  border: none; background: var(--warm-100);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 18px; color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.th-search-clear:hover { background: var(--gray-200); color: var(--text); }

/* ── Chip rows ────────────────────────────────────────── */
.th-chiprow, .th-tagrow {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.th-tagrow {
  padding-top: 6px;
  border-top: 1px dashed var(--gray-200);
  margin-top: 4px;
}
.th-chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: var(--r-full);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.th-chip:hover {
  color: var(--text);
  border-color: var(--orange);
}
.th-chip.is-active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(74, 144, 168, 0.25);
}
.th-chip-tag.is-active {
  background: var(--orange-light);
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: none;
}

.th-adv-toggle {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  padding: 4px 8px; border-radius: var(--r-sm);
}
.th-adv-toggle:hover { color: var(--orange); }
.th-adv-caret {
  width: 14px; height: 14px;
  transition: transform .2s var(--ease);
}
.th-adv-toggle[aria-expanded="true"] .th-adv-caret { transform: rotate(180deg); }

/* ── Results header ───────────────────────────────────── */
.th-results-head {
  max-width: 1120px; margin: 0 auto;
  padding: 28px 36px 8px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.th-results-count {
  font-size: 15px; color: var(--text-2);
}
.th-results-count strong {
  color: var(--text); font-weight: 700;
}
.th-reset {
  background: none; border: none;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--orange); cursor: pointer;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.th-reset:hover { background: var(--orange-light); }

/* ── Card grid ────────────────────────────────────────── */
.th-grid {
  max-width: 1120px; margin: 0 auto;
  padding: 16px 36px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}
.th-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  gap: 14px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.th-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.th-card[hidden] { display: none; }

.th-card-head { display: flex; flex-direction: column; gap: 4px; }
.th-card-name {
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: -.3px;
}
.th-card-specialty {
  font-size: 14px; color: var(--text-2);
  line-height: 1.55;
}
.th-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.th-card-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  letter-spacing: .02em;
  background: var(--orange-light);
  color: var(--orange);
}
.th-card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
}
.th-meta-icon {
  width: 16px; height: 16px;
  color: var(--orange); flex-shrink: 0;
}
.th-card-region {
  font-size: 12px; color: var(--text-3);
  font-weight: 600; letter-spacing: .02em;
  margin-top: -6px;
  padding-right: 24px;
}
.th-card-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.th-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-full);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all .2s var(--ease);
}
.th-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.th-btn-primary {
  background: var(--orange); color: #fff;
  border: none;
}
.th-btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.th-btn-ghost {
  background: var(--orange-light);
  color: var(--orange);
  border: none;
}
.th-btn-ghost:hover {
  background: var(--orange);
  color: #fff;
}
.th-no-contact {
  font-size: 13px; color: var(--text-3);
  font-style: italic;
}
.th-reveal-btn {
  width: 100%; justify-content: center;
}
.th-contact {
  display: flex; flex-wrap: wrap; gap: 8px;
  width: 100%;
  animation: th-fade-in .25s var(--ease);
}
.th-contact[hidden] { display: none; }
@keyframes th-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .th-contact { animation: none; }
}

/* ── Empty state ──────────────────────────────────────── */
.th-empty {
  max-width: 520px; margin: 24px auto 80px;
  padding: 48px 32px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}
.th-empty h3 {
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.th-empty p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 20px;
}

/* ── Footer band (disclaimer + CTA) ───────────────────── */
.th-foot {
  background: var(--surface);
  padding: 72px 36px;
}
.th-foot-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.th-disclaimer {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
}
.th-cta-box {
  background: var(--orange-light);
  border-radius: var(--r-xl);
  padding: 32px;
}
.th-cta-box h3 {
  font-size: 22px; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -.3px;
}
.th-cta-box p {
  font-size: 15px; color: var(--text-2);
  line-height: 1.7; margin-bottom: 18px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .th-hero { padding: 56px 20px 36px; }
  .th-filterbar-inner { padding: 14px 20px; }
  .th-results-head { padding: 22px 20px 6px; }
  .th-grid { padding: 14px 20px 48px; gap: 18px; }
  .th-card { padding: 24px; }
  .th-foot { padding: 56px 20px; }
  .th-foot-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .th-filterbar { top: 0; }
  .th-search input { font-size: 16px; }
  .th-chip { padding: 7px 14px; font-size: 13px; }
  .th-card-name { font-size: 18px; }
  .th-btn { padding: 9px 16px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .th-card, .th-btn, .th-chip, .th-search { transition: none; }
  .th-card:hover, .th-btn:hover { transform: none; }
}
