/* ==========================================================
   Profissionais: listagem, filtros, cards e perfil individual
   Reaproveita tokens e componentes de base.css / sections.css
   ========================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pill.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.minibar__nav a.is-current { background: var(--mint); color: var(--ink); }
.icon-btn--sage { background: var(--sage); color: #fff; }
.icon-btn--sage:hover { background: var(--sage-d); }

/* ---------- Hero da equipe ---------- */
.team-hero .hero__headline { display: flex; flex-direction: column; gap: 20px; }
.team-hero .hero__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.team-visual { min-height: 400px; }
.team-visual__quote {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  font-size: 15px; line-height: 1.3; color: var(--mint);
  animation: fade 1s var(--ease-out) .7s both;
}
.team-visual__quote strong { color: #fff; font-weight: 600; }
.t-arch {
  position: absolute; bottom: 0; overflow: hidden;
  border-radius: 999px 999px 0 0; border: 5px solid rgba(255,255,255,.22); border-bottom: 0;
  animation: arch-up 1.3s var(--ease-out) both;
}
.t-arch img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.2s var(--ease-out) both; }
.t-arch--1 { left: 3%; width: 31%; height: 50%; animation-delay: .4s; }
.t-arch--2 { left: 34.5%; width: 32%; height: 70%; animation-delay: .2s; z-index: 1; }
.t-arch--3 { left: 67%; width: 30%; height: 44%; animation-delay: .55s; }
.team-visual .chip { z-index: 3; }
.chip--t1 { right: 16px; top: 20px; animation: chip-in .8s var(--ease-out) .95s both, float 6s ease-in-out 2s infinite; }
.chip--t2 { left: 14px; top: 38%; animation: chip-in .8s var(--ease-out) 1.1s both, float 7s ease-in-out 2.6s infinite; }
.chip--t3 { right: 14px; bottom: 16px; animation: chip-in .8s var(--ease-out) 1.25s both, float 6.5s ease-in-out 3.1s infinite; }

@media (min-width: 768px) {
  .team-visual { min-height: 560px; }
  .team-visual__quote { left: 28px; top: 28px; font-size: 24px; line-height: 1.12; font-weight: 300; letter-spacing: -.02em; }
  .t-arch { border-width: 6px; }
  .chip--t1 { right: 26px; top: 28px; }
  .chip--t2 { left: 3%; top: 44%; }
  .chip--t3 { right: 4%; bottom: 26px; }
}
@media (min-width: 1100px) { .team-visual { min-height: 600px; } }

/* ---------- Filtros ---------- */
.finder { padding: 32px 20px 24px; display: flex; flex-direction: column; gap: 24px; }
.filters {
  display: flex; flex-direction: column; gap: 14px; padding: 14px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
}
.search {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-2);
  transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(78,107,103,.14); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: var(--muted-2); }
.filter-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filter-group__label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.filter-group__chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -14px; padding: 2px 14px;
}
.filter-group__chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2);
  font-size: 14px; font-weight: 600;
  transition: background-color .3s, border-color .3s, color .3s, transform .35s var(--ease-out);
}
.fchip span { font-size: 12px; font-weight: 600; color: var(--muted-2); font-variant-numeric: tabular-nums; transition: color .3s; }
.fchip:hover { border-color: var(--sage); }
.fchip:active { transform: scale(.96); }
.fchip[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: #fff; }
.fchip[aria-pressed="true"] span { color: var(--mint); }
.filters__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background-color .3s; }
.switch__track::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .4s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--sage); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--sage); outline-offset: 3px; }
.filters__count { margin-left: auto; font-size: 14px; color: var(--muted); }
.filters__count strong { color: var(--ink); }
.filters__clear { border: 0; background: none; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--sage-d); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 768px) {
  .finder { padding: 48px 32px 36px; gap: 28px; }
  .filters { padding: 18px; gap: 16px; }
  .filter-group { flex-direction: row; align-items: center; gap: 14px; }
  .filter-group__label { flex: 0 0 96px; }
  .filter-group__chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

/* ---------- Cards ---------- */
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pro {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-card);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s;
}
.pro.is-hidden { display: none; }
html.js .pro.reveal.is-in { transition: opacity .9s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s; transition-delay: 0s; }
.pro.is-filtered-in { animation: fade-up .55s var(--ease-out) both; }
.pro__photo { display: block; align-self: start; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--line-2); }
.pro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease-out); }
.pro__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 2px 2px 0 0; }
.pro__crp { font-size: 12px; font-weight: 500; color: var(--muted-2); }
.pro__name { font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.pro__name a { color: var(--ink); }
.pro__name a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pro__summary {
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pro__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pro__tags li { padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.pro__tags .pro__more { background: var(--mint); border-color: var(--mint); }
@media (max-width: 599px) { .pro__tags li:nth-child(n+3) { display: none; } }
.pro__actions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.pro__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--sage-d); }
.pro__link svg { transition: transform .4s var(--ease-out); }

@media (hover: hover) {
  .pro:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 24px 40px -28px rgba(23,33,31,.5); }
  .pro:hover .pro__photo img { transform: scale(1.06); }
  .pro:hover .pro__link svg { transform: rotate(45deg); }
  .pro:hover .pro__name a { color: var(--sage-d); }
}
@media (min-width: 600px) {
  .pro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pro { grid-template-columns: minmax(0, 1fr); padding: 10px 10px 8px; }
  .pro__photo { aspect-ratio: 1 / 1; }
  .pro__body { padding: 6px 8px 0; gap: 8px; }
  .pro__name { font-size: 18px; }
  .pro__summary { -webkit-line-clamp: 3; }
}
@media (min-width: 960px) { .pro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--muted);
}
.empty[hidden] { display: none; }
.empty strong { font-size: 20px; color: var(--ink); }
.empty p { max-width: 420px; }

/* ---------- Parceiro ---------- */
.partner { padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; }
.partner__card {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; background: #fff; border-radius: var(--r-card); color: var(--ink);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.partner__card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(23,33,31,.5); }
.partner__card img { width: 80px; height: 100px; object-fit: cover; border-radius: 14px; }
.partner__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.partner__body strong { font-size: 17px; }
.partner__body > span { font-size: 13px; color: var(--muted-2); }
.partner__body .partner__text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.partner__go { background: var(--sage); color: #fff; }
.partner__card:hover .partner__go { transform: rotate(45deg); }
@media (min-width: 768px) {
  .partner { padding: 34px 32px; }
  .partner__card { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding-right: 22px; }
  .partner__card img { width: 96px; height: 120px; }
}

/* ---------- Perfil ---------- */
.profile-hero .hero__intro { gap: 22px; }
.profile-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; animation: fade-up 1s var(--ease-out) .25s both; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background-color .3s, transform .35s var(--ease-out);
}
.back-link:hover { background: var(--mint); color: var(--ink); }
.back-link svg { transition: transform .35s var(--ease-out); }
.back-link:hover svg { transform: translateX(-3px); }
.profile-hero__name { font-size: clamp(36px, 10vw, 76px); line-height: .96; font-weight: 600; letter-spacing: -.045em; }
.profile-hero__name .line > span { animation: rise 1.15s var(--ease-out) .1s both; }
.profile-hero__summary { max-width: 540px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.profile-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.profile-hero__social { display: flex; flex-wrap: wrap; gap: 8px; }

.profile-visual { min-height: 460px; }
.p-arch {
  position: absolute; left: 14%; right: 14%; bottom: 0; height: 86%;
  border-radius: 999px 999px 0 0; overflow: hidden;
  border: 6px solid rgba(255,255,255,.22); border-bottom: 0;
  animation: arch-up 1.3s var(--ease-out) .25s both;
}
.p-arch img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.2s var(--ease-out) .25s both; }
.profile-visual .chip { z-index: 2; }
.chip--p1 { left: 14px; top: 16px; animation: chip-in .8s var(--ease-out) .9s both, float 6s ease-in-out 2s infinite; }
.chip--p2 { right: 14px; top: 64px; animation: chip-in .8s var(--ease-out) 1.05s both, float 7s ease-in-out 2.6s infinite; }
.chip--p3 { left: 14px; bottom: 18px; animation: chip-in .8s var(--ease-out) 1.2s both, float 6.5s ease-in-out 3.1s infinite; }

@media (min-width: 768px) {
  .profile-hero__content { gap: 20px; }
  .profile-visual { min-height: 620px; }
  .chip--p1 { left: 26px; top: 26px; }
  .chip--p2 { right: 26px; top: 24%; }
  .chip--p3 { left: 26px; bottom: 30px; }
}
@media (min-width: 1100px) {
  .profile-hero .hero__intro { justify-content: flex-start; gap: 64px; }
  .profile-hero__name { font-size: clamp(44px, 5.2vw, 78px); }
}

.profile-bio { padding: 32px 20px; display: grid; gap: 28px; }
.profile-bio__side { display: flex; flex-direction: column; gap: 22px; }
.pfacts { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.pfact dt { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pfact dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pfact dd span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.profile-bio__text { display: flex; flex-direction: column; gap: 16px; max-width: 700px; }
.profile-bio__text p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.profile-bio__text .profile-bio__lead { font-size: clamp(20px, 4.8vw, 27px); line-height: 1.38; font-weight: 300; letter-spacing: -.015em; color: var(--ink); }
.profile-bio__cta { padding-top: 8px; }
@media (min-width: 768px) { .profile-bio { padding: 48px 32px; } }
@media (min-width: 1024px) {
  .profile-bio { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; padding: 60px 48px; }
  .profile-bio__side { position: sticky; top: 100px; align-self: start; }
}

.related { padding: 32px 20px 24px; display: flex; flex-direction: column; gap: 24px; }
.related .pro { background: #fff; }
@media (min-width: 768px) { .related { padding: 44px 32px 32px; } }
