/* ==========================================================================
   Humedix Brasil — folha de estilos
   Identidade: Judson (destaques) + Open Sans (informações gerais)
   Cores do manual: #65a8da #4372b4 #385d85 #f0f0f0 #373636
   ========================================================================== */

@font-face {
  font-family: "Judson";
  src: url("../fonts/judson-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Judson";
  src: url("../fonts/judson-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #65a8da;
  --blue: #4372b4;
  --navy: #385d85;
  --mist: #f0f0f0;
  --ink: #373636;
  --deep: #1e4463;          /* derivado do azul #385d85, para rodapé e sobreposições */
  --white: #fff;
  --teal: #229a8c;          /* paleta Interfarma, usada só no bloco do distribuidor */
  --teal-2: #38a2b7;
  --line: rgba(56, 93, 133, 0.24);

  --font-display: "Judson", Georgia, "Times New Roman", serif;
  --font-text: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --leaf: 4px 56px 4px 56px;   /* forma dos quadros de mídia, derivada do ícone "hu" */
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; }
img { height: auto; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.6vw, 3.6rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h2 {
  position: relative; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.18;
  padding-bottom: 0.4em;
}
h2::after {
  content: ""; position: absolute; left: 1px; bottom: 0;
  width: 52px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
}
.section--navy h2::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35)); }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-top: 1.8em; }
h2 + h3, .no-top { margin-top: 0; }

p { margin: 0 0 1.1em; max-width: 68ch; }
ul { margin: 0 0 1.2em; padding-left: 1.2em; max-width: 68ch; }
li { margin-bottom: 0.4em; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 56ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn svg { flex: none; width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn--primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: var(--white); box-shadow: 0 12px 24px -14px rgba(56, 93, 133, 0.6); }
.btn--primary:hover { background: linear-gradient(135deg, var(--sky), var(--blue)); color: var(--white); box-shadow: 0 16px 30px -14px rgba(56, 93, 133, 0.7); }
.btn--light { background: var(--white); color: var(--navy); box-shadow: 0 12px 26px -16px rgba(14, 32, 51, 0.5); }
.btn--light:hover { background: var(--mist); color: var(--navy); box-shadow: 0 16px 30px -14px rgba(14, 32, 51, 0.55); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
body { padding-top: var(--header-h); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; flex: none; align-items: center;
  padding: 6px 14px; border-radius: 12px; background: var(--white);
  box-shadow: 0 2px 10px rgba(14, 32, 51, 0.08);
}
.brand-logo { display: block; height: 32px; width: auto; }

/* cabeçalho "flutuante": transparente sobre o herói escuro, ganha fundo ao rolar a página.
   O logotipo (sempre nas cores originais) fica num pequeno cartão branco, para se manter
   legível tanto sobre o vídeo quanto sobre o fundo sólido. */
html.js .site-header--overlay {
  background: transparent; border-bottom-color: transparent; box-shadow: none;
}
html.js .site-header--overlay .nav-list a:not(.btn) { color: var(--white); }
html.js .site-header--overlay .nav-toggle { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
html.js .site-header--overlay .nav-list .btn--outline { border-color: rgba(255, 255, 255, 0.8); color: var(--white); }
html.js .site-header--overlay .nav-list .btn--outline:hover { background: var(--white); color: var(--navy); }

html.js .site-header--overlay.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(30, 68, 99, 0.45);
}
html.js .site-header--overlay.is-scrolled .brand { box-shadow: none; }
html.js .site-header--overlay.is-scrolled .nav-list a:not(.btn) { color: var(--navy); }
html.js .site-header--overlay.is-scrolled .nav-toggle { border-color: var(--navy); color: var(--navy); }
html.js .site-header--overlay.is-scrolled .nav-list .btn--outline { border-color: var(--navy); color: var(--navy); }
/* o menu recolhido (mobile) sempre abre com fundo sólido, mesmo com o cabeçalho ainda transparente */
html.js .site-header--overlay.is-open { background: var(--white); border-bottom-color: var(--line); }
html.js .site-header--overlay.is-open .nav-toggle { border-color: var(--navy); color: var(--navy); }
html.js .site-header--overlay.is-open .nav-list a:not(.btn) { color: var(--navy); }
html.js .site-header--overlay.is-open .nav-list .btn--outline { border-color: var(--navy); color: var(--navy); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--navy); border-radius: 999px;
  background: transparent; color: var(--navy);
  font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.is-open .nav-toggle-bars { background: transparent; }
.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 28px;
  margin: 0; padding: 0; list-style: none; max-width: none;
}
.nav-list li { margin: 0; }
.nav-list a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 1px;
  color: var(--navy); font-size: 0.84rem; font-weight: 700; text-decoration: none;
  letter-spacing: 0.045em; text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 1px; right: 100%; bottom: 2px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-list a:not(.btn):hover::after, .nav-list a:not(.btn):focus-visible::after { right: 1px; }
.nav-list .btn { padding: 8px 22px; min-height: 44px; }

/* cabeçalho da página pública: com o item "Blog" a lista fica mais larga, recolhe um pouco antes */
@media (max-width: 940px) {
  .header-pub .nav-toggle { display: inline-flex; }
  .header-pub .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    box-shadow: 0 18px 30px -18px rgba(30, 68, 99, 0.35);
  }
  .header-pub.is-open .nav { display: block; }
  .header-pub .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .header-pub .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header-pub .nav-list .btn { margin-top: 16px; border-bottom: 2px solid var(--navy); }
}

/* cabeçalho da página de profissionais tem 9 âncoras: recolhe antes, para nunca quebrar em duas linhas */
@media (max-width: 1400px) {
  .header-pro .nav-toggle { display: inline-flex; }
  .header-pro .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 18px 30px -18px rgba(30, 68, 99, 0.35);
  }
  .header-pro.is-open .nav { display: block; }
  .header-pro .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .header-pro .nav-list a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}
/* sem JavaScript, o menu continua visível */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-pub .nav,
html:not(.js) .header-pro .nav { display: block; position: static; box-shadow: none; padding: 0; border: 0; max-height: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }

/* ---------- Hero: tela cheia, adaptável a qualquer resolução ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #0e2033;
  color: var(--white);
  margin-top: calc(-1 * var(--header-h));
  min-height: 100svh;
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; inset: -6% 0; z-index: -2; pointer-events: none;
  will-change: transform;
}
.hero-media-poster, .hero-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
}
.hero-media-video { opacity: 0; transition: opacity 0.6s ease; }
.hero-media-video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-media-video { display: none; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 26, 43, 0.86) 0%, rgba(10, 26, 43, 0.56) 52%, rgba(10, 26, 43, 0.22) 100%);
}
.hero-inner {
  width: 100%;
  padding-block: calc(var(--header-h) + clamp(24px, 6vh, 56px)) clamp(56px, 9vh, 96px);
}
.hero h1 { color: var(--white); max-width: 24ch; }
.hero .lead { color: rgba(255, 255, 255, 0.92); }
.hero-seal {
  display: inline-block; margin: 0 0 1.6rem; padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; color: var(--white);
}
.hero-seal--dark { color: var(--navy); border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.8rem 0 0; padding: 0; list-style: none; max-width: 600px; }
.chips li { margin: 0; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; font-size: 0.95rem; }
.hero-note { margin: 2.2rem 0 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.86); }

/* entrada suave e escalonada do conteúdo do herói ao carregar a página */
.hero-inner > * {
  opacity: 0; transform: translateY(18px);
  animation: hx-hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.27s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.38s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.49s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.6s; }
@keyframes hx-hero-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-inner > * { animation: none; opacity: 1; transform: none; }
}

.hero-sound {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
  background: rgba(10, 26, 43, 0.35); color: var(--white);
  font-size: 0.82rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(2px);
}
.hero-sound svg { width: 15px; height: 15px; flex: none; }
.hero-sound .icon-play { display: none; }
.hero-sound[aria-pressed="true"] .icon-pause { display: none; }
.hero-sound[aria-pressed="true"] .icon-play { display: block; }
@media (prefers-reduced-motion: reduce) { .hero-sound { display: none; } }

/* dica de rolagem: seta discreta que "respira" no rodapé do herói */
.hero-scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; animation: hx-hero-in 0.8s ease forwards; animation-delay: 0.9s;
}
.hero-scroll-cue svg { width: 16px; height: 16px; animation: hx-bounce 2s ease-in-out infinite; }
.hero-scroll-cue:hover { color: var(--white); }
@keyframes hx-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; opacity: 1; }
  .hero-scroll-cue svg { animation: none; }
}
@media (max-height: 620px), (max-width: 560px) { .hero-scroll-cue { display: none; } }

@media (max-width: 720px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 26, 43, 0.82), rgba(10, 26, 43, 0.6)); }
  .hero-media-video, .hero-media-poster { object-position: 62% 30%; }
}

/* ---------- Revelação ao rolar a página ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Seções ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--tint {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--mist);
}
.section--tint::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -20%; right: -10%;
  width: min(52vw, 620px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(101, 168, 218, 0.35), rgba(101, 168, 218, 0) 70%);
}
.section--navy { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.section--navy::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -4%; top: 50%; width: min(38vw, 440px); aspect-ratio: 1000 / 909; transform: translateY(-50%);
  background: url("../img/icone-humedix.webp") center / contain no-repeat; opacity: 0.14;
}
.section--navy h2 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--white); }

/* ---------- Produto em destaque (galeria com fotos reais) ---------- */
.showcase {
  display: grid; gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start; margin-top: 2.6rem;
}
.showcase-figure { margin: 0; border-radius: var(--leaf); overflow: hidden; background: var(--mist); }
.showcase-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-figure--foto {
  background: #eef1f4;
  display: flex; align-items: center; justify-content: center;
}
.showcase-figure--foto img { width: 100%; height: 100%; object-fit: contain; }

.media--foto {
  background: #eef1f4;
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(320px, 34vw, 460px);
}
.media--foto img { object-fit: contain; }
.showcase-figure--tall { grid-column: span 3; aspect-ratio: 3 / 4; }
.showcase-figure--wide { grid-column: span 3; aspect-ratio: 3 / 4; align-self: end; }
.showcase-copy { grid-column: 1 / -1; max-width: 62ch; }
@media (min-width: 720px) {
  .showcase { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .showcase-copy { grid-column: 1 / 6; align-self: center; }
  .showcase-figure--tall { grid-column: 6 / 10; aspect-ratio: 3 / 4; }
  .showcase-figure--wide { grid-column: 10 / 13; aspect-ratio: 3 / 4; margin-top: 15%; }
}
@media (max-width: 539px) {
  .showcase-figure--tall, .showcase-figure--wide { grid-column: span 6; }
}

/* ---------- Seção paralaxe: introdução ao blog ---------- */
.section--blog {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 52vw, 560px);
  display: flex; align-items: center;
  color: var(--white); text-align: center;
}
.section--blog-bg {
  position: absolute; inset: 0; z-index: -2;
  background: #12314c url("../img/textura-azul.webp") center 30% / cover no-repeat;
  background-attachment: fixed;
  will-change: transform;
}
@supports not (background-attachment: fixed) {
  .section--blog-bg { background-attachment: scroll; }
}
.section--blog::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 32, 51, 0.72) 0%, rgba(14, 32, 51, 0.55) 55%, rgba(14, 32, 51, 0.8) 100%);
}
.section--blog .container { display: flex; flex-direction: column; align-items: center; padding-block: clamp(56px, 9vw, 96px); }
.section--blog h2 { color: var(--white); }
.section--blog h2::after { left: 50%; transform: translateX(-50%); }
.section--blog .lead { color: rgba(255, 255, 255, 0.92); margin-inline: auto; }
.section--blog .hero-seal { margin-inline: auto; }
.section--blog .actions { justify-content: center; }

/* Últimos posts do blog (preenchidos via JS a partir da API REST do WordPress) */
.blog-posts {
  display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%; max-width: 980px;
  margin: 2.6rem 0 0; padding: 0; list-style: none; text-align: left;
}
.blog-posts[hidden] { display: none; }
@media (max-width: 780px) {
  .blog-posts { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}
.blog-post-card {
  margin: 0; border-radius: var(--leaf); overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.blog-post-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.13); }
.blog-post-card a { display: block; color: inherit; text-decoration: none; }
.blog-post-card figure { margin: 0; aspect-ratio: 16 / 10; background: rgba(255, 255, 255, 0.08); }
.blog-post-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-post-card-body { padding: 18px 20px 20px; }
.blog-post-card time { display: block; margin-bottom: 6px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.blog-post-card h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; color: var(--white); }
.blog-post-card p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: rgba(255, 255, 255, 0.82); max-width: none; }
.blog-post-card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
/* iOS Safari ignora background-attachment: fixed; a imagem some do fluxo aqui, então trocamos para "scroll" nesse caso específico */
@supports (-webkit-touch-callout: none) {
  .section--blog-bg { background-attachment: scroll; }
}

.split {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 84px);
}
.split--top { align-items: start; }
@media (max-width: 859px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 860px) {
  .split--rev > :first-child { order: 2; }
}

/* mídia: quadros com a forma "folha" derivada do ícone */
.media { margin: 0; border-radius: var(--leaf); overflow: hidden; background: var(--mist); }
.media img { display: block; width: 100%; height: auto; }

/* ---------- Seção "Nosso Instagram": fundo com textura, texto grande + print clicável ---------- */
.section--instagram {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white);
  padding-block: clamp(64px, 9vw, 112px);
}
.instagram-bg {
  position: absolute; inset: 0; z-index: -2;
  background: #12314c url("../img/textura-azul.webp") center 35% / cover no-repeat;
}
.section--instagram::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 32, 51, 0.94) 0%, rgba(14, 32, 51, 0.78) 40%, rgba(14, 32, 51, 0.42) 68%, rgba(14, 32, 51, 0.18) 100%);
}
.instagram-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.instagram-copy { flex: 1 1 320px; max-width: 46ch; }
.instagram-eyebrow {
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.85rem; font-weight: 700; color: var(--sky);
}
.instagram-copy h2 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.3rem); }
.instagram-copy h2::after { background: linear-gradient(90deg, var(--sky), rgba(255, 255, 255, 0.85)); }
.instagram-sub { color: rgba(255, 255, 255, 0.86); max-width: 40ch; }

.instagram-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  flex: 1 1 380px; max-width: 560px;
  border-radius: var(--leaf); overflow: hidden;
  box-shadow: 0 30px 60px rgba(8, 20, 34, 0.5);
  transform: rotate(1.2deg);
  transition: transform 0.45s ease;
}
.instagram-grid:hover, .instagram-grid:focus-within { transform: rotate(0deg) translateY(-4px); }
.instagram-grid--widget { display: block; background: transparent; padding: 0; }
.instagram-widget-frame {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--leaf);
  background: transparent;
}
.instagram-grid--widget iframe.snapwidget-widget {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0;
}
.instagram-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist); }
.instagram-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.instagram-tile:hover img, .instagram-tile:focus-visible img { transform: scale(1.08); }
.instagram-tile-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(30, 68, 99, 0.72); color: var(--white);
  font-weight: 700; font-size: 0.86rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.instagram-tile--more:hover .instagram-tile-overlay,
.instagram-tile--more:focus-visible .instagram-tile-overlay { opacity: 1; }
@media (max-width: 720px) {
  .instagram-grid { transform: none; }
  .instagram-tile--more .instagram-tile-overlay { opacity: 1; background: rgba(30, 68, 99, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .instagram-grid, .instagram-tile img, .instagram-tile-overlay { transition: none; }
}

.video-slot { position: relative; aspect-ratio: 16 / 9; background: #dbe7f3; }
.video-slot img, .video-slot iframe, .video-slot video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover;
}
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--navy); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(18, 48, 76, 0.35);
  transition: transform 0.2s, background-color 0.2s, color 0.2s;
}
.video-play:hover { background: var(--navy); color: var(--white); transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-slot[data-youtube-id=""][data-mp4=""] .video-play { display: none; }

/* Painel de vídeo decorativo, sem áudio, em loop (diferente do .video-slot, que é clicável) */
.auto-video { position: relative; aspect-ratio: 4 / 5; background: #0e2033; }
.auto-video video, .auto-video img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.auto-video video { opacity: 0; transition: opacity 0.5s ease; }
.auto-video video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .auto-video video { display: none; } }

/* Grupo Huons */
.fronts { list-style: none; padding: 0; margin: 0 0 1.4em; max-width: none; display: grid; gap: 0; }
.fronts li { margin: 0; padding: 12px 0 12px 18px; border-left: 3px solid var(--sky); font-weight: 600; color: var(--navy); }
.fronts li + li { border-top: 1px solid var(--line); }

/* bloco do distribuidor (paleta Interfarma) */
.partner {
  margin-top: 2rem; padding: 6px 0 6px 24px; max-width: 420px;
  border-left: 4px solid var(--teal);
  border-image: linear-gradient(var(--teal-2), var(--teal)) 1;
}
.partner p { margin: 0 0 12px; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.partner img { display: block; width: 150px; height: auto; }

/* ---------- Tabelas ---------- */
.table-wrap {
  margin: 1.6rem 0 1.4rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-top: 3px solid var(--navy);
}
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.98rem; line-height: 1.55; }
th, td { padding: 14px 18px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-weight: 700; color: var(--navy); font-size: 0.95rem; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--navy); }
.table-wrap--narrow table { min-width: 0; }
.table-wrap--narrow th { width: 30%; min-width: 130px; }
.table-note { font-size: 0.95rem; color: var(--ink); }

/* ---------- Conteúdo científico ---------- */
.ref { font-size: 0.9rem; color: #4a4a4a; overflow-wrap: anywhere; }
.caveat {
  margin: 0 0 1.4em; padding: 2px 0 2px 16px; max-width: 68ch;
  border-left: 3px solid var(--blue); font-size: 0.95rem;
}
.evidence { border-top: 3px solid var(--navy); margin-top: 2rem; }
.evidence > article {
  display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(16px, 4vw, 56px); padding-block: 32px 12px;
  border-bottom: 1px solid var(--line);
}
.evidence h3 { margin: 0; }
@media (max-width: 859px) { .evidence > article { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 84px); margin-top: 2.4rem; }
@media (max-width: 859px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
.tech-list { max-width: none; }
.tech-list li { max-width: 74ch; }
.spec-source { font-size: 0.95rem; color: #4a4a4a; }
.inline-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.reg-number { font-weight: 700; color: var(--navy); }
.sticky-media { position: sticky; top: calc(var(--header-h) + 24px); }

/* ---------- Contato ---------- */
.contact-list { margin: 0; padding: 0; list-style: none; max-width: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { color: var(--navy); }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 3px solid var(--navy); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 6px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, 0.88); padding-block: 56px 40px; font-size: 0.92rem; line-height: 1.65; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #cfe4f6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr); gap: clamp(28px, 6vw, 80px); }
@media (max-width: 859px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-brands { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
/* logotipos sempre nas cores originais: um pequeno cartão branco mantém a legibilidade sobre o rodapé escuro */
.footer-brands .brand-plate {
  display: inline-flex; padding: 12px 18px; border-radius: 12px; background: var(--white);
}
.footer-brands img { display: block; height: auto; }
.footer-brands .fb-humedix { width: 150px; }
.footer-brands .fb-interfarma { width: 96px; }
.footer-brands p { margin: 0 0 8px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.88); }
.footer-legal p { max-width: 70ch; margin-bottom: 0.9em; }
.footer-legal .reg { font-weight: 600; color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 1.4rem 0 0; padding: 0; list-style: none; max-width: none; }
.footer-links li { margin: 0; }
.footer-copy { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); font-size: 0.85rem; max-width: none; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--white); }

/* ---------- Gate de acesso (profissionais) ---------- */
.gate {
  position: fixed; inset: 0; z-index: 3000; overflow-y: auto;
  display: grid; place-items: center; padding: 24px;
  background: var(--mist) url("../img/textura-clara.webp") center / cover no-repeat;
}
html.hx-ok .gate { display: none; }
.gate-box { width: 100%; max-width: 560px; padding-block: 24px; }
.gate-box img { display: block; width: 190px; height: auto; margin-bottom: 36px; }
.gate-title { font-family: var(--font-display); font-size: clamp(1.45rem, 4.6vw, 2rem); line-height: 1.25; color: var(--navy); margin: 0 0 32px; max-width: none; }
.gate-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gate-actions .btn { min-height: 60px; font-size: 1.1rem; }
.gate-help { margin: 22px 0 0; font-size: 0.85rem; color: #4a4a4a; }
@media (max-width: 380px) { .gate-actions { grid-template-columns: 1fr; } }

/* ---------- Páginas simples (privacidade, termos, 404) ---------- */
.page-simple { padding-block: clamp(56px, 8vw, 96px); min-height: 50vh; }
.page-simple h1 { max-width: 24ch; }

@media print {
  .site-header, .gate, .video-play { display: none !important; }
}

/* lista técnica do produto */
.tech-list { list-style: none; counter-reset: tech; margin: 1.1em 0 1.3em; padding: 0; display: grid; gap: 14px; }
.tech-list li { counter-increment: tech; position: relative; padding-left: 44px; }
.tech-list li::before {
  content: counter(tech); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 0.9rem; display: grid; place-items: center;
}
.tech-list strong { display: block; color: var(--deep); margin-bottom: 2px; }
.tech-note { font-size: 0.9rem; color: var(--navy); border-top: 1px solid rgba(56, 93, 133, 0.25); padding-top: 14px; }

/* botão flutuante do WhatsApp */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 50%; background: #25d366; color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; box-shadow: 0 10px 26px rgba(8, 20, 34, 0.35); transition: transform 0.2s ease, background 0.2s ease;
}
.wa-float svg { width: 30px; height: 30px; flex: none; display: block; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5a; transform: translateY(-2px); color: #fff; }
@media (max-width: 560px) { .wa-float { left: 14px; bottom: 14px; } }
@media print { .wa-float { display: none; } }

/* produto: fotos empilhadas ao lado do texto */
.showcase-stack { grid-column: 1 / -1; display: grid; gap: clamp(14px, 2vw, 22px); }
.showcase-figure--prod { aspect-ratio: 16 / 9; }
.showcase-figure--joelho { aspect-ratio: 3 / 2; }
.showcase-figure--prod img, .showcase-figure--joelho img { object-fit: cover; }
@media (min-width: 720px) {
  .showcase { align-items: center; }
  .showcase-stack { grid-column: 6 / 13; }
}
