/* ═══════════════════════════════════════════════════════════════
   GUIA SAÚDE VILHENA — public.css
   Estilos da área pública: index + profissionais
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-600) 50%, var(--sky-500) 100%);
  color: var(--white);
  padding: var(--space-16) 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(14,165,233,.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  font-size: .8125rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  max-width: 700px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #93c5fd, #e0f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.7;
}
.hero-search {
  width: 100%;
  max-width: 580px;
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  overflow: hidden;
}
.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--gray-800);
  background: transparent;
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--primary-dark); }
.hero-stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
}

/* ── HOW IT WORKS ─────────────────────────────────────────────── */
.how-it-works {
  padding: var(--space-16) 0;
  background: var(--white);
}
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--space-3);
}
.section-header h2 { margin-bottom: var(--space-3); }
.section-header p { color: var(--text-secondary); max-width: 480px; margin: 0 auto; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}
.step-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  transition: all var(--transition);
}
.step-card:hover {
  background: var(--white);
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800; color: var(--white);
  margin: 0 auto var(--space-4);
  box-shadow: var(--shadow-blue);
}

.step-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.step-card p  { font-size: .875rem; }

/* ── SPECIALTIES SECTION ──────────────────────────────────────── */
.specialties-section {
  padding: var(--space-16) 0;
  background: var(--surface);
}
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
}
.spec-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.spec-card:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.spec-icon  { font-size: 1.75rem; margin-bottom: var(--space-2); }
.spec-name  { font-size: .875rem; font-weight: 600; color: var(--gray-700); }

/* ── CTA SECTION (HOME) ───────────────────────────────────────── */
.cta-section {
  padding: var(--space-20) 0;
  background: var(--surface);
}
.cta-card {
  background: #1a3a8f;
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-card::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; width: 100%; max-width: 720px; }
.cta-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.cta-content h2 { 
  color: var(--white); 
  font-size: clamp(1.5rem, 4vw, 2.25rem); 
  margin-bottom: var(--space-4); 
  line-height: 1.2;
}
.cta-content p { 
  color: rgba(255,255,255,0.8); 
  font-size: 1.125rem; 
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}


.btn-white {
  background: var(--white);
  color: var(--blue-700);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: var(--blue-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════════════════
   LISTAGEM DE PROFISSIONAIS
   ═══════════════════════════════════════════════════════════════ */

/* ── PAGE HEADER ──────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  padding: var(--space-10) 0 var(--space-8);
}
.page-header h1 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-1); }
.page-header p  { color: rgba(255,255,255,.8); font-size: .9375rem; }

/* ── SEARCH BAR (above listing) ───────────────────────────────── */
.search-bar-wrap {
  padding: var(--space-5) 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--navbar-height);
  z-index: 50;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.search-input-wrap svg { color: var(--gray-400); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: .9375rem;
  color: var(--gray-800);
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--gray-400); }
.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 11px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-toggle-btn:hover { border-color: var(--blue-300); color: var(--primary); }

/* ── LAYOUT: SIDEBAR + CONTENT ────────────────────────────────── */
.listing-layout {
  padding: var(--space-6) 0 var(--space-16);
}
.listing-inner {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ── SIDEBAR FILTERS ──────────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 60px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--blue-50);
}
.sidebar-header h3 { font-size: .9375rem; color: var(--gray-800); }
.clear-filters-btn {
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.clear-filters-btn:hover { color: var(--primary-dark); }
.clear-filters-btn:disabled { opacity: .4; cursor: not-allowed; }

.filter-section {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
}
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}
.filter-options { display: flex; flex-direction: column; gap: var(--space-2); }
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: .875rem;
  color: var(--gray-700);
  padding: 4px 0;
  transition: color var(--transition);
  user-select: none;
}
.filter-option:hover { color: var(--primary); }
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.filter-count {
  margin-left: auto;
  font-size: .7rem;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* ── RESULTS AREA ─────────────────────────────────────────────── */
.results-area { min-width: 0; }
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.results-count {
  font-size: .9rem;
  color: var(--text-secondary);
}
.results-count strong { color: var(--gray-800); }
.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .875rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--blue-400); }

/* ── PROFESSIONAL CARDS ───────────────────────────────────────── */
.prof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.prof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.prof-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue-500), var(--sky-500));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}
.prof-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.prof-card:hover::before { opacity: 1; }

.prof-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.prof-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue-700);
  flex-shrink: 0;
  border: 2px solid var(--blue-100);
}
.prof-main { flex: 1; min-width: 0; }
.prof-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-specialty-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  background: var(--blue-100);
  color: var(--blue-700);
  margin-bottom: var(--space-2);
}
.prof-crm {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.prof-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: 76px; /* avatar width + gap */
}
.prof-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: .8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.prof-info-item svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--gray-400);
}

.prof-card-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: .8125rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.action-link-whatsapp {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
.action-link-whatsapp:hover { background: #bbf7d0; border-color: #86efac; }
.action-link-instagram {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #fbcfe8;
}
.action-link-instagram:hover { background: #fbcfe8; border-color: #f9a8d4; }
.action-link-maps {
  background: var(--blue-50);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.action-link-maps:hover { background: var(--blue-100); border-color: var(--blue-200); }
.action-link-phone {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-200);
}
.action-link-phone:hover { background: var(--gray-200); }

/* ── SKELETON CARDS ───────────────────────────────────────────── */
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sk-top { display: flex; align-items: center; gap: var(--space-4); }
.sk-avatar { width: 60px; height: 60px; border-radius: 50%; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.sk-line { height: 14px; }
.sk-line.w-60 { width: 60%; }
.sk-line.w-40 { width: 40%; }
.sk-line.w-80 { width: 80%; }
.sk-actions { display: flex; gap: var(--space-3); }
.sk-action { height: 34px; border-radius: var(--radius-md); }
.sk-action.w-120 { width: 120px; }
.sk-action.w-100 { width: 100px; }
.sk-action.w-80  { width: 80px; }

/* ── ACTIVE FILTER TAGS ───────────────────────────────────────── */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.filter-tag:hover { background: var(--blue-200); }
.filter-tag svg { width: 12px; height: 12px; }

/* ── RESPONSIVE LISTING ───────────────────────────────────────── */
@media (max-width: 900px) {
  .listing-inner {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    inset: 0;
    top: var(--navbar-height);
    width: 300px;
    height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    z-index: 80;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 79;
  }
  .sidebar-backdrop.open { display: block; }
  .filter-toggle-btn { display: flex; }
  .prof-card-info { padding-left: 0; }
}

@media (max-width: 640px) {
  /* Navbar mobile adjustments */
  .logo { font-size: 0.95rem; gap: var(--space-1); }
  .logo-icon { width: 30px; height: 30px; }
  .logo-icon svg { width: 14px; height: 14px; }
  .navbar .btn-sm { padding: 6px 10px; font-size: 0.75rem; }

  /* Hero mobile adjustments */
  .hero h1 { font-size: 1.875rem; }
  .hero-search { border-radius: var(--radius-md); }
  .hero-search input { padding: 12px 14px; font-size: 0.875rem; }
  .hero-search-btn { padding: 10px 14px; font-size: 0.8125rem; gap: var(--space-1); }
  .hero-search-btn svg { width: 14px; height: 14px; }
  
  .hero-stats { gap: var(--space-5); }
  .hero-stat-num { font-size: 1.375rem; }
  .cta-actions { justify-content: center; }
  .cta-card { padding: var(--space-8) var(--space-6); flex-direction: column; text-align: center; }
  .cta-content p { font-size: 1rem; margin-bottom: var(--space-6); }
  .cta-visual { display: none; }
  
  .prof-card-actions { justify-content: flex-start; gap: var(--space-2); }
  .action-text { display: none; }
  .action-link { padding: 10px 12px; }
  .action-link-whatsapp .action-text { display: inline; }
  .action-link-whatsapp { padding: 8px 14px; }
  /* Profissionais page toolbar */
  .search-bar { gap: var(--space-2); }
  .search-input-wrap { padding: 0 var(--space-3); }
  .search-input-wrap input { font-size: 0.875rem; padding: 10px 0; }
  .filter-toggle-btn { padding: 10px 14px; font-size: 0.8125rem; gap: var(--space-1); flex-shrink: 0; }
  
  .results-toolbar { 
    flex-direction: column; 
    align-items: stretch; 
    gap: var(--space-3); 
  }
  .results-count { font-size: 0.8125rem; }
  .sort-wrap { width: 100%; }
  .sort-select { width: 100%; }
}

@media (max-width: 420px) {
  .filter-toggle-btn .btn-text { display: none; }
  .filter-toggle-btn { padding: 10px 12px; }
}

/* ── BOTTOM SHEET (MOBILE CTA) ────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  z-index: 950;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bottom-sheet-header h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
}

.bottom-sheet-close {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.2s;
}

.bottom-sheet-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Visibilidade Desktop vs Mobile CTA */
.btn-mobile-menu { display: none; }

@media (max-width: 768px) {
  .btn-desktop-cta { display: none; }
  .btn-mobile-menu { 
    display: flex; 
    padding: 8px;
    margin-left: 8px;
  }
}
