/* ============================================
   OrbitaPsi — Design Tokens
   ============================================ */
:root {
  --navy: #1F2A3A;
  --navy-light: #2C3B50;
  --gold: #CDAA6D;
  --gold-light: #DBBE8D;
  --gold-dark: #B8925A;
  --beige: #DCCBB5;
  --warm-white: #FAF8F5;
  --white: #FFFFFF;
  --text-body: #3D4652;
  --text-muted: #6B7684;

  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1180px;
  --radius: 10px;
  --shadow-soft: 0 8px 30px rgba(31, 42, 58, 0.08);

  --transition: 200ms ease;
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-body);
  background: var(--warm-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--text-body); }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; display: block; }

.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;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section { padding: 36px 0; }
.section h2 { margin-bottom: 0.2em; }
.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 26px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }

.btn-hero-primary {
  background: rgba(250, 248, 245, 0.12);
  border: 1.5px solid rgba(250, 248, 245, 0.4);
  color: var(--white);
}
.btn-hero-primary:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--beige);
  width: 100%;
  margin-top: 8px;
}
.btn-outline:hover { border-color: var(--gold); background: var(--warm-white); }

.btn-small { padding: 10px 18px; font-size: 0.88rem; }
.btn-large { padding: 18px 40px; font-size: 1.05rem; }
.btn-header { display: none; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 42, 58, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}
.logo-link { flex-shrink: 0; border: none; outline: none; }
.logo-link img { border: 0; outline: none; }
.logo-link:focus:not(:focus-visible) { outline: none; }
.logo-img { height: 60px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu {
  display: flex;
  gap: 32px;
}
.nav-menu a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}
.nav-menu a:hover { color: var(--gold-dark); }
.nav-menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform var(--transition);
}
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.header-ctas { display: none; align-items: center; gap: 12px; }
.btn-gold-light {
  background: var(--gold-light);
  color: var(--navy);
  border-color: transparent;
}
.btn-gold-light:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.btn-header-secondary {
  padding: 12px 20px;
  font-size: 0.92rem;
}

.nav-mobile-only { display: none; }

@media (max-width: 860px) {
  .btn-header { display: none !important; }
  .header-ctas { display: none !important; }
  .nav-toggle { display: block; }
  .main-nav { justify-content: flex-end; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--warm-white);
    padding: 16px 24px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(31,42,58,0.08);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-mobile-only { display: block; }
  .nav-mobile-only a {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
  }
  .nav-mobile-only a::after { display: none; }
}
@media (min-width: 861px) {
  .header-ctas { display: flex; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 36px 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 600px; }

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  z-index: 1;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(31,42,58,0) 35%);
}

.hero-image-directory { width: 40%; }
.hero-image-directory .hero-photo-fade {
  background: linear-gradient(90deg, var(--navy) 0%, rgba(31,42,58,0.85) 10%, rgba(31,42,58,0.4) 20%, rgba(31,42,58,0) 30%);
}

@media (max-width: 900px) {
  .hero-image {
    position: relative;
    top: auto; right: auto; bottom: auto;
    width: 100%;
    height: 260px;
    order: 2;
    margin-top: 32px;
  }
  .hero-photo-fade {
    background: linear-gradient(180deg, var(--navy) 0%, rgba(31,42,58,0) 35%);
  }
}

.eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); }
.hero-lead {
  color: rgba(250, 248, 245, 0.82);
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); }

.hero-patient-link {
  margin-top: 22px;
  font-size: 0.92rem;
  color: rgba(250, 248, 245, 0.65);
}
.hero-highlight { color: #CDAA6D; }
.hero h1 { color: #FFFFFF; }

.hero-patient-link a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.hero-patient-link a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   Grids & cards
   ============================================ */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  padding: 32px;
  border-radius: var(--radius);
}
.card-plain {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.card-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--beige);
  border-radius: 8px;
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }

.diferenciais { background: #FFFFFF; }
.diferenciais h2, .diferenciais .section-lead { color: var(--navy); }
.diferenciais .section-lead { color: var(--text-muted); max-width: none; }
.planos, .faq { background: #FAF8F5; }
.card-dark {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(205, 170, 109, 0.4);
}
.card-dark h3 { color: #1f2a3a; }
.card-dark p { color: var(--text-muted); margin: 0; font-size: 0.88rem; }

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(205, 170, 109, 0.4);
  border-radius: 12px;
  padding: 28px 24px 26px;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}
.step:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgba(31, 42, 58, 0.1);
  transform: translateY(-3px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1F2A3A;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.88rem; }

.vitrine-preview { background: #FAF8F5; }
.vitrine-preview-divider { margin: 40px 0 0; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head-row .section-lead { margin-bottom: 0; max-width: 720px; }
@media (max-width: 700px) {
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
.blog-destaque {
  background: #1F2A3A;
}
.blog-destaque h2, .blog-destaque .section-lead { color: var(--white); }
.blog-destaque .section-lead { color: rgba(250, 248, 245, 0.72); max-width: 720px; }
.blog-destaque .btn-card-link {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.blog-destaque .btn-card-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--white);
}
.card-article {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(205, 170, 109, 0.15);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.card-article p { color: var(--text-muted); flex: 1; font-size: 0.88rem; }
.card-link { color: var(--gold-dark); font-weight: 600; font-size: 0.92rem; transition: color 200ms ease; }
.card-link:hover { color: #E8A737; }

/* Planos */
.planos-grid { margin: 0 auto; }
.plan-card {
  background: var(--white);
  border: 1.5px solid rgba(31,42,58,0.1);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 36px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
}
.plan-badge-recommended { background: #E8A737; }
.btn-recommended { background: #E8A737; color: var(--navy); }
.btn-recommended:hover { background: #cf9530; color: var(--white); }
.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 24px;
}
.plan-currency { font-size: 1.1rem; font-weight: 600; vertical-align: super; margin-right: 2px; }
.plan-cents { font-size: 1.4rem; }
.plan-period { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.plan-features { margin-bottom: 8px; }
.plan-card > .btn { margin-top: auto; width: 100%; }
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(31,42,58,0.06);
  font-size: 0.94rem;
  color: var(--text-body);
  padding-left: 26px;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.plan-features li:last-child { border-bottom: none; }

/* FAQ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white);
  border: 1.5px solid rgba(31, 42, 58, 0.08);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: 0 2px 10px rgba(31, 42, 58, 0.03);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.accordion-item:hover {
  border-color: rgba(205, 170, 109, 0.5);
  box-shadow: 0 10px 26px rgba(31, 42, 58, 0.08);
  transform: translateY(-2px);
}
.accordion-item[open] {
  border-color: var(--gold);
  box-shadow: 0 10px 26px rgba(31, 42, 58, 0.08);
}
.accordion-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::marker { content: ''; display: none; }

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background-color 220ms ease, color 220ms ease;
}
.accordion-item[open] .faq-number { background: var(--gold); color: var(--navy); }
.faq-number svg { width: 15px; height: 15px; }

.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(31, 42, 58, 0.06);
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--navy);
  transition: transform 220ms ease, background-color 220ms ease;
}
.accordion-icon::before { width: 11px; height: 1.6px; transform: translate(-50%, -50%); }
.accordion-icon::after { width: 1.6px; height: 11px; transform: translate(-50%, -50%); }
.accordion-item[open] .accordion-icon { background: var(--gold); }
.accordion-item[open] .accordion-icon::before, .accordion-item[open] .accordion-icon::after { background: var(--navy); }
.accordion-item[open] .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }

.accordion-item p {
  margin: 16px 0 0;
  padding: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA final */
/* Mesmo esquema de cores da seção "Conteúdo para quem busca apoio
   psicológico" (.blog-destaque) da home: fundo navy, texto branco. */
.cta-final { background: #1F2A3A; }
.cta-final h2 { color: var(--white); }
.cta-final .btn-card-link { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.cta-final .btn-card-link:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); color: var(--white); }
.cta-final-inner { text-align: center; max-width: 600px; }
.cta-final h2 { margin-bottom: 28px; }

/* ============================================
   Diretório de psicólogos
   ============================================ */
.hero-directory h1, .hero-directory .hero-lead { max-width: 640px; }

.search-bar {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  max-width: 560px;
  flex-wrap: wrap;
}
.search-bar input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-base);
  font-size: 0.95rem;
}
.search-bar input:focus-visible { outline: 2px solid var(--gold); }

.directory-section { padding-top: 24px; }

.directory-filters-intro { font-size: 0.88rem; max-width: none; text-align: center; margin-bottom: 16px; }

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: #E7E2DA;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.filters-bar select,
.filters-bar input[type="text"] {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(31,42,58,0.12);
  font-family: var(--font-base);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--warm-white);
  flex: 1;
  min-width: 160px;
}
.filters-bar select:focus-visible,
.filters-bar input:focus-visible { outline: 2px solid var(--gold); }

/* Texto explicativo da busca semântica ("Profissionais com experiência
   em luto e sono."). Ganhou peso e cor de texto normal porque deixou de
   ser um contador e passou a ser uma frase com sentido — mas sem virar
   título: continua sendo uma legenda acima dos resultados.
   Fica vazio quando não há tema detectado ou quando a busca é de risco. */
.directory-result-count {
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 500;
  margin-bottom: 16px;
}
.directory-result-count:empty { margin: 0; }

/* RESULTADO APROXIMADO (fallback). Precisa ser visualmente DIFERENTE de
   uma busca bem-sucedida: a pessoa tem que perceber, sem ler com atenção,
   que o que ela pediu exatamente não existe e isto aqui é o mais próximo.
   Sem essa distinção, o fallback vira engano silencioso — ela acha que
   encontrou o que procurava. Fundo âmbar suave + borda à esquerda: chama
   atenção sem ter cara de erro (não é culpa dela, e não é falha do site). */
/* LACUNA DE CATÁLOGO: "ainda não temos especialista em borderline".
   Estilo deliberadamente MAIS SÓBRIO que o âmbar de "resultado aproximado".
   Não é um ajuste de busca que a pessoa pode ignorar — é uma limitação real
   da plataforma, com implicação clínica: ela precisa ler antes de agendar.
   Fundo neutro frio + borda navy: tom institucional, sem alarme e sem
   pedido de desculpas. Uma informação séria, dada com clareza. */
.directory-result-count.is-sem-especialista {
  background: #F1F3F6;
  border-left: 3px solid var(--navy, #1F2A3A);
  padding: 14px 18px;
  border-radius: 6px;
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.55;
}
.directory-result-count.is-degradado {
  background: #FDF6E7;
  border-left: 3px solid var(--gold-dark);
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--text-body);
  font-weight: 500;
}
.filters-bar select option { padding: 8px 12px; }
.directory-progress { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.directory-progress-footer { text-align: center; margin: 24px 0 0; }
.directory-sentinel { height: 1px; }
.directory-end-message {
  text-align: center;
  color: #1F2A3A;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 42, 58, 0.08);
}
.directory-end-message a { color: #1F2A3A; }
.directory-end-message::after {
  content: '';
}
/* ------------------------------------------------------------
   Aviso de crise. Precisa ser IMPOSSÍVEL de ignorar sem parecer
   um banner de propaganda. Fundo sólido, contraste alto, telefones
   grandes e clicáveis. Ver dados.js -> detectarRisco().
   ------------------------------------------------------------ */
.aviso-crise {
  background: #FDF6EF;
  border: 1px solid #E8C9AE;
  border-left: 6px solid #CE6541;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.aviso-crise-titulo {
  color: #1F2A3A;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.aviso-crise-texto {
  color: #3D4652;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 8px;
}
.aviso-crise-rodape {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  margin-bottom: 0;
}
.aviso-crise-tel {
  color: #B84E2B;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.aviso-crise-tel:hover { color: #1F2A3A; }

/* Barra única: chips (esquerda) + ordenação (direita) */
.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.filtros-ativos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.filtros-ativos[hidden] { display: none; }
.filtros-ativos-label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.filtros-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(205, 170, 109, 0.15);
  color: var(--navy);
  border: 1px solid rgba(205, 170, 109, 0.5);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-base);
  transition: background 180ms ease, border-color 180ms ease;
}
.chip:hover { background: rgba(205, 170, 109, 0.3); border-color: var(--gold); }
.chip-x { font-size: 1rem; line-height: 1; }
.btn-limpar { font-size: 0.8rem; padding: 6px 12px; }

/* Ordenação — sempre à direita, mesmo sem chips à esquerda */
.ordenacao-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.ordenacao-label { font-size: 0.85rem; color: var(--text-muted); }
#ordenacao {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(31,42,58,0.12);
  font-family: var(--font-base);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-body);
  background: var(--warm-white);
}
#ordenacao:focus-visible { outline: 2px solid var(--gold); }

/* Estado vazio inteligente (item 2) */
.directory-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px solid rgba(31, 42, 58, 0.08);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.directory-empty-titulo { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.directory-empty-texto { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.directory-sugestoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.directory-status {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--navy);
}
.directory-status p { margin: 0; }

.profile-card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
}
.example-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--navy);
  color: var(--warm-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 1;
}
.profile-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FAFAFA;
  border-radius: 8px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-media-placeholder { width: 64px; height: 64px; opacity: 0.5; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-meta { margin-bottom: 4px; }
.profile-meta p { color: var(--text-muted); font-size: 0.88rem; margin: 0; line-height: 1.4; }
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: #0030AB;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 3px;
  margin-top: -2px;
}
.verified-badge svg { width: 11px; height: 11px; }
.profile-approach { font-size: 0.92rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.profile-tags .tag { margin-bottom: 0; }
.btn-card-link {
  background: rgba(0, 0, 0, 0.035);
  color: var(--navy);
  border: 1.5px solid #E9DBC3;
  font-size: 0.85rem;
  padding: 9px 16px;
  font-weight: 600;
}
.btn-card-link:hover {
  border-color: #9CA3AF;
  background: rgba(0, 0, 0, 0.035);
  color: var(--navy);
}
.profile-card .btn-card-link { margin-top: auto; width: auto; align-self: flex-start; }

@media (max-width: 700px) {
  .filters-bar { flex-direction: column; }
  .filters-bar select,
  .filters-bar input[type="text"] { width: 100%; }
}
.site-footer { background: var(--navy); color: rgba(250,248,245,0.75); border-top: 1px solid rgba(205, 170, 109, 0.3); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 24px 40px;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-logo { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: rgba(250,248,245,0.65); font-size: 0.92rem; }
.footer-social { display: flex; gap: 20px; margin-top: 8px; }
.footer-social a { font-size: 0.9rem; font-weight: 600; color: var(--gold); }
.footer-social a:hover { color: var(--white); }

.footer-nav { display: flex; gap: 48px; }
.footer-nav h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 14px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 0.9rem; color: rgba(250,248,245,0.7); }
.footer-nav a:hover { color: var(--gold); }
.footer-cta-link { color: var(--gold) !important; font-weight: 600; }
.footer-cta-link:hover { color: var(--white) !important; }

.footer-notice {
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  font-size: 0.85rem;
  color: rgba(250,248,245,0.65);
}
.footer-notice p { color: rgba(250,248,245,0.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(250,248,245,0.5); }

/* ============================================
   PÁGINA DE PERFIL INDIVIDUAL (/psicologos/<slug>.html)
   ============================================
   Reutiliza os tokens já definidos no topo deste arquivo.
   Nenhuma cor nova foi criada.

   PRINCÍPIO DE LAYOUT: os três planos usam a MESMA estrutura, para
   ambientar o paciente — ele aprende a ler um perfil e sabe ler todos.
   A diferença entre planos é PRESENÇA DE SEÇÃO (vídeo, agendador,
   galeria), não decoração. Nada aqui grita "esse pagou mais".
   ============================================ */

.perfil-page { padding: 48px 0 80px; }
.perfil-container { max-width: var(--container-w); }

.perfil-voltar {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  transition: color var(--transition);
}
.perfil-voltar:hover { color: var(--navy); }

.perfil-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}

/* Lateral sticky: no desktop, o botão de contato acompanha a leitura.
   O paciente pode decidir mandar mensagem em qualquer ponto do texto,
   sem ter que rolar de volta ao topo. */
.perfil-lateral {
  position: sticky;
  top: 100px;
}

/* Mídia principal: 4:3, igual ao card. No plano Completo, o VÍDEO ocupa
   exatamente este espaço no lugar da foto. */
.perfil-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #FAFAFA;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.perfil-foto { width: 100%; height: 100%; object-fit: cover; }
.perfil-media-video { background: #000; }
.perfil-media-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Selos. Descrevem o que o profissional OFERECE — nunca qual plano ele
   assina. O paciente não deve conseguir inferir quem pagou mais: isso
   seria comparação comercial dentro de uma vitrine de saúde. */
.perfil-selos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.perfil-selo {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid #E9DBC3;
  border-radius: 100px;
  padding: 5px 12px;
}
.perfil-selo-destaque {
  color: var(--navy);
  background: rgba(205, 170, 109, 0.16);
  border-color: var(--gold);
}

.btn-whatsapp {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  padding: 15px 20px;
}
.perfil-cta-nota {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.45;
}

/* ---- Coluna principal ---- */
.perfil-cabecalho { margin-bottom: 40px; }
.perfil-cabecalho h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.perfil-crp { font-size: 1rem; color: var(--navy); margin: 0 0 4px; }
.perfil-local { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

.perfil-secao { margin-bottom: 40px; }
.perfil-secao h2 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid #EDE5D8;
}

.perfil-temas .tag { font-size: 0.85rem; padding: 7px 14px; }
.perfil-bio p { font-size: 1.02rem; line-height: 1.75; }
.perfil-bio p:last-child { margin-bottom: 0; }

.perfil-dados { margin: 0; display: grid; gap: 18px; }
.perfil-dado dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.perfil-dado dd { margin: 0; font-weight: 600; color: var(--navy); }
/* Explicação da abordagem em linguagem de paciente. Ninguém que busca
   terapia sabe o que é DBT ou ACT — a sigla sozinha exclui justamente
   quem a página quer acolher. */
.perfil-explicacao {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.perfil-formacao { font-size: 0.95rem; margin-bottom: 8px; }
.perfil-formacao:last-child { margin-bottom: 0; }

.perfil-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.perfil-galeria img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.perfil-agendador {
  background: var(--white);
  border: 1px solid #EDE5D8;
  border-radius: var(--radius);
  padding: 28px;
}
.perfil-agendador h2 { border: 0; padding: 0; margin-bottom: 8px; }
.perfil-agendador p { font-size: 0.95rem; color: var(--text-muted); }

/* Aviso de emergência. Alguém em crise pode cair DIRETO aqui pelo
   Google, sem passar pelo diretório — e portanto sem ver o aviso de
   risco da busca. Esta página precisa do próprio. NÃO REMOVER. */
.perfil-emergencia {
  background: rgba(205, 170, 109, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 18px 22px;
  margin-top: 40px;
}
.perfil-emergencia p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
}
.perfil-emergencia a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* Endereços de atendimento presencial (seção "Onde atendo").
   BAIRRO, nunca endereço completo — decisão de segurança do
   profissional. O número vai no WhatsApp, quando já há vínculo. */
.perfil-enderecos { display: grid; gap: 14px; margin-bottom: 12px; }
.perfil-enderecos li {
  background: var(--white);
  border: 1px solid #EDE5D8;
  border-radius: 8px;
  padding: 14px 18px;
}
.perfil-endereco-bairro {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.perfil-endereco-cidade {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.perfil-endereco-ref {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.perfil-enderecos-nota {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.perfil-relacionados {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid #EDE5D8;
}
.perfil-relacionados h2 { margin-bottom: 28px; }

.perfil-404 { text-align: center; padding: 80px 0; }

/* Barra fixa de contato no mobile. Sem ela, o botão de contato rola
   para fora da tela junto com a foto — e some exatamente quando o
   paciente terminou de ler a bio e se convenceu. */
.perfil-barra-mobile { display: none; }

@media (max-width: 900px) {
  .perfil-grid { grid-template-columns: 1fr; gap: 36px; }
  .perfil-lateral { position: static; max-width: 460px; }

  /* O botão da lateral some no mobile: quem assume é a barra fixa. */
  .perfil-lateral .btn-whatsapp,
  .perfil-lateral .perfil-cta-nota { display: none; }

  .perfil-barra-mobile {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #EDE5D8;
  }
  .perfil-barra-mobile .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 1rem;
  }

  /* Espaço para a barra não cobrir o rodapé. */
  .site-footer { padding-bottom: 90px; }
}
