/* =============================================
   PROFISSIONAIS CERTIFICADOS
   Brandbook: Dra. Carolina Quedas
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');

/* ── BRAND TOKENS ─────────────────────────── */
:root {
  --navy:   #091934;
  --orange: #A14D3A;
  --beige:  #E4DFD9;
  --white:  #F7F7F7;
  --mid:    #5a6375;
  --radius: 3px;
  --shadow: 0 2px 16px rgba(9,25,52,.10);
}

/* ── RESET ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  background: var(--beige);
  color: var(--navy);
  line-height: 1.65;
  font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── LEGIBILIDADE: laranja em fundo navy ─── */
/* Nunca usar texto laranja fino em fundo escuro — usar bold ou beige */
.header .eyebrow,
.perfil-especialidade,
.card-especialidade,
.secao-label,
.secao-rule,
.sidebar-card .secao-label,
.card-label,
.tag {
  font-weight: 700;
}

/* ── HEADER ───────────────────────────────── */
.header {
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-logo {
  display: flex;
  flex-direction: column;
}
.header-logo .eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1;
}
.header-logo .title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.header-back {
  font-size: 0.75rem;
  color: rgba(247,247,247,.5);
  letter-spacing: 0.08em;
  transition: color .2s;
}
.header-back:hover { color: var(--orange); }

/* ── HERO STRIP ───────────────────────────── */
.hero {
  background: var(--navy);
  padding: 48px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--orange);
}
.hero .eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  color: var(--white);
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero .rule {
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 14px;
}
.hero p {
  font-size: 0.88rem;
  color: rgba(247,247,247,.55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── FILTROS ──────────────────────────────── */
.filtros-wrap {
  background: var(--white);
  border-bottom: 1px solid rgba(9,25,52,.08);
  position: sticky;
  top: 64px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.filtros {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filtros select,
.filtros input[type="text"] {
  padding: 10px 14px;
  border: 1.5px solid rgba(9,25,52,.15);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--white);
  color: var(--navy);
  min-width: 180px;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a6375'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filtros input[type="text"] {
  background-image: none;
  padding-right: 14px;
}
.filtros select:focus,
.filtros input:focus {
  outline: none;
  border-color: var(--orange);
}
.filtros .contador {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--mid);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── GRID ─────────────────────────────────── */
.grid-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* ── CARD ─────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(9,25,52,.13);
}
.card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.card-foto {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--beige);
}
.card-foto-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
  border: 2px solid rgba(161,77,58,.2);
}
.card-info { flex: 1; min-width: 0; }
.card-nome {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 2px;
}
.card-especialidade {
  font-size: 0.78rem;
  color: var(--orange);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.card-conselho {
  font-size: 0.74rem;
  color: var(--mid);
}
.card-local {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--mid);
}

/* Tags de público atendido */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 2px;
  background: rgba(161,77,58,.1);
  color: var(--orange);
  border: 1px solid rgba(161,77,58,.2);
}
.tag-plano {
  background: rgba(9,25,52,.06);
  color: var(--navy);
  border-color: rgba(9,25,52,.15);
}

/* Tag de especialidade — estilo diferente das tags de público */
.tag-esp {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--navy);
  color: var(--beige);
  border: 1px solid rgba(9,25,52,.3);
}

/* Badges de certificação */
.badge-cert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}
.badge-pos {
  background: var(--orange);
  color: var(--white);
}
.badge-aimtea {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
/* Versão clara para fundo navy (no topo do perfil) */
.badge-pos-light {
  background: rgba(161,77,58,.85);
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}
.badge-aimtea-light {
  background: transparent;
  color: var(--beige);
  border: 1.5px solid rgba(228,223,217,.5);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}

/* Banner de cursos */
.banner-cursos {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.banner-cursos-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.banner-cursos p {
  font-size: 0.82rem;
  color: rgba(247,247,247,.65);
}
.banner-cursos p strong {
  color: var(--white);
  font-weight: 700;
}
.btn-cursos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s;
}
.btn-cursos:hover { background: #8a3f2e; }

/* Botão ligar */
.btn-ligar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: var(--beige);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1.5px solid rgba(9,25,52,.15);
  transition: background .2s;
}
.btn-ligar:hover { background: #d5cfc9; }

.btn-ver {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background .2s;
  margin-top: auto;
}
.btn-ver:hover { background: var(--orange); }

/* ── VAZIO ────────────────────────────────── */
.vazio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--mid);
}
.vazio p { font-size: 0.9rem; margin-top: 12px; }

/* ── PERFIL ───────────────────────────────── */
.perfil-wrap {
  max-width: 860px;
  margin: 40px auto 60px;
  padding: 0 24px;
}
.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: opacity .2s;
}
.btn-voltar:hover { opacity: .7; }

.perfil-card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.perfil-topo {
  background: var(--navy);
  padding: 36px 36px 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.perfil-foto {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(161,77,58,.4);
  flex-shrink: 0;
}
.perfil-foto-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 3px solid rgba(161,77,58,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
}
.perfil-topo-info { flex: 1; }
.perfil-nome {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}
.perfil-especialidade {
  font-size: 0.9rem;
  color: var(--orange);
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}
.perfil-conselho {
  font-size: 0.8rem;
  color: rgba(247,247,247,.45);
  margin-bottom: 16px;
}
.perfil-local {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(247,247,247,.6);
}

.perfil-corpo {
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
.secao { margin-bottom: 28px; }
.secao:last-child { margin-bottom: 0; }
.secao-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.secao-rule {
  width: 32px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 12px;
}
.secao p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

/* Contatos no perfil */
.contatos-lista { display: flex; flex-direction: column; gap: 10px; }
.contato-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--mid);
}
.contato-item a { color: var(--orange); transition: opacity .2s; }
.contato-item a:hover { opacity: .7; }
.contato-icone {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Botões CTA */
.cta-botoes { display: flex; flex-direction: column; gap: 10px; }
.btn-wpp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  transition: filter .2s;
}
.btn-wpp:hover { filter: brightness(0.9); }
.btn-email-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background .2s;
}
.btn-email-cta:hover { background: var(--orange); }
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 20px;
  background: var(--beige);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid rgba(9,25,52,.12);
  transition: background .2s;
}
.btn-social:hover { background: rgba(161,77,58,.1); }

/* Sidebar do perfil */
.perfil-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--beige);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  padding: 18px 16px;
}
.sidebar-card .secao-label { margin-bottom: 12px; }

/* ── FOOTER ───────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 2px solid var(--orange);
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(247,247,247,.35);
  letter-spacing: 0.08em;
}

/* ── ADMIN ────────────────────────────────── */
.admin-wrap { max-width: 1080px; margin: 32px auto; padding: 0 24px; }
.a-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.a-header h2 { font-size: 1.3rem; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius); font-size: 0.82rem; font-weight: 600; letter-spacing: .05em; cursor: pointer; border: none; font-family: inherit; transition: background .2s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #8a3f2e; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #0d2449; }
.btn-ghost { background: var(--beige); color: var(--navy); border: 1.5px solid rgba(9,25,52,.15); }
.btn-ghost:hover { background: rgba(161,77,58,.1); }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.a-tabela { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 32px; }
.a-tabela table { width: 100%; border-collapse: collapse; }
.a-tabela th, .a-tabela td { padding: 11px 16px; text-align: left; border-bottom: 1px solid rgba(9,25,52,.07); font-size: 0.83rem; }
.a-tabela th { background: var(--navy); color: rgba(247,247,247,.6); font-size: 0.67rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.a-tabela td img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.a-tabela tr:last-child td { border-bottom: none; }
.a-tabela tr:hover td { background: rgba(228,223,217,.35); }
.acoes { display: flex; gap: 6px; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; border-left: 4px solid var(--orange); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 0; }
.f-group label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mid); margin-bottom: 6px; }
.f-group input, .f-group select, .f-group textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid rgba(9,25,52,.15); border-radius: var(--radius); font-size: 0.88rem; font-family: inherit; background: var(--white); color: var(--navy); transition: border-color .2s;
}
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { outline: none; border-color: var(--orange); }
.f-group textarea { min-height: 90px; resize: vertical; }
.f-full { grid-column: 1 / -1; }
.check-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.check-item { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; cursor: pointer; }
.check-item input { width: auto; accent-color: var(--orange); }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.85rem; }
.alert-ok { background: rgba(37,211,102,.1); color: #1a7a40; border-left: 3px solid #25D366; }
.alert-err { background: rgba(192,57,43,.1); color: #c0392b; border-left: 3px solid #c0392b; }

/* Login */
.login-wrap { max-width: 380px; margin: 80px auto; padding: 0 24px; }
.login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border-top: 4px solid var(--orange); text-align: center; }
.login-card h2 { color: var(--navy); margin-bottom: 24px; font-size: 1.2rem; }

/* Import */
.import-area { border: 2px dashed rgba(161,77,58,.35); border-radius: var(--radius); padding: 40px; text-align: center; background: rgba(228,223,217,.4); }
.import-area p { color: var(--mid); margin-bottom: 16px; font-size: 0.88rem; }

/* ── RESPONSIVO ───────────────────────────── */
@media (max-width: 760px) {
  .perfil-topo { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .perfil-local { justify-content: center; }
  .perfil-corpo { grid-template-columns: 1fr; padding: 24px 20px; }
  .perfil-sidebar { order: -1; }
  .cta-botoes { flex-direction: row; flex-wrap: wrap; }
  .btn-wpp, .btn-email-cta { flex: 1; min-width: 140px; }
  .filtros-wrap { position: static; box-shadow: none; }
  .filtros { flex-direction: column; align-items: stretch; }
  .filtros select, .filtros input { min-width: unset; width: 100%; }
  .filtros .contador { margin-left: 0; text-align: right; }
  .grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 36px 16px 44px; }
  .cta-botoes { flex-direction: column; }
  .btn-wpp, .btn-email-cta { flex: none; }
}
