/* ============================================================================
   ENDOCLÍNICA — Folha de estilos mobile-first
   Identidade: vinho #882137 · Manrope · estilo tradicional-premium
   Filosofia: começa pelo mobile, expande pra desktop com @media (min-width)
   ============================================================================ */

/* ===================== TOKENS / VARIÁVEIS ===================== */
:root {
  --vinho:           #882137;
  --vinho-escuro:    #5E1626;
  --vinho-suave:     #B5455B;
  --cinza:           #58595B;
  --cinza-claro:     #8A8B8D;
  --off-white:       #FAF8F6;
  --bege:            #F4E8E5;
  --branco:          #FFFFFF;
  --texto:           #2B2B2B;
  --texto-suave:     #5E5852;
  --borda:           #E5E0DC;
  --verde:           #2E7D5B;
  --whatsapp:        #25D366;

  --fonte: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 24px;

  --sombra-sm: 0 1px 3px rgba(43,43,43,.06), 0 1px 2px rgba(43,43,43,.04);
  --sombra-md: 0 4px 12px rgba(43,43,43,.08), 0 2px 4px rgba(43,43,43,.04);
  --sombra-lg: 0 12px 32px rgba(136,33,55,.10), 0 4px 12px rgba(43,43,43,.06);
}

/* ===================== RESET ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Crítico pra evitar overflow horizontal em mobile */
  min-width: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compensa altura do header sticky no scroll por âncora */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--fonte);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Garante que nada nunca rola horizontalmente */
  overflow-x: hidden;
  /* Quando modal está aberto */
}
body.no-scroll {
  overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--vinho);
  text-decoration: none;
}
a:hover {
  color: var(--vinho-escuro);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--texto);
  /* Quebra palavras gigantes pra não estourar */
  overflow-wrap: anywhere;
  word-break: normal;
}

p {
  overflow-wrap: anywhere;
}

/* ===================== UTILITÁRIOS ===================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 640px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.section {
  padding: 56px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}
@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }
}

.section--bege { background: var(--bege); }
.section--branco { background: var(--branco); }

.section-header {
  text-align: center;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .section-header { margin-bottom: 48px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinho);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--texto-suave);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--vinho);
  color: var(--branco);
}
.btn--primary:hover {
  background: var(--vinho-escuro);
  color: var(--branco);
  box-shadow: 0 4px 12px rgba(136,33,55,.25);
}

.btn--outline {
  background: transparent;
  color: var(--vinho);
  border-color: var(--vinho);
}
.btn--outline:hover {
  background: var(--vinho);
  color: var(--branco);
}

.btn--ghost {
  background: var(--branco);
  color: var(--vinho);
  border-color: var(--borda);
}
.btn--ghost:hover {
  border-color: var(--vinho);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--branco);
}
.btn--whatsapp:hover {
  background: #1faa54;
  color: var(--branco);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.header.is-scrolled {
  background: rgba(250, 248, 246, 0.98);
  border-bottom-color: var(--borda);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand img {
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .brand img { height: 46px; }
}

/* Navegação desktop — escondida no mobile */
.nav-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav-desktop a {
    padding: 8px 14px;
    color: var(--texto);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .nav-desktop a:hover {
    color: var(--vinho);
    background: var(--bege);
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Link "Resultados de Exames" — escondido em mobile, vai pro menu hambúrguer */
.header-resultados {
  display: none;
}
@media (min-width: 1024px) {
  .header-resultados {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--vinho);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 4px;
  }
  .header-resultados:hover {
    color: var(--vinho-escuro);
  }
  .header-resultados .icon { width: 14px; height: 14px; }
}

/* Botão "Agendar" no header — escondido em mobile (tem o flutuante) */
.header-cta .btn-agendar {
  display: none;
}
@media (min-width: 1024px) {
  .header-cta .btn-agendar {
    display: inline-flex;
  }
}

/* Botão hambúrguer — só no mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: transparent;
}
.menu-toggle:hover { background: var(--bege); }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--texto);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Menu mobile (drawer) */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--branco);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
  overflow-y: auto;
}
.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--borda);
}
.nav-mobile-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
}
.nav-mobile-close:hover { background: var(--bege); }

.nav-mobile-list {
  padding: 8px 0;
  flex: 1;
}
.nav-mobile-list a {
  display: block;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--texto);
  border-bottom: 1px solid var(--borda);
}
.nav-mobile-list a:hover {
  background: var(--bege);
  color: var(--vinho);
}
.nav-mobile-list a.is-highlighted {
  color: var(--vinho);
}

.nav-mobile-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--borda);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Overlay quando menu mobile está aberto */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .nav-mobile, .nav-overlay { display: none; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Padding extra embaixo pro botão flutuante não tampar */
  padding: 60px 0 120px;
}
@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 80px 0 100px;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20,8,14,0.78) 0%, rgba(20,8,14,0.5) 60%, rgba(20,8,14,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-text {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--branco);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--branco);
}

.hero-title {
  font-size: clamp(1.875rem, 6.5vw, 3.5rem);
  line-height: 1.1;
  color: var(--branco);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-actions .btn--primary {
  background: var(--branco);
  color: var(--vinho);
  border-color: var(--branco);
}
.hero-actions .btn--primary:hover {
  background: var(--bege);
  color: var(--vinho-escuro);
}

.hero-actions .btn--outline {
  background: transparent;
  color: var(--branco);
  border-color: rgba(255,255,255,0.5);
}
.hero-actions .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--branco);
}

/* ===================== FAIXA DE CREDIBILIDADE ===================== */
.cred {
  background: var(--branco);
  padding: 32px 0;
  border-bottom: 1px solid var(--borda);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
@media (min-width: 768px) {
  .cred-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.cred-item {
  text-align: center;
}
.cred-num {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--vinho);
  line-height: 1;
  margin-bottom: 4px;
}
.cred-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
}
.cred-sub {
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-top: 4px;
}

/* ===================== SOBRE ===================== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.sobre-foto {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bege);
}
@media (min-width: 900px) {
  .sobre-foto { aspect-ratio: 4/5; }
}
.sobre-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sobre-texto p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto-suave);
  margin-bottom: 16px;
}
.sobre-texto p:last-of-type { margin-bottom: 24px; }

.sobre-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.sobre-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--texto);
}
.sobre-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46,125,91,0.12);
  color: var(--verde);
  display: grid;
  place-items: center;
}
.sobre-check-icon svg { width: 14px; height: 14px; }

/* ===================== CARDS DE CONDIÇÕES ===================== */
.condicoes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .condicoes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .condicoes-grid { grid-template-columns: repeat(3, 1fr); }
}

.condicao-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.condicao-card:hover {
  border-color: var(--vinho);
  transform: translateY(-2px);
  box-shadow: var(--sombra-lg);
}
.condicao-icon {
  width: 48px;
  height: 48px;
  background: var(--bege);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--vinho);
}
.condicao-icon svg { width: 24px; height: 24px; }
.condicao-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.condicao-card p {
  font-size: 0.9375rem;
  color: var(--texto-suave);
  line-height: 1.55;
}

/* ===================== TRATAMENTOS MODERNOS ===================== */
.tratamentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .tratamentos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.tratamentos-texto p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto-suave);
  margin-bottom: 16px;
}
.tratamentos-quote {
  border-left: 3px solid var(--vinho);
  padding: 12px 20px;
  background: var(--bege);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--texto);
  margin-top: 24px;
}

.tratamentos-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tratamento-item {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tratamento-item-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--bege);
  color: var(--vinho);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.tratamento-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.tratamento-item p {
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

/* ===================== BANNER OBESIDADE ===================== */
.banner-obesidade {
  background: linear-gradient(135deg, var(--vinho) 0%, var(--vinho-escuro) 100%);
  color: var(--branco);
  padding: 48px 0;
}
@media (min-width: 768px) {
  .banner-obesidade { padding: 72px 0; }
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .banner-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

.banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.banner-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.banner-titulo {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  color: var(--branco);
  margin-bottom: 16px;
}
.banner-texto {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.banner-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.banner-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.95);
}
.banner-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: grid;
  place-items: center;
}
.banner-check-icon svg { width: 14px; height: 14px; color: var(--branco); }

.banner-cta .btn--primary {
  background: var(--branco);
  color: var(--vinho);
  border-color: var(--branco);
}
.banner-cta .btn--primary:hover {
  background: var(--bege);
  color: var(--vinho-escuro);
}

/* ===================== EXAMES ===================== */
.exames-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .exames-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .exames-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 980px;
    margin: 0 auto;
  }
}

.exame-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.exame-card:hover {
  border-color: var(--vinho);
  box-shadow: var(--sombra-md);
}
.exame-card.is-destaque {
  border-color: var(--verde);
  position: relative;
}
.exame-destaque-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--verde);
  color: var(--branco);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.exame-icon {
  width: 48px;
  height: 48px;
  background: var(--bege);
  color: var(--vinho);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.exame-icon svg { width: 26px; height: 26px; }
.exame-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.exame-card p {
  font-size: 0.9375rem;
  color: var(--texto-suave);
  line-height: 1.55;
}

.exames-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===================== CORPO CLÍNICO ===================== */
.medicos-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 16px;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--texto-suave);
  transition: all 0.15s ease;
}
.filter-btn:hover {
  border-color: var(--vinho);
  color: var(--vinho);
}
.filter-btn.is-active {
  background: var(--vinho);
  color: var(--branco);
  border-color: var(--vinho);
}

.medicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .medicos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .medicos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .medicos-grid { grid-template-columns: repeat(4, 1fr); }
}

.medico-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.medico-card:hover {
  border-color: var(--vinho);
  transform: translateY(-3px);
  box-shadow: var(--sombra-lg);
}
.medico-card:focus-visible {
  outline: 2px solid var(--vinho);
  outline-offset: 2px;
}

.medico-foto {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bege);
  position: relative;
}
.medico-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.medico-card:hover .medico-foto img {
  transform: scale(1.04);
}

.medico-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vinho);
  background: linear-gradient(135deg, var(--bege), #FFFFFF);
}

.medico-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.medico-nome {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--texto);
}
.medico-role {
  font-size: 0.8125rem;
  color: var(--vinho);
  font-weight: 600;
  margin-bottom: 12px;
}
.medico-crm {
  font-size: 0.75rem;
  color: var(--texto-suave);
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--borda);
}
.medico-ver {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vinho);
  margin-top: 8px;
}

/* ===================== MODAL MÉDICO ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(43,43,43,0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--off-white);
  border-radius: var(--r-lg);
  max-width: 880px;
  width: 100%;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}

@media (min-width: 760px) {
  .modal {
    flex-direction: row;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: var(--branco);
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: var(--sombra-md);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.modal-close:hover {
  background: var(--vinho);
  color: var(--branco);
  transform: rotate(90deg);
}
.modal-close svg { width: 18px; height: 18px; }

.modal-foto {
  flex-shrink: 0;
  background: var(--bege);
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
}
@media (min-width: 760px) {
  .modal-foto {
    width: 320px;
    aspect-ratio: auto;
  }
}
.modal-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.modal-foto .medico-placeholder {
  font-size: 4rem;
}

.modal-body {
  flex: 1;
  padding: 24px 20px 20px;
  overflow-y: auto;
}
@media (min-width: 760px) {
  .modal-body {
    padding: 32px 32px 24px;
  }
}

.modal-nome {
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  margin-bottom: 6px;
  padding-right: 40px;
}
.modal-role {
  font-size: 0.9375rem;
  color: var(--vinho);
  font-weight: 600;
  margin-bottom: 4px;
}
.modal-crm {
  font-size: 0.8125rem;
  color: var(--texto-suave);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--borda);
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 20px;
}
.modal-section:last-of-type { margin-bottom: 24px; }
.modal-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vinho);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-title::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--vinho);
}
.modal-summary {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--texto);
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-block;
  padding: 5px 11px;
  background: var(--bege);
  color: var(--vinho);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.modal-cta {
  display: block;
}

/* ===================== ESPECIALIDADES ===================== */
.especialidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .especialidades-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.especialidade-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.especialidade-card:hover {
  border-color: var(--vinho);
  transform: translateY(-2px);
  box-shadow: var(--sombra-md);
}
.especialidade-icon {
  width: 56px;
  height: 56px;
  background: var(--bege);
  color: var(--vinho);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.especialidade-icon svg { width: 28px; height: 28px; }
.especialidade-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.especialidade-card p {
  font-size: 0.9375rem;
  color: var(--texto-suave);
  line-height: 1.5;
}

/* ===================== CONVÊNIOS ===================== */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 560px) {
  .convenios-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 900px) {
  .convenios-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.convenio-card {
  aspect-ratio: 3/2;
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  padding: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.convenio-card:hover {
  border-color: var(--vinho);
  transform: translateY(-2px);
}
.convenio-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.convenios-cta {
  text-align: center;
  margin-top: 32px;
}

/* ===================== UNIDADES ===================== */
.unidades-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .unidades-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .unidades-grid { grid-template-columns: repeat(3, 1fr); }
}

.unidade-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.unidade-card:hover {
  border-color: var(--vinho);
  transform: translateY(-3px);
  box-shadow: var(--sombra-lg);
}

.unidade-foto {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bege);
  overflow: hidden;
}
.unidade-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.unidade-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.unidade-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vinho);
  background: var(--bege);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.unidade-nome {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.unidade-endereco {
  font-size: 0.875rem;
  color: var(--texto-suave);
  line-height: 1.5;
  margin-bottom: 14px;
}

.unidade-horario {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  padding: 12px 0;
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  margin-bottom: 16px;
}
.unidade-horario svg {
  width: 16px;
  height: 16px;
  color: var(--vinho);
  flex-shrink: 0;
}

.unidade-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.unidade-actions .btn {
  flex: 1;
  min-width: 0;
}

/* ===================== COMO AGENDAR ===================== */
.passos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .passos-grid { grid-template-columns: repeat(3, 1fr); }
}

.passo {
  text-align: center;
  padding: 24px;
}
.passo-num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--vinho);
  color: var(--branco);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.passo h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
.passo p {
  font-size: 0.9375rem;
  color: var(--texto-suave);
  line-height: 1.55;
}

.passos-cta {
  text-align: center;
  margin-top: 32px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--vinho-escuro);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.footer-brand img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  transition: all 0.15s ease;
}
.footer-social a:hover {
  background: var(--branco);
  color: var(--vinho-escuro);
  border-color: var(--branco);
}
.footer-social svg { width: 64px; height: 64px; }

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--branco);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
}
@media (min-width: 560px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--branco); }

/* ===================== WHATSAPP FLUTUANTE ===================== */
.fab-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: var(--branco);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-whatsapp:hover {
  transform: translateY(-2px);
  color: var(--branco);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55);
}
.fab-whatsapp svg { width: 28px; height: 28px; }

/* Em desktop, mostra um pill com label */
@media (min-width: 1024px) {
  .fab-whatsapp {
    width: auto;
    height: auto;
    padding: 14px 22px;
    border-radius: 100px;
    gap: 10px;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    bottom: 28px;
    right: 28px;
  }
  .fab-whatsapp svg { width: 22px; height: 22px; }
  .fab-whatsapp-label {
    display: inline;
  }
}
.fab-whatsapp-label {
  display: none;
}

/* ===================== ANIMAÇÕES ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* footer-logo-fix */
.footer-brand img{width:auto;align-self:flex-start;max-width:200px;}


/* ==== ajustes 20260720: Trabalhe Conosco + nav centralizada ==== */
.nav-desktop{justify-content:center;flex:1;gap:0;min-width:0;}
.nav-desktop a{white-space:nowrap;flex-shrink:0;padding:8px 9px;font-size:0.875rem;}
.header .header-inner{max-width:1360px;width:min(1360px,calc(100vw - 48px));}
.trabalhe-link{color:#2563eb !important;font-weight:600;}
.trabalhe-link:hover{color:#1d4ed8 !important;}
footer .trabalhe-footer{color:#8ab4ff !important;font-weight:600;}
footer .trabalhe-footer:hover{color:#b3ccff !important;}
.footer-social{gap:18px;}
