/* ==========================================================================
   Brilha Dentes — Componentes reutilizáveis
   Medidas tiradas dos nós do Figma (ver comentários por bloco).
   ========================================================================== */

/* --- Botão pill ---------------------------------------------------------
   Figma 844:2065 → 233x60: padding 24 + texto 149 + gap 12 + ícone 24 + padding 24
   Figma 844:2051 → 224x40 (variante sm no nav)
   Hover (todos os botões): o botão não muda; só o ícone dá uma volta de 360°
   (animação disparada pelo js/core.js — ver "Giro do ícone dos botões").
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  height: 60px;
  padding-inline: var(--s-24);
  border-radius: var(--r-pill);
  background: var(--c-inverse);
  color: var(--c-on-inverse);
  font-family: var(--f-sans);
  font-size: var(--t-button-size);
  line-height: var(--t-button-lh);
  font-weight: var(--w-medium);
  white-space: nowrap;
}
.btn .icon {
  width: 24px;
  height: 24px;
}

.btn--sm {
  height: 40px;
  padding-inline: var(--s-20);
  font-size: var(--t-button-sm-size);
  line-height: var(--t-button-sm-lh);
}
.btn--sm .icon {
  width: 20px;
  height: 20px;
}

/* Variante contornada — "Agendar avaliação" no hero */
.btn--outline {
  background: transparent;
  color: var(--c-text-strong);
  box-shadow: inset 0 0 0 var(--stroke) var(--c-text-strong);
}

/* Variante discreta — CTA dentro dos cards de tratamento (indextTXT.html).
   Fundo do texto forte a 15%, sem ícone: o retorno no hover é o fundo. */
.btn--soft {
  background: var(--c-fill-soft);
  color: var(--c-text-strong);
  transition: background var(--dur-fast) var(--ease);
}
.btn--soft:hover {
  background: var(--c-fill-soft-up);
}

/* Sombra do CTA do formulário */
.btn--raised {
  box-shadow: var(--shadow-3);
}

/* --- Botão circular (seta de scroll, Figma 844:2087 → 48x48) ------------- */
.btn-circle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  border: var(--stroke) solid var(--c-border);
  color: var(--c-text-strong);
  transition: color var(--dur-fast) var(--ease);
}
.btn-circle .icon {
  width: 24px;
  height: 24px;
}
/* Sem contorno — setas do carrossel da Equipe */
.btn-circle--ghost {
  border-color: transparent;
}
.btn-circle:disabled {
  color: var(--c-text-subtle);
  cursor: default;
}

/* --- Hover dourado em texto ----------------------------------------------
   O gradiente fica sempre recortado pelas letras, coberto pela cor do texto.
   No hover a cor vai a transparente e o dourado aparece com transição suave.
   ------------------------------------------------------------------------ */
.gold-hover {
  background-image: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color var(--dur) var(--ease);
}
.gold-hover:hover {
  color: transparent;
}

/* --- Link de navegação (Figma 844:2042 → 67x56, texto com padding 16) ---- */
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding-inline: var(--s-16, 16px);
  font-size: var(--t-button-sm-size);
  line-height: var(--t-button-sm-lh);
  font-weight: var(--w-medium);
  color: var(--c-text);
  border-radius: var(--r-pill);
  background-image: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color var(--dur) var(--ease);
}
.nav-link:hover {
  color: transparent;
}
/* Sem indicador visual do link ativo (decisão); o nav.js mantém
   aria-current na seção visível para leitores de tela. */

/* --- Cards --------------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border-radius: var(--r-card);
}
.card--outline {
  background: transparent;
  border: var(--stroke) solid var(--c-border);
}

/* --- Campo de formulário (Figma 844:2200 → 514x60, texto em x=24.5) ------ */
.field {
  width: 100%;
  height: 60px;
  padding-inline: var(--s-24);
  border: var(--stroke) solid var(--c-border-soft);
  border-radius: var(--r-pill);
  background: var(--c-surface-raised);
  color: var(--c-text-strong);
  font-size: var(--t-button-size);
  line-height: var(--t-button-lh);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.field::placeholder {
  color: var(--c-text-subtle);
  opacity: 1;
}
.field:hover {
  border-color: var(--c-border);
}
/* Foco: borda em gradiente dourado (fundo em duas camadas: miolo + borda) */
.field:focus {
  outline: none;
  border-color: transparent;
  background:
    linear-gradient(var(--c-surface) 0 0) padding-box,
    var(--g-gold) border-box;
}
.field:user-invalid {
  border-color: var(--c-error);
}

/* Ícone nativo do campo de horário em cima do fundo escuro
   (a data virou campo de texto com máscara dd/mm/aaaa — ver contato.js) */
.field[type="time"] {
  color-scheme: dark;
}
.field[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
}
.field[type="time"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Mensagem de erro: abre e fecha deslizando (o texto é mantido ao fechar) */
.field-error {
  max-height: 0;
  margin-top: 0;
  padding-inline: var(--s-24);
  overflow: hidden;
  opacity: 0;
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--c-error);
  transition:
    max-height var(--dur) var(--ease-out),
    margin-top var(--dur) var(--ease-out),
    opacity var(--dur-fast) var(--ease);
}
.field-error.is-shown {
  max-height: 3em;
  margin-top: 6px;
  opacity: 1;
}

/* --- Motivo "//" que prefixa itens de lista ------------------------------ */
.slash {
  flex: none;
  background-image: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: var(--w-medium);
}

/* --- Divisor ornamentado -------------------------------------------------
   Figma 844:2321 (1424px): linha 312 · gap 12 · 3 barras (44) · gap 12 · linha 1044
   Figma 844:2233 (514px):  linha 318 · gap 12 · 3 barras (44) · gap 12 · linha 128
   As proporções vêm de --orn-lead / --orn-trail.
   ------------------------------------------------------------------------ */
.ornament {
  --orn-lead: 312;
  --orn-trail: 1044;
  display: flex;
  align-items: center;
  gap: var(--s-12);
  width: 100%;
}
/* Cor: Title com opacidade 10% (Figma) */
.ornament::before,
.ornament::after {
  content: "";
  height: var(--stroke);
  background: var(--c-border-soft);
}
.ornament::before {
  flex: var(--orn-lead) 1 0;
}
.ornament::after {
  flex: var(--orn-trail) 1 0;
}
.ornament__mark {
  flex: none;
  width: 44px;
  height: 20px;
  color: var(--c-border-soft);
}
.ornament--short {
  --orn-lead: 318;
  --orn-trail: 128;
}
/* Figma 844:2340 — espelhado: marca à direita, barras invertidas "\\\" */
.ornament--reverse {
  --orn-lead: 1044;
  --orn-trail: 312;
}
.ornament--reverse .ornament__mark {
  transform: scaleX(-1);
}

/* --- Divisor entre blocos (container com o .ornament) -------------------- */
.section-divider {
  padding-top: var(--s-120);
}

/* --- Bloco de horário de atendimento ------------------------------------- */
.hours {
  display: flex;
  flex-direction: column;
}
.hours--end {
  align-items: flex-end;
  text-align: right;
}
.hours__note {
  font-size: var(--t-small-size);
  line-height: var(--t-small-lh);
  color: var(--c-text-muted);
}
.hours__status {
  display: block;
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  color: var(--c-text-strong);
}
/* Indicador de status: verde (aberto) / cinza (fechado), não é dourado */
.hours__status .slash {
  margin-right: 2px;
  background: none;
  color: var(--c-success);
  letter-spacing: -1px;
}
.hours__status.is-closed .slash {
  color: var(--c-text-subtle);
}

/* --- Linha de contato com ícone (Figma 844:2248 → ícone 24 + gap 12) ----- */
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  font-size: var(--t-body-size);
  line-height: var(--t-body-lh);
  color: var(--c-text-strong);
  background-image: var(--g-gold);
  -webkit-background-clip: text;
  background-clip: text;
  transition: color var(--dur) var(--ease);
}
/* O ícone tem cor própria: não some quando o texto fica transparente */
.contact-line .icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--c-text-strong);
}
a.contact-line:hover {
  color: transparent;
}
a.contact-line:hover .icon {
  stroke: url(#g-gold);
}

/* --- Logotipo (Nav, Footer e selo do mapa) -------------------------------
   Assets/img/logo.png — 600 × 236 (desenho ocupa 578 × 193).
   Altura de 68px (pedido do cliente) → largura 68 × 600 / 236 ≈ 173px, em
   todas as telas (no celular cabe ao lado do botão do menu).
   O PNG é dourado chapado: o desenho vira máscara e o dourado vem do
   gradiente. A <img> fica invisível só para dar o tamanho; sem suporte a
   máscara, a imagem original aparece.
   ------------------------------------------------------------------------ */
.logo {
  --logo-w: calc(68px * 600 / 236); /* 68px de altura */
  display: inline-flex;
  flex: none;
  justify-self: start; /* não estica na coluna 1fr da nav */
}
.logo__img {
  width: var(--logo-w);
  height: auto;
}
@supports ((mask-image: url("")) or (-webkit-mask-image: url(""))) {
  .logo {
    background-image: var(--g-gold);
    -webkit-mask: url("../Assets/img/logo.png") left center / var(--logo-w) auto no-repeat;
    mask: url("../Assets/img/logo.png") left center / var(--logo-w) auto no-repeat;
  }
  .logo__img {
    opacity: 0;
  }
}

/* --- Gradientes dos ícones SVG ---------------------------------------------
   <linearGradient id="g-gold"> e "g-gold-bright" ficam no sprite do index.html;
   as cores das paradas vêm dos tokens. Uso: stroke/fill: url(#g-gold).
   ------------------------------------------------------------------------ */
.gold-stop--from  { stop-color: var(--gold-from); }
.gold-stop--to    { stop-color: var(--gold-to); }
.gold-stop--light { stop-color: var(--gold-light); }

/* --- Ícones -------------------------------------------------------------- */
.icon {
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.icon--solid {
  fill: currentColor;
  stroke: none;
}
