/* =====================================================
   Onevision — tema 2026-09-29
   Carregado por último em todas as páginas. Ajusta:
   - tipografia de títulos (Outfit, auto-hospedada)
   - contraste de botões (WCAG AA, texto branco >= 4.5:1)
   - faixa de marcas e faixa de diferenciais da home
   - catálogo agrupado por marca nas páginas de categoria
===================================================== */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --f-titulo: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --laranja-escuro: #b5571f;   /* botão laranja: 4,83:1 com branco */
  --laranja-link: #a94f1a;     /* texto laranja sobre claro: 5,5:1 */
  --acao: #1a7f45;             /* botão WhatsApp: 5,04:1 com branco */
  --acao-hover: #146a39;
  --whats-hover: #146a39;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4,
.hero-titulo, .hero-sub, .dif-titulo, .mf-titulo, .marca-titulo {
  font-family: var(--f-titulo);
  font-style: normal !important;
  letter-spacing: -0.01em;
}
h1, .hero-titulo { font-weight: 700; line-height: 1.08; }
h2 { font-weight: 650; }
h3 { font-weight: 600; }
.hero-titulo { letter-spacing: -0.02em; }
.hero-sub { font-weight: 400; }
.hero-sub strong { font-weight: 600; }
nav a, .site-header nav a, .mobile-menu a,
.btn-whats, .btn-whats-hero, .btn-ver, .btn-catalogo, .btn-outline, .btn-ver-produtos {
  font-family: var(--f-titulo);
  letter-spacing: 0;
}
.mf-titulo, .marca-titulo { letter-spacing: 0.02em; text-transform: none; }

/* ---------- Botões: contraste ---------- */
.btn-whats, a.btn-whats, .cta-box .btn-whats, .cta-inline .btn-whats {
  background: var(--acao);
  color: #fff;
}
.btn-whats:hover, a.btn-whats:hover { background: var(--acao-hover); }
/* botão do cabeçalho segue a marca, em laranja escuro */
#header .btn-whats, .site-header nav .btn-whats, .site-header .btn-whats { background: var(--laranja-escuro); }
#header .btn-whats:hover, .site-header nav .btn-whats:hover, .site-header .btn-whats:hover { background: var(--laranja-link); }
.btn-whats-hero, .btn-ver, .produto-card .btn-ver, .btn-catalogo {
  background: var(--laranja-escuro);
  color: #fff;
}
.btn-whats-hero:hover, .btn-ver:hover, .produto-card .btn-ver:hover, .btn-catalogo:hover { background: var(--laranja-link); }
.btn-outline, .btn-ver-produtos { color: var(--laranja-link); border-color: var(--laranja-escuro); }
.btn-outline:hover { background: var(--laranja-escuro); color: #fff; }
.blog-link, .blog-tag, .gmb-link a, .back-link, .breadcrumb a { color: var(--laranja-link); }
.page-hero .breadcrumb a { color: #f3b48f; }
.article-wrap h2 { color: var(--laranja-link); }
:focus-visible { outline: 3px solid #1a7f45; outline-offset: 2px; }

/* ---------- Home: faixa de marcas ---------- */
#marcas .mf-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 28px;
  max-width: 1080px;
  margin: 0 auto;
}
#marcas .mf-item {
  height: 64px;
  padding: 6px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
#marcas .mf-item img {
  max-height: 30px;
  max-width: 132px;
  width: auto;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .2s, opacity .2s;
}
#marcas .mf-item:hover img, #marcas .mf-item:focus-visible img { filter: none; opacity: 1; }
/* marcas compactas (símbolo + nome) pedem mais altura para ter o mesmo peso visual */
#marcas .mf-item[title="Allergan"] img,
#marcas .mf-item[title="Aeskins"] img,
#marcas .mf-item[title="MedSystems"] img { max-height: 42px; }
#marcas .mf-item[title="Merz"] img,
#marcas .mf-item[title="NanoSkinBio"] img { max-height: 50px; }
#marcas .mf-item[title="Alur Medical"] img { max-height: 44px; }
#marcas .mf-item[title="Blau"] img { max-height: 34px; } /* arquivo de 37px: não ampliar */
#marcas .mf-item[title="Cimed"] img { max-height: 24px; }
#marcas .mf-mais { margin-top: 14px; font-size: 14px; }
#marcas .mf-mais a { color: var(--laranja-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) {
  #marcas .mf-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
}
@media (max-width: 600px) {
  #marcas .mf-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  #marcas .mf-item { height: 52px; }
  #marcas .mf-item img { max-height: 22px; max-width: 100%; }
  #marcas .mf-item[title="Allergan"] img,
  #marcas .mf-item[title="Aeskins"] img,
  #marcas .mf-item[title="MedSystems"] img { max-height: 32px; }
  #marcas .mf-item[title="Merz"] img,
  #marcas .mf-item[title="NanoSkinBio"] img,
  #marcas .mf-item[title="Alur Medical"] img { max-height: 40px; }
  #marcas .mf-item[title="Blau"] img { max-height: 28px; }
}

/* ---------- Home: faixa única de diferenciais ---------- */
#diferenciais.dif-faixa {
  display: block;
  background: #212222;
  color: #fff;
  padding: 36px 24px;
}
.dif-faixa .dif-lista {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.dif-faixa li { display: flex; gap: 12px; align-items: flex-start; }
.dif-faixa svg { flex: 0 0 26px; width: 26px; height: 26px; color: #e98853; margin-top: 2px; }
.dif-faixa strong { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 17px; line-height: 1.25; margin-bottom: 4px; }
.dif-faixa span { display: block; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.78); }
.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; }
@media (max-width: 980px) {
  .dif-faixa .dif-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
}
@media (max-width: 600px) {
  #diferenciais.dif-faixa { padding: 28px 20px; }
  .dif-faixa .dif-lista { grid-template-columns: 1fr; gap: 16px; }
  .dif-faixa strong { font-size: 16px; }
}

/* ---------- Categorias: catálogo agrupado por marca ---------- */
.marca-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.marca-nav span { width: 100%; font-size: 14px; color: #555; margin-bottom: 2px; }
.marca-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid #e3e3e3; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #212222; background: #fff;
}
.marca-nav a small { font-weight: 400; color: #666; font-size: 12.5px; }
.marca-nav a:hover { border-color: var(--laranja-escuro); color: var(--laranja-link); }
details.marca-bloco { margin-bottom: 14px; border: 1px solid #ececec; border-radius: 10px; background: #fff; scroll-margin-top: 90px; }
details.marca-bloco > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
}
details.marca-bloco > summary::-webkit-details-marker { display: none; }
details.marca-bloco > summary .marca-titulo {
  margin: 0; padding: 0; border: 0;
  font-size: 18px; color: #212222; letter-spacing: 0;
}
details.marca-bloco > summary .marca-qtd { font-size: 14px; color: #666; white-space: nowrap; }
details.marca-bloco > summary::after {
  content: ''; flex: 0 0 10px; width: 10px; height: 10px;
  border-right: 2px solid var(--laranja-escuro); border-bottom: 2px solid var(--laranja-escuro);
  transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s;
}
details.marca-bloco[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.marca-bloco > summary:hover .marca-titulo { color: var(--laranja-link); }
details.marca-bloco > .produtos-lista { padding: 0 20px 20px; }
@media (max-width: 600px) {
  details.marca-bloco > summary { padding: 14px 16px; }
  details.marca-bloco > .produtos-lista { padding: 0 12px 14px; grid-template-columns: 1fr; gap: 10px; }
  .marca-nav a { padding: 6px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- /marcas/: não ampliar o logo da Blau (arquivo de 37px) ---------- */
.marca-card[href="blau.html"] .mc-logo img { max-height: 37px; }

/* ---------- Ajustes finos (29/09) ---------- */
/* o espaço entre palavras da Outfit é estreito: abrir um pouco nos títulos */
h1, h2, h3, h4, .hero-titulo, .hero-sub, .dif-titulo, .dif-faixa strong,
nav a, .mobile-menu a, .btn-whats, .btn-ver, .btn-catalogo { word-spacing: 0.08em; }
h3, .dif-faixa strong { letter-spacing: 0; }
.logo-sobre h2 span { display: block; margin-top: 10px; line-height: 1.25 !important; }
/* logos em silhueta única: peso visual igual entre marcas de cores diferentes */
#marcas .mf-item img { filter: brightness(0); opacity: .62; }
#marcas .mf-item[title="NanoSkinBio"] img { filter: grayscale(1) contrast(1.2); opacity: .8; }
#marcas .mf-item[title="Rennova"] img { max-height: 40px; max-width: 150px; }
#marcas .mf-item[title="Pharmaesthetics"] img { max-height: 40px; max-width: 150px; }
@media (max-width: 600px) {
  #marcas .mf-item[title="Rennova"] img, #marcas .mf-item[title="Pharmaesthetics"] img { max-height: 30px; max-width: 100%; }
}
details.marca-bloco > summary { justify-content: flex-start; }
details.marca-bloco > summary .marca-qtd { margin-left: auto; }
/* no celular a lista de blocos já funciona como índice */
@media (max-width: 760px) { .marca-nav { display: none; } }
/* 2026-10-28: link "Pular para o conteúdo" (aparece só ao navegar pelo teclado) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: #212222; color: #fff; font-weight: 600; font-size: 15px;
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
#conteudo:focus, #hero:focus { outline: none; }
/* com "reduzir movimento", nada de animação contínua (o bloco acima só cobria transições) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
/* 2026-10-15: etiqueta dos cards do blog — texto branco sobre o laranja (antes laranja sobre laranja, ilegível; contraste 4,9:1) */
.blog-card .blog-tag { color: #fff; }

/* ---------- Páginas de produto (2026-10-30) ---------- */
.pp-resumo { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.pp-resumo p { font-size: 17px; color: #444; margin-bottom: 14px; max-width: 62ch; }
.pp-fig img { margin: 0 auto; max-height: 300px; width: auto; }
.pp-fig-logo { background: var(--fundo); border-radius: 12px; padding: 36px; }
.pp-fig-logo img { max-height: 90px; }
.pp-bloco { margin-top: 52px; scroll-margin-top: 90px; }
.pp-bloco > h2 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; margin-bottom: 14px; }
.pp-bloco > p { color: #444; max-width: 70ch; margin-bottom: 14px; }
.pp-bloco a { color: var(--laranja-link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pp-nota { font-size: 14px; color: #666; margin-top: 12px; max-width: 74ch; }
.pp-aviso { font-weight: 600; color: #212222 !important; border-left: 4px solid var(--laranja-escuro); padding-left: 14px; }
.pp-tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.pp-tabela th, .pp-tabela td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid #e3e3e3; }
.pp-tabela thead th { font-family: var(--f-titulo); font-size: 14px; border-bottom: 2px solid #212222; }
.pp-tabela tbody th { font-weight: 600; width: 32%; }
.pp-comp { display: flex; height: 64px; border-radius: 8px; overflow: hidden; font-family: var(--f-titulo); font-size: 24px; font-weight: 700; }
.pp-comp span { display: flex; align-items: center; padding: 0 18px; }
.pp-comp-a { flex: 30; background: var(--laranja-escuro); color: #fff; }
.pp-comp-b { flex: 70; background: #212222; color: #fff; }
.pp-comp-leg { display: grid; grid-template-columns: 30fr 70fr; gap: 18px; margin-top: 14px; font-size: 15px; color: #444; }
.pp-via { list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--laranja-escuro); }
.pp-via li { counter-increment: passo; padding: 16px 20px 0 0; color: #444; font-size: 15px; }
.pp-via li::before { content: counter(passo); display: block; font-family: var(--f-titulo); font-size: 30px; font-weight: 700; color: var(--laranja-link); line-height: 1.1; }
.pp-via strong, .pp-dif strong { display: block; color: #212222; font-family: var(--f-titulo); font-weight: 600; font-size: 16.5px; margin-bottom: 3px; }
.pp-esc { list-style: none; border-top: 1px solid #e3e3e3; }
.pp-esc a { display: grid; grid-template-columns: 110px 1fr 100px 1.1fr; gap: 16px; align-items: center; padding: 13px 4px; border-bottom: 1px solid #e3e3e3; color: #212222; text-decoration: none; font-weight: 400; font-size: 15px; }
.pp-esc a:hover { background: var(--fundo); }
.pp-esc-nome { font-family: var(--f-titulo); font-weight: 600; font-size: 17px; }
.pp-esc-barra { height: 12px; background: linear-gradient(90deg, var(--laranja-escuro) var(--v), #ececec var(--v)); border-radius: 3px; }
.pp-esc-dado { font-weight: 600; white-space: nowrap; }
.pp-dif { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; font-size: 15px; color: #444; }
.pp-faq dt { font-family: var(--f-titulo); font-weight: 600; font-size: 17px; margin-top: 20px; color: #212222; }
.pp-faq dd { margin: 5px 0 0; color: #444; max-width: 70ch; }
@media (max-width: 760px) {
  .pp-resumo, .pp-via, .pp-dif { grid-template-columns: 1fr; }
  .pp-resumo { gap: 22px; }
  .pp-via { gap: 4px; }
  .pp-comp-leg { grid-template-columns: 1fr; }
  .pp-esc a { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .pp-esc-barra { grid-column: 1 / -1; grid-row: 2; }
  .pp-esc-area { grid-column: 1 / -1; font-size: 14px; color: #555; }
  .pp-tabela thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .pp-tabela, .pp-tabela tbody, .pp-tabela tr, .pp-tabela th, .pp-tabela td { display: block; width: auto !important; }
  .pp-tabela tr { padding: 10px 0; border-bottom: 1px solid #e3e3e3; }
  .pp-tabela th, .pp-tabela td { padding: 2px 0; border: 0; }
}
