/*
Theme Name: Kanafiste 2026
Theme URI: https://kanafiste.com.br
Author: Kanafiste
Author URI: https://kanafiste.com.br
Description: Tema enxuto para empresa de programação, automação de sistemas e empresas e informatização de rádios. Visual de painel de comando (placas gravadas, luzes de sinal, sintonizador FM), projetos no formato "antes → depois", formulário de contato sem plugin e modo escuro automático. Tudo editável em Aparência > Personalizar > Kanafiste.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kanafiste2026
Tags: one-column, custom-logo, custom-menu, featured-images, theme-options, translation-ready, portfolio
*/

/* ==========================================================================
   1. Tokens — o site é um armário de comando: chapa de aço, placas gravadas,
      luz de sinal laranja. Cada seção é um módulo com sua etiqueta.
   ========================================================================== */
:root {
	--panel: #d9dee2;     /* chapa pintada */
	--panel-2: #e8ebee;   /* face dos módulos */
	--plate: #171a1d;     /* placa gravada */
	--plate-ink: #eef1f3;
	--plate-muted: #a3adb4;
	--ink: #1b2024;
	--muted: #5b656d;
	--rule: #b3bbc2;
	--lamp: #f26a1b;      /* luz de sinal (cor da marca) */
	--lamp-ink: #1a0d05;
	--run: #2e9e4f;       /* em funcionamento */
	--air: #e2463b;       /* no ar */
	--shadow: rgba(20, 26, 30, .18);
	/* Cabeçalho e rodapé ficam claros nos dois modos para a logomarca preta aparecer */
	--bar-bg: #f4f5f6;
	--bar-ink: #1b2024;
	--bar-muted: #4f5960;
	--bar-rule: #cdd3d8;

	--f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--max: 1180px;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--gutter-r: max(16px, env(safe-area-inset-right, 0px));
	--header-h: 64px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--panel: #161a1d;
		--panel-2: #1e2327;
		--plate: #0b0d0f;
		--plate-ink: #e4e8eb;
		--ink: #e4e8eb;
		--muted: #97a1a9;
		--rule: #323a40;
		--lamp: #ff7a2e;
		--run: #3fbf66;
		--shadow: rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--panel);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.01em;
	margin: 0;
	text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter-r);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100; top: 8px; left: 8px;
	background: var(--plate); color: var(--plate-ink);
	padding: 10px 14px;
}

/* ==========================================================================
   3. Peças: placa gravada, módulo com parafusos, botões
   ========================================================================== */
.plate {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	background: var(--plate);
	color: var(--plate-ink);
	font-family: var(--f-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: .45em .8em;
	border-radius: 2px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
	line-height: 1.3;
}
.plate i {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--lamp);
	box-shadow: 0 0 8px var(--lamp);
	flex: none;
}

.module {
	position: relative;
	background: var(--panel-2);
	border: 1px solid var(--rule);
	border-radius: 4px;
}
.module::before, .module::after {
	content: "";
	position: absolute;
	top: 10px;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--panel-2), var(--rule));
	box-shadow: inset 0 0 0 1px var(--rule);
}
.module::before { left: 10px; }
.module::after { right: 10px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.1;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	padding: .75em 1.15em;
	border-radius: 3px;
	background: var(--plate);
	color: var(--plate-ink);
	transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { font-size: 15px; padding: .6em 1em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ==========================================================================
   4. Cabeçalho
   ========================================================================== */
body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 60;
	background: var(--bar-bg);
}
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: var(--bar-bg);
	color: var(--bar-ink);
	border-bottom: 1px solid var(--bar-rule);
	box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .5);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: .01em;
	white-space: nowrap;
	color: #000;
}
.logo b {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--lamp);
	box-shadow: 0 0 0 3px var(--bar-bg), 0 0 0 4px var(--bar-rule), 0 0 10px var(--lamp);
}
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 42px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { text-decoration: none; color: var(--bar-muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--bar-ink); }

.menu-toggle {
	display: none;
	width: 42px; height: 42px;
	border: 1px solid var(--bar-rule);
	border-radius: 3px;
	background: #fff;
	cursor: pointer;
	position: relative;
}
.menu-toggle span[aria-hidden],
.menu-toggle span[aria-hidden]::before,
.menu-toggle span[aria-hidden]::after {
	position: absolute;
	left: 11px; right: 11px;
	height: 2px;
	background: var(--bar-ink);
	transition: transform .2s, top .2s;
}
.menu-toggle span[aria-hidden] { top: 20px; }
.menu-toggle span[aria-hidden]::before, .menu-toggle span[aria-hidden]::after { content: ""; left: 0; right: 0; }
.menu-toggle span[aria-hidden]::before { top: -6px; }
.menu-toggle span[aria-hidden]::after { top: 6px; }
.menu-open .menu-toggle span[aria-hidden] { background: transparent; }
.menu-open .menu-toggle span[aria-hidden]::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-toggle span[aria-hidden]::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
	.bar { gap: 12px; }
	.bar > .btn { margin-left: auto; }
	.menu-toggle { display: block; }
	.main-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--bar-bg);
		border-bottom: 1px solid var(--bar-rule);
		padding: 8px var(--gutter-r) 16px var(--gutter);
		display: none;
	}
	.menu-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: 12px 0; font-size: 18px; color: var(--bar-ink); border-bottom: 1px solid var(--bar-rule); }
}

/* ==========================================================================
   5. Topo
   ========================================================================== */
.hero { padding-block: 80px 64px; border-bottom: 1px solid var(--rule); }
.hero h1 {
	font-size: clamp(46px, 7.6vw, 104px);
	font-weight: 800;
	text-transform: uppercase;
	margin-top: 22px;
}
.h-top { display: block; max-width: 21ch; }
/* Rolo mecânico com as palavras em laranja */
.roller { display: block; height: 1.08em; overflow: hidden; color: var(--lamp); margin-top: .04em; }
.roller-track { display: block; transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.roller-track span { display: block; height: 1.08em; line-height: 1.08em; white-space: nowrap; }
.lead { font-size: 21px; max-width: 44ch; margin-top: 24px; }
.status {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-family: var(--f-mono);
	font-size: 13px;
	color: var(--muted);
}
.status li { display: flex; align-items: center; gap: 8px; }
.status li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--run); box-shadow: 0 0 6px var(--run); }

/* ==========================================================================
   6. Seções
   ========================================================================== */
.section { padding-block: 88px; }
.section-tight { padding-top: 0; }
.sec-head {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: start;
	margin-bottom: 44px;
}
.sec-head .plate { justify-self: start; }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 68px); text-transform: uppercase; }
.sec-head p { color: var(--muted); max-width: 52ch; margin-top: 16px; font-size: 18px; }
@media (max-width: 820px) {
	.section { padding-block: 64px; }
	.section-tight { padding-top: 0; }
	.sec-head { grid-template-columns: 1fr; gap: 16px; }
}

/* Serviços: régua de bornes */
.svc { border-top: 2px solid var(--ink); }
.svc-row {
	display: grid;
	grid-template-columns: 260px 1fr 1.1fr;
	gap: 32px;
	padding: 28px 0;
	border-bottom: 1px solid var(--rule);
	align-items: baseline;
}
.svc-row h3 { font-size: 34px; text-transform: uppercase; overflow-wrap: anywhere; }
.svc-row > * { min-width: 0; }
.svc-row p { color: var(--muted); max-width: 48ch; }
.svc-row.minor h3 { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
	font-family: var(--f-mono);
	font-size: 12px;
	padding: 3px 8px;
	border: 1px solid var(--rule);
	border-radius: 2px;
	background: var(--panel-2);
}
@media (max-width: 900px) { .svc-row { grid-template-columns: 1fr; gap: 10px; } }

/* Projetos: antes → depois */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { padding: 38px 26px 26px; display: flex; flex-direction: column; gap: 18px; }
.case h3 { font-size: 30px; text-transform: uppercase; }
.case h3 a { text-decoration: none; }
.case h3 a:hover { color: var(--lamp); }
.case .who { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.case-img img { display: block; width: 100%; border-radius: 3px; border: 1px solid var(--rule); }
.case-text { color: var(--muted); }
.case-link { font-family: var(--f-mono); font-size: 13px; margin-top: auto; text-underline-offset: 3px; }
.case.is-hidden { display: none; }
.more { margin-top: 28px; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: stretch; }
.flow > div { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 3px; font-size: 15px; line-height: 1.4; }
.flow .before { background: var(--panel); color: var(--muted); }
.flow .after { background: var(--plate); color: var(--plate-ink); border-color: var(--plate); }
.flow small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.flow .after small { color: var(--lamp); }
.flow .wire { border: 0; padding: 0; position: relative; }
.flow .wire::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: var(--lamp); }
.flow .wire::after { content: ""; position: absolute; right: 2px; top: calc(50% - 5px); border: 6px solid transparent; border-left: 8px solid var(--lamp); border-right: 0; }
.flow-lg { margin-block: 8px 36px; }
.flow-lg > div { font-size: 17px; padding: 18px 20px; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
	.flow { grid-template-columns: 1fr; }
	.flow .wire { height: 26px; }
	.flow .wire::before { left: 50%; right: auto; top: 3px; bottom: 3px; width: 2px; height: auto; }
	.flow .wire::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 0; border: 6px solid transparent; border-top: 8px solid var(--lamp); border-bottom: 0; }
}

/* Rádios */
.radio { background: var(--plate); color: var(--plate-ink); }
.radio .plate { background: #24292d; }
.radio h2 { font-size: clamp(40px, 5.4vw, 68px); text-transform: uppercase; margin-top: 22px; }
.radio-lead { color: var(--plate-muted); margin-top: 16px; max-width: 46ch; font-size: 18px; }
.radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.radio-grid > * { min-width: 0; }
.onair {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .12em;
	padding: 6px 14px;
	border: 2px solid var(--air);
	color: #ff6b5e;
	border-radius: 3px;
	animation: kf-air 2.4s ease-in-out infinite;
}
@keyframes kf-air { 50% { box-shadow: 0 0 22px rgba(226, 70, 59, .55); color: #ff8e83; } }
.dial { margin-block: 28px 22px; background: #0f1214; border: 1px solid #2b3136; border-radius: 3px; padding: 20px 28px 14px; }
.dial-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; color: #8b969e; letter-spacing: .1em; }
.freq { font-family: var(--f-mono); font-weight: 600; font-size: 40px; color: var(--lamp); font-variant-numeric: tabular-nums; }
.scale { position: relative; height: 50px; margin-top: 10px; }
.scale i { position: absolute; top: 0; width: 1px; height: 11px; background: #5d6870; }
.scale i.mj { width: 1.5px; height: 22px; }
.scale i b { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font: 400 11px var(--f-mono); color: #8b969e; }
.needle { position: absolute; top: -4px; bottom: 0; width: 2px; margin-left: -1px; background: var(--air); box-shadow: 0 0 8px var(--air); transition: left 1.2s cubic-bezier(.5, 0, .2, 1); }
.rlist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.rlist li { display: flex; gap: 12px; align-items: baseline; }
.rlist li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--lamp); transform: translateY(-2px); }
@media (max-width: 900px) { .radio-grid { grid-template-columns: 1fr; } }

/* Processo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.step { position: relative; padding: 22px 22px 0 0; counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font-family: var(--f-mono); font-size: 13px; color: var(--lamp); font-weight: 600; margin-bottom: 14px; }
.step::after { content: ""; position: absolute; top: 30px; left: 34px; right: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 11px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 28px; text-transform: uppercase; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; max-width: 28ch; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; } .step::after { display: none; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* Blog */
.posts { border-top: 2px solid var(--ink); }
.post-row { display: grid; grid-template-columns: 120px 1fr 200px; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.post-row time { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.post-row h3 { font-size: 28px; text-transform: uppercase; }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { color: var(--lamp); }
.post-row p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.post-row .post-thumb img { display: block; width: 100%; border-radius: 3px; border: 1px solid var(--rule); }
.post-row:not(:has(.post-thumb)) { grid-template-columns: 120px 1fr; }
@media (max-width: 720px) { .post-row, .post-row:not(:has(.post-thumb)) { grid-template-columns: 1fr; gap: 8px; } .post-row .post-thumb { order: -1; } }

/* Contato */
.contact { padding-top: 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact h2 { font-size: clamp(44px, 6vw, 80px); text-transform: uppercase; margin-top: 22px; }
.contact .lead { max-width: 34ch; color: var(--muted); }
.channels { margin-top: 32px; }
.channel { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.channel span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.channel strong { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.channel em { font-style: normal; color: var(--lamp); font-weight: 600; transition: transform .15s; }
a.channel:hover em { transform: translateX(4px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .channel { grid-template-columns: minmax(0, 1fr) auto; } .channel span { grid-column: 1 / -1; } }

.contact-form { padding: 40px 24px 24px; display: grid; gap: 16px; }
.contact-form .btn { justify-self: start; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="password"], textarea, select {
	font: inherit;
	font-size: 16px;
	color: var(--ink);
	background: var(--panel);
	border: 1px solid var(--rule);
	border-radius: 3px;
	padding: 11px 12px;
	width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--lamp); outline-offset: 0; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; font-family: var(--f-mono); font-size: 12px; padding: 6px 10px; border-radius: 2px; border: 1px solid var(--rule); background: var(--panel); transition: background .15s; }
.chip input:checked + span { background: var(--lamp); border-color: var(--lamp); color: var(--lamp-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--lamp); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px; }
.notice { font-family: var(--f-mono); font-size: 13px; padding: 12px 14px; background: var(--panel); border-left: 3px solid var(--run); }
.notice.erro { border-left-color: var(--air); }
@media (max-width: 460px) { .f2 { grid-template-columns: 1fr; } }

/* ==========================================================================
   7. Páginas internas
   ========================================================================== */
.page-hero { padding-block: 64px 48px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; font-weight: 800; margin-top: 18px; }
.page-sub { color: var(--muted); font-size: 19px; max-width: 60ch; margin-top: 18px; }
.page-sub p { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--lamp); }
.error-404 { padding-block: 96px; }
.error-404 .search-form { margin-top: 32px; max-width: 420px; }

.content-wrap { padding-block: 56px 88px; }
.entry { max-width: 780px; }
.entry-thumb { margin-bottom: 36px; }
.entry-thumb img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--rule); }

.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { text-transform: uppercase; margin-top: 1.6em; }
.entry-content h2 { font-size: 40px; }
.entry-content h3 { font-size: 30px; }
.entry-content h4 { font-size: 23px; }
.entry-content a { color: var(--lamp); text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lamp); font-size: 21px; }
.entry-content code { font-family: var(--f-mono); font-size: .88em; background: var(--panel-2); border: 1px solid var(--rule); padding: .1em .35em; border-radius: 2px; }
.entry-content pre { font-family: var(--f-mono); font-size: 14px; background: var(--plate); color: var(--plate-ink); padding: 18px 20px; border-radius: 3px; overflow-x: auto; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content img { border-radius: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.entry-content th { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.entry-content figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.alignwide { max-width: 1100px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-button__link { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--lamp); color: var(--lamp-ink) !important; border-radius: 3px; text-decoration: none; }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 3px; margin: 0 0 32px; overflow: hidden; }
.spec div { background: var(--panel-2); padding: 14px 16px; }
.spec dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-weight: 600; }

.end-band { background: var(--plate); color: var(--plate-ink); padding-block: 56px; }
.end-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.end-inner h2 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.chip-btn { font-family: var(--f-mono); font-size: 12.5px; padding: 7px 12px; border-radius: 2px; border: 1px solid var(--rule); background: var(--panel-2); color: var(--ink); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--plate); color: var(--plate-ink); border-color: var(--plate); }

.pagination { margin-top: 40px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { font-family: var(--f-mono); font-size: 14px; min-width: 40px; text-align: center; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; }
.pagination .current { background: var(--plate); color: var(--plate-ink); border-color: var(--plate); }
.no-results { color: var(--muted); }

.post-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags a { font-family: var(--f-mono); font-size: 12px; padding: 4px 9px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; }
.post-nav { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 2px solid var(--ink); padding-top: 20px; }
.post-nav a { text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 22px; text-transform: uppercase; line-height: 1.05; display: block; }
.post-nav small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 6px; }
.post-nav .next { text-align: right; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 0; border-radius: 3px; padding: 0 16px; background: var(--plate); color: var(--plate-ink); cursor: pointer; }

.comments-area { margin-top: 56px; max-width: 780px; }
.comments-area h2, .comment-reply-title { font-size: 32px; text-transform: uppercase; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.comment-author img { border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.comment-form .submit { font-family: var(--f-display); font-weight: 700; font-size: 17px; text-transform: uppercase; border: 0; border-radius: 3px; padding: .7em 1.15em; background: var(--lamp); color: var(--lamp-ink); cursor: pointer; }

/* ==========================================================================
   8. Rodapé
   ========================================================================== */
.site-footer { background: var(--bar-bg); color: var(--bar-ink); border-top: 1px solid var(--bar-rule); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-family: var(--f-mono); font-size: 12.5px; color: var(--bar-muted); }
.foot .logo { font-size: 22px; }
.foot .custom-logo { max-height: 36px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bar-ink); }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: 2px; }
.socials a:hover { background: var(--plate); color: var(--plate-ink); }
.site-footer .socials a { border-color: var(--bar-rule); color: var(--bar-ink); }
.site-footer .socials a:hover { background: var(--bar-ink); color: var(--bar-bg); }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.whatsapp-float {
	position: fixed;
	right: calc(18px + env(safe-area-inset-right, 0px));
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	width: 54px; height: 54px;
	display: grid; place-items: center;
	background: var(--plate);
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 10px 24px -8px var(--shadow), inset 0 0 0 2px var(--run);
	transition: transform .15s;
}
.whatsapp-float:hover { transform: translateY(-2px); }
.whatsapp-float .icon { width: 24px; height: 24px; color: var(--run); }

/* ==========================================================================
   9. Animações
   ========================================================================== */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }
.status li::before { animation: kf-blink 2.8s ease-in-out infinite; }
.status li:nth-child(2)::before { animation-delay: .9s; }
.status li:nth-child(3)::before { animation-delay: 1.8s; }
@keyframes kf-blink { 0%, 70%, 100% { opacity: 1; } 80% { opacity: .25; } }
.plate i { animation: kf-glow 2.4s ease-in-out infinite; }
@keyframes kf-glow { 50% { box-shadow: 0 0 2px var(--lamp); opacity: .75; } }
.svc-row { position: relative; transition: padding-left .3s cubic-bezier(.2, .7, .2, 1); }
.svc-row::before { content: ""; position: absolute; left: 0; top: 40px; width: 8px; height: 8px; background: var(--lamp); transform: scale(0); transition: transform .25s; }
@media (hover: hover) {
	.svc-row:hover { padding-left: 22px; }
	.svc-row:hover::before { transform: scale(1); }
	.case:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -22px var(--shadow); }
}
.case { transition: transform .3s, box-shadow .3s; }
.flow .wire::before { background: linear-gradient(90deg, var(--lamp) 0 35%, #ffe0cc 50%, var(--lamp) 65% 100%); background-size: 300% 100%; animation: kf-current 1.6s linear infinite; }
@keyframes kf-current { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.step::after { animation: kf-march .9s linear infinite; }
@keyframes kf-march { to { background-position: 11px 0; } }
.btn:active { transform: translateY(1px); }

/* ==========================================================================
   9. Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.rv { opacity: 1; transform: none; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

/* Espaço para o botão flutuante do WhatsApp não cobrir o rodapé */
body:has(.whatsapp-float) .site-footer { padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
	body:has(.whatsapp-float) .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
	body:has(.whatsapp-float) .foot { padding-right: calc(var(--gutter-r) + 72px); }
}
