/* Better Headspace ver2 — team / therapist components.
   Shared across all three flavors. Uses the palette tokens from style.css. */

/* ---------- Section intro (reused by team + directory) ---------- */
.team-section { padding: 4.5rem 0; }
.team-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.team-intro .panel-title { margin-bottom: 0.5rem; }
.team-intro p {
  font-size: 1.08rem;
  color: var(--slate-soft);
}

/* ---------- Therapist card grid ---------- */
/* Flex (not auto-fit grid) so cards keep a fixed width regardless of how many
   are shown — filtering the directory must not resize the surviving cards. */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  max-width: var(--maxw-rect);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.therapist-card {
  flex: 0 1 340px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.therapist-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-rect);
}

.therapist-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  background: #ECE6D8;
  display: block;
}

.therapist-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.therapist-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--slate-green);
  margin: 0;
}
.therapist-role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-darker);
  margin: 0.35rem 0 0;
}
.therapist-founder-tag {
  display: inline-block;
  margin: 0.6rem 0 0;
  padding: 0.2rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-green);
  background: var(--honey);
  border-radius: 999px;
  align-self: flex-start;
}

.therapist-tags {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.therapist-tags li {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--sage-darker);
  background: rgba(122, 142, 110, 0.12);
  border: 1px solid rgba(122, 142, 110, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.therapist-blurb {
  margin: 1rem 0 0;
  font-size: 0.96rem;
  color: var(--slate-soft);
  line-height: 1.6;
}

.therapist-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Placeholder (Ann) treatment — reads as deliberate, not broken */
.therapist-card.is-placeholder .therapist-photo { opacity: 0.95; }
.therapist-card.is-placeholder .therapist-name { color: var(--slate-soft); }
.coming-soon-note {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sage-darker);
}

/* ---------- Inline expandable bio (Flavor A) ---------- */
.therapist-card details { margin-top: 1rem; }
.therapist-card details > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-darker);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.therapist-card details > summary::-webkit-details-marker { display: none; }
.therapist-card details > summary::after {
  content: "▾";
  transition: transform .2s ease;
}
.therapist-card details[open] > summary::after { transform: rotate(180deg); }
.therapist-card details .bio-full {
  margin-top: 0.85rem;
}
.therapist-card details .bio-full p {
  font-size: 0.94rem;
  color: var(--slate-soft);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

/* ---------- Full profile page (Flavor B & C) ---------- */
.profile-hero {
  max-width: var(--maxw-rect);
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.profile-photo-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-rect);
  border: 4px solid #fff;
}
.profile-photo-frame img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.profile-head .eyebrow { margin-bottom: 0.4rem; }
.profile-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0;
  color: var(--slate-green);
}
.profile-role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sage-darker);
  margin: 0.6rem 0 0;
}
.profile-meta {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.profile-meta .therapist-tags { margin: 0; }
.profile-body {
  max-width: 780px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.profile-body p { margin: 0 0 1.15rem; }
.profile-body .emph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--slate-green);
}
.profile-actions {
  margin: 2rem auto 0;
  max-width: 780px;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.profile-back {
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-photo-frame { max-width: 300px; }
}

/* ---------- Directory filter bar (Flavor C) ---------- */
.filter-wrap {
  max-width: var(--maxw-rect);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.filter-bar button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-darker);
  background: #fff;
  border: 1px solid rgba(122, 142, 110, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-bar button:hover { border-color: var(--honey-deep); }
.filter-bar button[aria-pressed="true"] {
  background: var(--honey);
  color: var(--slate-green);
  border-color: var(--honey-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(184, 145, 90, 0.35);
}

/* A filtered-out card must actually hide — .therapist-card sets display:flex,
   which otherwise overrides the browser's default [hidden] { display:none }. */
.therapist-card[hidden] { display: none !important; }
.filter-count {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--slate-soft);
}

/* ---------- Footer quick links (parity with homepage inline styles) ---------- */
.footer-link { margin: 0 0 0.6rem; font-size: 0.9rem; }
.footer-link a {
  color: #D9B27A;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-link a:hover { color: #f0d9b3; }

/* ---------- Homepage team teaser strip (Flavor B) ---------- */
.team-teaser {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}
.teaser-person { text-align: center; width: 150px; }
.teaser-person img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 0.75rem;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
}
.teaser-person .t-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--slate-green); margin: 0; }
.teaser-person .t-role { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-darker); margin: 0.2rem 0 0; }
