/* Odontoestética Dra. Sara Michelon — componentes (CSS puro, prefixo oe-)
   Depende das variáveis de tokens.css. Todo componente usa só tokens semânticos,
   então dentro de [data-theme="ameixa"] ele inverte sozinho para a seção roxa. */

/* ---------- base ---------- */
.oe, .oe *, .oe *::before, .oe *::after { box-sizing: border-box; }
.oe {
  font-family: var(--font-sans);
  color: var(--texto);
  background: var(--fundo);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}
[data-theme] .oe, .oe[data-theme], .oe [data-theme] { color: var(--texto); }
.oe img { display: block; max-width: 100%; }
:where(.oe) a { color: var(--destaque); }
.oe :focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.oe-container { width: 100%; max-width: var(--conteudo-max); margin: 0 auto; padding: 0 var(--espaco-4); }
@media (min-width: 768px) { .oe-container { padding: 0 var(--espaco-6); } }
.oe-secao { padding: var(--espaco-8) 0; background: var(--fundo); color: var(--texto); position: relative; overflow: hidden; }
@media (min-width: 1024px) { .oe-secao { padding: var(--espaco-9) 0; } }
.oe-secao--tinta { background: var(--fundo-tinta); }
.oe-icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- texto ---------- */
.oe-rotulo {
  display: inline-block; margin: 0 0 var(--espaco-3);
  font: 600 13px/16px var(--font-sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--destaque);
}
.oe-lead { font: 300 18px/28px var(--font-sans); color: var(--texto); max-width: var(--texto-max); margin: 0; }
@media (min-width: 768px) { .oe-lead { font-size: 20px; line-height: 31px; } }
.oe-assinatura { font-family: var(--font-script); font-weight: 400; font-size: 56px; line-height: 1; color: var(--titulo); }

/* Manchete: abertura leve + impacto pesado + tarja */
.oe-manchete { margin: 0; color: var(--titulo); font-family: var(--font-sans); }
.oe-manchete__abertura { display: block; font-weight: 300; font-size: 22px; line-height: 28px; margin-bottom: var(--espaco-1); }
.oe-manchete__impacto { display: block; font-weight: 800; font-size: 44px; line-height: .98; letter-spacing: -.02em; }
.oe-manchete--xl .oe-manchete__impacto { font-size: 48px; }
.oe-manchete__fecho { display: block; margin-top: var(--espaco-2); font-weight: 400; font-size: 22px; line-height: 30px; }
@media (min-width: 768px) {
  .oe-manchete__abertura { font-size: 28px; line-height: 34px; }
  .oe-manchete__impacto { font-size: 60px; }
  .oe-manchete--xl .oe-manchete__impacto { font-size: 80px; line-height: .95; }
  .oe-manchete__fecho { font-size: 26px; line-height: 34px; }
}
.oe-tarja {
  background: var(--tarja); color: var(--sobre-tarja);
  padding: .04em .32em .1em; font-weight: 500;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.oe-realce { color: var(--destaque); font-weight: 700; }
.oe-titulo { margin: 0 0 var(--espaco-5); color: var(--titulo); font: 700 30px/36px var(--font-sans); letter-spacing: -.01em; }
@media (min-width: 768px) { .oe-titulo { font-size: 44px; line-height: 50px; } }

/* palavra-fantasma ao fundo (ex.: "implante" gigante, quase invisível) */
.oe-fantasma {
  position: absolute; pointer-events: none; user-select: none; z-index: 0;
  font: 800 180px/1 var(--font-sans); letter-spacing: -.04em; color: var(--curva); opacity: .55; white-space: nowrap;
}
.oe-curva { position: absolute; pointer-events: none; z-index: 0; fill: none; stroke: var(--curva); stroke-width: 2; }

/* ---------- botões ---------- */
.oe-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--espaco-2);
  min-height: 52px; padding: 14px 28px; border-radius: var(--raio-pill); border: 2px solid transparent;
  font: 600 16px/20px var(--font-sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.oe-btn:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.oe-btn--primario { background: var(--acao); color: var(--sobre-acao); }
.oe-btn--primario:hover { background: var(--acao-hover); }
.oe-btn--primario:active { transform: translateY(1px); }
.oe-btn--secundario { background: transparent; color: var(--titulo); border-color: var(--borda-controle); }
.oe-btn--secundario:hover { border-color: var(--titulo); background: var(--fundo-tinta); }
.oe-btn--grande { min-height: 60px; padding: 18px 34px; font-size: 17px; }
.oe-btn--bloco { width: 100%; }
.oe-btn .oe-icone { width: 20px; height: 20px; }
.oe-link {
  display: inline-flex; align-items: center; gap: var(--espaco-2);
  font: 600 15px/20px var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--destaque); text-decoration: none;
}
.oe-link .oe-icone { width: 18px; height: 18px; transition: transform .18s ease; }
.oe-link:hover .oe-icone { transform: translateX(4px); }
.oe-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.oe-acoes { display: flex; flex-wrap: wrap; gap: var(--espaco-4); align-items: center; }

/* ---------- etiqueta (selo contornado) ---------- */
.oe-etiqueta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1.5px solid var(--borda-controle); border-radius: var(--raio-sm);
  font: 500 14px/18px var(--font-sans); color: var(--titulo); background: transparent;
}
.oe-etiqueta .oe-icone { width: 16px; height: 16px; color: var(--destaque); }
.oe-etiqueta--cheia { background: var(--fundo-tinta); border-color: transparent; }

/* ---------- checklist ---------- */
.oe-check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espaco-3); }
.oe-check li { display: flex; gap: var(--espaco-3); align-items: flex-start; font-size: 17px; line-height: 26px; color: var(--texto); }
.oe-check .oe-icone { width: 22px; height: 22px; margin-top: 2px; color: var(--destaque); stroke-width: 2.5; }

/* ---------- cabeçalho ---------- */
.oe-cabecalho { background: var(--fundo-elevado); border-bottom: 1px solid var(--linha); }
.oe-cabecalho__barra { display: flex; align-items: center; justify-content: space-between; gap: var(--espaco-5); height: 64px; }
@media (min-width: 1024px) { .oe-cabecalho__barra { height: var(--cabecalho-altura); } }
.oe-cabecalho__logo img { height: 44px; width: auto; }
@media (min-width: 1024px) { .oe-cabecalho__logo img { height: 56px; } }
.oe-cabecalho__nav { display: none; gap: var(--espaco-6); }
.oe-cabecalho__nav a { font: 500 15px/20px var(--font-sans); color: var(--texto); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.oe-cabecalho__nav a:hover, .oe-cabecalho__nav a[aria-current="page"] { color: var(--titulo); border-bottom-color: var(--malva); }
.oe-cabecalho__cta { display: none; }
.oe-cabecalho__menu { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1.5px solid var(--borda-controle); border-radius: var(--raio-sm); background: none; color: var(--titulo); }
@media (min-width: 1024px) {
  .oe-cabecalho__nav { display: flex; }
  .oe-cabecalho__cta { display: inline-flex; min-height: 46px; padding: 10px 22px; }
  .oe-cabecalho__menu { display: none; }
}

/* ---------- hero de landing page ---------- */
.oe-hero { position: relative; background: var(--fundo); display: grid; overflow: hidden; }
.oe-hero__foto { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.oe-hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 30%; }
.oe-hero__painel { position: relative; z-index: 1; background: var(--fundo); color: var(--texto); padding: var(--espaco-7) var(--espaco-4) var(--espaco-8); }
.oe-hero__painel .oe-lead { margin-top: var(--espaco-5); }
.oe-hero__painel .oe-acoes { margin-top: var(--espaco-6); }
.oe-hero__prova { display: flex; flex-wrap: wrap; gap: var(--espaco-3) var(--espaco-5); margin-top: var(--espaco-6); padding-top: var(--espaco-5); border-top: 1px solid var(--linha); font: 400 15px/22px var(--font-sans); color: var(--texto-suave); }
.oe-hero__prova strong { display: block; font: 800 24px/30px var(--font-sans); color: var(--titulo); letter-spacing: -.02em; }
.oe-hero .oe-curva { left: 0; top: 0; width: 100%; height: 100%; }
.oe-hero__painel > *:not(.oe-curva) { position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .oe-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 640px; }
  .oe-hero__foto { aspect-ratio: auto; order: 2; }
  .oe-hero__painel { order: 1; padding: var(--espaco-9) var(--espaco-8) var(--espaco-9) max(var(--espaco-6), calc((100vw - var(--conteudo-max)) / 2 + var(--espaco-6))); border-top-right-radius: 0; }
  .oe-hero__painel::after { content: ""; position: absolute; top: 0; bottom: 0; right: -120px; width: 240px; background: var(--fundo); border-radius: 0 50% 50% 0 / 0 50% 50% 0; z-index: -1; }
}

/* ---------- cartão de tratamento ---------- */
.oe-card-trat { display: flex; flex-direction: column; background: var(--fundo-elevado); border-radius: var(--raio-md); overflow: hidden; color: var(--texto); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; height: 100%; }
.oe-card-trat:hover { box-shadow: var(--sombra-cartao); transform: translateY(-3px); }
.oe-card-trat__foto { aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.oe-card-trat__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 40%; }
.oe-card-trat__corpo { display: flex; flex-direction: column; gap: var(--espaco-2); padding: var(--espaco-5); flex: 1; }
.oe-card-trat__corpo .oe-rotulo { margin: 0; font-size: 12px; }
.oe-card-trat h3 { margin: 0; font: 600 22px/28px var(--font-sans); color: var(--titulo); }
.oe-card-trat p { margin: 0; font-size: 15px; line-height: 24px; color: var(--texto-suave); flex: 1; }
.oe-card-trat .oe-link { margin-top: var(--espaco-3); }
.oe-grade { display: grid; gap: var(--espaco-5); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- cartão de profissional ---------- */
.oe-card-prof { display: block; text-decoration: none; color: var(--texto); }
.oe-card-prof__foto { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--raio-md); overflow: hidden; background: var(--fundo-tinta); }
.oe-card-prof__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.oe-card-prof:hover .oe-card-prof__foto img { transform: scale(1.03); }
.oe-card-prof h3 { margin: var(--espaco-4) 0 var(--espaco-1); font: 600 20px/26px var(--font-sans); color: var(--titulo); }
.oe-card-prof p { margin: 0 0 var(--espaco-3); font-size: 15px; line-height: 22px; color: var(--texto-suave); }

/* ---------- etapas (método 01–05) ---------- */
.oe-etapas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espaco-6); counter-reset: etapa; }
.oe-etapas li { position: relative; padding-top: var(--espaco-2); }
.oe-etapas__num { display: block; font: 800 52px/52px var(--font-sans); letter-spacing: -.03em; color: var(--destaque); }
.oe-etapas h3 { margin: var(--espaco-3) 0 var(--espaco-2); font: 600 22px/28px var(--font-sans); color: var(--titulo); }
.oe-etapas p { margin: 0; font-size: 15px; line-height: 24px; color: var(--texto-suave); }
@media (min-width: 900px) {
  .oe-etapas { grid-template-columns: repeat(var(--colunas, 5), minmax(0, 1fr)); gap: var(--espaco-5); }
  .oe-etapas li::before { content: ""; position: absolute; top: 34px; left: 72px; right: calc(-1 * var(--espaco-5) + 8px); height: 2px; background: var(--curva); }
  .oe-etapas li:last-child::before { display: none; }
}

/* ---------- FAQ ---------- */
.oe-faq { display: grid; gap: var(--espaco-3); max-width: 860px; }
.oe-faq details { background: var(--fundo-elevado); border-radius: var(--raio-md); border: 1px solid var(--linha); }
.oe-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--espaco-4); padding: var(--espaco-5); font: 600 18px/26px var(--font-sans); color: var(--titulo); }
.oe-faq summary::-webkit-details-marker { display: none; }
.oe-faq summary:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; border-radius: var(--raio-md); }
.oe-faq__sinal { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--fundo-tinta); color: var(--destaque); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.oe-faq details[open] .oe-faq__sinal { transform: rotate(45deg); }
.oe-faq__resposta { padding: 0 var(--espaco-5) var(--espaco-5); margin: 0; font-size: 16px; line-height: 26px; color: var(--texto-suave); max-width: var(--texto-max); }

/* ---------- bloco de agendamento ---------- */
.oe-agendar { position: relative; overflow: hidden; background: var(--fundo); color: var(--texto); border-radius: var(--raio-lg); padding: var(--espaco-7) var(--espaco-5); display: grid; gap: var(--espaco-7); }
@media (min-width: 960px) { .oe-agendar { grid-template-columns: 1.2fr 1fr; padding: var(--espaco-8); align-items: center; } }
.oe-agendar > *:not(.oe-curva) { position: relative; z-index: 1; }
.oe-agendar__chamada { display: flex; align-items: baseline; gap: var(--espaco-2); flex-wrap: wrap; margin-bottom: var(--espaco-3); }
.oe-agendar__chamada .oe-etiqueta { transform: translateY(-10px); }
.oe-agendar__itens { list-style: none; margin: var(--espaco-6) 0 0; padding: 0; display: grid; gap: var(--espaco-4); }
@media (min-width: 640px) { .oe-agendar__itens { grid-template-columns: repeat(3, 1fr); } }
.oe-agendar__itens li { display: grid; gap: 4px; font-size: 15px; line-height: 22px; color: var(--texto-suave); }
.oe-agendar__itens strong { display: flex; align-items: center; gap: var(--espaco-2); font: 600 17px/22px var(--font-sans); color: var(--titulo); }
.oe-agendar__itens .oe-icone { color: var(--destaque); }
.oe-agendar__cartao { background: var(--fundo-elevado); border-radius: var(--raio-md); padding: var(--espaco-6); display: grid; gap: var(--espaco-4); }
.oe-agendar__cartao h3 { margin: 0; font: 600 22px/28px var(--font-sans); color: var(--titulo); }
.oe-agendar__cartao p { margin: 0; font-size: 15px; line-height: 24px; color: var(--texto-suave); }
.oe-agendar__horario { font-size: 14px; line-height: 20px; color: var(--texto-suave); padding-top: var(--espaco-3); border-top: 1px solid var(--linha); }

/* ---------- barra fixa de WhatsApp (mobile) ---------- */
.oe-barra-whats { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: var(--espaco-3) var(--espaco-4) calc(var(--espaco-3) + env(safe-area-inset-bottom)); background: var(--fundo-elevado); box-shadow: var(--sombra-flutuante); display: flex; gap: var(--espaco-3); }
.oe-barra-whats .oe-btn { flex: 1; min-height: 52px; }
.oe-barra-whats__tel { flex: none !important; width: 52px; padding: 0 !important; }
@media (min-width: 1024px) { .oe-barra-whats { display: none; } }

/* ---------- rodapé ---------- */
.oe-rodape { background: var(--fundo); color: var(--texto); padding: var(--espaco-8) 0 var(--espaco-6); }
.oe-rodape__grade { display: grid; gap: var(--espaco-6); }
@media (min-width: 900px) { .oe-rodape__grade { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.oe-rodape__logo img { height: 72px; width: auto; }
.oe-rodape h4 { margin: 0 0 var(--espaco-3); font: 600 13px/16px var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--destaque); }
.oe-rodape p, .oe-rodape li { margin: 0; font-size: 15px; line-height: 24px; color: var(--texto-suave); }
.oe-rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.oe-rodape a { color: var(--texto); text-decoration: none; }
.oe-rodape a:hover { text-decoration: underline; text-underline-offset: 3px; }
.oe-rodape__legal { margin-top: var(--espaco-7); padding-top: var(--espaco-5); border-top: 1px solid var(--linha); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--espaco-3); font-size: 13px; line-height: 20px; color: var(--texto-suave); }

@media (prefers-reduced-motion: reduce) {
  .oe *, .oe *::before, .oe *::after { transition: none !important; }
  .oe-card-trat:hover { transform: none; }
}
