/* Card 1026529 — página inicial (Home v5). Carregado DEPOIS do MudBlazor (App.razor): regra
   de mesma especificidade aqui ganha. Tudo sob .hm-pagina: os tokens não vazam. Os tokens são
   os do card (§4), os mesmos do solucao-detalhe.css. */
.hm-pagina {
    --ink: #16215b; --ink-soft: #465479; --page: #f4f7fb; --white: #fff; --line: #dbe3f0;
    --teal-100: #e6f5f3; --teal-300: #7ed0c7; --teal-500: #12968a; --teal-600: #0d7a70;
    --teal-700: #0a5e57; --teal-900: #06352f;
    --blue-100: #e7edfb; --blue-500: #1b4fb8; --blue-700: #143d94;
    --r: 14px; --r-sub: 12px;
    --sombra: 0 10px 30px rgba(22, 33, 91, .08); --sombra-flutua: 0 18px 44px rgba(22, 33, 91, .16);
    font-family: "Open Sans", system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink);
    background: var(--page);
    /* sangra até a borda da área de conteúdo: o MainLayout põe pa-6 (24px) em volta do @Body */
    margin: -24px; min-height: calc(100% + 48px);
}
.hm-pagina a { color: var(--teal-700); text-decoration: none; }
.hm-pagina a:hover { text-decoration: underline; }
.hm-pagina :focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }
.hm-hero :focus-visible, .hm-comunidade :focus-visible { outline-color: var(--teal-300); }
/* No pilar o foco usa a cor do próprio texto (4,5:1 garantido pelo PilarVisual): o teal-300
   dava ~1,3:1 sobre o âmbar do OS e ~2:1 sobre o teal do XP (revisão final). */
.hm-pilar :focus-visible { outline-color: var(--pilar-texto); }

/* ── HERO ── */
.hm-hero { position: relative; overflow: hidden; background: linear-gradient(105deg, #0f3f6b 0%, #0d5a72 58%, #0a5e57 100%); }
.hm-hero__foto { position: absolute; inset: 0 0 0 min(56%, calc(100% - 220px)); }
.hm-hero__foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.hm-hero__duotone { position: absolute; inset: 0; mix-blend-mode: multiply;
    background: linear-gradient(100deg, rgba(13,90,114,.92) 0%, rgba(17,131,148,.72) 60%, rgba(18,150,138,.52) 100%); }
.hm-hero__fade { position: absolute; top: 0; bottom: 0; left: 0; width: 200px; background: linear-gradient(90deg, #0d5a72 0%, rgba(13,90,114,0) 100%); }
.hm-hero__conteudo { position: relative; max-width: 1320px; margin: 0 auto; padding: 52px 20px 128px; color: #fff; }
.hm-hero__pill { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 7px 14px; font-size: 13px; }
.hm-hero__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-300); }
.hm-hero h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -.03em; color: #fff; margin: 22px 0 0; }
.hm-hero__sub { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; color: rgba(255,255,255,.92); max-width: 24em; margin: 16px 0 0; }

/* ── CONTEÚDO ── */
.hm-conteudo { max-width: 1320px; margin: 0 auto; padding: 0 20px 96px; }
.hm-secao { margin-top: 44px; }
.hm-secao__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-secao__titulo { display: flex; align-items: baseline; gap: 14px; }
.hm-secao__titulo h2 { font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.hm-secao__titulo::after { content: ""; height: 5px; width: 48px; background: var(--teal-500); border-radius: 999px; }
.hm-acao { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700);
    display: inline-flex; align-items: center; min-height: 44px; }
.hm-card { background: var(--white); border-radius: var(--r); box-shadow: var(--sombra); }
.hm-grade { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }

/* ── PILARES ── sobem 84px sobre o hero */
.hm-pilares { position: relative; z-index: 2; margin-top: -84px; display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.hm-pilar { position: relative; overflow: hidden; border-radius: var(--r); min-height: 250px; background: var(--pilar-cor);
    box-shadow: var(--sombra-flutua); color: var(--pilar-texto); }
.hm-pilar__foto { position: absolute; inset: 0; }
.hm-pilar__foto img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1); }
.hm-pilar__veu { position: absolute; inset: 0; pointer-events: none; }
.hm-pilar__corpo { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 24px; }
.hm-pilar__titulo { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.hm-pilar__tag { align-self: flex-start; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
    padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.2); }
.hm-pilar__frase { font-size: 14.5px; line-height: 1.45; margin: 14px 0 0; max-width: 30em; }
.hm-pagina a.hm-pilar__link { margin-top: auto; padding-top: 16px; align-self: flex-start; min-height: 44px;
    display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--pilar-texto); }

/* ── EXPLORAR O CATÁLOGO ── */
.hm-explorar { margin-top: 44px; padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 32px); scroll-margin-top: 84px; }
.hm-explorar__apoio { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; }
.hm-abas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hm-aba { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 10px 16px; border-radius: 999px;
    cursor: pointer; border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px; }
.hm-aba--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.hm-aba__qtd { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #eef1f8; color: var(--ink-soft); }
.hm-aba--on .hm-aba__qtd { background: rgba(255,255,255,.2); color: #fff; }
.hm-explorar__painel { margin-top: 20px; }
.hm-chips { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.hm-pagina a.hm-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px;
    padding: 16px 18px; border-radius: var(--r-sub); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hm-pagina a.hm-chip--dor { background: var(--blue-100); color: var(--blue-700); }
.hm-pagina a.hm-chip--momento { background: var(--teal-100); color: var(--teal-900); }
.hm-pagina a.hm-chip:hover { text-decoration: none; box-shadow: var(--sombra); }
.hm-categorias { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.hm-pagina a.hm-categoria { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-sub);
    border: 1px solid var(--line); color: var(--ink); min-height: 118px; }
.hm-pagina a.hm-categoria:hover { text-decoration: none; box-shadow: var(--sombra); border-color: var(--teal-300); }
.hm-categoria__icone { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border-radius: 10px; background: var(--blue-100); color: var(--blue-700); }
.hm-categoria__nome { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.hm-pagina a.hm-servicos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px;
    border-radius: var(--r-sub); background: var(--teal-100); color: var(--teal-900); }
.hm-pagina a.hm-servicos:hover { text-decoration: none; box-shadow: var(--sombra); }
.hm-servicos__icone { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
    border-radius: var(--r-sub); background: var(--white); color: var(--teal-700); }
.hm-servicos__texto { flex: 1 1 260px; min-width: 0; }
.hm-servicos__titulo { display: block; font-weight: 800; font-size: 17px; }
.hm-servicos__apoio { display: block; font-size: 14px; line-height: 1.4; margin-top: 3px; }
.hm-marcas { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.hm-pagina a.hm-marca { display: flex; flex-direction: column; border-radius: var(--r-sub); border: 1px solid var(--line); overflow: hidden; color: var(--ink); }
.hm-pagina a.hm-marca:hover { text-decoration: none; box-shadow: var(--sombra); border-color: var(--teal-300); }
.hm-marca__logo { display: flex; align-items: center; justify-content: center; height: 84px; padding: 10px; background: var(--white); }
.hm-marca__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hm-marca__nome { padding: 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    border-top: 1px solid var(--line); color: var(--ink-soft); }

/* ── DESTAQUES ── */
.hm-pagina a.hm-destaque { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.hm-pagina a.hm-destaque:hover, .hm-pagina a.hm-recente:hover, .hm-pagina a.hm-caso:hover { text-decoration: none; box-shadow: var(--sombra-flutua); }
.hm-destaque__barra { display: block; height: 6px; background: var(--pilar-cor); }
.hm-destaque__corpo { display: flex; flex-direction: column; padding: 22px; flex: 1; }
.hm-destaque__pilar { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pilar-rotulo); }
.hm-destaque__titulo { font-weight: 800; font-size: 19px; line-height: 1.2; margin-top: 8px; overflow-wrap: anywhere; }
.hm-destaque__resumo { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); margin-top: 8px; }
.hm-destaque__acao { margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--teal-700); }

/* ── ADICIONADOS RECENTEMENTE ──
   Selo "Novidade" em teal-700 e não teal-500 como no design: teal-500 + branco dá 3,6:1 em
   12px, abaixo do 4,5:1 que o próprio card exige. */
.hm-pagina a.hm-recente { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; color: var(--ink); }
.hm-recente__cab { display: flex; align-items: flex-start; gap: 12px; }
.hm-recente__icone { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none;
    border-radius: 10px; background: var(--blue-100); color: var(--blue-700); object-fit: cover; }
.hm-recente__titulo { font-weight: 800; font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.hm-selos { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-selo { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #eef1f8; color: var(--ink); }
.hm-selo--novo { font-weight: 700; background: var(--teal-700); color: #fff; }
.hm-selo--pilar { font-weight: 700; background: var(--ink); color: #fff; }
.hm-recente__data { font-size: 12.5px; color: var(--ink-soft); margin-top: auto; }

/* ── CASOS DE SUCESSO ── */
.hm-grade--casos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hm-pagina a.hm-caso { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px; color: var(--ink); }
.hm-caso__logo { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; background: var(--blue-100); }
.hm-caso__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-caso__texto { flex: 1 1 180px; min-width: 0; }
.hm-caso__empresa { display: block; font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.hm-caso__titulo { display: block; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); margin-top: 4px; }
.hm-caso__acao { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--teal-700); }
.hm-pagina a.hm-todos-depoimentos { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 44px; border-radius: var(--r); border: 1.5px dashed var(--line); padding: 22px; color: var(--ink-soft);
    font-size: 14.5px; font-weight: 600; }
.hm-pagina a.hm-todos-depoimentos:hover { text-decoration: none; border-color: var(--teal-300); color: var(--teal-700); }

/* ── COMECE POR AQUI ── */
.hm-comece { margin-top: 44px; padding: clamp(20px, 3vw, 28px); }
.hm-comece__apoio { font-size: 15px; color: var(--ink-soft); margin: 8px 0 0; }
.hm-comece__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hm-pagina a.hm-comece__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
    border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; }
.hm-pagina a.hm-comece__chip:hover { text-decoration: none; border-color: var(--teal-300); box-shadow: var(--sombra); }

/* ── COMUNIDADE + LACUNA ──
   Botão "reportar lacuna" em teal-700 e não teal-500 como no design: teal-500 + branco dá 3,6:1,
   abaixo do 4,5:1 que o próprio card exige. */
.hm-rodape { margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.hm-comunidade, .hm-lacuna { border-radius: var(--r); padding: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hm-comunidade { background: var(--ink); color: #fff; }
.hm-comunidade__icone, .hm-lacuna__icone { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; flex: none; }
.hm-comunidade__icone { background: rgba(255,255,255,.14); color: #fff; }
.hm-lacuna__icone { background: var(--teal-100); color: var(--teal-700); }
.hm-comunidade__texto, .hm-lacuna__texto { flex: 1 1 200px; min-width: 0; }
.hm-comunidade__titulo, .hm-lacuna__titulo { display: block; font-weight: 800; font-size: 18px; }
.hm-comunidade__apoio { display: block; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.85); margin-top: 4px; }
.hm-lacuna__apoio { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-soft); margin-top: 4px; }
.hm-pagina a.hm-comunidade__cta { font-size: 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center;
    padding: 12px 18px; border-radius: var(--r); background: var(--white); color: var(--ink); white-space: nowrap; }
.hm-pagina a.hm-comunidade__cta:hover { background: var(--teal-100); text-decoration: none; }
.hm-lacuna__cta { font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; min-height: 44px; padding: 12px 18px;
    border: 0; border-radius: var(--r); background: var(--teal-700); color: #fff; cursor: pointer; white-space: nowrap; }
.hm-lacuna__cta:hover { background: var(--teal-900); }
