/* Infinity Ventiladores – página inicial futurista (views/home.ejs + /static/js/home.js)
   Carregada só na home, depois de site.css, future.css e dos CSS dos componentes
   (tech-ui, airflow, circular-carousel). Tema escuro "tech premium":
   chão navy profundo, linhas finas, azul → ciano do logotipo e dourado discreto.
   Regras do cliente: fotos reais intocadas (nenhum filtro de cor; só sombra e brilho ATRÁS do produto);
   decoração abstrata (anéis, grade, pontos); animações pausam fora da tela/aba oculta (home.js e
   componentes) e somem com prefers-reduced-motion (site.css zera animações e transições). */
body.home {
  --fh-floor: #050e18;
  --fh-deep: #071524;
  --fh-panel: linear-gradient(165deg, rgba(20, 52, 82, .52), rgba(8, 22, 37, .86));
  --fh-line: rgba(143, 227, 240, .12);
  --fh-line-2: rgba(143, 227, 240, .24);
  --fh-ink: #f3f8fc;
  --fh-ink-2: #bccfdf;   /* 10:1 sobre o chão */
  --fh-ink-3: #93abbf;   /* 7:1 sobre o chão */
  --fh-cyan: #24b6cd;
  --fh-cyan-lt: #8fe3f0;
  --fh-gold: #c9a65e;
  --fh-gold-lt: #e7d3a4;
  --fh-grid: linear-gradient(rgba(143, 227, 240, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 227, 240, .06) 1px, transparent 1px);
  background: var(--fh-floor);
  color: var(--fh-ink-2);
}
html:has(body.home) { scroll-padding-top: calc(var(--header-h) + 8px); }
/* os botões de modelo só aparecem com o home.js ativo (sem JS não fariam nada); o espaço fica reservado,
   assim a chegada deles não desloca o topo (CLS) */
.fh-lead { margin: 0 0 30px; max-width: 52ch; color: #c6d8e6; font-size: clamp(1.03rem, .97rem + .35vw, 1.2rem); line-height: 1.6; }
.fh-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.fh-btn-lg { --h: 54px; padding: 0 26px; font-size: 15.5px; }
.fh-btn-ghost { color: #eaf6fb; border-color: rgba(143, 227, 240, .34); background: rgba(8, 24, 40, .72); }
.fh-btn-ghost .ic { color: #6fe0f0; }
.fh-btn-ghost:hover { color: #fff; border-color: #6fe0f0; background: rgba(36, 182, 205, .12); box-shadow: 0 0 0 3px rgba(36, 182, 205, .14), 0 0 26px -6px rgba(36, 182, 205, .6); }
.fh-sec :focus-visible { --focus: #6fe0f0; --focus-ring: rgba(111, 224, 240, .25); }
/* ================================================================ seções */
.fh-sec { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 104px) 0; color: var(--fh-ink-2); }
/* fio ciano → dourado entre seções escuras seguidas (decoração abstrata) */
.fh-featured::after, .fh-support::after {
  content: ''; position: absolute; top: 0; left: 50%; z-index: -1; width: min(var(--container), calc(100% - 2 * var(--gutter))); height: 1px;
  transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(36, 182, 205, .45) 30%, rgba(201, 166, 94, .4) 70%, transparent);
}
.fh-sec h2 { margin: 0; color: #fff; font-size: clamp(1.9rem, 1.15rem + 2.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.fh-sec h3 { color: #fff; }
.fh-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
/* sem rótulo acima do título (26/10/2026); a ênfase de uma palavra do título é cor sólida, sem gradiente */
.fh-accent { color: var(--fh-cyan-lt); }
.fh-sec-head p { max-width: 54ch; margin: 0; color: var(--fh-ink-2); }
.fh-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fh-cyan-lt); text-decoration: none; white-space: nowrap; font: 700 15px var(--f-head); }
.fh-link .ic { transition: transform .2s var(--ease); }
.fh-link:hover, a:hover .fh-link { color: #fff; }
.fh-link:hover .ic, a:hover .fh-link .ic { transform: translateX(3px); }
/* grade fina com esmaecimento (decoração abstrata) */
.fh-cats::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--fh-grid); background-size: 48px 48px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
}
/* ================================================================ 04 · categorias
   Grade uniforme (26/10/2026: o mosaico com cartões de tamanhos diferentes ficava confuso): 4 colunas iguais no
   desktop, 2 no tablet e no celular. Todo cartão tem o mesmo palco (proporção fixa) com o recorte centrado sobre um
   anel de luz, e o rótulo alinhado na base; o último cartão ("Ver todos") segue a mesma medida. */
.fh-cats { background: var(--fh-floor); }
.fh-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.fh-cat {
  position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr; padding: 14px 14px 16px;
  border: 1px solid var(--fh-line); border-radius: 20px; background: var(--fh-panel); color: var(--fh-ink); text-decoration: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.fh-cat:hover { color: #fff; border-color: rgba(36, 182, 205, .42); box-shadow: 0 26px 54px -30px rgba(36, 182, 205, .6); }
/* palco: mesmo tamanho em todos os cartões; o anel elíptico na base faz de "piso" para o ventilador */
.fh-cat-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 14px; padding: 12% 10% 10%;
  border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(36, 182, 205, .14), transparent 70%), rgba(255, 255, 255, .02);
  box-shadow: inset 0 0 0 1px rgba(143, 227, 240, .07); }
.fh-cat-media::before { content: ''; position: absolute; left: 18%; right: 18%; bottom: 9%; height: 16%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(143, 227, 240, .22); background: radial-gradient(closest-side, rgba(36, 182, 205, .22), transparent);
  transition: border-color .3s var(--ease), opacity .3s var(--ease); }
.fh-cat-media img { position: relative; width: 100%; height: 100%; min-height: 0; object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .45)); transition: transform .5s var(--ease); }
.fh-cat.has-foto .fh-cat-media img { width: auto; height: 100%; aspect-ratio: 1; border-radius: 10px; background: #fff; filter: none; }
.fh-cat:hover .fh-cat-media img { transform: translateY(-5px) scale(1.04); }
.fh-cat:hover .fh-cat-media::before { border-color: rgba(95, 214, 232, .6); }
.fh-cat-body { display: flex; align-items: center; align-self: end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.fh-cat-body strong { display: block; color: #fff; font: 700 18px/1.2 var(--f-head); letter-spacing: -.01em; }
.fh-cat-body small { display: block; margin-top: 5px; color: var(--fh-cyan-lt); font: 500 12px/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.fh-cat-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(143, 227, 240, .3); color: #fff;
  transition: background-color .2s, border-color .2s, box-shadow .2s; }
.fh-cat:hover .fh-cat-go { background: #1565a8; border-color: #24b6cd; box-shadow: 0 6px 18px -6px rgba(36, 182, 205, .8); }
/* fundo = --grad de future.css (todas as paradas ≥ 4,8:1 com branco); texto branco puro */
.fh-cat--all { border-color: rgba(143, 227, 240, .3); background: var(--grad); }
.fh-cat--all .fh-cat-body small { color: #fff; }
.fh-cat-mark { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.fh-cat-mark img { width: 34%; max-width: 120px; opacity: .92; filter: brightness(0) invert(1); transition: transform .5s var(--ease); }
.fh-cat--all:hover .fh-cat-mark img { transform: scale(1.06); }
/* ================================================================ 05 · destaques (card de produto no tema escuro) */
.fh-featured { background: linear-gradient(180deg, var(--fh-floor), #081a2b 50%, var(--fh-floor)); }
.fh-pgrid { gap: 16px; }
.fh-featured .pcard { border-color: var(--fh-line); background: linear-gradient(170deg, rgba(20, 52, 82, .6), rgba(8, 22, 37, .94)); color: var(--fh-ink-2); }
.fh-featured .pcard-media { margin: 10px 10px 0; border-radius: 14px; background: #fff; }
.fh-featured .pcard-body { border-top: 0; }
.fh-featured .pcard:hover { border-color: rgba(36, 182, 205, .45); }
.fh-featured .pcard-kicker { color: var(--fh-cyan-lt); }
.fh-featured .pcard :is(h2, h3) a { color: #fff; }
.fh-featured .pcard .specs-mini { color: var(--fh-ink-2); }
.fh-featured .pcard .specs-mini .ic { color: #6fe0f0; }
.fh-featured .swatches .more, .fh-featured .swatches .sw-label { color: var(--fh-ink-3); }
.fh-featured .pcard .btn-outline { background: rgba(255, 255, 255, .04); color: #eef5fa; border-color: rgba(143, 227, 240, .3); }
.fh-featured .pcard:hover .btn-outline { border-color: #5fd6e8; background: rgba(36, 182, 205, .12); }
/* ================================================================ 06 · diferenciais (bento HUD) */
.fh-tile-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; color: #fff;
  background: var(--grad-vivid); box-shadow: 0 10px 24px -10px rgba(36, 182, 205, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.fh-hudbox { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; }
/* ================================================================ 07 · suporte e lojistas */
.fh-support { padding-top: clamp(48px, 5.5vw, 80px); padding-bottom: clamp(40px, 5vw, 64px); background: var(--fh-floor); }
.fh-sup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fh-sup {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 1px solid var(--fh-line); border-radius: 20px; background: var(--fh-panel); color: var(--fh-ink-2); text-decoration: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.fh-sup:hover { color: var(--fh-ink-2); border-color: rgba(36, 182, 205, .42); box-shadow: 0 26px 54px -30px rgba(36, 182, 205, .6); transform: translateY(-3px); }
.fh-sup h3 { margin: 6px 0 0; }
.fh-sup p { margin: 0; font-size: 15px; }
.fh-sup .fh-link { margin-top: auto; padding-top: 8px; }
.fh-b2b { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); background: radial-gradient(900px 420px at 90% 30%, rgba(201, 166, 94, .1), transparent 65%), var(--fh-floor); }
.fh-b2b-card {
  --sb-speed: 10s; --sb-width: 1px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 4.5vw, 64px); border: 1px solid rgba(201, 166, 94, .22); border-radius: 28px;
  background: radial-gradient(700px 360px at 100% 0%, rgba(201, 166, 94, .16), transparent 62%), linear-gradient(150deg, #0b1d2f, #10304f);
}
.fh-b2b-copy { min-width: 0; }
.fh-b2b h2 { margin-bottom: 14px; }
.fh-b2b .fh-lead { color: #bcd0df; }
.fh-note { margin: 22px 0 26px; }
.fh-b2b .fh-ctas { margin: 0; }
.fh-steps li { background: rgba(5, 14, 24, .4); }
/* lojista logado: atalhos da área do lojista no lugar dos passos do cadastro (o cartão inteiro é o link) */
.fh-shortcuts li { padding: 0; transition: border-color .2s; }
.fh-shortcuts li::before { content: none; }
.fh-shortcuts li:hover { border-color: rgba(201, 166, 94, .5); }
.fh-shortcuts a { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 44px; padding: 18px 20px; border-radius: inherit; color: inherit; text-decoration: none; }
.fh-shortcuts .fh-sc-ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-2); color: var(--gold-3); }
/* telas baixas (notebooks 1366×768 etc.): a composição do topo cabe na primeira dobra */
@media (min-width: 1025px) and (max-height: 840px) {
  .fh-ctas { margin-bottom: 28px; }
}
@media (max-width: 1024px) {
  .fh-lead { font-size: 1.02rem; margin-bottom: 24px; }
  .fh-ctas { gap: 10px; margin-bottom: 28px; }
  .fh-btn-lg { --h: 50px; padding: 0 18px; font-size: 15px; }
  /* tablet: anel mais "deitado" e mais largo que a tela (opções no home.js), painel logo abaixo */
  .fh-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fh-b2b-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .fh-lead { margin-bottom: 22px; }
  .fh-ctas { margin-bottom: 28px; }
  .fh-ctas > :is(.btn, .specular-button) { flex: 1 1 100%; }
  /* celular: anel bem mais largo que a tela e mais "deitado" (modelos da frente maiores); painel logo abaixo */
  .fh-cat-grid { gap: 10px; grid-auto-rows: auto; } /* cada linha na altura do próprio conteúdo */
  .fh-cat { padding: 8px 8px 12px; border-radius: 16px; }
  .fh-cat-media, .fh-cat-mark { margin-bottom: 10px; border-radius: 11px; }
  .fh-cat-body strong { font-size: 15.5px; }
  .fh-cat-body small { font-size: 12px; letter-spacing: .06em; }
  .fh-cat-go { display: none; }
  .fh-sup-grid { grid-template-columns: 1fr; }
  .fh-b2b-card { padding: 24px 18px; border-radius: 22px; }
}
/* #52 destaques: 2 colunas também entre 341 e 380 px (site.css passa a 1 coluna a 380 px: 8 cartões = 4.470 px) */
@media (min-width: 341px) and (max-width: 380px) {
  .fh-pgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
/* #9 alvos de toque de 44 px no celular e no tablet */
@media (pointer: coarse), (max-width: 1024px) {
  .fh-featured .pcard .btn-sm { min-height: 44px; }
  a.fh-link { padding-block: 12px; margin-block: -12px; }
}
/* ================================================================ movimento reduzido, alto contraste e impressão */
@media (forced-colors: active) {
  .fh-cat, .fh-sup { border: 1px solid CanvasText; }
}
@media print {
  .fh-sec h2, .fh-sec h3 { color: #000; text-shadow: none; }
}
