/*
 * GO CLINIC MD — team.css
 * Step 12: Medical Team page — team-specific styles only.
 *
 * Design tokens, base type, buttons, header/nav, footer, and .container
 * all come from home.css (loaded globally). Nothing here duplicates those.
 *
 * Enqueue in functions.php:
 *   if ( is_page_template('templates/team.php') ) {
 *     wp_enqueue_style( 'team-style', get_template_directory_uri() . '/css/team.css', array(), _S_VERSION );
 *   }
 */

/* =====================================================================
   SMALL BUTTON MODIFIER
   ===================================================================== */
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* =====================================================================
   FORM INPUTS — used in partnership modal
   ===================================================================== */
.input-pill,
.textarea-pill {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color .15s;
}

.input-pill:focus,
.textarea-pill:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,100,221,0.08);
}

.textarea-pill { resize: vertical; min-height: 100px; line-height: 1.5; }

/* =====================================================================
   PAGE HEAD
   ===================================================================== */
.page-head {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, var(--peach) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,100,221,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at top right, black 0%, transparent 55%);
  pointer-events: none;
}

.page-head-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: end;
}

.page-head h1 { font-size: clamp(36px, 4.4vw, 56px); max-width: 16ch; }
.page-head h2 { font-size: clamp(28px, 3.2vw, 38px); }
.page-head .lede { font-size: 18px; color: var(--muted); line-height: 1.55; margin-top: 22px; max-width: 52ch; }

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span.sep { color: var(--muted-2); }

/* =====================================================================
   TEAM-AT-A-GLANCE STATS
   ===================================================================== */
.team-meta {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.team-meta .tm-item { padding: 14px 16px; border-radius: 10px; }
.team-meta .tm-head { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.team-meta .tm-val { font-size: 26px; color: var(--navy); font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.05; }
.team-meta .tm-val.text { font-size: 22px; }
.team-meta .tm-lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.team-meta .tm-bar {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.team-meta .tm-bar strong { color: var(--navy); font-weight: 600; }
.team-meta .tm-bar svg { color: var(--blue); flex-shrink: 0; }

/* =====================================================================
   FILTER BAR
   ===================================================================== */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 48px 0 0;
  box-shadow: var(--shadow-sm);
}

.filter-bar .label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.fchip {
  padding: 8px 14px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-weight: 500;
  transition: all .15s;
}

.fchip:hover { border-color: var(--blue); color: var(--blue); }
.fchip.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.filter-bar .filter-div { width: 1px; height: 28px; background: var(--border-2); }

.filter-bar .state-select {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.filter-bar select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 36px 8px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230064DD' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.filter-bar select:focus { outline: none; border-color: var(--blue); }

.filter-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.filter-count strong { color: var(--navy); }

/* =====================================================================
   PROVIDER CARDS
   ===================================================================== */
.providers { padding: 32px 0 96px; }

.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }

.provider {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}

.provider:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }

.prov-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 28px 0; }

.prov-photo {
  width: 200px;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--blue-soft);
  flex-shrink: 0;
}

.prov-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prov-photo .photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  color: var(--blue);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-soft), #DCE7FB);
  letter-spacing: -0.02em;
}

.bc-stamp {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  background: rgba(0,15,28,0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bc-stamp svg { flex-shrink: 0; color: #9FC6FF; }

.prov-identity { display: flex; flex-direction: column; min-width: 0; }

.prov-role-tag {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.prov-role-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

.prov-name { font-size: 26px; color: var(--navy); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.prov-suffix { color: var(--blue); font-weight: 600; margin-left: 2px; }

.prov-cred { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.prov-cred strong { color: var(--navy); font-weight: 600; }

.prov-cred-row { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }

.prov-cred-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--navy); }
.prov-cred-line svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.prov-cred-line span { line-height: 1.45; }

.prov-quick {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.prov-quick-item { display: inline-flex; align-items: center; gap: 6px; }
.prov-quick-item svg { color: var(--blue); flex-shrink: 0; }

.prov-body { padding: 24px 28px 0; }

.prov-focus-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-2);
  margin-bottom: 12px;
}

.prov-focus-head .h { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Counter pill — uses design-system badge tokens (--blue-soft bg, --blue text, full pill).
   Shared by Clinical Focus count (.prov-focus-head .ct) and Licensed-states count (.prov-states-head .count). */
.prov-focus-head .ct,
.prov-states-head .count {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  line-height: 1;
}

.prov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prov-chips span { font-size: 12px; padding: 5px 10px; background: var(--blue-softer); color: var(--blue); border-radius: 4px; font-weight: 500; }
.prov-chips span.primary { background: var(--blue); color: #fff; }

/* Bulleted Clinical Focus list (replaces the chip strip). */
.prov-focus-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.prov-focus-list li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 2px;
}
.prov-focus-list li::marker {
  color: var(--blue);
}
.prov-focus-list li.primary {
  color: var(--ink);
  font-weight: 600;
}

.prov-bio { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-2); font-size: 14.5px; color: var(--muted); line-height: 1.65; }

.prov-states { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-2); }

.prov-states-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prov-states-head .h { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.prov-states-list { display: flex; flex-wrap: wrap; gap: 4px; }
.prov-states-list .st { font-size: 11.5px; padding: 3px 8px; background: var(--surface); color: var(--navy); border-radius: 4px; font-weight: 500; letter-spacing: 0.01em; }
.prov-states-list .st.st-all { background: var(--blue-soft); color: var(--blue); font-size: 12px; padding: 4px 10px; font-weight: 500; }

.prov-actions { display: flex; gap: 10px; padding: 22px 28px 28px; margin-top: 22px; border-top: 1px solid var(--border-2); }
.prov-actions .btn { flex: 1; }

/* Empty / no-results state */
.no-results {
  padding: 80px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  display: none;
  grid-column: 1 / -1;
}

.no-results.on { display: block; }
.no-results svg { color: var(--muted-2); margin-bottom: 14px; }
.no-results h4 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.no-results p { font-size: 14.5px; }

/* =====================================================================
   CARE PHILOSOPHY
   ===================================================================== */
.philosophy {
  padding: 80px 0;
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(159,198,255,0.08) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 20% 20%, black 0%, transparent 60%);
  pointer-events: none;
}

.philosophy .container { position: relative; }

.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.philosophy h2 { color: #fff; max-width: 18ch; }
.philosophy h2 em { color: #9FC6FF; font-style: normal; }
.philosophy .p-intro { color: rgba(255,255,255,0.72); font-size: 17px; line-height: 1.6; margin-top: 20px; }

.philosophy .eyebrow { color: #9FC6FF; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(159,198,255,0.18);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.pillar .n { font-size: 11px; color: #9FC6FF; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.pillar h4 { color: #fff; font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.pillar p { color: rgba(255,255,255,0.7); font-size: 13.5px; line-height: 1.55; }

/* =====================================================================
   JOIN THE TEAM
   ===================================================================== */
.join { padding: 32px 0 48px; background: var(--surface); }

.join-card {
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.join-card h2 { margin-bottom: 14px; }

.join-card .want {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.join-card .want div { font-size: 14px; color: var(--navy); line-height: 1.45; }

.join-card .join-actions { display: flex; flex-direction: column; gap: 12px; }

/* =====================================================================
   PARTNERSHIP MODAL
   ===================================================================== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,15,28,0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 24px;
  opacity: 0;
  transition: opacity .18s ease;
}

.modal-backdrop.is-open { display: flex; opacity: 1; }

.modal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 620px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,15,28,0.35);
  transform: translateY(8px);
  transition: transform .22s ease;
}

.modal-backdrop.is-open .modal-card { transform: translateY(0); }

.modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 28px 32px 0; }
.modal-head .modal-title-block { flex: 1; }

.modal-head h3 {
  font-size: 26px; font-weight: 700; color: var(--navy);
  margin: 8px 0 8px; line-height: 1.2; letter-spacing: -0.01em;
}

.modal-head p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

.modal-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); flex-shrink: 0;
  transition: border-color .15s, color .15s;
}

.modal-close:hover { border-color: var(--blue); color: var(--blue); }

.modal-body { padding: 22px 32px 28px; }

.partner-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.partner-type-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: all .15s; user-select: none;
}

.partner-type-chip:hover { border-color: var(--blue); color: var(--blue); }
.partner-type-chip input { position: absolute; opacity: 0; pointer-events: none; }
.partner-type-chip:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-row.single { grid-template-columns: 1fr; }

.form-label {
  display: block;
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}

.form-label .req { color: var(--danger); margin-left: 2px; }

.modal-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.modal-actions .btn { flex: 1; }

.modal-success { text-align: center; padding: 24px 0 8px; display: none; }
.modal-success.is-shown { display: block; }

.modal-success-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 999px; background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}

.modal-success h4 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.modal-success p { font-size: 14px; color: var(--muted); margin: 0 0 18px; line-height: 1.55; }

body.modal-open { overflow: hidden; }

/* =====================================================================
   RESPONSIVE — TEAM PAGE
   ===================================================================== */
@media (max-width: 1080px) {
  .page-head-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .team-meta { max-width: 560px; }
  .provider-grid { gap: 20px; }
  .philosophy-grid { gap: 48px; }
  .join-card { padding: 40px; }
}

@media (max-width: 900px) {
  .page-head { padding: 40px 0 32px; }
  .page-head .lede { font-size: 16px; }

  .team-meta { padding: 22px; }
  .team-meta .tm-val { font-size: 22px; }

  .filter-bar { padding: 14px; gap: 10px; }
  .filter-bar .state-select { margin-left: 0; width: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border-2); }
  .filter-bar .filter-div { display: none; }
  .filter-count { margin-left: 0; }

  .provider-grid { grid-template-columns: 1fr; gap: 18px; }
  .prov-head { grid-template-columns: 1fr; padding: 22px 22px 0; }
  .prov-photo { width: 100%; max-width: 200px; height: 240px; }
  .prov-body { padding: 20px 22px 0; }
  .prov-actions { padding: 20px 22px 22px; }
  .prov-quick { gap: 10px; }

  .philosophy { padding: 56px 0; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; gap: 12px; }

  .join { padding: 24px 0 36px; }
  .join-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .join-card .want { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .team-meta { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .modal-head { padding: 22px 22px 0; }
  .modal-body { padding: 18px 22px 22px; }
  .modal-head h3 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
}
