/*
 * CH Builder Child — reskin do WooCommerce + estrutura fora do construtor.
 *
 * Carregado por inc/chb-bridge.php DEPOIS do chb-base.css do plugin (dep
 * ['chb-base']), então sobrescreve componentes sem !important. Usa só tokens
 * --chb-* (injetados por chb_brand_css()). NÃO substitui o CSS estrutural do
 * WooCommerce — só cor, raio e tipografia.
 *
 * Cole overrides específicos do projeto no fim, na seção marcada.
 */

/* Tokens locais — cores que o plugin não expõe (com fallback sensato). */
:root {
	--chb-wa: #1ec773;
	--chb-wa-dark: #15a862;
	--chb-success: #14803b;
	--chb-success-soft: #e6f7ec;
}

/* ── Sticky footer — chb-base.css não define isto; sem ele o rodapé sobe em
      páginas curtas (carrinho vazio, 404, minha conta). ── */
body.chb-site { display: flex; flex-direction: column; min-height: 100vh; }
body.chb-site .chb-main { flex: 1 0 auto; }

/* ── Página comum (page.php) ── */
.chb-page { padding-block: var(--chb-space-4, 32px); }
.chb-page__title { font-family: var(--chb-font-display); font-size: var(--chb-text-3xl, 2rem); margin: 0 0 var(--chb-space-2, 16px); }

/* ── Barra de promoção (inc/promo-bar.php) ── */
.chb-promo-bar {
	background: var(--chb-ink); color: var(--chb-paper);
	font-family: var(--chb-font-condensed, var(--chb-font)); font-size: 12.5px;
	letter-spacing: .04em; text-transform: uppercase;
}
.chb-promo-bar .chb-shell { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding-block: 7px; }
.chb-promo-bar span { position: relative; }
.chb-promo-bar span + span::before { content: '·'; position: absolute; left: -13px; opacity: .5; }

/* ── Wrapper de loja (inc/woocommerce.php) ── */
.chb-woo { padding-block: var(--chb-space-4, 32px); }
.woocommerce-breadcrumb { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--chb-ink-mute); margin-bottom: var(--chb-space-2, 16px); }

/* ── Grade de produtos ── */
.woocommerce ul.products {
	display: grid; gap: var(--chb-space-3, 24px); margin: 0; padding: 0; list-style: none;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product {
	margin: 0; width: auto; float: none;
	background: var(--chb-paper); border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 16px);
	padding: var(--chb-space-2, 16px); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.woocommerce ul.products li.product:hover {
	box-shadow: var(--chb-shadow); transform: translateY(-3px);
	border-color: rgba(var(--chb-primary-rgb), .35);
}
.woocommerce ul.products li.product a img {
	border-radius: var(--chb-radius, 10px); aspect-ratio: 1 / 1; object-fit: cover;
	background: var(--chb-paper-alt); margin-bottom: var(--chb-space-1, 8px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--chb-font-display); font-weight: 600; font-size: var(--chb-text-sm, 14px);
	color: var(--chb-ink); padding: 0; line-height: 1.35;
}
.woocommerce ul.products li.product .price {
	color: var(--chb-primary); font-weight: 700; font-size: var(--chb-text-base, 16px);
}
.woocommerce ul.products li.product .price del { opacity: .5; font-weight: 400; font-size: var(--chb-text-sm, 13px); }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* Selo de promoção */
.woocommerce span.onsale {
	background: var(--chb-accent); color: var(--chb-accent-text, #fff);
	border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .04em; min-height: 0; line-height: 1.6;
	top: 10px; right: 10px; left: auto; margin: 0;
}

/* Botões */
.woocommerce a.button, .woocommerce button.button,
.woocommerce .single_add_to_cart_button, .chb-loop-btn {
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff);
	border-radius: var(--chb-radius, 8px); font-family: var(--chb-font); font-weight: 700;
	font-size: var(--chb-text-sm, 13px); text-transform: uppercase; letter-spacing: .03em;
	padding: 10px 18px; transition: background .15s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce .single_add_to_cart_button:hover, .chb-loop-btn:hover { background: var(--chb-primary-dark); color: var(--chb-primary-ink, #fff); }
.woocommerce ul.products li.product .chb-loop-btn { display: block; text-align: center; margin-top: 10px; }

/* Avisos */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--chb-primary); border-radius: var(--chb-radius-lg, 14px);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--chb-primary); }

/* Tabelas de carrinho / checkout */
.woocommerce table.shop_table { border-radius: var(--chb-radius-lg, 14px); }
.woocommerce table.shop_table th { background: var(--chb-paper-alt); }
.woocommerce #place_order, .woocommerce-checkout #place_order {
	background: var(--chb-primary); color: var(--chb-primary-ink, #fff);
	border-radius: var(--chb-radius, 8px); font-weight: 700; text-transform: uppercase;
}
.woocommerce #place_order:hover { background: var(--chb-primary-dark); }

/* ── Página de produto (PDP) ── */
.single-product .product .product_title {
	font-family: var(--chb-font-display); font-size: clamp(24px, 3.4vw, 34px);
	color: var(--chb-secondary, var(--chb-ink));
}
.single-product .price { color: var(--chb-primary); font-family: var(--chb-font-display); font-weight: 700; }
.single-product .woocommerce-product-details__short-description { color: var(--chb-ink-soft); font-size: var(--chb-text-sm, 14px); }
.single-product form.cart {
	background: var(--chb-paper); border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 14px);
	box-shadow: var(--chb-shadow); padding: var(--chb-space-3, 20px); margin-block: var(--chb-space-3, 20px);
}

/* Galeria vertical em telas largas */
@media (min-width: 860px) {
	.single-product div.product .woocommerce-product-gallery { display: grid; grid-template-columns: 82px 1fr; gap: 12px; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
	.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 82px; }
}
.woocommerce-product-gallery__wrapper {
	border: 1px solid var(--chb-line); border-radius: var(--chb-radius-lg, 14px); overflow: hidden; background: var(--chb-paper);
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border-color: var(--chb-primary); }

/* Tags categoria + estoque (inc/single-product.php) */
.chb-pdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chb-pdp-tag {
	font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	padding: 4px 10px; border-radius: 999px; line-height: 1.4;
}
.chb-pdp-tag--cat { background: rgba(var(--chb-primary-rgb), .1); color: var(--chb-primary); }
.chb-pdp-tag--stock { background: var(--chb-success-soft); color: var(--chb-success); }

/* Botão "Pedir no WhatsApp" (inc/single-product.php) */
.chb-pdp-whatsapp {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
	padding: 11px 18px; border: 1.5px solid var(--chb-wa); border-radius: var(--chb-radius, 8px);
	color: var(--chb-wa-dark); font-weight: 700; font-size: var(--chb-text-sm, 13px);
	text-transform: uppercase; letter-spacing: .03em; text-decoration: none; transition: background .15s ease;
}
.chb-pdp-whatsapp:hover { background: var(--chb-success-soft); }
.chb-pdp-whatsapp svg { flex: none; }

/* Aba Especificações (inc/single-product.php) */
.woocommerce-tabs ul.tabs { border-bottom: 1px solid var(--chb-line); }
.woocommerce-tabs ul.tabs li a { font-family: var(--chb-font); font-weight: 700; font-size: var(--chb-text-sm, 13px); text-transform: uppercase; color: var(--chb-ink-mute); }
.woocommerce-tabs ul.tabs li.active a { color: var(--chb-secondary, var(--chb-ink)); }
.chb-pdp-specs { display: flex; flex-direction: column; }
.chb-pdp-specs__row {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 9px 0; border-bottom: 1px solid var(--chb-line); font-size: var(--chb-text-sm, 13px);
}
.chb-pdp-specs__row span { color: var(--chb-ink-mute); }
.chb-pdp-specs__row strong { color: var(--chb-secondary, var(--chb-ink)); text-align: right; }

/* Relacionados */
.related.products > h2, .upsells.products > h2 {
	font-family: var(--chb-font-display); font-size: var(--chb-text-2xl, 24px);
	color: var(--chb-secondary, var(--chb-ink)); margin-top: var(--chb-space-5, 48px);
}

/* ═══════════════════════════════════════════════════════════════════════════
 * OVERRIDES DO PROJETO — cole aqui o que for específico deste cliente
 * (retoques de cor, ajustes de seção do plugin tipo .chb-hero / .chb-cta,
 * layout da PDP, etc.). Mantém o starter acima limpo pra receber updates.
 * ═════════════════════════════════════════════════════════════════════════ */

/* ── Elétrica Nau · tipografia ────────────────────────────────────────────────
   Inter (variável) já vem embutida no plugin; copiada para o tema para ficar
   self-hosted (zero requisição a terceiros). Manrope, pedida no briefing da
   proposta, não vem no plugin e exige autorização de download — fica Inter. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-variable.woff2') format('woff2');
}

:root {
	--chb-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--chb-font-display: var(--chb-font);
	--chb-font-condensed: var(--chb-font);
	--chb-title-weight: 800;
	--chb-title-tracking: -0.025em;
	--chb-radius: 12px;
	--chb-radius-lg: 20px;
	--chb-shadow: 0 1px 2px rgba(6, 31, 61, .06), 0 10px 28px rgba(6, 31, 61, .08);
	--chb-shell: 1240px;

	/* Paleta do design system aprovado (cores principais vêm de Identidade). */
	--en-navy: #061F3D;
	--en-navy-2: #0B355E;
	--en-red: #E30613;
	--en-yellow: #FFD600;
	--en-gray: #F4F6F9;
	--en-line: #E1E8F1;
}

/* Foco visível (acessibilidade) — amarelo sobre fundos escuros, azul sobre claros. */
a:focus-visible, button:focus-visible, .chb-btn:focus-visible, summary:focus-visible {
	outline: 3px solid var(--en-navy-2); outline-offset: 3px; border-radius: 6px;
}
.chb-hero :focus-visible, .chb-section--invert :focus-visible, .chb-footer :focus-visible {
	outline-color: var(--en-yellow);
}

/* ── Botões (pílula, como no conceito) ── */
.chb-btn { border-radius: 999px; font-weight: 700; letter-spacing: .01em; }
.chb-btn--primary { box-shadow: 0 8px 20px rgba(227, 6, 19, .22); }
.chb-btn--primary:hover { box-shadow: 0 10px 24px rgba(227, 6, 19, .32); }
.chb-btn--ghost { border-width: 2px; }

/* ── Cabeçalho ── */
.chb-header { background: #fff; border-bottom: 0; box-shadow: 0 2px 14px rgba(6, 31, 61, .08); backdrop-filter: none; }
.chb-header__inner { min-height: 84px; }
.chb-header__logo img { max-height: 68px; width: auto; }
.chb-header__wa { display: none; } /* o botão "Solicite um Orçamento" (inc/projeto.php) já leva ao WhatsApp quando houver número */

.chb-nav__list { gap: 4px; align-items: center; }
.chb-nav__list a { position: relative; font-weight: 600; color: var(--en-navy); padding: .55em .85em; }
.chb-nav__list > li > a::after {
	content: ""; position: absolute; left: .85em; right: .85em; bottom: 2px; height: 3px;
	border-radius: 2px; background: var(--en-red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.chb-nav__list a:hover,
.chb-nav__list a[aria-current],
.chb-nav__list .current-menu-item > a,
.chb-nav__list .current-menu-ancestor > a { color: var(--en-red); }
.chb-nav__list > li > a:hover::after,
.chb-nav__list > li > a[aria-current]::after,
.chb-nav__list > .current-menu-item > a::after { transform: scaleX(1); }

/* Submenu "Serviços" — dropdown no desktop, lista indentada no celular */
.chb-nav__list .menu-item-has-children { position: relative; }
.chb-nav__list .menu-item-has-children > a { padding-right: 1.9em; }
.chb-nav__list .menu-item-has-children > a::before {
	content: ""; position: absolute; right: .8em; top: 50%; width: 6px; height: 6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg);
}
.chb-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px;
	position: absolute; top: 100%; left: 0; min-width: 310px; z-index: 60;
	background: #fff; border-top: 3px solid var(--en-red); border-radius: 0 0 16px 16px;
	box-shadow: 0 18px 40px rgba(6, 31, 61, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.chb-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; } /* ponte p/ o mouse não perder o hover */
.chb-nav__list .menu-item-has-children:hover > .sub-menu,
.chb-nav__list .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.chb-nav__list .sub-menu a { padding: .65em .9em; border-radius: 10px; font-weight: 500; white-space: normal; color: var(--en-navy); }
.chb-nav__list .sub-menu a::after { display: none; }
.chb-nav__list .sub-menu a:hover { background: var(--en-gray); color: var(--en-red); }

/* Botão de orçamento do topo */
.eletrica-header-cta { padding: .7em 1.35em; gap: .5em; white-space: nowrap; }
.eletrica-header-cta__short { display: none; }
@media (max-width: 1020px) {
	.eletrica-header-cta__long { display: none; }
	.eletrica-header-cta__short { display: inline; }
}

@media (max-width: 768px) {
	.chb-header__inner { min-height: 72px; }
	.chb-header__logo img { max-height: 56px; }
	.chb-nav { inset: 72px 0 auto 0; max-height: calc(100vh - 72px); overflow-y: auto; }
	.chb-nav__list > li > a::after, .chb-nav__list .menu-item-has-children > a::before { display: none; }
	.chb-nav__list .menu-item-has-children > a { padding-right: .6em; }
	.chb-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
		box-shadow: none; border-top: 0; border-left: 3px solid var(--en-red); border-radius: 0; margin: 2px 0 6px .6em; padding: 0 0 0 6px;
	}
	.chb-nav__list .sub-menu::before { display: none; }
}

/* ── Títulos de seção: alinhados à esquerda, com barra de destaque ── */
.chb-section-header { text-align: left; }
.chb-section-header .chb-section__lead { margin-inline: 0; }
.chb-section__title { color: var(--en-navy); font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.6rem); line-height: 1.12; }
.chb-section-header .chb-section__title::after {
	content: ""; display: block; width: 60px; height: 5px; border-radius: 3px; background: var(--en-yellow); margin: 16px 0 0;
}
.chb-section--invert .chb-section__title { color: #fff; }
.chb-section__lead { color: var(--chb-ink-soft); }

/* ── Hero: gradiente azul-marinho, raio decorativo e faixa vermelha (sem foto inventada) ── */
.chb-hero--plain {
	background:
		radial-gradient(900px 480px at 80% 30%, rgba(30, 95, 160, .55), transparent 65%),
		linear-gradient(118deg, var(--en-navy) 0%, var(--en-navy-2) 100%);
}
.chb-hero--plain::before {
	content: ""; position: absolute; right: 9%; top: 50%; width: min(32vw, 430px); aspect-ratio: 1;
	transform: translateY(-50%) rotate(8deg); background: url('../img/raio.svg') center / contain no-repeat;
	opacity: .14; pointer-events: none;
}
.chb-hero--plain::after {
	content: ""; position: absolute; top: -10%; bottom: -10%; right: -3%; width: min(14vw, 180px);
	background: linear-gradient(180deg, var(--en-red), #a8040e); transform: skewX(-14deg);
	opacity: .96; pointer-events: none;
}
.chb-hero__inner { z-index: 2; }
.chb-hero__title { font-size: clamp(2.3rem, 1.55rem + 3.3vw, 4rem); line-height: 1.07; max-width: 16ch; }
.chb-hero--compact .chb-hero__title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.1rem); max-width: 22ch; }
.chb-hero__title-accent { color: var(--en-yellow); }
.chb-hero__sub { font-size: clamp(1.05rem, 1rem + .45vw, 1.3rem); max-width: 46ch; opacity: .93; }
.chb-hero__eyebrow {
	position: relative; background: none; padding: 0 0 0 46px; border-radius: 0;
	font-weight: 600; letter-spacing: .02em; font-size: 15px; text-transform: none; color: #fff;
}
.chb-hero__eyebrow::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 34px; height: 6px; border-radius: 3px;
	background: var(--en-yellow); transform: translateY(-50%);
}
.chb-hero__actions .chb-btn { padding: .8em 1.7em; }
.chb-hero .chb-btn--ghost { border-color: rgba(255, 255, 255, .75); }
@media (max-width: 719px) {
	.chb-hero--plain::before { opacity: .09; right: -10%; width: 70vw; }
	.chb-hero--plain::after { width: 56px; right: -26px; opacity: .85; }
}

/* ── Faixa de indicadores (Home) ── */
#indicadores { padding-block: 0; background: #fff; border-bottom: 1px solid var(--en-line); }
#indicadores .chb-section-header { /* H2 só para leitores de tela */
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
#indicadores .chb-shell { padding-block: 26px; }
#indicadores .chb-cards__grid { gap: 0; }
#indicadores .chb-card {
	display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; height: auto;
	padding: 6px 22px; border: 0; border-left: 1px solid var(--en-line); border-radius: 0; background: transparent; box-shadow: none; transform: none;
}
#indicadores .chb-card:first-child { border-left: 0; padding-left: 0; }
#indicadores .chb-card__icon { grid-row: span 2; margin: 0; }
#indicadores .chb-card__icon--image img { width: 46px; height: 46px; }
#indicadores .chb-card__title { margin: 0; font-size: 1.45rem; line-height: 1.1; color: var(--en-navy); }
#indicadores .chb-card__text { font-size: .95rem; color: var(--chb-ink-soft); }
@media (max-width: 639px) {
	#indicadores .chb-shell { padding-block: 10px; }
	#indicadores .chb-card { border-left: 0; border-top: 1px solid var(--en-line); padding: 14px 4px; }
	#indicadores .chb-card:first-child { border-top: 0; }
}

/* ── Cards em fundo escuro (Nossas Soluções / Por que escolher) ── */
.chb-section--invert { background: linear-gradient(180deg, var(--en-navy) 0%, #08294f 100%); }
.chb-section--invert .chb-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
	border: 1px solid rgba(255, 214, 0, .28); border-radius: 18px;
}
.chb-section--invert .chb-card:hover { border-color: var(--en-yellow); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.chb-section--invert .chb-card__icon--image img { width: 58px; height: 58px; }
.chb-section--invert .chb-card__title { font-size: 1.05rem; line-height: 1.25; color: #fff; letter-spacing: -.01em; }
.chb-section--invert .chb-card__text { color: rgba(255, 255, 255, .78); }
.chb-section--invert .chb-card__link { color: var(--en-yellow); }
.chb-section--invert .chb-card__link:hover { color: #fff; }

#diferenciais .chb-cards__grid { gap: 0; }
#diferenciais .chb-card { background: transparent; border: 0; border-left: 1px solid rgba(255, 255, 255, .16); border-radius: 0; padding: 14px 18px; }
#diferenciais .chb-card:first-child { border-left: 0; }
#diferenciais .chb-card:hover { transform: none; box-shadow: none; }
@media (max-width: 639px) {
	#diferenciais .chb-card { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
	#diferenciais .chb-card:first-child { border-top: 0; }
}

/* ── Pilares da empresa (cards claros com ícone vermelho) ── */
#pilares .chb-card {
	display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; height: auto; padding: 20px 22px;
	background: #fff; border: 1px solid var(--en-line); box-shadow: var(--chb-shadow);
}
#pilares .chb-card__icon { grid-row: span 2; margin: 0; }
#pilares .chb-card__icon--image img { width: 46px; height: 46px; }
#pilares .chb-card__title { margin: 0; font-size: 1.1rem; color: var(--en-navy); }
#pilares .chb-card__text { color: var(--chb-ink-soft); }

/* Cards claros em geral */
.chb-card__title { color: var(--en-navy); }

/* ── Serviços em blocos (inc/projeto.php) ── */
.eletrica-svc-list { display: grid; gap: 22px; }
.eletrica-svc {
	display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 36px); align-items: center;
	padding: clamp(20px, 3vw, 34px); background: #fff; border: 1px solid var(--en-line);
	border-left: 6px solid var(--en-red); border-radius: var(--chb-radius-lg); box-shadow: var(--chb-shadow);
	scroll-margin-top: 112px; /* abaixo do cabeçalho fixo ao vir de #âncora */
}
.eletrica-svc__icon {
	position: relative; width: 104px; height: 104px; border-radius: 24px; display: grid; place-items: center;
	background: linear-gradient(140deg, var(--en-navy), var(--en-navy-2));
}
.eletrica-svc__icon img { width: 58px; height: 58px; object-fit: contain; }
.eletrica-svc__num {
	position: absolute; top: -10px; left: -10px; background: var(--en-yellow); color: var(--en-navy);
	font-weight: 800; font-size: .8rem; padding: .2em .6em; border-radius: 999px; box-shadow: 0 2px 6px rgba(6, 31, 61, .2);
}
.eletrica-svc__title { margin: 0 0 .35em; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); color: var(--en-navy); }
.eletrica-svc__text { margin: 0 0 1.1em; color: var(--chb-ink-soft); max-width: 64ch; }
@media (max-width: 639px) {
	.eletrica-svc { grid-template-columns: 1fr; }
	.eletrica-svc__icon { width: 84px; height: 84px; }
	.eletrica-svc__icon img { width: 48px; height: 48px; }
}

/* ── Obras e projetos ── */
.eletrica-obras__empty {
	max-width: 62ch; margin: 0; padding: 22px 26px; font-size: 1.08rem; color: var(--chb-ink-soft);
	background: #fff; border: 1px dashed #BFCCDD; border-left: 5px solid var(--en-yellow); border-radius: 16px;
}

/* ── Chamada final ── */
.chb-cta__title { color: var(--en-navy); }
.chb-cta__text { color: var(--chb-ink-soft); opacity: 1; }

/* ── Rodapé ── */
.chb-footer { background: var(--en-navy); border-top: 5px solid var(--en-red); }
.chb-footer__brand { text-align: left; }
.chb-footer__logo img { max-height: 84px; width: auto; margin-inline: 0; background: #fff; border-radius: 16px; padding: 6px 12px; }
.chb-footer__tagline { max-width: 34ch; opacity: .85; }
.chb-footer h2 { opacity: 1; color: var(--en-yellow); letter-spacing: .08em; }
.chb-footer__line { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.chb-footer__grid--cols-1 .chb-footer__brand { text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.chb-card, .chb-nav__list .sub-menu, .chb-nav__list > li > a::after { transition: none; }
}

/* ── Acabamento (revisão visual) ── */
.chb-card__link { text-decoration: none; }
.chb-card__link:hover { text-decoration: underline; }

/* Blocos de texto alinhados à esquerda do container, como o resto da página */
.chb-text .chb-shell--narrow { max-width: var(--chb-shell); }
.chb-text .chb-prose { max-width: 74ch; font-size: 1.05rem; }
.chb-text .chb-prose p { color: var(--chb-ink-soft); }

.eletrica-svc__title { font-family: var(--chb-font-display); font-weight: var(--chb-title-weight); letter-spacing: var(--chb-title-tracking); }
.chb-hero--compact .chb-hero__title { max-width: 26ch; }

@media (max-width: 768px) {
	/* o align-items:center do desktop centralizava os itens na coluna do menu aberto */
	.chb-nav__list { align-items: stretch; }
}
.eletrica-obras .chb-section__cta { text-align: left; }

/* Redes sociais do rodapé alinhadas à esquerda, como a logo */
.chb-footer__brand .chb-footer__social { justify-content: flex-start; }
.chb-contact__list a, .chb-location__list a { color: var(--en-red); font-weight: 600; }
.chb-contact__list a:hover, .chb-location__list a:hover { color: var(--chb-primary-dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   REVISÃO 2026-11-28 — logo nova, hero com foto, "A empresa", faixa de
   diferenciais, chamada final com foto, carrossel de clientes, obras e
   efeito de "energia" nos botões.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Logo (PNG transparente com raios): maior, "pendurada" sobre o hero como no projeto base ── */
.chb-header__inner { min-height: 88px; }
.chb-header__logo img { max-height: none; height: 78px; width: auto; margin: 0; }
.chb-footer__logo img { max-height: 124px; width: auto; background: none; border-radius: 0; padding: 0; margin-inline: -6px 0; }
@media (max-width: 768px) {
	.chb-header__inner { min-height: 72px; }
	.chb-header__logo img { height: 58px; }
}

/* ── Elementos comuns: barra vermelha inclinada antes do título ── */
.eletrica-slash {
	display: inline-block; width: .16em; height: .88em; margin-right: .5em; vertical-align: -.05em;
	background: var(--en-red); border-radius: 1px; transform: skewX(-24deg);
}
.eletrica-title {
	margin: 0 0 .45em; font-family: var(--chb-font-display); font-weight: var(--chb-title-weight);
	letter-spacing: var(--chb-title-tracking); color: var(--en-navy); line-height: 1.1;
	font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);
}

/* ── Hero da Home com a foto (a própria imagem traz o azul para o texto e a faixa vermelha) ── */
.chb-hero:not(.chb-hero--plain) { background-position: 72% center; background-color: var(--en-navy); }
.chb-hero--left:not(.chb-hero--plain) .chb-hero__title { font-size: clamp(2.1rem, 1.2rem + 2.3vw, 3.3rem); max-width: 14ch; line-height: 1.07; text-shadow: 0 2px 18px rgba(3, 14, 30, .35); }
.chb-hero--left:not(.chb-hero--plain) .chb-hero__sub { max-width: 34ch; text-shadow: 0 1px 12px rgba(3, 14, 30, .4); }
@media (max-width: 719px) {
	/* No celular a foto fica atrás do texto: véu azul-marinho para manter a leitura. */
	.chb-hero:not(.chb-hero--plain) { background-position: 78% center; }
	.chb-hero:not(.chb-hero--plain) .chb-hero__overlay { background: linear-gradient(180deg, rgba(6, 31, 61, .6), rgba(6, 31, 61, .84)); }
}
@media (min-width: 720px) and (max-width: 1180px) {
	/* Telas médias: a foto cresce e o painel encosta no texto — escurece só o lado esquerdo. */
	.chb-hero:not(.chb-hero--plain) .chb-hero__overlay { background: linear-gradient(90deg, rgba(6, 31, 61, .9) 0%, rgba(6, 31, 61, .66) 44%, rgba(6, 31, 61, 0) 74%); }
}
/* Ícones nos botões do hero (raio e "play") */
.chb-hero__actions .chb-btn--primary::before,
.chb-hero__actions .chb-btn--ghost::before {
	content: ""; width: 1.05em; height: 1.05em; flex: none; background: currentColor;
	-webkit-mask: var(--en-ico) center / contain no-repeat; mask: var(--en-ico) center / contain no-repeat;
}
.chb-hero__actions .chb-btn--primary { --en-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E"); }
.chb-hero__actions .chb-btn--ghost { --en-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12.5-7.5z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ── "A Elétrica Nau" (foto + pilares) e chamada final: recorte diagonal com faixa amarela ── */
.eletrica-sobre, .eletrica-cta {
	position: relative; display: grid; overflow: hidden;
	background: linear-gradient(120deg, #fff 0%, #f1f5fa 100%);
}
.eletrica-sobre { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); }
.eletrica-cta { grid-template-columns: minmax(0, 37%) minmax(0, 1fr); background: var(--en-gray); }
.eletrica-sobre--no-img, .eletrica-cta--no-img { grid-template-columns: 1fr; }
.eletrica-sobre__media, .eletrica-cta__media {
	position: relative; min-height: 330px; background: var(--en-yellow);
	clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.eletrica-sobre__media img, .eletrica-cta__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	clip-path: polygon(0 0, calc(100% - 18px) 0, calc(85% - 18px) 100%, 0 100%);
}
.eletrica-cta__media img { object-position: 50% 42%; }
.eletrica-sobre__body, .eletrica-cta__body {
	position: relative; z-index: 1; align-self: center;
	padding-block: clamp(30px, 4.2vw, 58px);
	padding-left: clamp(10px, 2vw, 34px);
	padding-right: max(24px, calc((100vw - var(--chb-shell)) / 2 + 24px));
}
.eletrica-sobre::after {
	content: ""; position: absolute; right: 3%; top: 6%; width: min(17vw, 210px); aspect-ratio: 1 / 1.4;
	background: #c5d1e4; opacity: .5; transform: rotate(7deg); pointer-events: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.eletrica-sobre__text { margin: 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.6; color: var(--chb-ink-soft); }
.eletrica-pillars { list-style: none; display: flex; flex-wrap: nowrap; margin: 24px 0 28px; padding: 0; }
.eletrica-pillars__item {
	display: flex; flex: 0 1 auto; min-width: 0; align-items: center; gap: clamp(7px, 1vw, 12px);
	padding: 4px clamp(10px, 1.7vw, 22px); border-left: 1px solid #cdd7e5;
}
.eletrica-pillars__item:first-child { padding-left: 0; border-left: 0; }
.eletrica-pillars__icon { flex: none; }
.eletrica-pillars__icon img { display: block; width: clamp(28px, 3.1vw, 40px); height: clamp(28px, 3.1vw, 40px); object-fit: contain; }
.eletrica-pillars__label { font-weight: 700; font-size: clamp(.78rem, .5rem + .55vw, .95rem); line-height: 1.2; color: var(--en-navy); }
.eletrica-btn-outline, .eletrica-btn-navy { background: #fff; padding: .75em 1.6em; }
.eletrica-btn-outline { color: var(--en-red); border-color: var(--en-red); }
.eletrica-btn-outline:hover { background: var(--en-red); color: #fff; }
.eletrica-btn-navy { color: var(--en-navy); border-color: var(--en-navy); }
.eletrica-btn-navy:hover { background: var(--en-navy); color: #fff; }

/* Chamada final: texto à esquerda, botões à direita */
.eletrica-cta__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; }
.eletrica-cta__copy { flex: 1 1 300px; }
.eletrica-cta__text { margin: 0; max-width: 44ch; color: var(--chb-ink-soft); font-size: 1.05rem; }
.eletrica-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.eletrica-cta__actions .chb-btn { padding: .85em 1.6em; }

@media (max-width: 899px) {
	.eletrica-sobre, .eletrica-cta { grid-template-columns: 1fr; }
	.eletrica-sobre__media, .eletrica-cta__media { min-height: 240px; clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%); }
	.eletrica-sobre__media img, .eletrica-cta__media img { clip-path: polygon(0 0, 100% 0, 100% calc(91% - 14px), 0 calc(100% - 14px)); }
	.eletrica-sobre__body, .eletrica-cta__body { padding: 22px 24px 38px; }
	.eletrica-sobre::after { top: auto; bottom: 4%; width: 90px; }
}
@media (max-width: 599px) {
	.eletrica-pillars { flex-direction: column; gap: 4px; }
	.eletrica-pillars__item { padding: 10px 0; border-left: 0; border-top: 1px solid #dbe3ee; }
	.eletrica-pillars__item:first-child { border-top: 0; }
	.eletrica-cta__actions .chb-btn { width: 100%; }
}

/* ── "Por que escolher": faixa azul-marinho com o título à esquerda e 4 itens separados por filetes ── */
#diferenciais { padding-block: clamp(22px, 3vw, 36px); }
#diferenciais > .chb-shell { display: grid; grid-template-columns: minmax(210px, 28%) minmax(0, 1fr); align-items: center; gap: clamp(14px, 3vw, 40px); }
#diferenciais .chb-section-header { margin: 0; padding-right: clamp(10px, 2vw, 28px); }
#diferenciais .chb-section__title { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); }
#diferenciais .chb-section-header .chb-section__title::after { margin-top: 12px; }
#diferenciais .chb-cards__grid { grid-template-columns: repeat(2, 1fr); gap: 6px 0; }
#diferenciais .chb-card { gap: 10px; padding: 6px 14px; }
#diferenciais .chb-card__icon { margin: 0; }
#diferenciais .chb-card__icon--image img { width: 50px; height: 50px; }
#diferenciais .chb-card__title { margin: 0; font-size: .98rem; font-weight: 600; letter-spacing: 0; line-height: 1.25; }
@media (min-width: 760px) {
	#diferenciais .chb-cards__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 899px) {
	#diferenciais > .chb-shell { grid-template-columns: 1fr; }
}

/* ── Carrossel de clientes ── */
.eletrica-clientes { background: #fff; overflow: hidden; }
.eletrica-marquee {
	display: grid; gap: 16px; margin-top: 8px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.eletrica-marquee__row { overflow: hidden; padding-block: 4px; }
.eletrica-marquee__track { display: flex; width: max-content; animation: eletrica-marquee var(--dur, 80s) linear infinite; will-change: transform; }
.eletrica-marquee__row.is-reverse .eletrica-marquee__track { animation-direction: reverse; }
.eletrica-marquee__row:hover .eletrica-marquee__track,
.eletrica-marquee__row:focus-within .eletrica-marquee__track { animation-play-state: paused; }
.eletrica-marquee__group { display: flex; flex: none; gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.eletrica-logo {
	flex: none; display: grid; place-items: center; width: 168px; height: 92px; padding: 12px 16px;
	background: #fff; border: 1px solid var(--en-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(6, 31, 61, .05);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.eletrica-logo:hover { border-color: var(--en-yellow); box-shadow: 0 8px 20px rgba(6, 31, 61, .12); transform: translateY(-2px); }
.eletrica-logo img { display: block; max-width: 136px; max-height: 66px; width: auto; height: auto; object-fit: contain; }
@keyframes eletrica-marquee { to { transform: translateX(-50%); } }
@media (max-width: 639px) {
	.eletrica-logo { width: 132px; height: 76px; padding: 10px 12px; }
	.eletrica-logo img { max-width: 106px; max-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	.eletrica-marquee { -webkit-mask-image: none; mask-image: none; }
	.eletrica-marquee__row { overflow: visible; }
	.eletrica-marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.eletrica-marquee__group { flex-wrap: wrap; justify-content: center; padding: 0; }
	.eletrica-marquee__group[aria-hidden="true"] { display: none; }
}

/* ── Obras e projetos (cadastro do Portfólio) ── */
.eletrica-obras__grid { list-style: none; display: grid; gap: 18px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.eletrica-obras__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.eletrica-obras__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.eletrica-obras__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) {
	.eletrica-obras__grid--cols-3, .eletrica-obras__grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 559px) {
	/* Celular: 2 colunas, para não alongar a página com dezenas de obras. */
	.eletrica-obras__grid, .eletrica-obras__grid--cols-2, .eletrica-obras__grid--cols-3, .eletrica-obras__grid--cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.eletrica-obra__fig { aspect-ratio: 4 / 5; border-radius: 14px; }
	.eletrica-obra__fig figcaption { padding: 12px 10px 10px; }
	.eletrica-obra__title { font-size: .84rem; }
	.eletrica-obra__loc { font-size: .72rem; }
}
@media (max-width: 339px) {
	.eletrica-obras__grid, .eletrica-obras__grid--cols-2, .eletrica-obras__grid--cols-3, .eletrica-obras__grid--cols-4 { grid-template-columns: 1fr; }
	.eletrica-obra__fig { aspect-ratio: 4 / 3; }
}
.eletrica-obra { min-width: 0; margin: 0; }
.eletrica-obra[hidden] { display: none; }
.eletrica-obra__fig {
	position: relative; isolation: isolate; margin: 0; overflow: hidden; aspect-ratio: 4 / 3;
	border-radius: 18px; background: var(--en-navy); box-shadow: var(--chb-shadow);
}
.eletrica-obra__fig img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.eletrica-obra__fig::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, transparent 42%, rgba(6, 31, 61, .93) 100%);
}
.eletrica-obra__fig figcaption {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px;
	padding: 16px 16px 14px; color: #fff;
}
.eletrica-obra__title {
	font-size: .98rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.eletrica-obra__loc { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--en-yellow); }
.eletrica-obra:hover .eletrica-obra__fig img { transform: scale(1.06); }
.eletrica-obra__open { display: block; position: static; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; }
.eletrica-obra__open::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.eletrica-obra__open:focus-visible { outline: none; }
.eletrica-obra__fig:has(.eletrica-obra__open:focus-visible) { outline: 3px solid var(--en-yellow); outline-offset: 3px; }
.eletrica-obra__count {
	position: absolute; z-index: 2; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff;
	background: rgba(6, 31, 61, .78); backdrop-filter: blur(4px);
}
.eletrica-obra:hover .eletrica-obra__fig img { transform: scale(1.06); }

/* Accordeon "Ver mais obras": a altura anima de 0 a 100% (grid 0fr → 1fr). */
.eletrica-obras__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.4, 0, .2, 1); }
.eletrica-obras__more.is-open { grid-template-rows: 1fr; }
.eletrica-obras__more-inner { min-height: 0; overflow: hidden; }
.eletrica-obras__more-inner > .eletrica-obras__grid { padding-top: 18px; padding-bottom: 6px; }
.eletrica-obras__more-wrap { margin-top: 28px; text-align: center; }
.eletrica-obras__toggle { gap: .6em; padding-inline: 1.9em; background: #fff; }
.eletrica-obras__toggle-icon { transition: transform .35s ease; }
.eletrica-obras__toggle[aria-expanded="true"] .eletrica-obras__toggle-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
	.eletrica-obras__more, .eletrica-obras__toggle-icon { transition: none; }
}
.eletrica-obras__empty:not(:last-child) { margin-bottom: 20px; }

/* ── Efeito de "energia" nos botões ───────────────────────────────────────────
   Ao passar o mouse/focar: faísca varrendo o botão, dois raios que piscam nas
   pontas e brilho amarelo-azulado. Os botões principais do hero, da chamada final
   e do topo também dão um pulso de energia a cada poucos segundos.
   Tudo em CSS; com "reduzir movimento" ligado fica só o brilho estático. */
.chb-btn {
	position: relative; overflow: hidden; isolation: isolate;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.chb-btn--primary {
	background-image: linear-gradient(105deg, transparent 38%, rgba(255, 244, 170, .75) 50%, transparent 62%);
	background-size: 260% 100%; background-position: 160% 0; background-repeat: no-repeat;
}
.chb-btn--primary:hover, .chb-btn--primary:focus-visible {
	background-image: linear-gradient(105deg, transparent 38%, rgba(255, 244, 170, .75) 50%, transparent 62%);
	background-size: 260% 100%; background-repeat: no-repeat;
	animation: eletrica-sweep .8s ease-out 1, eletrica-glow 1.2s ease-in-out .8s infinite;
}
.chb-btn--ghost:hover, .chb-btn--ghost:focus-visible {
	background-image: linear-gradient(105deg, transparent 38%, rgba(255, 214, 0, .42) 50%, transparent 62%);
	background-size: 260% 100%; background-repeat: no-repeat;
	animation: eletrica-sweep .8s ease-out 1, eletrica-glow-soft 1.2s ease-in-out .8s infinite;
}
.chb-btn:hover, .chb-btn:focus-visible { transform: translateY(-1px); }
.chb-btn::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cpath d='M15 1 5 24h7L8 47 21 19h-8z' fill='%23FFD600' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") left 5px center / auto 108% no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cpath d='M9 1 19 24h-7l4 23L3 19h8z' fill='%23FFD600' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") right 5px center / auto 86% no-repeat;
}
.chb-btn:hover::after, .chb-btn:focus-visible::after { animation: eletrica-arc 1.3s linear infinite; }

@keyframes eletrica-sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes eletrica-glow {
	0%, 100% { box-shadow: 0 10px 24px rgba(227, 6, 19, .32), 0 0 0 0 rgba(255, 214, 0, 0); }
	50%      { box-shadow: 0 10px 28px rgba(227, 6, 19, .42), 0 0 18px 4px rgba(255, 214, 0, .55), 0 0 36px 9px rgba(70, 160, 255, .32); }
}
@keyframes eletrica-glow-soft {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 214, 0, 0); }
	50%      { box-shadow: 0 0 16px 3px rgba(255, 214, 0, .5), 0 0 30px 7px rgba(70, 160, 255, .28); }
}
@keyframes eletrica-arc {
	0%, 100% { opacity: 0; }
	4%  { opacity: 1; }  9%  { opacity: .25; }  13% { opacity: 1; }  19% { opacity: 0; }
	56% { opacity: 0; }  59% { opacity: .95; }  64% { opacity: 0; }
}
@keyframes eletrica-pulse {
	0%, 72%, 100% { box-shadow: 0 8px 20px rgba(227, 6, 19, .22), 0 0 0 0 rgba(255, 214, 0, 0); }
	86%           { box-shadow: 0 8px 20px rgba(227, 6, 19, .22), 0 0 16px 4px rgba(255, 214, 0, .55), 0 0 30px 8px rgba(70, 160, 255, .26); }
}
.chb-hero__actions .chb-btn--primary,
.eletrica-header-cta,
.eletrica-cta__actions .chb-btn--primary { animation: eletrica-pulse 3.6s ease-in-out 1.2s infinite; }
.chb-hero__actions .chb-btn--primary:hover,
.eletrica-header-cta:hover,
.eletrica-cta__actions .chb-btn--primary:hover { animation: eletrica-sweep .8s ease-out 1, eletrica-glow 1.2s ease-in-out .8s infinite; }

@media (prefers-reduced-motion: reduce) {
	.chb-btn, .chb-btn::after { animation: none !important; transition: none; }
	.chb-btn:hover, .chb-btn:focus-visible { transform: none; }
	.chb-btn--primary:hover, .chb-btn--primary:focus-visible { box-shadow: 0 10px 24px rgba(227, 6, 19, .32), 0 0 16px 3px rgba(255, 214, 0, .55); }
	.chb-btn--ghost:hover, .chb-btn--ghost:focus-visible { box-shadow: 0 0 14px 2px rgba(255, 214, 0, .5); }
	.chb-btn:hover::after, .chb-btn:focus-visible::after { opacity: 0; }
	.eletrica-logo, .eletrica-obra__fig img { transition: none; }
}

/* ── Assistente do WhatsApp (módulo nativo do ch-builder; substitui o botão flutuante) ──
   Mesmo canto e mesma cor do botão antigo, ícone do WhatsApp no lugar do balão e liberado no celular
   (o plugin esconde o assistente no mobile porque supõe uma barra inferior própria — aqui não há). */
.chb-assist { right: 20px; bottom: 20px; z-index: 9999; }
.chb-assist__fab {
	position: relative; width: 58px; height: 58px; font-size: 0; line-height: 0; overflow: visible;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.chb-assist__fab::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chb-assist__panel { bottom: 72px; width: min(330px, calc(100vw - 32px)); padding: 16px; border: 0; border-radius: 18px; box-shadow: 0 18px 44px rgba(6, 31, 61, .28); }
.chb-assist__list::before {
	content: "Fale com a gente pelo WhatsApp"; display: block; margin: 0 2px 4px;
	font-weight: 800; font-size: 1rem; line-height: 1.25; color: var(--en-navy);
}
.chb-assist__q { padding: 13px 16px; border-radius: 12px; font-weight: 700; color: var(--en-navy); background: #fff; border: 1px solid var(--en-line); }
.chb-assist__q:hover { border-color: #25D366; box-shadow: 0 6px 16px rgba(37, 211, 102, .22); }
.chb-assist__back { color: var(--en-red); font-weight: 700; }
.chb-assist__answer p { color: var(--chb-ink-soft); line-height: 1.5; }
.chb-assist__cta { display: flex; justify-content: center; margin-top: 14px; padding: .8em 1.2em; border-radius: 999px; background: #25D366; color: #102238; font-weight: 800; text-decoration: none; }
.chb-assist__cta:hover { background: #1fbb59; color: #102238; }
/* No celular o botão flutuante some: o assistente abre pelo item "WhatsApp" da barra inferior (ver bloco "Celular" no fim). */

/* O GeneratePress pinta todo <button> em :hover/:focus (cinza-escuro + texto branco) — devolve o visual dos botões do tema. */
.eletrica-obra__open, .eletrica-obra__open:hover, .eletrica-obra__open:focus { background: none; color: inherit; }
.eletrica-obras__toggle:hover, .eletrica-obras__toggle:focus { background-color: #fff; color: var(--en-red); }
.chb-assist__fab:hover, .chb-assist__fab:focus { background-color: var(--chb-assist-color, #25D366); color: var(--chb-assist-ink, #1a1b1f); }
.chb-assist__q:hover, .chb-assist__q:focus { background-color: #fff; color: var(--en-navy); }
.chb-assist__back:hover, .chb-assist__back:focus { background: none; color: var(--en-red); }

/* ══════════════════════════════════════════════════════════════════════════
   Celular (≤ 768px): cabeçalho sem orçamento, faixa de números rolando, barra inferior e assistente
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

	/* 1) O orçamento passa para a barra inferior (WhatsApp) — o cabeçalho fica só com logo e menu. */
	.eletrica-header-cta { display: none; }

	/* 2) Faixa logo abaixo do hero (Home e Empresa): itens em uma linha só. Sem JS: linha que se arrasta com o dedo;
	      com JS (is-marquee): rolagem automática contínua, pausa enquanto o dedo estiver na faixa. */
	#indicadores .chb-shell { max-width: none; padding-inline: 0; padding-block: 14px; }
	#indicadores .chb-cards__grid {
		display: flex; flex-wrap: nowrap; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
	}
	#indicadores .chb-cards__grid::-webkit-scrollbar { display: none; }
	#indicadores .chb-card,
	#indicadores .chb-card:first-child {
		flex: none; white-space: nowrap; border-top: 0; border-left: 1px solid var(--en-line); padding: 6px 28px; scroll-snap-align: start;
	}
	#indicadores .chb-card:first-child { border-left: 0; }
	#indicadores.is-marquee .chb-card:first-child { border-left: 1px solid var(--en-line); }
	#indicadores.is-marquee .chb-shell {
		overflow: hidden;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	}
	#indicadores.is-marquee .chb-cards__grid {
		overflow: visible; width: max-content; scroll-snap-type: none;
		animation: eletrica-strip var(--strip-time, 30s) linear infinite; will-change: transform;
	}
	#indicadores.is-marquee .chb-shell:active .chb-cards__grid { animation-play-state: paused; }

	/* 3) Barra de navegação inferior (módulo nativo do ch-builder) nas cores da marca. */
	body.chb-has-bottom-nav { padding-bottom: 68px; }
	.chb-bottom-nav {
		background: var(--en-navy); border-top: 3px solid var(--en-yellow);
		padding-top: 4px; box-shadow: 0 -8px 24px rgba(6, 31, 61, .35);
	}
	.chb-bottom-nav__item,
	.chb-bottom-nav__item:hover,
	.chb-bottom-nav__item:focus { gap: 3px; padding: 6px 2px 4px; color: rgba(255, 255, 255, .86); font-size: 11px; font-weight: 700; text-decoration: none; }
	.chb-bottom-nav__item svg { width: 24px; height: 24px; }
	.chb-bottom-nav__item.is-current { color: var(--en-yellow); }
	.chb-bottom-nav__item[href="#whatsapp"],
	.chb-bottom-nav__item[href="#whatsapp"]:hover,
	.chb-bottom-nav__item[href="#whatsapp"]:focus { color: #25D366; }
	.chb-bottom-nav__item[href="#whatsapp"].is-open span { text-decoration: underline; text-underline-offset: 3px; }

	/* 4) Assistente (Financeiro / Orçamentos): sem botão flutuante; o painel abre acima da barra inferior. */
	.chb-assist { display: block; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
	.chb-assist__fab { display: none; }
	.chb-assist__panel { bottom: 0; width: min(360px, calc(100vw - 20px)); max-height: calc(100vh - 210px); }
	.chb-assist__list::before { padding-right: 34px; }
	.eletrica-assist-close {
		position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
		background: var(--en-gray); color: var(--en-navy); font-size: 22px; line-height: 1; cursor: pointer;
	}
	.eletrica-assist-close:hover, .eletrica-assist-close:focus { background: var(--en-line); color: var(--en-navy); }
}
.eletrica-assist-close { display: none; }
@media (max-width: 768px) { .eletrica-assist-close { display: block; } }

@keyframes eletrica-strip { to { transform: translateX(calc(var(--strip-shift, 50%) * -1)); } }
