/*
Theme Name: Trauma Zer0
Theme URI: https://traumazero.com
Author: Trauma Zer0
Description: Tema de blocos do site institucional do Trauma Zer0 — gestão do ciclo de vida de TI on-premise. Paleta, tipografia e componentes próprios.
Version: 0.3.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: traumazero
Tags: full-site-editing, block-patterns, translation-ready
*/

/* ---------------------------------------------------------------
   Tokens — espelham theme.json, mas ficam aqui para os componentes
   que são desenhados em HTML (diagrama, muro de clientes, molduras)
   --------------------------------------------------------------- */
:root{
  --tz-bg:#EBEFF3; --tz-surface:#FFFFFF; --tz-surface-2:#F4F7F9;
  --tz-deep:#07131F; --tz-deep-2:#0D2033;
  --tz-ink:#0A1622; --tz-ink-2:#33475B; --tz-muted:#65798D;
  --tz-line:#D3DCE4; --tz-line-2:#BECBD7;
  --tz-brand:#1467C0; --tz-brand-2:#1FA9E0; --tz-brand-3:#3E45C4;
  --tz-brand-tint:rgba(20,103,192,.09);
  --tz-signal:#D9552F; --tz-ok:#1E9E72;
  --tz-on-deep:#E7EEF4; --tz-on-deep-2:#93A9BC; --tz-deep-line:#1B3446;
  --tz-shadow:0 1px 2px rgba(10,22,34,.06), 0 10px 30px -18px rgba(10,22,34,.45);
  --tz-display:"Archivo","Helvetica Neue",Arial,sans-serif;
  --tz-body:"IBM Plex Sans","Segoe UI",Arial,sans-serif;
  --tz-mono:"IBM Plex Mono",SFMono-Regular,Consolas,monospace;
}

body{ -webkit-font-smoothing:antialiased; }

/* --------------------------- tipografia --------------------------- */
h1,h2,h3,h4,.tz-display{ font-family:var(--tz-display); letter-spacing:-.022em; text-wrap:balance; }
.tz-eyebrow{
  font-family:var(--tz-mono); font-size:11.5px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--tz-muted); font-weight:500; display:block;
}
.tz-lede{ font-size:17.5px; color:var(--tz-ink-2); max-width:62ch; }
.tz-mono{ font-family:var(--tz-mono); font-variant-numeric:tabular-nums; }

/* --------------------------- cabeçalho ---------------------------- */
.tz-header{
  position:sticky; top:0; z-index:20; border-bottom:1px solid var(--tz-line);
  background:color-mix(in srgb, var(--tz-bg) 88%, transparent); backdrop-filter:blur(10px);
}
.tz-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; white-space:nowrap;
  font-family:var(--tz-display); font-weight:800; font-size:19px; letter-spacing:-.035em; color:var(--tz-ink); }
.tz-logomark{ width:30px; height:30px; flex:none; display:block; }
.tz-langs{ display:flex; gap:8px; font-family:var(--tz-mono); font-size:11.5px; color:var(--tz-muted); }
.tz-langs .current-lang,.tz-langs b{ color:var(--tz-ink); font-weight:600; }
.tz-langs ul{ list-style:none; display:flex; gap:10px; margin:0; padding:0; }
.tz-langs a{ text-decoration:none; }

/* ----------------------------- botões ----------------------------- */
.wp-block-button.tz-btn-primary .wp-block-button__link{
  background:var(--tz-brand); color:#fff; border-radius:3px; font-weight:600; padding:12px 20px;
}
.wp-block-button.tz-btn-primary .wp-block-button__link:hover{ background:#0F548F; }
.wp-block-button.tz-btn-ghost .wp-block-button__link{
  background:transparent; color:var(--tz-ink); border:1px solid var(--tz-line-2);
  border-radius:3px; font-weight:600; padding:11px 19px;
}
.wp-block-button.tz-btn-ghost .wp-block-button__link:hover{ border-color:var(--tz-ink-2); }

/* ---------------------------- diagrama ---------------------------- */
.tz-diag-card{ background:var(--tz-surface-2); border:1px solid var(--tz-line); border-radius:4px; padding:20px 18px 14px; }
.tz-diag{ width:100%; height:auto; display:block; }
.tz-diag .box{ fill:var(--tz-surface); stroke:var(--tz-line-2); stroke-width:1; }
.tz-diag .box-b{ fill:var(--tz-brand); stroke:none; }
.tz-diag .t{ fill:var(--tz-ink); font-family:var(--tz-body); font-size:12.5px; font-weight:600; }
.tz-diag .ts{ fill:var(--tz-muted); font-family:var(--tz-mono); font-size:9.5px; letter-spacing:.06em; }
.tz-diag .tw{ fill:#fff; font-family:var(--tz-body); font-size:13px; font-weight:600; }
.tz-diag .tws{ fill:rgba(255,255,255,.78); font-family:var(--tz-mono); font-size:9.5px; letter-spacing:.05em; }
.tz-diag .ln{ stroke:var(--tz-line-2); stroke-width:1; fill:none; }
.tz-diag .bound{ fill:none; stroke:var(--tz-brand); stroke-width:1.2; stroke-dasharray:5 4; opacity:.65; }
.tz-diag .xln{ stroke:var(--tz-line-2); stroke-width:1; stroke-dasharray:3 3; fill:none; }
.tz-diag .x{ stroke:var(--tz-signal); stroke-width:1.8; stroke-linecap:round; }
.tz-diag .ep{ fill:var(--tz-surface); stroke:var(--tz-line-2); stroke-width:1; }
.tz-diag .epi{ fill:var(--tz-brand-2); opacity:.55; }
.tz-diag-cap{ margin-top:10px; font-family:var(--tz-mono); font-size:10px; letter-spacing:.09em;
  text-transform:uppercase; color:var(--tz-muted); text-align:center; }

/* ---------------------------- métricas ---------------------------- */
.tz-metrics{ display:grid; grid-template-columns:repeat(4,1fr); }
.tz-metric{ padding:30px 26px; border-left:1px solid var(--tz-line); }
.tz-metric:first-child{ border-left:none; padding-left:0; }
.tz-metric .n{ font-family:var(--tz-display); font-size:34px; font-weight:700; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums; line-height:1; color:var(--tz-ink); }
.tz-metric .n span{ font-size:19px; color:var(--tz-brand); }
.tz-metric .d{ margin-top:9px; font-size:13.5px; color:var(--tz-muted); line-height:1.45; }
@media(max-width:840px){
  .tz-metrics{ grid-template-columns:1fr 1fr; }
  .tz-metric{ border-left:none; border-top:1px solid var(--tz-line); padding-left:0; padding-right:18px; }
  .tz-metric:nth-child(-n+2){ border-top:none; }
}

/* ------------------------- muro de clientes ------------------------ */
.tz-wall{ display:grid; grid-template-columns:repeat(6,1fr);
  border-top:1px solid var(--tz-line); border-left:1px solid var(--tz-line); }
.tz-wall span{
  border-right:1px solid var(--tz-line); border-bottom:1px solid var(--tz-line);
  padding:17px 12px; display:flex; align-items:center; justify-content:center; text-align:center;
  min-height:64px; background:var(--tz-surface);
  font-family:var(--tz-display); font-weight:600; font-size:13.5px; letter-spacing:-.01em; color:var(--tz-ink-2);
}
@media(max-width:900px){ .tz-wall{ grid-template-columns:repeat(3,1fr); } }
@media(max-width:520px){ .tz-wall{ grid-template-columns:repeat(2,1fr); } }

/* ----------------------------- módulos ----------------------------- */
.tz-mods{ display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--tz-line); border-left:1px solid var(--tz-line); }
.tz-mod{ padding:26px 24px 22px; border-right:1px solid var(--tz-line); border-bottom:1px solid var(--tz-line);
  background:var(--tz-surface); display:flex; flex-direction:column; gap:9px; text-decoration:none;
  transition:background .16s ease; color:inherit; }
.tz-mod:hover{ background:var(--tz-surface-2); }
.tz-mod .mi{ display:block; flex:none; width:26px; height:26px; color:var(--tz-brand); margin-bottom:4px; }
.tz-mod .mi svg{ width:100%; height:100%; display:block; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.tz-mod .code{ font-family:var(--tz-mono); font-size:11px; letter-spacing:.12em;
  color:var(--tz-brand); text-transform:uppercase; }
.tz-mod h3{ font-size:19px; font-weight:600; margin:0; }
.tz-mod p{ font-size:14.5px; color:var(--tz-ink-2); margin:0; }
.tz-mod .more{ margin-top:auto; padding-top:12px; font-size:13.5px; font-weight:600; color:var(--tz-brand); }
@media(max-width:920px){ .tz-mods{ grid-template-columns:1fr 1fr; } }
@media(max-width:620px){ .tz-mods{ grid-template-columns:1fr; } }

/* ------------------------------ casos ------------------------------ */
.tz-cases{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.tz-case{ background:var(--tz-surface); border:1px solid var(--tz-line); border-radius:4px;
  padding:26px 24px; display:flex; flex-direction:column; gap:14px; }
.tz-case .q{ font-family:var(--tz-display); font-size:18px; font-weight:600; letter-spacing:-.015em; line-height:1.35; margin:0; }
.tz-case .who{ margin-top:auto; padding-top:14px; border-top:1px solid var(--tz-line); }
.tz-case .who .n{ font-family:var(--tz-mono); font-size:12.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--tz-ink); }
.tz-case .who .x{ font-size:13px; color:var(--tz-muted); margin-top:3px; }
@media(max-width:900px){ .tz-cases{ grid-template-columns:1fr; } }

/* ------------------------- posicionamento -------------------------- */
.tz-pos-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.tz-pos{ padding-top:18px; border-top:2px solid var(--tz-brand); }
.tz-pos h3{ margin:0 0 8px; font-size:19px; font-weight:600; }
.tz-pos p{ font-size:14.8px; color:var(--tz-ink-2); margin:0; }
@media(max-width:840px){ .tz-pos-grid{ grid-template-columns:1fr; gap:22px; } }

/* ---------------------------- rodapé ------------------------------- */
.tz-footer{ background:var(--tz-deep); color:var(--tz-on-deep-2); }
.tz-footer a{ color:var(--tz-on-deep-2); text-decoration:none; }
.tz-footer a:hover{ color:var(--tz-on-deep); }
.tz-footer h4{ font-family:var(--tz-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--tz-on-deep); margin:0 0 14px; font-weight:500; }
.tz-footer .tz-brand{ color:var(--tz-on-deep); font-size:20px; }
.tz-ft-bot{ border-top:1px solid var(--tz-deep-line); font-family:var(--tz-mono); font-size:12.5px; }

/* --------------------------- acessibilidade ------------------------ */
a:focus-visible,button:focus-visible,.wp-block-button__link:focus-visible{
  outline:2px solid var(--tz-brand); outline-offset:3px;
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }

/* ==================================================================
   PÁGINAS DE PRODUTO (módulos)
   ================================================================== */

/* migalha */
.tz-crumb{ font-family:var(--tz-mono); font-size:11.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--tz-muted); }
.tz-crumb a{ text-decoration:none; }
.tz-crumb a:hover{ color:var(--tz-brand); }

/* hero de produto */
.tz-h1-sub{ font-family:var(--tz-display); font-weight:600; font-size:clamp(18px,2vw,22px);
  color:var(--tz-brand); letter-spacing:-.02em; margin:8px 0 0; }
.tz-q-lede{ font-size:19px; color:var(--tz-ink-2); max-width:52ch; margin-top:22px; }
.tz-q-lede b{ color:var(--tz-ink); }

/* molduras de console e ferramenta */
.tz-frame{ border:1px solid var(--tz-line-2); border-radius:5px; overflow:hidden;
  background:var(--tz-deep); box-shadow:var(--tz-shadow); }
.tz-frame-bar{ display:flex; align-items:center; gap:8px; padding:9px 12px;
  background:var(--tz-deep-2); border-bottom:1px solid var(--tz-deep-line); }
.tz-tl{ display:flex; gap:5px; }
.tz-tl i{ width:8px; height:8px; border-radius:50%; background:#3B5468; display:block; }
.tz-frame-url{ font-family:var(--tz-mono); font-size:10.5px; color:var(--tz-on-deep-2);
  background:rgba(255,255,255,.05); padding:3px 9px; border-radius:3px; flex:1;
  text-align:center; max-width:300px; margin:0 auto; }
.tz-frame-win{ font-family:var(--tz-mono); font-size:10.5px; color:var(--tz-on-deep-2); }
.tz-frame-ft{ padding:9px 14px; font-family:var(--tz-mono); font-size:10px; color:var(--tz-on-deep-2);
  letter-spacing:.08em; text-transform:uppercase; background:rgba(255,255,255,.03);
  border-top:1px solid var(--tz-deep-line); }
.tz-shot-note{ margin-top:12px; font-size:13px; color:var(--tz-muted); }

/* linhas de regra dentro da moldura */
.tz-rule{ display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center;
  padding:12px 15px; border-bottom:1px solid var(--tz-deep-line); border-left:2px solid transparent; }
.tz-rule:last-of-type{ border-bottom:none; }
.tz-rule.ok{ border-left-color:#3FBF92; }
.tz-rule.warn{ border-left-color:#E0A54A; }
.tz-rule.crit{ border-left-color:#F0764F; }
.tz-rule .rn{ font-size:13.5px; color:var(--tz-on-deep); }
.tz-rule .rs{ font-family:var(--tz-mono); font-size:10.5px; color:var(--tz-on-deep-2);
  letter-spacing:.05em; margin-top:2px; }
.tz-pill{ font-family:var(--tz-mono); font-size:10px; letter-spacing:.09em; text-transform:uppercase;
  padding:3px 8px; border-radius:20px; white-space:nowrap; }
.tz-pill.ok{ background:rgba(63,191,146,.16); color:#5FD3AB; }
.tz-pill.warn{ background:rgba(224,165,74,.16); color:#EFC079; }
.tz-pill.crit{ background:rgba(240,118,79,.18); color:#FF9877; }

/* linhas de dado em ferramenta desktop */
.tz-tool-row{ display:flex; justify-content:space-between; gap:10px; padding:11px 15px;
  border-bottom:1px solid var(--tz-deep-line); font-family:var(--tz-mono);
  font-size:11.5px; color:var(--tz-on-deep-2); }
.tz-tool-row:last-of-type{ border-bottom:none; }
.tz-tool-row b{ color:var(--tz-on-deep); font-weight:500; }

/* grade de capacidades */
.tz-caps{ display:grid; grid-template-columns:repeat(4,1fr);
  border-top:1px solid var(--tz-line); border-left:1px solid var(--tz-line); }
.tz-cap{ padding:24px 22px; border-right:1px solid var(--tz-line);
  border-bottom:1px solid var(--tz-line); background:var(--tz-surface); }
.tz-cap.destaque{ background:var(--tz-brand-tint); }
.tz-cap .mi{ display:block; flex:none; width:24px; height:24px; color:var(--tz-brand); margin-bottom:12px; }
.tz-cap .mi svg{ width:100%; height:100%; display:block; fill:none; stroke:currentColor;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.tz-cap h3{ font-size:16.5px; font-weight:600; margin:0 0 6px; }
.tz-cap p{ font-size:14px; color:var(--tz-ink-2); margin:0; }
@media(max-width:980px){ .tz-caps{ grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .tz-caps{ grid-template-columns:1fr; } }

/* fluxo em etapas */
.tz-flowwrap{ overflow-x:auto; }
.tz-flow{ width:100%; min-width:860px; height:auto; display:block; }
.tz-flow .node{ fill:var(--tz-surface); stroke:var(--tz-line-2); stroke-width:1; }
.tz-flow .node-b{ fill:var(--tz-brand); stroke:none; }
.tz-flow .num{ fill:var(--tz-brand); font-family:var(--tz-mono); font-size:11px; letter-spacing:.1em; }
.tz-flow .num-w{ fill:rgba(255,255,255,.75); font-family:var(--tz-mono); font-size:11px; letter-spacing:.1em; }
.tz-flow .tt{ fill:var(--tz-ink); font-family:var(--tz-display); font-size:15px; font-weight:600; }
.tz-flow .tt-w{ fill:#fff; font-family:var(--tz-display); font-size:15px; font-weight:600; }
.tz-flow .ts{ fill:var(--tz-muted); font-family:var(--tz-body); font-size:12px; }
.tz-flow .ts-w{ fill:rgba(255,255,255,.8); font-family:var(--tz-body); font-size:12px; }
.tz-flow .arr{ stroke:var(--tz-line-2); stroke-width:1.4; fill:none; }

/* faixa escura e linha do tempo de evidência */
.tz-deepsec{ background:var(--tz-deep); color:var(--tz-on-deep); }
.tz-deepsec h2,.tz-deepsec h3{ color:var(--tz-on-deep); }
.tz-deepsec .tz-eyebrow{ color:var(--tz-on-deep-2); }
.tz-deepsec .tz-lede{ color:var(--tz-on-deep-2); }
.tz-evt{ display:grid; grid-template-columns:74px 1fr; gap:14px; padding:14px 0;
  border-bottom:1px solid var(--tz-deep-line); align-items:baseline; }
.tz-evt:first-child{ border-top:1px solid var(--tz-deep-line); }
.tz-evt .h{ font-family:var(--tz-mono); font-size:11.5px; color:#38C4F0; letter-spacing:.04em; }
.tz-evt .b{ font-size:14.5px; color:var(--tz-on-deep); }
.tz-evt .b small{ display:block; color:var(--tz-on-deep-2); font-size:13px; margin-top:2px; }

/* checklist de dois em dois */
.tz-checks{ display:grid; grid-template-columns:1fr 1fr; gap:0 40px; border-top:1px solid var(--tz-line); }
.tz-check{ display:grid; grid-template-columns:22px 1fr; gap:12px; padding:15px 0;
  border-bottom:1px solid var(--tz-line); align-items:start; }
.tz-check svg{ width:18px; height:18px; color:var(--tz-ok); fill:none; stroke:currentColor;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round; margin-top:3px; }
.tz-check span{ font-size:15px; color:var(--tz-ink-2); }
@media(max-width:820px){ .tz-checks{ grid-template-columns:1fr; gap:0; } }

/* ferramentas do pacote */
.tz-tools{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.tz-tool{ background:var(--tz-surface); border:1px solid var(--tz-line); border-radius:4px; padding:24px 22px; }
.tz-tool .code{ font-family:var(--tz-mono); font-size:11px; letter-spacing:.12em;
  color:var(--tz-brand); text-transform:uppercase; }
.tz-tool h3{ font-size:17px; margin:8px 0 6px; }
.tz-tool p{ font-size:14px; color:var(--tz-ink-2); margin:0; }
@media(max-width:820px){ .tz-tools{ grid-template-columns:1fr; } }

/* navegação para os outros módulos */
.tz-others{ display:grid; grid-template-columns:repeat(5,1fr);
  border-top:1px solid var(--tz-line); border-left:1px solid var(--tz-line); }
.tz-other{ padding:20px 18px; border-right:1px solid var(--tz-line);
  border-bottom:1px solid var(--tz-line); background:var(--tz-surface);
  text-decoration:none; display:block; color:inherit; transition:background .16s ease; }
.tz-other:hover{ background:var(--tz-surface-2); }
.tz-other .code{ font-family:var(--tz-mono); font-size:10.5px; letter-spacing:.1em;
  color:var(--tz-brand); text-transform:uppercase; }
.tz-other .nm{ font-family:var(--tz-display); font-weight:600; font-size:15px;
  margin-top:6px; letter-spacing:-.01em; }
@media(max-width:900px){ .tz-others{ grid-template-columns:1fr 1fr; } }

/* tabela comparativa */
.tz-cmp-scroll{ overflow-x:auto; }
.tz-cmp{ width:100%; border-collapse:collapse; font-size:14.8px; min-width:600px; }
.tz-cmp th,.tz-cmp td{ text-align:left; padding:15px 18px;
  border-bottom:1px solid var(--tz-line); vertical-align:top; }
.tz-cmp thead th{ font-family:var(--tz-mono); font-size:11.5px; letter-spacing:.1em;
  text-transform:uppercase; color:var(--tz-muted); font-weight:500;
  border-bottom:1px solid var(--tz-line-2); }
.tz-cmp tbody th{ font-weight:600; color:var(--tz-ink); width:24%; }
.tz-cmp td{ color:var(--tz-ink-2); }
.tz-cmp .own{ background:var(--tz-brand-tint); color:var(--tz-ink); }
.tz-cmp thead th.own{ color:var(--tz-brand); font-weight:600; }
