/* ===========================
   Tokens e base
   =========================== */

:root {
  --azul: #0ea5e9;
  --azul-escuro: #0f172a;
  --verde: #10b39c;
  --cinza-bg: #f5f7fb;
  --cinza-borda: #e2e8f0;
  --cinza-texto: #6b7280;
  --branco: #ffffff;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--cinza-bg);
  color: var(--azul-escuro);
}

body.bg-page {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #eaf6ff 0%, #f5f7fb 24%, #f5f7fb 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Containers e seções */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 32px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-header.center {
  justify-content: center;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--azul-escuro);
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--cinza-texto);
}

.section-link {
  font-size: 13px;
  color: var(--azul);
  font-weight: 500;
}

/* Textos utilitários */

.muted {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.hero-subtitle {
  max-width: 460px;
}

.muted-light {
  color: rgba(241, 245, 249, 0.9);
}

.pre-line {
  white-space: pre-line;
}

/* ===========================
   Header
   =========================== */

.topbar-public {
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.logo-nav {
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
}

.nav-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-title {
  font-weight: 600;
  font-size: 16px;
}

.nav-subtitle {
  font-size: 11px;
  color: var(--cinza-texto);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.nav-link {
  color: var(--cinza-texto);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--azul-escuro);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Topbar escura para pagina de perfil */

.profile-page .topbar {
  background: linear-gradient(90deg, #00a9c7, #4da7e9);
  color: #e5f5ff;
  padding: 8px 0;
  font-size: 12px;
}

.profile-page .topbar .link-light {
  color: #e5f5ff;
  text-decoration: underline;
}

.profile-page .topbar .btn-primary {
  padding: 8px 16px;
  border-radius: 999px;
}

.profile-page .brand-logo {
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  color: #ecfeff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.profile-page .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-page .brand-text {
  color: #cbd5f5;
}

/* Topbar do perfil: logo à esquerda, botão à direita */

.profile-page .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-page .topbar-actions {
  display: flex;
  align-items: center;
}

/* ===========================
   Botões / Chips / Badge
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--azul-escuro);
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: #dcc549;
  color: #5f3412;
  border-color: #dcc549;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.btn-secondary {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.btn-secondary:hover {
  background: #dbeafe;
}

.btn-ghost {
  background: #eff6ff;
  color: #4895b4;
  border-color: transparent;
}

.btn-ghost:hover {
  background: #dde5ff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #e5f1ff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  min-width: 150px;
}

.btn-compact {
  padding-inline: 14px;
  padding-block: 6px;
  font-size: 12px;
}

.chip {
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
  color: var(--cinza-texto);
  cursor: pointer;
}

.chip-active {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.badge-soft {
  background: rgba(15, 23, 42, 0.9);
}

.badge-light {
  background: rgba(15, 23, 42, 0.5);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

/* ===========================
   Hero – página de profissionais
   =========================== */

.hero {
  padding: 32px 0 36px;
}

.hero-soft.hero-banner {
  background: linear-gradient(135deg, #50a3b4, #38bdf8);
  color: #ffffff;
}

.hero-title {
  margin: 16px 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Grid hero (texto + banner) */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* Card de busca */

.search-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr auto; /* 2 inputs + botão */
  gap: 10px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label {
  font-size: 11px;
  font-weight: 600;
  color: #e0f2fe;
}

.input-icon {
  position: relative;
}

.input-icon .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 9px 12px 9px 32px;
  font-size: 13px;
  outline: none;
  background-color: #f9fafb;
  color: var(--azul-escuro);
}

.input::placeholder {
  color: #9ca3af;
}

.input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

/* Ícones simplificados */

.icon-dr {
  border-radius: 50%;
  border: 2px solid #0ea5e9;
}

.icon-loc {
  border-radius: 50%;
  border: 2px solid #0f766e;
}

.icon-tag {
  border-radius: 4px;
  border: 2px dashed #f97316;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.search-modes {
  display: flex;
  gap: 6px;
}

.stats-bar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat-number {
  font-size: 15px;
  font-weight: 600;
}

.stat-label {
  font-size: 11px;
  color: #e5e7eb;
}

/* coluna do botão principal da busca */

.input-group-action .input-label {
  visibility: hidden;
}

.btn-search-main {
  width: 100%;
  height: 42px;
  border-radius: 999px;
}

/* ===========================
   FAIXA DE MÉTRICAS APÓS O HERO
   =========================== */

.metrics-strip {
  margin-top: 40px;
  margin-bottom: 40px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metrics-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.metrics-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
}

.metrics-content {
  display: flex;
  flex-direction: column;
}

.metrics-label {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 2px;
}

.metrics-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

/* Paletas por card */

.metrics-card-sky {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.metrics-card-emerald {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

.metrics-card-amber {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

/* ===========================
   Cards de especialidades
   =========================== */

.section-specialties {
  margin-top: 8px;
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.specialty-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--cinza-borda);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.specialty-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.specialty-card p {
  margin: 0;
  font-size: 12px;
  color: var(--cinza-texto);
}

.specialty-card:hover {
  border-color: var(--azul);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.specialty-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 18px;
}

.specialty-icon-blue {
  background: #e0f2fe;
  color: #0ea5e9;
}

.specialty-icon-green {
  background: #dcfce7;
  color: #16a34a;
}

.specialty-icon-rose {
  background: #fee2e2;
  color: #e11d48;
}

.specialty-icon-indigo {
  background: #e0e7ff;
  color: #4f46e5;
}

.specialty-icon-amber {
  background: #fef3c7;
  color: #d97706;
}

.specialty-icon-gray {
  background: #f3f4f6;
  color: #4b5563;
}

/* ===========================
   Resultados / cards de médicos
   =========================== */

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.result-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid var(--cinza-borda);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.result-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.result-photo {
  flex-shrink: 0;
}

.result-photo img,
.result-avatar,
.result-card img:first-child {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
}

.result-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.result-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.result-meta {
  margin: 0;
  font-size: 12px;
  color: var(--cinza-texto);
}

.result-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.tag-rating {
  background: #fef3c7;
  color: #b45309;
}

.tag-available {
  background: #dcfce7;
  color: #166534;
}

.tag-muted {
  color: #6b7280;
}

.slot-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.slot {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
}

.slot-primary {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
}

/* Campos/slots genéricos usados no agendamento (perfil) */

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 2px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 9px 12px;
  font-size: 13px;
  background: #f9fafb;
  outline: none;
  color: #0f172a;
}

.field-textarea {
  border-radius: 14px;
  min-height: 80px;
  resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45);
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.slot-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 11px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.12s;
}

.slot-btn:hover {
  border-color: var(--azul);
  background: #eff6ff;
}

.slot-btn.primary {
  background: #e0f2fe; /* azul claro para manter contraste */
  border-color: #0284c7;
  border-width: 2px;
  color: #0f172a;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35), 0 10px 22px rgba(14, 165, 233, 0.2);
  font-weight: 700;
}

.booking-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  justify-content: flex-end;
}

.note-safe {
  font-size: 11px;
  color: var(--cinza-texto);
  margin-top: 4px;
}

/* ===========================
   Como funciona (why-cards)
   =========================== */

.cards-why {
  padding-top: 12px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.why-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--cinza-borda);
  box-shadow: var(--shadow-soft);
}

.why-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.why-card p {
  font-size: 12px;
}

.why-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  font-size: 14px;
}

/* ===========================
   Banner para profissionais
   =========================== */

.banner-info {
  background: linear-gradient(90deg, #0ea5e9, #0f172a);
  color: #ffffff;
  padding: 32px 0 36px;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.banner-info h3 {
  margin: 10px 0;
  font-size: 22px;
  font-weight: 600;
}

.banner-list {
  margin: 12px 0 16px;
  padding-left: 0;
  list-style: none;
  font-size: 12px;
  color: rgba(241, 245, 249, 0.9);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.banner-illustration {
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #e5e7eb;
  background: radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.3),
      transparent
    ),
    radial-gradient(
      circle at bottom right,
      rgba(16, 185, 129, 0.25),
      transparent
    );
}

/* ===========================
   Footer
   =========================== */

.footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 10px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mini {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #4b5563;
}

/* ===========================
   PÁGINA DO PROFISSIONAL (profile-page)
   =========================== */

/* Fundo com leve degradê */
body.profile-page {
  background: linear-gradient(180deg, #e0f2ff 0, #f5f7fb 260px, #f5f7fb 100%);
}

body.profile-page .main {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Hero do perfil */

.profile-page .hero-profile {
  background: linear-gradient(90deg, #00a9c7, #4da7e9);
  padding: 32px 0 40px;
  box-shadow: none;
  margin-bottom: 16px;
  color: #ffffff;
}

.profile-page .hero-profile .hero-inner {
  background: linear-gradient(90deg, #00a9c7, #4da7e9);
  border-radius: 18px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: center;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
}

/* Bloco médico (esquerda) */

.profile-page .hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-page .hero-avatar {
  width: 192px;
  height: 192px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.5);
  flex-shrink: 0;
  background: #fff;
}

.profile-page .hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-page .hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-page .hero-label {
  font-size: 12px;
  opacity: 0.9;
}

.profile-page .hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.profile-page .hero-sub {
  font-size: 0.92rem;
  opacity: 0.95;
}

.profile-page .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
}

.profile-page .hero-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.profile-page .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.profile-page .hero-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Card CTA à direita */

.profile-page .hero-side-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
  color: #fff;
}

.profile-page .hero-cta-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 6px;
}

.profile-page .hero-cta-text {
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.profile-page .hero-cta-price {
  margin-bottom: 10px;
}

.profile-page .hero-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-page .hero-cta-btn {
  width: 100%;
  background: #fff;
  border-color: #fff;
  color: #1d4ed8;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.profile-page .hero-cta-btn:hover {
  background: #f9fafb;
}

.profile-page .hero-cta-secondary {
  color: #3b66dd;
}

/* GRID PRINCIPAL – infos + agendamento */

.profile-page .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: flex-start;
}

/* Cards brancos */

.profile-page .profile-card {
  background: linear-gradient(145deg, #ffffff, #f9fbff);
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid #dbe4ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.profile-page .profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
  opacity: 0.18;
}

.profile-page section[aria-label="Informacoes do profissional"]
  > .profile-card
  + .profile-card {
  margin-top: 14px;
}

/* Cabeçalho de card */

.profile-page .card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-page .card-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.profile-page .card-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.profile-page .card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0 0;
  color: #0f172a;
  letter-spacing: 0.01em;
}

/* Conteúdo do card */

.profile-page .card-body,
.profile-page .text-small,
.profile-page .list-compact {
  font-size: 0.88rem;
  color: #111827;
}

.profile-page .card-body p,
.profile-page .card-body li,
.profile-page .text-small {
  color: #374151;
  line-height: 1.55;
}

.profile-page .card-body strong {
  color: #111827;
}

.profile-page .list-compact {
  padding-left: 18px;
  margin: 6px 0 0;
}

.profile-page .list-compact li {
  position: relative;
  margin-bottom: 4px;
}

.profile-page .list-compact li::marker {
  color: #0ea5e9;
}

/* Ícones por seção (sem mexer no HTML) */

.profile-page section[aria-label="Informacoes do profissional"] .card-title {
  position: relative;
  padding-left: 26px;
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  .card-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #0369a1;
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:nth-of-type(1)
  .card-title::before {
  content: "🩺";
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:nth-of-type(2)
  .card-title::before {
  content: "📈";
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:nth-of-type(3)
  .card-title::before {
  content: "📞";
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:nth-of-type(4)
  .card-title::before {
  content: "💰";
}

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:nth-of-type(5)
  .card-title::before {
  content: "⭐";
}

/* Destaque pro primeiro card da coluna esquerda */

.profile-page
  section[aria-label="Informacoes do profissional"]
  > .profile-card:first-of-type {
  border-color: #bfdbfe;
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.12);
}

/* Tabela de serviços & preços */

.profile-page .services-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
  font-size: 0.86rem;
}

.profile-page .services-table th,
.profile-page .services-table td {
  padding: 8px 6px;
  text-align: left;
}

.profile-page .services-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.profile-page .services-table tr + tr td {
  border-top: 1px solid #f1f5f9;
}

.profile-page .services-table td:nth-child(4) {
  font-weight: 600;
  color: #0f766e;
}

/* Convênios + idiomas/tags como chips */

.profile-page #pf-convenios,
.profile-page #pf-idiomas,
.profile-page #pf-tags,
.profile-page .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.profile-page #pf-convenios span,
.profile-page #pf-idiomas span,
.profile-page #pf-tags span,
.profile-page .tag-row .tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #edf2ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Opiniões */

.profile-page .review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-page .review-item {
  font-size: 0.86rem;
  padding-top: 6px;
  border-top: 1px dashed #e5e7eb;
  margin-top: 6px;
}

.profile-page .review-score-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fbbf24; /* dourado */
  text-shadow: 0 0 4px rgba(251, 191, 36, 0.5);
}

.profile-page .review-score-sub {
  font-size: 0.8rem;
  color: #6b7280;
}

.profile-page .review-item .review-text {
  color: #4b5563;
}

.profile-page .review-item .stars {
  color: #fbbf24;
  text-shadow: 0 0 4px rgba(251, 191, 36, 0.5);
}

.profile-page .review-header a {
  color: #2563eb;
  font-weight: 500;
}

/* Card de agendamento na direita */

.profile-page .booking-card {
  position: sticky;
  top: 16px;
}

.profile-page .booking-card .profile-card {
  background: linear-gradient(145deg, #ffffff, #f3f6ff);
  border-color: #c7d2fe;
}

.profile-page .booking-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.profile-page .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-page .form-row > div {
  flex: 1;
  min-width: 0;
}

/* Campos dentro do card de agendamento */

.profile-page .booking-card .field-input,
.profile-page .booking-card .field-select,
.profile-page .booking-card .field-textarea {
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.86rem;
  border-color: #d1d5f0;
  color: #0f172a;
}

.profile-page .booking-card .field-textarea {
  border-radius: 12px;
}

.profile-page .booking-card .field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.profile-page .slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.profile-page .slots .slot-btn {
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f9fafb;
  font-size: 0.8rem;
  padding: 6px 10px;
}

.profile-page .slots .slot-btn:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.profile-page .note-safe {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Ajuste em telas maiores */

@media (min-width: 1024px) {
  body.profile-page .profile-grid {
    gap: 24px;
  }
}

/* ===========================
   Responsivo global
   =========================== */

@media (max-width: 960px) {
  /* HEADER */
  .topbar-public .nav-bar {
    flex-wrap: wrap;
    padding-block: 10px;
  }

  .nav-left {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-links {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 14px;
    margin-top: 6px;
  }

  .nav-actions {
    flex: 1 1 100%;
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }

  .nav-actions .btn {
    flex: 1;
    font-size: 13px;
    padding-inline: 10px;
  }

  /* HERO EM COLUNA ÚNICA */

  .hero {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  body.bg-page .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px;
  }

  .hero-right {
    order: 0;
  }

  .hero-left {
    order: 1;
  }

  .hero-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  /* FORM DE BUSCA EMPILHADO */

  .search-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .input-group {
    width: 100%;
  }

  .btn-search-main,
  .input-group-action .btn-full {
    width: 100%;
  }

  .stats-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* KPIs EM 1 COLUNA */

  .metrics-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* SEÇÕES EM 1 COLUNA */

  .section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .specialties-grid,
  .result-grid,
  .why-grid,
  .banner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  .result-card {
    width: 100%;
  }

  .banner-grid {
    text-align: left;
  }

  /* Perfil – grids em 1 coluna */

  .profile-page .hero-profile .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-page .hero-main {
    margin-bottom: 12px;
  }

  .profile-page .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-page .booking-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .nav-logo {
    max-height: 28px;
  }

  .section {
    padding: 24px 0;
  }

  .hero {
    padding-bottom: 28px;
  }

  .result-card {
    padding: 10px;
    border-radius: 18px;
  }

  .result-photo img,
  .result-avatar,
  .result-card img:first-child {
    width: 72px;
    height: 72px;
  }

  .profile-page .hero-avatar {
    width: 78px;
    height: 78px;
  }

  .profile-page .hero-name {
    font-size: 1.28rem;
  }

  .profile-page .hero-cta-btn {
    width: 100%;
  }
}




/* Hero contato e redes */
.contact-list { display: grid; gap: 6px; }
.contact-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #e0f2fe; }
.contact-item a { color: #f8fafc; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: rgba(255,255,255,0.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.contact-icon.map { background: rgba(59, 130, 246, 0.25); }
.contact-icon.phone { background: rgba(16, 185, 129, 0.25); }
.contact-icon.web { background: rgba(236, 72, 153, 0.25); }
.social-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #0f172a;
  background: #e0f2fe;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 14px rgba(15,23,42,0.15);
}
.social-chip::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
}
.social-chip.ig {
  background: #fce7f3;
  color: #b91c1c;
  border-color: #fbcfe8;
}
.social-chip.ig::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><linearGradient id='g' x1='0' y1='32' x2='32' y2='0' gradientUnits='userSpaceOnUse'><stop stop-color='%23f58529'/><stop offset='0.5' stop-color='%23dd2a7b'/><stop offset='1' stop-color='%238150c4'/></linearGradient><rect width='32' height='32' rx='7' fill='url(%23g)'/><rect x='9' y='9' width='14' height='14' rx='4' stroke='%23fff' stroke-width='2' fill='none'/><circle cx='16' cy='16' r='4' fill='none' stroke='%23fff' stroke-width='2'/><circle cx='22' cy='10' r='1.6' fill='%23fff'/></svg>");
}
.social-chip.fb {
  background: #e0ecff;
  color: #1d4ed8;
}
.social-chip.fb::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><rect width='32' height='32' rx='6' fill='%233b5998'/><path fill='%23fff' d='M19.5 7h-3c-1.7 0-3 1.3-3 3v3h-3v4h3v8h4v-8h3l1-4h-4v-2c0-.6.4-1 1-1h3z'/></svg>");
}

/* Foco no agendamento */
#focus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 98;
}
.focus-agendar #focus-overlay {
  opacity: 1;
  pointer-events: auto;
}
.focus-agendar .booking-card {
  position: relative;
  z-index: 99;
  transform: scale(1.02);
  box-shadow: 0 30px 60px rgba(15,23,42,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.focus-agendar .card.profile-card {
  background: #ffffff;
}

