/*
Theme Name: Somar
Theme URI: https://somar.eng.br
Author: L9WEB
Author URI: https://www.l9web.com.br
Description: Tema próprio da Somar Engenharia de Processos e Somar Indústria Metalúrgica: leve, responsivo e sem page builder.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: somar
*/

:root {
	/* Marca: azul elétrico dos logos (#0000fc) levemente suavizado + marinho profundo */
	--azul: #1427f5;
	--azul-escuro: #0f1fd0;
	--azul-claro: #6f7dff;
	--azul-soft: #eef0ff;
	--marinho: #070b2e;
	--marinho-2: #0d1442;
	--marinho-3: #18215e;
	--ambar: #ffb21f; /* destaque pontual: óleo / energia */
	--ink: #0b0f2a;
	--text: #474c63;
	--muted: #7c8199;
	--line: #e3e6f0;
	--bg: #fff;
	--bg-soft: #f4f6fb;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 12px 34px rgba(7, 11, 46, .08);
	--shadow-lg: 0 30px 70px rgba(7, 11, 46, .18);
	--wrap: 1240px;
	--font-head: "Sora", "Segoe UI", Arial, sans-serif;
	--font-body: "Inter", system-ui, "Segoe UI", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
	--header-h: 84px;
	--linhas: url("assets/img/linhas.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 17px/1.7 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; transition: color .2s; }
a:hover { color: var(--azul-escuro); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 999; background: #fff; padding: 10px 16px; top: 8px; left: 8px; }
.lead { font-size: 1.16rem; color: var(--ink); line-height: 1.65; }
.centro { text-align: center; margin-top: 40px; }

/* Rótulo técnico acima dos títulos */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .78rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--azul); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--claro { color: #aab3ff; }
.eyebrow__ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 0 4px rgba(255, 178, 31, .25); }
.hero .eyebrow::before { display: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65em; white-space: nowrap; padding: .95em 1.7em; border-radius: 10px; font: 600 .98rem/1.2 var(--font-body); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn i { font-size: .9em; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .fa-arrow-right { transform: translateX(3px); }
.btn--sm { padding: .72em 1.2em; font-size: .92rem; }
.btn--primary { background: var(--azul); color: #fff; box-shadow: 0 10px 26px rgba(20, 39, 245, .32); }
.btn--primary:hover { background: var(--azul-escuro); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }
.btn--outline { border-color: var(--azul); color: var(--azul); }
.btn--outline:hover { background: var(--azul); color: #fff; }
.btn--white { background: #fff; color: var(--marinho); }
.btn--white:hover { color: var(--azul); }
.btn--whats { background: #25d366; color: #fff; }
.btn--whats:hover { background: #1ebe5b; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link-seta { font-weight: 600; display: inline-flex; gap: .5em; align-items: center; white-space: nowrap; }
.link-seta i { transition: transform .2s; }
.link-seta:hover i { transform: translateX(4px); }

/* ---------- Topo ---------- */
.topbar { background: var(--marinho); color: #a7aed6; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar i { color: var(--azul-claro); }
.topbar__sep { opacity: .5; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar a { color: #dfe3ff; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.topbar__social { display: inline-flex; gap: 14px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .15); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(7, 11, 46, .08); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.site-logo img { height: 44px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 13px; white-space: nowrap; font: 500 .95rem var(--font-body); color: var(--ink); border-radius: 8px; position: relative; }
.nav a:hover { color: var(--azul); background: var(--azul-soft); }
.nav .current-menu-item > a, .nav .current_page_item > a { color: var(--azul); }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--azul); border-radius: 2px; }
.nav__whats { display: none !important; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.2rem; cursor: pointer; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; isolation: isolate; color: #cfd4f5; background: var(--marinho); padding: clamp(80px, 12vw, 150px) 0 0; overflow: hidden; }
.hero__fotos { position: absolute; inset: 0; z-index: -2; }
.hero__fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; }
.hero__fotos img.is-ativa { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 11, 46, .96) 0%, rgba(7, 11, 46, .86) 42%, rgba(7, 11, 46, .45) 100%), linear-gradient(0deg, rgba(7, 11, 46, .95) 0%, rgba(7, 11, 46, 0) 45%); }
.hero__linhas { position: absolute; z-index: -1; right: -6%; bottom: 120px; width: min(62vw, 980px); aspect-ratio: 2247 / 946; background: var(--azul-claro); -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .22; pointer-events: none; }
.hero__conteudo { max-width: 820px; margin-inline: max(16px, calc((100% - var(--wrap)) / 2)); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--ambar), #ffd677); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 680px; color: #c3c9ee; margin-bottom: 34px; }
.numeros { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(60px, 9vw, 110px) 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.numeros > div { padding: 30px 26px 34px 0; }
.numeros > div + div { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .14); }
.numeros dt { font: 700 clamp(2rem, 3.6vw, 2.9rem)/1 var(--font-head); color: #fff; letter-spacing: -.03em; margin-bottom: 10px; }
.numeros dd { margin: 0; font-size: .92rem; line-height: 1.5; color: #a7aed6; max-width: 220px; }
.numeros__fonte { display: block; margin-top: 6px; font-size: .74rem; color: #8b93c9; text-decoration: underline; text-underline-offset: 2px; }
.numeros__fonte:hover { color: #fff; }

/* ---------- Seções ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--soft { background: var(--bg-soft); }
.section--escura { background: var(--marinho); color: #b7bde3; overflow: hidden; isolation: isolate; }
.section--escura h2, .section--escura h3, .section--escura strong { color: #fff; }
.section--escura .lead { color: #e2e5ff; }
.secao-linhas { position: absolute; z-index: -1; left: 50%; top: 40px; width: 1500px; max-width: none; aspect-ratio: 2247 / 946; transform: translateX(-50%); background: #3a47c9; -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .18; }
.section__head { max-width: 760px; margin-bottom: 50px; }
.section__head p { font-size: 1.08rem; }
.section__head--linha { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section__head--linha h2 { margin-bottom: 0; }
.section__head--espaco { margin-top: 90px; }

/* Duas empresas */
.empresas { margin-top: -1px; }
.empresas__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.empresa { position: relative; display: block; padding: 40px 40px 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.empresa::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--azul-soft) 0%, transparent 70%); }
.empresa:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--azul); color: var(--text); }
.empresa h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 12px; }
.empresa p { max-width: 460px; }
.empresa__num { font: 500 .8rem var(--font-mono); color: var(--azul); letter-spacing: .1em; display: block; margin-bottom: 26px; }
.empresa__link { font-weight: 600; color: var(--azul); display: inline-flex; gap: 8px; align-items: center; }
.empresa--escura { background: linear-gradient(135deg, var(--marinho-2), var(--marinho)); border-color: transparent; color: #b7bde3; }
.empresa--escura::after { background: radial-gradient(circle, rgba(20, 39, 245, .45) 0%, transparent 70%); }
.empresa--escura h2 { color: #fff; }
.empresa--escura .empresa__num, .empresa--escura .empresa__link { color: #aab3ff; }
.empresa--escura:hover { color: #b7bde3; }

/* Split (texto + mídia) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split--topo { align-items: start; margin-bottom: 60px; }
.split__media { margin: 0; }
.split__media img, .moldura img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.moldura { position: relative; }
.moldura::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--azul); border-radius: var(--radius-lg); z-index: -1; }
.split .btn { margin-top: 10px; }

/* Linha do tempo (Pioneiros) */
.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; counter-reset: lt; }
.linha-tempo li { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.linha-tempo figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.linha-tempo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.linha-tempo li:hover img { transform: scale(1.04); }
.linha-tempo li > div { padding: 28px 30px 30px; position: relative; }
.linha-tempo__ano { position: absolute; top: -22px; left: 30px; background: var(--azul); color: #fff; font: 700 .95rem var(--font-head); padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 24px rgba(20, 39, 245, .35); }
.linha-tempo h3 { margin-top: 10px; }
.linha-tempo p { margin: 0; }

/* Escopo técnico (Nossa Engenharia) */
.escopo { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 50px; }
.escopo__titulo { font-size: 1.35rem; margin-bottom: 30px; }
.escopo__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; counter-reset: esc; }
.escopo__lista li { counter-increment: esc; position: relative; padding: 22px 22px 22px 70px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); font-size: .96rem; line-height: 1.55; color: #c9cef0; transition: background .25s, border-color .25s; }
.escopo__lista li:hover { background: rgba(20, 39, 245, .14); border-color: rgba(111, 125, 255, .45); }
.escopo__lista li::before { content: counter(esc, decimal-leading-zero); position: absolute; left: 22px; top: 21px; font: 500 .85rem var(--font-mono); color: var(--ambar); }
.section--escura .centro .btn { margin-top: 10px; }

/* Projetos de referência */
.projetos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.projeto { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--marinho); aspect-ratio: 4 / 3; /* = proporção dos recortes: sem ampliar a foto */ box-shadow: var(--shadow); }
.projeto figure { margin: 0; position: absolute; inset: 0; }
.projeto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.projeto:hover img { transform: scale(1.06); }
.projeto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 11, 46, .95) 0%, rgba(7, 11, 46, .55) 38%, rgba(7, 11, 46, 0) 65%); pointer-events: none; }
.projeto__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 26px; display: grid; gap: 4px; color: #c3c9ee; }
.projeto__tipo { font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #aab3ff; }
.projeto__cap { font: 700 1.9rem/1.1 var(--font-head); color: #fff; letter-spacing: -.02em; }
.projeto__cliente { font-weight: 600; color: #fff; }
.projeto__cliente small { display: block; font-weight: 400; color: #a7aed6; font-size: .86rem; }

/* Metalúrgica: valores e galeria */
.valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.valores li { display: flex; gap: 20px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.valores li > i { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--azul-soft); color: var(--azul); font-size: 1.2rem; }
.valores h3 { margin-bottom: 6px; }
.valores p { margin: 0; font-size: .96rem; }
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.galeria li { border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1; box-shadow: var(--shadow); }
.galeria li:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.galeria li:hover img { transform: scale(1.05); }

/* Clientes */
.clientes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clientes li { display: grid; place-items: center; padding: 26px 22px; aspect-ratio: 3 / 2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; transition: background .25s; }
.clientes img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s, transform .3s; }
.clientes li:hover { background: var(--bg-soft); }
.clientes li:hover img { filter: none; opacity: 1; transform: scale(1.05); }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: clamp(36px, 5vw, 64px); border-radius: 28px; background: linear-gradient(120deg, var(--azul) 0%, #2333d8 45%, var(--marinho-2) 100%); color: #dfe3ff; box-shadow: var(--shadow-lg); }
.cta__linhas { position: absolute; z-index: -1; right: -120px; top: -30px; width: 760px; aspect-ratio: 2247 / 946; background: #fff; -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .12; }
.cta__texto { max-width: 640px; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; }
.cta .eyebrow--claro { color: #dfe3ff; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--marinho); color: #b7bde3; padding: clamp(60px, 8vw, 100px) 0 clamp(50px, 7vw, 80px); }
.page-hero__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero--foto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 11, 46, .94) 0%, rgba(7, 11, 46, .7) 50%, rgba(7, 11, 46, .25) 100%); }
.page-hero__linhas { position: absolute; z-index: -1; right: -80px; bottom: -40px; width: 720px; aspect-ratio: 2247 / 946; background: var(--azul-claro); -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .2; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 14px; }
.page-hero__lead { max-width: 720px; font-size: 1.12rem; color: #c3c9ee; margin: 0; }
.breadcrumbs { font: 500 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: #8d95c9; margin-bottom: 20px; }
.breadcrumbs a { color: #aab3ff; }
.breadcrumbs a:hover { color: #fff; }
.content-area { padding: clamp(50px, 7vw, 90px) 0; }

/* Conteúdo editável (blocos do WordPress) */
.entry { max-width: 860px; }
.entry--servicos, .entry--projetos { max-width: none; }
.entry > * + h2 { margin-top: 1.8em; }
.entry h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: .35em; }
.entry .wp-block-image img { border-radius: var(--radius); }
/* Listas com ícone (classe "lista-check" no bloco Lista) */
.lista-check { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 34px; margin: 0 !important; }
.lista-check li::before { content: "\f00c"; font: 900 .72rem/1 "Font Awesome 6 Free"; position: absolute; left: 0; top: .42em; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--azul-soft); color: var(--azul); }
/* Lista em 2 colunas de cartões (classe "lista-cartoes") */
.entry .lista-cartoes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; counter-reset: lc; margin: 0 0 1.5em; }
.entry .lista-cartoes li { counter-increment: lc; margin: 0; position: relative; padding: 24px 24px 24px 74px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 500; line-height: 1.5; transition: border-color .25s, background .25s; }
.entry .lista-cartoes li:hover { border-color: var(--azul); background: #fff; }
.entry .lista-cartoes li::before { content: counter(lc, decimal-leading-zero); position: absolute; left: 24px; top: 23px; font: 500 .85rem var(--font-mono); color: var(--azul); }
/* Cartões de serviço (grupo com classe "cartoes" contendo grupos com título + parágrafo) */
.entry .cartoes > .wp-block-group__inner-container { display: contents; } /* temas clássicos: o WP envolve o miolo do grupo */
.entry .cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 1.5em; }
.entry .cartoes .wp-block-group { margin: 0 !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; position: relative; overflow: hidden; }
.entry .cartoes .wp-block-group::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 54px; background: var(--azul); transition: width .3s; }
.entry .cartoes .wp-block-group:hover { transform: translateY(-3px); border-color: var(--azul); }
.entry .cartoes .wp-block-group:hover::before { width: 100%; }
.entry .cartoes h3 { font-size: 1.15rem; margin-bottom: 10px; }
.entry .cartoes p { margin: 0; font-size: .96rem; }
/* Faixa de destaque (grupo com classe "destaque") */
.entry .destaque { background: var(--marinho); color: #c3c9ee; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); margin: 2em 0; }
.entry .destaque h2, .entry .destaque h3, .entry .destaque strong { color: #fff; }
.entry .destaque > *:last-child { margin-bottom: 0; }

/* Formulários */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], input[type=url], textarea, select { width: 100%; padding: .85em 1em; border: 1px solid #d5d9e8; border-radius: 10px; font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(20, 39, 245, .12); }
input[type=file] { width: 100%; padding: 14px; border: 1.5px dashed #c5cbe3; border-radius: 10px; background: var(--bg-soft); font-size: .9rem; }
input[type=submit], .wpcf7-submit { background: var(--azul); color: #fff; border: 0; padding: 1em 2.2em; border-radius: 10px; font: 600 1rem var(--font-body); cursor: pointer; box-shadow: 0 10px 26px rgba(20, 39, 245, .3); transition: background .2s, transform .2s; }
input[type=submit]:hover, .wpcf7-submit:hover { background: var(--azul-escuro); transform: translateY(-2px); }
.wpcf7 label { display: block; font: 600 .9rem var(--font-body); color: var(--ink); margin-bottom: 18px; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 label input, .wpcf7 label textarea, .wpcf7 label select { margin-top: 7px; font-weight: 400; }
.wpcf7-acceptance, .wpcf7-radio { font-size: .9rem; display: block; margin-bottom: 18px; }
.wpcf7-acceptance label, .wpcf7-radio label { font-weight: 400; display: inline; }
.wpcf7-radio .wpcf7-list-item { margin: 6px 22px 0 0; }
.wpcf7-radio-bloco { margin-bottom: 18px; }
.wpcf7 .identificacao[hidden] { display: none !important; }
.wpcf7 .campo-titulo { display: block; font: 600 .9rem var(--font-body); color: var(--ink); }
.wpcf7 .dica { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.wpcf7 input[type=radio], .wpcf7 input[type=checkbox] { accent-color: var(--azul); width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row > * { min-width: 0; }
.obrigatorio { color: var(--azul); }
.wpcf7-not-valid-tip { font-size: .82rem; font-weight: 500; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 18px; border-radius: 10px; font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.3fr; gap: 32px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info { background: var(--marinho); color: #b7bde3; border-radius: var(--radius-lg); padding: 38px; position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; isolation: isolate; }
.contact-info::after { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 39, 245, .5), transparent 70%); }
.contact-info__icone { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--azul); color: #fff; font-size: 1.4rem; margin-bottom: 22px; }
.contact-info h2 { color: #fff; font-size: 1.6rem; }
.contact-info strong { color: #fff; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: center; overflow-wrap: anywhere; }
.contact-info li > i { width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #aab3ff; display: grid; place-items: center; }
.contact-info .lista-check li { align-items: flex-start; display: block; }
.contact-info .lista-check li::before { background: rgba(255, 255, 255, .1); color: var(--ambar); }
.contact-info a:not(.btn) { color: #fff; }
.contact-info small { display: block; color: #8d95c9; font: 500 .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.contact-info__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-info .btn--outline { border-color: rgba(255, 255, 255, .3); color: #fff; }
.contact-info .btn--outline:hover { background: #fff; color: var(--marinho); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.contact-form .entry { max-width: none; }
.map { width: 100%; overflow: hidden; filter: grayscale(.4); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--marinho); color: #959dcb; font-size: .95rem; padding-top: 80px; }
.footer-linhas { position: absolute; z-index: -1; left: -140px; bottom: 30px; width: 900px; aspect-ratio: 2247 / 946; background: #2a3591; -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .25; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; gap: 44px; }
.footer-grid > * { min-width: 0; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 22px; }
.footer-marca p { max-width: 380px; }
.footer-titulo { font: 500 .78rem var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: #c9cef0; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact i, .footer-links i { color: var(--azul-claro); width: 16px; margin-top: 5px; flex: none; text-align: center; }
.footer-links a { display: inline-flex; gap: 10px; align-items: baseline; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--azul); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 60px; padding: 24px 0; font-size: .84rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
/* Crédito "Desenvolvido por L9WEB" (padrão em todos os sites): logo branco com fundo transparente, para rodapé escuro */
.credito { display: inline-flex; align-items: center; gap: 8px; }
.credito img { height: 28px; width: auto; opacity: .85; transition: opacity .2s; }
.credito:hover img { opacity: 1; }

/* WhatsApp flutuante */
.whats-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: sm-pulse 2.4s infinite; transition: transform .2s; }
.whats-float:hover { color: #fff; transform: scale(1.07); }
@keyframes sm-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; }
	.whats-float { animation: none; }
	.hero__fotos img { transition: opacity .3s; transform: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1540px) {
	.hdr-cta { display: none; } /* o menu já tem Contato; o botão volta em telas largas */
}
@media (max-width: 1380px) {
	.site-logo img { height: 40px; }
}
@media (max-width: 1180px) {
	.nav a { padding: 10px 8px; font-size: .9rem; }
	.site-logo img { height: 34px; }
	.clientes { grid-template-columns: repeat(4, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
	:root { --header-h: 72px; }
	.topbar .topbar__msg { display: none; }
	.topbar .wrap { justify-content: center; }
	.site-logo img { height: 36px; }
	.nav-toggle { display: grid; place-items: center; }
	.nav { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: #fff; padding: 24px 16px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
	.nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { padding: 16px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .current-menu-item > a::after, .nav .current_page_item > a::after { display: none; }
	.nav__whats { display: block !important; margin-top: 24px; text-align: center; background: #25d366; color: #fff !important; border-radius: 10px; border: 0 !important; font-weight: 600; }
	.numeros { grid-template-columns: 1fr 1fr; }
	.numeros > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.numeros > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
	.split, .empresas__grid, .linha-tempo, .contact-grid { grid-template-columns: 1fr; }
	.moldura::before { inset: 14px -10px -14px 10px; }
	.projetos { grid-template-columns: 1fr 1fr; }
	.galeria { grid-template-columns: repeat(2, 1fr); }
	.entry .cartoes { grid-template-columns: 1fr 1fr; }
	.contact-info { position: relative; top: auto; }
	.section__head--linha { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar__links > a:nth-child(2) { display: none; }
	.topbar__links { gap: 16px; }
	.site-logo img { height: 30px; }
	.hdr-cta { display: none; }
	.hero { padding-top: 64px; }
	.hero .btns .btn { flex: 1 1 100%; }
	.hero__linhas { width: 120vw; right: -30vw; bottom: 260px; }
	.numeros > div, .numeros > div + div { padding: 22px 12px 24px 0; }
	.numeros > div:nth-child(even) { padding-left: 14px; }
	.numeros dd { font-size: .84rem; }
	.empresa { padding: 30px 26px 28px; }
	.projetos, .entry .cartoes, .form-row { grid-template-columns: 1fr; }
	.escopo__lista, .entry .lista-cartoes { grid-template-columns: 1fr; }
	.clientes { grid-template-columns: repeat(2, 1fr); }
	.clientes li { padding: 18px 14px; }
	.galeria li:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
	.cta { border-radius: 20px; }
	.cta__actions, .cta__actions .btn { width: 100%; }
	.footer-grid { grid-template-columns: 1fr; gap: 36px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.whats-float { right: 14px; bottom: 14px; width: 52px; height: 52px; font-size: 1.6rem; }
	.contact-info { padding: 28px 22px; }
}

/* ---------- Seção de vídeo (painel → Vídeo da página inicial) ---------- */
.video-secao { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(520px, 82vh, 760px); display: flex; align-items: flex-end; background: var(--marinho); color: #c9cef0; }
.video-secao__midia { position: absolute; inset: 0; z-index: -2; background: var(--marinho) center / cover no-repeat; }
.video-secao__video, .video-secao__yt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.video-secao__yt { overflow: hidden; pointer-events: none; }
.video-secao__yt iframe { position: absolute; top: 50%; left: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.15); border: 0; } /* 16:9 cobrindo a seção; o zoom esconde a marca do YouTube */
.video-secao.is-rodando .video-secao__video, .video-secao.is-rodando .video-secao__yt { opacity: 1; }
.video-secao::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 11, 46, .96) 0%, rgba(7, 11, 46, .55) 42%, rgba(7, 11, 46, .15) 75%, rgba(7, 11, 46, .35) 100%), linear-gradient(90deg, rgba(7, 11, 46, .75) 0%, rgba(7, 11, 46, 0) 60%); }
.video-secao__linhas { position: absolute; z-index: -1; right: -4%; bottom: -30px; width: min(55vw, 860px); aspect-ratio: 2247 / 946; background: var(--azul-claro); -webkit-mask: var(--linhas) center / contain no-repeat; mask: var(--linhas) center / contain no-repeat; opacity: .16; pointer-events: none; }
.video-secao__conteudo { padding: clamp(60px, 9vw, 110px) 0; }
.video-secao__texto { max-width: 660px; }
.video-secao h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.03em; margin-bottom: 16px; }
.video-secao p { font-size: 1.12rem; color: #d7dbf7; margin-bottom: 28px; }
.video-secao .eyebrow::before { display: none; }
.video-secao__pausa { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(7, 11, 46, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s; }
.video-secao__pausa:hover { background: var(--azul); border-color: var(--azul); }
.video-secao__pausa[hidden] { display: none; }
@media (max-width: 640px) {
	.video-secao { min-height: 560px; }
	.video-secao .btn { width: 100%; }
	.video-secao__pausa { bottom: auto; top: 16px; }
}

/* ---------- Mapa das plantas (painel → Plantas no mapa) ---------- */
.mapa-plantas { display: grid; grid-template-columns: 1fr 300px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.mapa-plantas > * { min-width: 0; }
.mapa-plantas__mapa { min-height: 560px; height: 100%; background: #e8ecf3; z-index: 0; }
.mapa-plantas .leaflet-tile-pane { filter: saturate(.45) contrast(.95); }
.mapa-plantas__lado { background: var(--marinho); color: #b7bde3; padding: 30px 26px; display: flex; flex-direction: column; gap: 22px; }
.mapa-plantas__numeros { margin: 0; display: grid; gap: 16px; }
.mapa-plantas__numeros div { display: flex; align-items: baseline; gap: 12px; }
.mapa-plantas__numeros dt { font: 700 2.3rem/1 var(--font-head); color: #fff; letter-spacing: -.03em; min-width: 64px; }
.mapa-plantas__numeros dd { margin: 0; font-size: .92rem; }
.mapa-plantas__paises { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mapa-plantas__paises button, .mapa-plantas__todos { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid transparent; background: rgba(255, 255, 255, .05); color: #dfe3ff; font: 500 .92rem var(--font-body); cursor: pointer; transition: background .2s, border-color .2s; text-align: left; }
.mapa-plantas__paises button:hover, .mapa-plantas__paises button.is-ativo { background: rgba(20, 39, 245, .3); border-color: rgba(111, 125, 255, .6); color: #fff; }
.mapa-plantas__paises strong { font: 500 .8rem var(--font-mono); color: var(--ambar); }
.mapa-plantas__todos { justify-content: center; background: var(--azul); color: #fff; }
.mapa-plantas__todos:hover { background: var(--azul-escuro); }
.mapa-plantas__dica { font-size: .82rem; color: #8d95c9; margin: auto 0 0; }
.mapa-ponto span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(20, 39, 245, .25), 0 4px 10px rgba(7, 11, 46, .35); transition: transform .2s; }
.mapa-ponto:hover span, .mapa-ponto:focus span { transform: scale(1.25); }
.mapa-cluster { display: grid; place-items: center; }
.mapa-cluster span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marinho); color: #fff; font: 700 .9rem var(--font-head); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(20, 39, 245, .28), 0 6px 16px rgba(7, 11, 46, .35); }
.mapa-cluster--m span { background: var(--azul); }
.mapa-cluster--g span { background: var(--azul); box-shadow: 0 0 0 9px rgba(255, 178, 31, .35), 0 6px 16px rgba(7, 11, 46, .35); }
.mapa-plantas .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.mapa-plantas .leaflet-popup-content { margin: 14px 18px; font: 400 .9rem/1.45 var(--font-body); color: var(--text); }
.mapa-plantas .leaflet-popup-content strong { display: block; font: 700 1rem var(--font-head); color: var(--ink); }
.mapa-plantas .leaflet-popup-content span { display: block; }
.mapa-plantas .leaflet-popup-content em { display: block; font-style: normal; color: var(--azul); margin-top: 4px; font-weight: 500; }
.mapa-plantas .leaflet-container { font-family: var(--font-body); }
@media (max-width: 980px) {
	.mapa-plantas { grid-template-columns: 1fr; }
	.mapa-plantas__mapa { min-height: 460px; height: 460px; }
	.mapa-plantas__paises { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.mapa-plantas__mapa { min-height: 400px; height: 400px; }
	.mapa-plantas__numeros { grid-template-columns: repeat(2, 1fr); }
	.mapa-plantas__numeros div { flex-direction: column; gap: 4px; }
	.mapa-plantas__numeros dt { font-size: 1.8rem; min-width: 0; }
	.mapa-plantas__numeros dd { font-size: .8rem; }
}

/* ---------- Banner de cookies (LGPD) ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.cookies[hidden], .cookies [hidden] { display: none !important; } /* o display: grid/flex das classes não pode vencer o atributo hidden */
.cookies__caixa { pointer-events: auto; max-width: 760px; width: 100%; background: #fff; color: var(--text); border-top: 4px solid var(--azul); border-radius: 14px; box-shadow: 0 20px 60px rgba(7, 11, 46, .3); padding: 22px 24px; font-size: .92rem; }
.cookies__titulo { font: 700 1.15rem var(--font-head); color: var(--ink); margin: 0 0 6px; }
.cookies__caixa p { margin: 0 0 12px; }
.cookies__opcoes { display: grid; gap: 10px; margin: 6px 0 16px; padding: 14px; background: var(--bg-soft); border-radius: 10px; }
.cookies__opcoes label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookies__opcoes input { margin-top: 4px; accent-color: var(--azul); width: 16px; height: 16px; flex: none; }
.cookies__opcoes strong { display: block; color: var(--ink); }
.cookies__botoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookies__botoes .btn { padding: .7em 1.4em; }
.btn--link { background: none; border: 0; color: var(--azul); text-decoration: underline; text-underline-offset: 3px; padding-inline: .4em !important; box-shadow: none; }
.btn--link:hover { transform: none; color: var(--azul-escuro); }
@media (max-width: 600px) {
	.cookies { left: 8px; right: 8px; bottom: 8px; }
	.cookies__caixa { padding: 18px; max-height: 80vh; overflow-y: auto; }
	.cookies__botoes .btn { flex: 1 1 auto; justify-content: center; }
}
