﻿/*
    Home nova (hero, categorias, serviços, concierge, parceiros e intermediação).
    Usada pela home externa (Views/Home/Externa.cshtml, sem layout) e pela interna (Views/Home/Index.cshtml, dentro do _Layout).
    - Tudo fica sob a raiz .hn e com classes "hn-" para não colidir com o Bootstrap 3 nem com o style-confyare.css.
    - Medidas em px (não rem): o Bootstrap 3 define html { font-size: 10px }, o que encolheria tudo na home interna.
*/

.hn {
    --hn-bg: #040d20;
    --hn-card: #0a1c3d;
    --hn-card-2: #0d2349;
    --hn-border: rgba(58, 140, 255, .28);
    --hn-border-strong: rgba(58, 160, 255, .6);
    --hn-primary: #1672ff;
    --hn-primary-hover: #0d5fe0;
    --hn-cyan: #2bb8ff;
    --hn-text: #ffffff;
    --hn-muted: #b4c3dd;
    --hn-navy: #0a1a3a;
    --hn-radius: 16px;
    --hn-gutter: 16px;
    --hn-max: 1200px;
    --hn-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: var(--hn-text);
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(22, 114, 255, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(43, 184, 255, .08), transparent 60%),
        var(--hn-bg);
}
@media (min-width: 768px) { .hn { --hn-gutter: 24px; } }
@media (min-width: 1200px) { .hn { --hn-gutter: 32px; } }

/* neutraliza o que o Bootstrap/normalize aplicam nos elementos */
.hn *, .hn *::before, .hn *::after { box-sizing: border-box; }
/* :where() mantém a especificidade do reset em (0,1,0): vence o Bootstrap (p, ul...) mas perde para as classes
   da home declaradas depois (ex.: .hn-hero-sub e .hn-trust definem as próprias margens) */
.hn :where(h1, h2, h3, p, ul, label) { margin: 0; padding: 0; font-family: inherit; }
.hn :where(label) { display: block; max-width: none; font-weight: inherit; }
.hn img { max-width: 100%; display: block; border: 0; }
.hn a, .hn a:hover, .hn a:focus { color: inherit; text-decoration: none; }
.hn button { font: inherit; color: inherit; cursor: pointer; }
.hn small { font-size: 85%; }
.hn section[id] { scroll-margin-top: 80px; }

.hn-ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hn-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; }
.hn-container { width: 100%; max-width: calc(var(--hn-max) + var(--hn-gutter) * 2); margin: 0 auto; padding: 0 var(--hn-gutter); }

/* home interna: o topo do _Layout é fixo; --hn-topo vem do script (altura real do topo) */
.hn--logado { padding-top: var(--hn-topo, 80px); padding-bottom: 48px; }

/* ---------- Botões ---------- */
.hn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 10px; font-weight: 700; white-space: nowrap; line-height: 1.3; color: #fff;
    transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.hn-btn:active { transform: translateY(1px); }
.hn .hn-btn, .hn .hn-btn:hover, .hn .hn-btn:focus { color: #fff; }
.hn-btn-outline { border: 1.5px solid var(--hn-border-strong); background: rgba(22, 114, 255, .08); padding: 9px 22px; }
.hn-btn-outline:hover { border-color: var(--hn-cyan); background: rgba(43, 184, 255, .14); }
.hn-btn-primary { background: var(--hn-primary); border: 0; padding: 10px 22px; box-shadow: 0 6px 20px rgba(22, 114, 255, .35); }
.hn-btn-primary:hover { background: var(--hn-primary-hover); }
/* botão branco para fundos azuis (cadastro de serviço) */
.hn-btn-light { background: #fff; border: 0; padding: 10px 22px; box-shadow: 0 8px 24px rgba(4, 13, 32, .35); }
.hn .hn-btn.hn-btn-light, .hn .hn-btn.hn-btn-light:hover, .hn .hn-btn.hn-btn-light:focus { color: var(--hn-navy); }
.hn-btn-light:hover { background: #eaf2ff; }

/* ---------- Hero ---------- */
.hn-hero {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; align-items: center;
    background: var(--hn-navy);
    border-bottom: 1px solid var(--hn-border);
}
/* As artes já trazem o azul-marinho embutido do lado do texto; as camadas abaixo só garantem a leitura */
.hn-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hn-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(4, 13, 32, .55) 0%, rgba(4, 13, 32, .35) 45%, rgba(4, 13, 32, 0) 70%, var(--hn-bg) 100%);
}
.hn-hero-content { padding-top: 36px; padding-bottom: 32px; }
/* Celular e tablet: altura só do conteúdo; a arte vertical fica centralizada ao fundo (pode cortar) */
@media (max-width: 1023px) {
    .hn-hero-img { object-position: center center; }
    .hn-hero::before {
        background: linear-gradient(180deg, rgba(4, 13, 32, .72) 0%, rgba(4, 13, 32, .45) 55%, rgba(4, 13, 32, .6) 85%, var(--hn-bg) 100%);
    }
    .hn-trust li { text-shadow: 0 1px 8px rgba(4, 13, 32, .9); }
}
.hn-hero h1 { margin: 0; font-size: clamp(33.6px, 5.2vw, 59.2px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hn-hl { background: linear-gradient(90deg, #1f8bff, #35c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hn-hero-sub { margin: 14px 0 26px; color: #d6e2f5; font-size: clamp(16px, 1.6vw, 20px); }
.hn-search {
    display: flex; align-items: stretch; width: 100%; max-width: 760px;
    border: 1.5px solid var(--hn-border-strong); border-radius: 14px; overflow: hidden;
    background: rgba(4, 13, 32, .7);
    box-shadow: 0 0 0 4px rgba(22, 114, 255, .08), 0 0 30px rgba(43, 184, 255, .15);
}
.hn-search label { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 18px; min-width: 0; }
.hn-search label .hn-ico { width: 24px; height: 24px; color: #cfe0ff; }
.hn-search input { flex: 1; min-width: 0; height: 62px; padding: 0; background: transparent; border: 0; outline: 0; box-shadow: none; color: #fff; font: inherit; font-size: 17.6px; line-height: normal; }
.hn-search input::placeholder { color: #b9c8e2; }
.hn-search button { border: 0; border-radius: 0; padding: 0 clamp(18px, 4vw, 52px); font-size: 17.6px; }
.hn-trust { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 26px 0 0; padding: 0; list-style: none; }
.hn-trust li { display: flex; align-items: center; gap: 10px; font-size: 13.6px; color: #d6e2f5; line-height: 1.25; }
.hn-trust .hn-ico { width: 34px; height: 34px; color: var(--hn-cyan); stroke-width: 1.5; }
@media (max-width: 559px) {
    .hn-search label { padding: 0 8px 0 12px; gap: 8px; }
    .hn-search input { height: 56px; font-size: 16px; }
    .hn-search button { padding: 0 16px; font-size: 15.2px; }
    .hn-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hn-trust li { flex-direction: column; text-align: center; gap: 6px; font-size: 12px; }
    .hn-trust .hn-ico { width: 30px; height: 30px; }
}
/* coluna do hero mais larga só para a busca; título e subtítulo mantêm 640px */
.hn-hero-inner { max-width: 760px; }
.hn-hero h1, .hn-hero-sub { max-width: 640px; }
@media (min-width: 1024px) {
    .hn-hero { min-height: clamp(420px, 58vh, 520px); }
    /* ancorado à direita para a pessoa não sair do quadro em telas mais estreitas */
    .hn-hero-img { object-position: 85% center; }
    .hn-hero::before {
        background:
            linear-gradient(90deg, rgba(4, 13, 32, .7) 0%, rgba(4, 13, 32, .45) 35%, rgba(4, 13, 32, 0) 55%),
            linear-gradient(180deg, transparent 80%, var(--hn-bg) 100%);
    }
    .hn-hero-content { padding-top: 48px; padding-bottom: 48px; }
    /* título um pouco menor em notebooks para não encostar nos braços do eletricista */
    .hn-hero h1 { font-size: clamp(41.6px, 4.3vw, 59.2px); }
}

/* ---------- Cabeçalho das seções ---------- */
.hn-section { padding-top: clamp(32px, 5vw, 48px); }
.hn-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hn-section-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0; font-size: clamp(20.8px, 2.6vw, 30.4px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #fff; }
.hn-tag { font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--hn-border-strong); color: #d6e2f5; letter-spacing: .02em; }
.hn .hn-see-all { display: inline-flex; align-items: center; gap: 6px; color: var(--hn-cyan); font-weight: 600; font-size: 15.2px; white-space: nowrap; }
.hn .hn-see-all:hover { color: #7fd3ff; }
.hn-see-all .hn-ico { width: 18px; height: 18px; transition: transform .2s; }
.hn-see-all:hover .hn-ico { transform: translateX(3px); }

/* ---------- Categorias ---------- */
/* Celular: 2 por linha, ícone ao lado do nome; a partir de 560px volta ao bloco com ícone em cima */
.hn-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hn-category {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    min-height: 64px; padding: 12px 14px;
    border: 1px solid var(--hn-border); border-radius: 12px;
    background: linear-gradient(180deg, var(--hn-card-2), var(--hn-card));
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hn-category:hover { border-color: var(--hn-cyan); transform: translateY(-3px); box-shadow: 0 0 24px rgba(43, 184, 255, .22); }
.hn-category .hn-ico { width: 32px; height: 32px; color: var(--hn-cyan); stroke-width: 1.5; }
.hn-category span { min-width: 0; overflow-wrap: break-word; min-height: 29px; display: flex; justify-content: center; align-items: center; }
/* ícones próprios da home (image/home-externa/categorias): já vêm em ciano, opacos e sem margem interna */
.hn-category-icon { width: 64px; height: 64px; flex: none; object-fit: contain; }
/* fallback: categoria sem ícone próprio usa o da tbLoja_Categoria (dourado, com margem) pintado de ciano por filtro */
.hn-category-icon--filtro { filter: brightness(0) saturate(100%) invert(62%) sepia(51%) saturate(2381%) hue-rotate(173deg) brightness(101%) contrast(101%); }
/* telas bem estreitas (ex.: 320px): ícone em cima para nomes longos caberem */
@media (max-width: 399px) {
    .hn-categories { grid-auto-rows: 1fr; }
    .hn-category { flex-direction: column; justify-content: center; gap: 8px; padding: 12px 8px; text-align: center; }
}
@media (min-width: 560px) {
    .hn-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hn-category { flex-direction: column; justify-content: center; gap: 10px; min-height: 120px; padding: 14px 6px; text-align: center; font-size: 11.8px; }
    .hn-category .hn-ico, .hn-category-icon { width: 70px; height: 70px; }
}
/* celular (2 colunas): se sobrar uma categoria sozinha na última linha, ela ocupa a linha inteira */
@media (max-width: 559px) { .hn-category:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* desktop: todas as categorias do banco numa linha só, seja qual for a quantidade */
@media (min-width: 1024px) { .hn-categories { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- Serviços ---------- */
.hn-services { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hn-service {
    position: relative; display: grid; grid-template-columns: 42% 1fr;
    border: 1px solid var(--hn-border); border-radius: var(--hn-radius); overflow: hidden;
    background: linear-gradient(135deg, var(--hn-card-2), var(--hn-card));
    transition: border-color .2s, box-shadow .2s;
}
.hn-service:hover { border-color: var(--hn-border-strong); box-shadow: 0 0 30px rgba(22, 114, 255, .2); }
/* foto com o selo do prestador (logo + nome + verificado) na base */
.hn-service-media { position: relative; min-height: 200px; background: var(--hn-navy); }
.hn-service-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hn-service-selo {
    position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
    display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px;
    background: rgba(4, 13, 32, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-size: 12.5px; font-weight: 700;
}
.hn-service-selo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-service-logo { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; }
.hn-service-selo .hn-ico { width: 14px; height: 14px; color: var(--hn-cyan); }
.hn-service-body { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; min-width: 0; }
.hn-service-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.hn-service-cat { font-size: 10.9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hn-cyan); }
.hn-service-nota { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.8px; font-weight: 700; }
.hn-service-nota .hn-ico { width: 14px; height: 14px; color: var(--hn-cyan); }
.hn-service-nota small { color: var(--hn-muted); font-weight: 500; }
.hn-service h3 { margin: 6px 0 4px; font-size: clamp(16.8px, 2vw, 20.8px); font-weight: 700; line-height: 1.25; color: #fff; }
.hn-service p { margin: 0 0 14px; color: var(--hn-muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hn-service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; }
.hn-service .hn-btn { position: relative; z-index: 1; font-size: 13.6px; padding: 9px 14px; }
.hn-service .hn-btn .hn-ico, .hn-service-detalhes .hn-ico { width: 16px; height: 16px; }
.hn .hn-service-detalhes { display: inline-flex; align-items: center; gap: 6px; color: var(--hn-cyan); font-weight: 700; font-size: 13.6px; }
.hn .hn-service-detalhes:hover { color: #7fd3ff; }
/* card inteiro clicável leva aos detalhes; o botão de orçamento fica por cima (z-index) */
.hn-service-detalhes::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 768px) { .hn-services { grid-template-columns: 1fr 1fr; } }
/* celular (1 serviço por linha): imagem em cima */
@media (max-width: 767px) {
    .hn-service { grid-template-columns: 1fr; }
    .hn-service-media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- Concierge e cadastro de serviço ---------- */
/* duas faixas: empilhadas no celular e 60/40 a partir de 900px */
.hn-duo { display: grid; grid-template-columns: 1fr; gap: 14px; }
.hn-duo-card {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    min-height: 280px; padding: 26px 22px; border-radius: calc(var(--hn-radius) + 4px);
}
.hn-duo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hn-duo h2 { margin: 0; font-size: clamp(20px, 2.1vw, 25px); font-weight: 700; line-height: 1.2; color: #fff; }
.hn-duo p { margin: 0; color: #d6e2f5; font-size: 15px; }
.hn-duo .hn-btn { margin-top: 6px; padding: 12px 20px; }
.hn-duo .hn-btn .hn-ico { width: 18px; height: 18px; }

/* Concierge: mesma arte do card Concierge do rodapé (_Layout): 1774x887, diamante à direita. O degradê escurece a
   esquerda atrás do texto no celular; no desktop fica só o escurecimento uniforme de 21% do rodapé */
.hn-duo-concierge { background: #060b13 url("../image/concierge-confyare.webp") no-repeat 44% center / cover; border: 1px solid rgba(41, 121, 255, .4); box-shadow: 0 0 20px rgba(0, 102, 255, .15); }
.hn-duo-concierge::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .21) 100%); }
.hn-duo-concierge .hn-duo-text { max-width: 62%; }

/* Prestador: azul bem escuro, para os pontos de luz do mapa se destacarem, com círculos de luz e o mapa de conexões por cima */
.hn-duo-prestador { background: linear-gradient(110deg, #0c47ab 0%, #072f80 50%, #041a45 100%); box-shadow: 0 12px 40px rgba(22, 114, 255, .3); }
.hn-duo-prestador::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -130px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 70%); }
.hn-duo-prestador::after { content: ""; position: absolute; z-index: -1; left: -70px; bottom: -150px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 184, 255, .3), transparent 70%); }
.hn-duo-prestador p { color: rgba(255, 255, 255, .92); }
/* o mapa é escuro: contraste e brilho acendem os pontos de luz e as linhas, e o "screen" deixa só a luz aparecer sobre o azul */
.hn-duo-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 1; filter: contrast(1.2) brightness(1.4) saturate(1.2); pointer-events: none; }
@media (min-width: 640px) { .hn-duo-concierge .hn-duo-text { max-width: 50%; } }
@media (min-width: 900px) {
    .hn-duo { grid-template-columns: 3fr 2fr; gap: 20px; }
    .hn-duo-card { min-height: 290px; padding: 30px 32px; }
    .hn-duo-concierge::before { background: rgba(0, 0, 0, .21); }
}

/* ---------- Parceiros (carrossel) ---------- */
.hn-head-actions { display: flex; align-items: center; gap: 14px; }
.hn-carousel-nav { display: none; gap: 8px; }
.hn-carousel-nav button {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--hn-border-strong); background: rgba(22, 114, 255, .08); color: #fff;
    transition: border-color .2s, background .2s, opacity .2s;
}
.hn-carousel-nav button:hover:not(:disabled) { border-color: var(--hn-cyan); background: rgba(43, 184, 255, .16); }
.hn-carousel-nav button:disabled { opacity: .35; cursor: default; }
.hn-carousel-nav .hn-ico { width: 18px; height: 18px; }
.hn-carousel-nav .hn-prev .hn-ico { transform: scaleX(-1); }
@media (min-width: 640px) { .hn-carousel-nav { display: flex; } }
.hn-partners {
    position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    margin: 0 calc(var(--hn-gutter) * -1); padding: 8px var(--hn-gutter) 14px;
    scroll-padding: 0 var(--hn-gutter);
    scrollbar-width: none;
}
.hn-partners::-webkit-scrollbar { display: none; }
.hn .hn-partner {
    position: relative; scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: #fff; color: var(--hn-navy);
    border-radius: var(--hn-radius); overflow: hidden;
    box-shadow: var(--hn-shadow);
    transition: transform .2s, box-shadow .2s;
}
.hn .hn-partner:hover { color: var(--hn-navy); }
a.hn-partner:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(22, 114, 255, .25); }
.hn-partner-media { position: relative; aspect-ratio: 16 / 9; }
.hn-partner-media img { width: 100%; height: 100%; object-fit: cover; }
/* degradê só até o topo do logo mais alto (metade de 112px + 20px que o logo sobe) */
.hn-partner-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 55%, #fff 100%); }
/* faixa do logo com a altura do próprio logo (--logo-h, definida no script) e centrada na borda da foto;
   --logo-sobe: quanto o meio do logo fica acima da borda; volta como espaço no rodapé para o card manter a altura */
.hn-partner-body { --logo-sobe: 20px; position: relative; flex: 1; padding: 0 16px calc(16px + var(--logo-sobe)); margin-top: calc(var(--logo-h, 56px) / -2 - var(--logo-sobe)); min-height: calc(var(--logo-h, 56px) / 2 + 54px + var(--logo-sobe)); display: grid; grid-template-rows: var(--logo-h, 56px) auto; align-content: start; row-gap: 4px; }
/* chamada no rodapé, centrada na altura do botão de seta (38px, a 16px da base); no máximo 2 linhas */
.hn-partner-body p { position: absolute; left: 16px; right: 64px; bottom: 16px; min-height: 38px; display: flex; align-items: center; margin: 0; font-size: 15.2px; font-weight: 500; line-height: 1.3; }
.hn-partner-body p span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* com chamada: altura mínima para a faixa do botão (38px + 16px) ficar 4px abaixo do logo, mesmo com logo alto */
.hn-partner-body:has(p span:not(:empty)) { min-height: calc(var(--logo-h, 56px) + 58px); }
.hn-partner-name { align-self: center; padding-right: 48px; font-size: 20px; font-weight: 800; line-height: 1.15; }
/* altura final é calculada no script pelo formato do logo (equilíbrio visual); 56px é o padrão sem JS */
.hn-partner-logo { align-self: center; height: 56px; width: auto; max-width: calc(100% - 48px); object-fit: contain; object-position: left center; }
.hn-round-arrow { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--hn-navy); color: #fff; flex: none; }
.hn-round-arrow .hn-ico { width: 18px; height: 18px; }
/* 1 card (com o próximo aparecendo) no celular, 2 no tablet, 3 no desktop */
@media (min-width: 640px) { .hn-partners { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (min-width: 900px) {
    .hn-partners { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; margin: 0; padding: 8px 0 14px; scroll-padding: 0; }
}
.hn-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.hn-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background .2s, width .2s; }
.hn-dots button.on { background: var(--hn-cyan); width: 20px; border-radius: 4px; }

/* ---------- Intermediação de negócios ---------- */
.hn-business {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px;
    padding: 28px 20px; margin-top: clamp(32px, 5vw, 48px);
    border: 1px solid var(--hn-border-strong); border-radius: calc(var(--hn-radius) + 4px);
    background: var(--hn-navy);
    box-shadow: 0 0 40px rgba(22, 114, 255, .15);
}
.hn-business-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right 60%; }
.hn-business::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 26, 58, .78), rgba(10, 26, 58, .62)); }
.hn-business-icon { width: 76px; height: auto; filter: drop-shadow(0 0 16px rgba(43, 184, 255, .7)); }
.hn-business h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; color: #fff; }
.hn-business p { margin: 0; color: #d6e2f5; }
.hn-business .hn-btn { padding: 13px 24px; border-color: var(--hn-cyan); background: rgba(4, 13, 32, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hn-business .hn-btn .hn-ico { width: 18px; height: 18px; }
@media (min-width: 768px) {
    .hn-business { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: 32px; padding: 32px 40px; }
    .hn-business-text { border-left: 1px solid var(--hn-border-strong); padding-left: 32px; }
    .hn-business-bg { left: auto; width: 55%; object-position: center 60%; }
    .hn-business::before { background: linear-gradient(90deg, var(--hn-navy) 0%, var(--hn-navy) 45%, rgba(10, 26, 58, 0) 70%); }
}

/* ---------- Anúncio de parceiro (home logada) ---------- */
/* janela centralizada (desktop e celular) */
/* z-index acima da barra inferior do _Layout (99999) e abaixo dos avisos do sistema (999999) */
.hn.hn-anuncio { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: none; visibility: hidden; }
.hn-anuncio.aberto { visibility: visible; }
.hn-anuncio-fundo { position: absolute; inset: 0; background: rgba(2, 7, 18, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.hn-anuncio.aberto .hn-anuncio-fundo { opacity: 1; }
/* só a arte do banner com o botão de fechar no canto. As artes vêm sem moldura: a borda clara, o brilho azul interno,
   os cantos e a sombra ficam aqui (iguais aos cards da página Empresas Parceiras, .partners-list-item) */
.hn-anuncio-dialogo {
    position: relative; width: 100%; max-width: 750px;
    opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s, transform .25s;
}
.hn-anuncio.aberto .hn-anuncio-dialogo { opacity: 1; transform: none; }
.hn-anuncio-arte {
    position: relative; display: block; overflow: hidden; border-radius: 14px; background: #010717;
    border: 1px solid rgba(190, 225, 255, .75);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 18px rgba(43, 140, 255, .18);
}
/* brilho azul por dentro da borda, por cima da arte (abaixo do botão de fechar, z-index 2) */
.hn-anuncio-arte::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 14px rgba(0, 90, 255, .55); pointer-events: none; }
.hn-anuncio-arte img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
/* botão escuro por cima da arte, com o centro do círculo exatamente no vértice superior direito da imagem
   (top/right = -metade do tamanho; box-sizing border-box, então a borda não desloca o centro) */
.hn .hn-anuncio-fechar {
    position: absolute; top: -18px; right: -18px; z-index: 2;
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--hn-border-strong); background: #081833; color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 12px rgba(43, 184, 255, .25); transition: transform .2s, border-color .2s;
}
.hn .hn-anuncio-fechar:hover { transform: scale(1.08); border-color: var(--hn-cyan); }
.hn-anuncio-fechar .hn-ico { width: 18px; height: 18px; stroke-width: 2.4; }
/* celular: mesma arte centralizada do desktop; margem de 24px para a metade do botão que fica para fora caber na tela */
@media (max-width: 559px) {
    .hn.hn-anuncio { padding: 24px; }
    .hn-anuncio-arte img { max-height: 75vh; }
}

@media (prefers-reduced-motion: reduce) {
    .hn *, .hn *::before, .hn *::after { transition: none !important; scroll-behavior: auto !important; }
}
