/* ============================================================
   Valens Clinic — Meet Our Team v2
   Matched to Lovable /team reference
   ============================================================ */

.team-v2 {
  --team-navy: hsl(218, 55%, 9%);
  --team-navy-panel: rgba(15, 27, 46, 0.95);
  --team-cyan: rgb(27, 155, 187);
  --team-cyan-bright: rgb(37, 188, 244);
  --team-cyan-soft: rgba(27, 155, 187, 0.15);
  --team-text: rgb(22, 36, 59);
  --team-muted: hsl(218, 15%, 42%);
  --team-border: hsl(218, 20%, 88%);
  --team-photo-bg: rgb(243, 245, 247);
  --team-radius-pill: 999px;
  --team-radius-stat: 16px;
  --team-shadow: 0 18px 50px rgba(8, 20, 40, 0.12);
  --team-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --team-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--team-text);
  font-family: var(--team-sans);
}

.team-v2 .container-s {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

body.page-template-template-doctors .inner-banner,
body.page-template-template-doctors-php .inner-banner {
  display: none !important;
}

body.page-template-template-doctors,
body.page-template-template-doctors-php {
  padding-top: 0 !important;
}

body.page-template-template-doctors .team-v2 .container-s,
body.page-template-template-doctors-php .team-v2 .container-s {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  box-sizing: border-box;
}

body.page-template-template-doctors .team-v2 .section,
body.page-template-template-doctors-php .team-v2 .section,
body.page-template-template-doctors main.team-v2 > .section,
body.page-template-template-doctors-php main.team-v2 > .section {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

body.page-template-template-doctors .team-v2__hero,
body.page-template-template-doctors-php .team-v2__hero {
  padding-top: var(--v2-bar-h, 72px);
}

/* ---- Hero ---- */
.team-v2__hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--team-navy);
}

.team-v2__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-v2__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, hsl(218 55% 9% / 0.2) 0%, hsl(218 60% 7% / 0.88) 100%);
}

.team-v2__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-v2__eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1875em;
  text-transform: uppercase;
  color: var(--team-cyan-bright);
  font-weight: 600;
}

.team-v2__title {
  margin: 0 auto;
  max-width: 56rem;
  font-family: var(--team-serif);
  font-size: clamp(1.875rem, 8vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: rgb(248, 250, 252);
  font-weight: 400;
}

.team-v2__lead {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.85);
}

.team-v2__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.team-v2__stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1.25rem 0.65rem 0.65rem;
  border-radius: var(--team-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 36, 0.72);
  backdrop-filter: blur(10px);
}

.team-v2__stat-avatars {
  display: flex;
  align-items: center;
}

.team-v2__stat-avatars img,
.team-v2__stat-initial,
.team-v2__stat-more {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--team-navy);
  margin-left: -0.65rem;
  object-fit: cover;
}

.team-v2__stat-avatars img:first-child,
.team-v2__stat-initial:first-child,
.team-v2__stat-more:first-child {
  margin-left: 0;
}

.team-v2__stat-initial,
.team-v2__stat-more {
  display: grid;
  place-items: center;
  background: var(--team-cyan-soft);
  color: var(--team-cyan-bright);
  font-size: 0.72rem;
  font-weight: 600;
}

.team-v2__stat-copy strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--team-cyan-bright);
  font-weight: 400;
}

.team-v2__stat-copy span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.25;
  color: rgba(248, 250, 252, 0.78);
}

/* ---- Filters ---- */
.team-v2__filters-wrap,
.team-v2__staff {
  background: #fff;
}

.team-v2__filters-wrap {
  padding: 2.5rem 0 3.5rem;
}

.team-v2__filters-wrap .container-s {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  text-align: left;
}

.team-v2__audience-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-v2__filter-btn,
.team-v2__chip {
  appearance: none;
  border: 1px solid var(--team-border);
  background: #fff;
  color: rgba(22, 36, 59, 0.7);
  border-radius: var(--team-radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.team-v2__filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.team-v2__filter-btn.is-active {
  background: var(--team-cyan);
  border-color: var(--team-cyan);
  color: #fff;
}

.team-v2__chip.is-active {
  background: var(--team-cyan);
  border-color: var(--team-cyan);
  color: #fff;
}

.team-v2__filter-btn:hover:not(.is-active),
.team-v2__chip:hover:not(.is-active) {
  border-color: rgba(27, 155, 187, 0.45);
}

.team-v2__condition-filters {
  margin-bottom: 0.5rem;
}

.team-v2__filter-label {
  margin: 0 0 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.1875em;
  text-transform: uppercase;
  color: var(--team-muted);
}

.team-v2__condition-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.team-v2__chip {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.25;
}

.team-v2__chip--hidden,
.team-v2__condition-row .team-v2__chip[hidden] {
  display: none !important;
}

.team-v2__condition-toggle {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.team-v2__chip--toggle {
  border-color: rgba(27, 155, 187, 0.45);
  color: var(--team-cyan);
  font-weight: 600;
  min-height: 36px;
  padding: 0.5rem 1rem;
}

/* ---- Grid + cards ---- */
.team-v2__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
  width: 100%;
  align-items: stretch;
}

.team-v2__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.team-v2__card.is-hidden {
  display: none;
}

.team-v2__photo-wrap {
  position: relative;
  width: min(100%, 220px);
  margin: 0 auto;
  flex-shrink: 0;
}

.team-v2__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--team-photo-bg);
  border: 1px solid rgba(218, 220, 224, 0.6);
  box-shadow: var(--team-shadow);
}

.team-v2__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.45s ease;
}

.team-v2__card--clinician:hover .team-v2__photo img {
  transform: scale(1.03);
}

/* Pre-masked / awkward crops — contain + slight zoom so they fill the circle */
.team-v2__photo--fit {
  background: #fff;
}

/*.team-v2__photo--fit img {*/
/*  object-fit: contain;*/
/*  object-position: center center;*/
/*  transform: scale(1.30);*/
/*  transform-origin: center center;*/
/*}*/

.team-v2__photo--fit-lg img {
  transform: scale(1.40);
}

.team-v2__card--clinician:hover .team-v2__photo--fit img {
  transform: scale(1.03);
}

.team-v2__card--clinician:hover .team-v2__photo--fit-lg img {
  transform: scale(1.50);
}

.team-v2__photo--placeholder,
.team-v2__photo:not(:has(img)) {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(27, 155, 187, 0.18), rgba(27, 155, 187, 0.08));
}

.team-v2__initials {
  font-family: var(--team-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: rgba(27, 155, 187, 0.55);
  font-weight: 400;
}

.team-v2__sparkle {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--team-cyan-bright);
  opacity: 0.65;
  pointer-events: none;
}

.team-v2__sparkle--1 { top: 8%; right: 6%; }
.team-v2__sparkle--2 { top: 30%; left: 0; width: 0.35rem; height: 0.35rem; opacity: 0.45; }
.team-v2__sparkle--3 { bottom: 10%; right: 14%; width: 0.3rem; height: 0.3rem; opacity: 0.35; }

.team-v2__name {
  margin: 1.25rem 0 0;
  width: 100%;
  min-height: 0;
  font-family: var(--team-serif);
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 400;
  color: rgba(22, 36, 59, 0.8);
}

.team-v2__role {
  margin: 0.15rem 0 0;
  width: 100%;
  min-height: calc(1.4em * 2);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--team-cyan);
  font-weight: 500;
}

.team-v2__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--team-radius-pill);
  border: 1px solid var(--team-border);
  font-size: 0.875rem;
  color: rgba(22, 36, 59, 0.7);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.team-v2__card--clinician:hover .team-v2__cta {
  border-color: rgba(27, 155, 187, 0.6);
  color: var(--team-cyan);
}

.team-v2__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0;
  width: 100%;
}

.team-v2__actions .team-v2__cta {
  margin-top: 0;
}

.team-v2__cta--book {
  border-color: var(--team-cyan);
  background: var(--team-cyan);
  color: #fff;
}

.team-v2__card--clinician:hover .team-v2__cta--book {
  color: #fff;
  background: var(--team-cyan-bright);
  border-color: var(--team-cyan-bright);
}

.team-v2__empty {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--team-muted);
}

/* ---- Support staff ---- */
.team-v2__staff {
  padding: 3rem 0 5rem;
}

.team-v2__staff-title {
  margin: 0;
  font-family: var(--team-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--team-text);
}

.team-v2__staff-lead {
  margin: 0.75rem 0 2rem;
  max-width: 40rem;
  color: var(--team-muted);
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .team-v2__hero {
    min-height: 70vh;
  }

  .team-v2__hero-inner {
    padding: 2.5rem 0;
  }

  .team-v2__stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .team-v2__filters-wrap {
    padding: 2.5rem 0 4rem;
  }

  .team-v2__grid {
    gap: 3.5rem 2rem;
  }
}

@media (min-width: 992px) {
  .team-v2__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.5rem 2rem;
  }

  .team-v2__hero-inner {
    padding: 3rem 0;
  }

  .team-v2__staff {
    padding: 4rem 0 5rem;
  }
}

@media (max-width: 575px) {
  .team-v2__chip {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
  }
}
