/* HilbTec Engenharia & SST — estilos autocontidos (sem CDN, sem fontes remotas) */

:root {
  --azul-profundo: #082642;
  --azul: #15578a;
  --laranja: #f58a24;
  --laranja-texto: #a4510a;
  --branco: #ffffff;
  --superficie: #f3f6f9;
  --linha: #d8e1ea;
  --texto: #14212e;
  --texto-suave: #4b5c6b;
  --sombra: 0 18px 44px -28px rgba(8, 38, 66, 0.45);
  --max: 1200px;
  --display: Manrope, Montserrat, Sora, "Segoe UI", Arial, sans-serif;
  --sans: Inter, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--branco);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.14; margin: 0 0 0.5em; color: var(--azul-profundo); font-weight: 750; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 6.6vw, 4.4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--azul); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--azul-profundo);
  color: #fff; padding: 10px 16px; border-radius: 6px; transition: top .2s;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--azul); font-weight: 700; margin: 0 0 12px;
}
.eyebrow .num { color: var(--laranja); margin-right: 10px; font-variant-numeric: tabular-nums; }
.lead { font-size: 1.08rem; color: var(--texto-suave); max-width: 62ch; }
.small { font-size: 14px; color: var(--texto-suave); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--display); font-size: 1.4rem; font-weight: 750; letter-spacing: 0;
  color: var(--azul-profundo); text-decoration: none; white-space: nowrap;
}
.wordmark .tec { color: var(--laranja); }
.wordmark small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--texto-suave); font-weight: 600; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha);
}
.topbar .row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 16px; min-height: 72px;
}
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .nav button.navlink {
  font-size: 14px; font-weight: 600; color: var(--azul-profundo); text-decoration: none;
  padding: 10px 12px; background: none; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 6px;
}
.nav a:hover, .nav button.navlink:hover { color: var(--azul); background: var(--superficie); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  background: var(--superficie); border: 1px solid var(--linha); color: var(--azul-profundo);
  padding: 12px 14px; border-radius: 8px; cursor: pointer; min-height: 44px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  padding: 13px 20px; min-height: 46px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -14px rgba(8, 38, 66, .65); }
.btn-primary { background: var(--laranja); color: #241001; }
.btn-primary:hover { background: #e07c17; }
.btn-dark { background: var(--azul-profundo); color: #fff; }
.btn-dark:hover { background: var(--azul); }
.btn-outline { background: transparent; color: var(--azul-profundo); border-color: var(--linha); }
.btn-outline:hover { border-color: var(--azul); color: var(--azul); }
.btn-outline.on-dark { border-color: color-mix(in srgb, var(--branco) 55%, transparent); color: var(--branco); }
.btn-outline.on-dark:hover { border-color: var(--branco); color: var(--branco); background: color-mix(in srgb, var(--branco) 10%, transparent); }
.btn-ghost { background: var(--superficie); color: var(--azul-profundo); }

/* Menu móvel */
.mobile-nav { display: none; border-top: 1px solid var(--linha); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 20px 22px; }
.mobile-nav li + li { border-top: 1px solid var(--linha); }
.mobile-nav a, .mobile-nav button {
  display: block; width: 100%; text-align: left; padding: 15px 2px; font-size: 16px;
  font-weight: 600; color: var(--azul-profundo); text-decoration: none; background: none;
  border: 0; font-family: inherit; cursor: pointer;
}
.mobile-nav .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--linha); background: linear-gradient(180deg, #fff 0%, var(--superficie) 100%); }
.hero .grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center;
  padding: clamp(32px, 4.5vw, 60px) 0;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .exc { color: var(--laranja); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--linha); display: grid; gap: 6px; }
.hero-meta p { margin: 0; font-size: 14px; color: var(--texto-suave); }
.hero .figure-tech { width: min(100%, 430px); justify-self: end; }
.hero .figure-tech img { aspect-ratio: 4 / 3; max-height: 330px; }
.figure-tech { position: relative; }
.figure-tech img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 86% 100%, 0 100%);
  box-shadow: var(--sombra); background: var(--superficie);
}
.figure-tech::before {
  content: ""; position: absolute; left: -14px; top: -14px; width: 96px; height: 96px;
  border-left: 2px solid var(--laranja); border-top: 2px solid var(--laranja);
}
.figure-tech figcaption { margin-top: 12px; font-size: 14px; color: var(--texto-suave); }

/* ---------- Seções ---------- */
section { padding: clamp(52px, 6.5vw, 96px) 0; border-bottom: 1px solid var(--linha); }
section.alt { background: var(--superficie); }
.section-head { max-width: 70ch; margin-bottom: 40px; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.content-narrow { max-width: 860px; }
.service-actions { margin-top: 24px; }
.fire-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.text-link { font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.page-intro { background: var(--superficie); padding-block: clamp(48px, 7vw, 88px); }
.page-intro .actions, .portfolio-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--texto-suave); }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--linha); }
.method-steps li { padding: 28px 24px; border-right: 1px solid var(--linha); }
.method-steps li:last-child { border-right: 0; }
.method-steps span, .portfolio-list article > span { color: var(--laranja-texto); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.method-steps h3 { margin-top: 18px; }
.method-steps p { color: var(--texto-suave); font-size: 15px; margin: 0; }
.portfolio-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; }
.portfolio-band .actions { margin: 0; justify-content: flex-end; }
.portfolio-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--linha); }
.portfolio-list article { padding: 26px; border-bottom: 1px solid var(--linha); }
.portfolio-list article:nth-child(odd) { border-right: 1px solid var(--linha); }
.portfolio-list h2 { font-size: 1.25rem; margin-top: 10px; }
.portfolio-tools { padding-block: 30px; }
.portfolio-tools .small { display: inline; margin-left: 14px; }
.portfolio-downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.portfolio-downloads .small { margin: 0; flex-basis: 100%; }
.section-tail-action { margin: 28px 0 0; }
.portfolio-home-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 22px; padding: 18px 0; border-block: 1px solid var(--linha);
}
.portfolio-home-row > div:first-child { display: grid; gap: 2px; }
.portfolio-home-row strong { color: var(--azul-profundo); font-family: var(--display); }
.portfolio-home-row span { color: var(--texto-suave); font-size: 14px; }
.portfolio-home-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.portfolio-home-actions a { font-weight: 750; white-space: nowrap; text-underline-offset: 4px; }
.contact-help { margin-top: 12px; color: var(--texto-suave); }
.portfolio-intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 48px; align-items: end; }
.portfolio-summary { border-left: 3px solid var(--laranja); padding-left: 22px; color: var(--texto-suave); }
.sector-portfolio { counter-reset: portfolio-sector; }
.sector-entry {
  counter-increment: portfolio-sector; display: grid; grid-template-columns: 72px minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 28px; padding: 34px 0; border-top: 1px solid var(--linha); break-inside: avoid;
}
.sector-entry::before { content: counter(portfolio-sector, decimal-leading-zero); color: var(--laranja-texto); font: 800 14px/1 var(--display); letter-spacing: .12em; padding-top: 7px; }
.sector-entry h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.sector-entry h3 { font-size: 1rem; margin-bottom: 10px; }
.sector-entry p { color: var(--texto-suave); }
.sector-entry ul { margin: 0; padding-left: 20px; }
.sector-entry li + li { margin-top: 5px; }
.sector-entry .service-links { margin-top: 14px; font-size: 14px; }
.portfolio-closing { border-top: 1px solid var(--linha); padding-top: 28px; }
.cta-band { background: var(--azul-profundo); color: #dbe6f0; }
.cta-band h2 { color: var(--branco); }
.not-found { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 26px; font-size: 16px; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--laranja);
}

/* Passos NR-12 */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); }
.steps li { background: #fff; padding: 18px 16px; }
.steps .n { font-family: var(--display); font-size: 13px; letter-spacing: .12em; color: var(--laranja-texto); display: block; margin-bottom: 6px; }
.steps strong { display: block; font-size: 15px; color: var(--azul-profundo); }

/* Blocos de serviço expansíveis */
.svc { border-top: 1px solid var(--linha); }
.svc:last-of-type { border-bottom: 1px solid var(--linha); }
.svc > summary {
  cursor: pointer; list-style: none; padding: 22px 4px; display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px; align-items: baseline; gap: 12px;
}
.svc > summary::-webkit-details-marker { display: none; }
.svc > summary .idx { font-family: var(--display); color: var(--laranja-texto); font-size: 15px; }
.svc > summary h3 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.svc > summary .hint { display: block; font-size: 14px; color: var(--texto-suave); font-family: var(--sans); margin-top: 4px; }
.svc > summary .chev { justify-self: end; color: var(--azul); font-size: 20px; line-height: 1; }
.svc[open] > summary .chev { transform: rotate(45deg); }
.svc .body { padding: 0 4px 28px 68px; }
.svc .body p { max-width: 70ch; }
.nota {
  border-left: 3px solid var(--azul); background: var(--superficie); padding: 14px 16px;
  font-size: 14px; color: var(--texto-suave); margin: 16px 0 0;
}
.destaque { background: var(--azul-profundo); color: #eaf1f8; border-bottom: 0; }
.destaque h2, .destaque h3 { color: #fff; }
.destaque .lead, .destaque .small, .destaque p { color: #c9d8e6; }
.destaque .eyebrow { color: var(--laranja); }
.destaque .steps { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }
.destaque .steps li { background: #0c3255; }
.destaque .steps strong { color: #fff; }
.destaque .list-check li { color: #dbe6f0; }
.destaque .nota { background: rgba(255,255,255,.06); border-left-color: var(--laranja); color: #c9d8e6; }
.destaque .figure-tech img { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 86%); }

/* Setores */
.setores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.setor {
  text-align: left; background: #fff; border: 1px solid var(--linha); padding: 20px;
  border-radius: 10px; cursor: pointer; font-family: inherit; display: grid; gap: 8px;
  min-height: 132px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.setor:hover { border-color: var(--azul); transform: translateY(-2px); box-shadow: var(--sombra); }
.setor strong { font-family: var(--display); font-size: 1.05rem; color: var(--azul-profundo); }
.setor span { font-size: 14px; color: var(--texto-suave); }
.setor em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--laranja-texto); }

/* Triagem */
.hilb-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: center; gap: clamp(24px, 5vw, 64px); min-height: 390px; margin-bottom: 28px;
  padding: clamp(28px, 5vw, 56px); background: var(--azul-profundo); color: #dbe6f0; border: 1px solid #21415c;
  border-radius: 12px; box-shadow: var(--sombra); animation: hilb-entrada .55s ease-out both;
}
.hilb-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--laranja); }
.hilb-panel-copy { position: relative; z-index: 1; max-width: 610px; }
.hilb-panel .eyebrow { color: var(--laranja); }
.hilb-panel h3 { color: var(--branco); font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 18ch; }
.hilb-panel p:not(.eyebrow) { color: #c9d8e6; max-width: 52ch; font-size: 1.05rem; }
.hilb-panel img { align-self: end; justify-self: center; width: min(100%, 350px); height: auto; object-fit: contain; background: transparent; }
@keyframes hilb-entrada { from { opacity: .01; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.triagem-card { background: #fff; border: 1px solid var(--linha); border-radius: 12px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--sombra); }
.progress { display: grid; gap: 10px; margin-bottom: 26px; }
.progress .bar { height: 4px; background: var(--linha); border-radius: 4px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--laranja); width: 33%; transition: width .3s ease; }
.progress .label { font-size: 14px; font-weight: 700; color: var(--azul); letter-spacing: .04em; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--azul-profundo); margin-bottom: 18px; padding: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--linha); border-radius: 8px;
  padding: 14px 16px; cursor: pointer; background: #fff; min-height: 52px; font-size: 16px;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.opt:hover { border-color: var(--azul); transform: translateY(-1px); }
.opt input { width: 18px; height: 18px; accent-color: var(--azul); flex: 0 0 auto; }
.opt:has(input:checked) { border-color: var(--laranja); background: #fff8f1; box-shadow: inset 0 0 0 1px var(--laranja); }
.opt:has(input:focus-visible) { outline: 3px solid var(--laranja); outline-offset: 2px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.erro { color: #9a2b12; font-size: 14px; font-weight: 700; }
.resultado { margin-top: 30px; border-top: 1px solid var(--linha); padding-top: 26px; }
.res-item { border-left: 3px solid var(--laranja); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.res-item h4 { margin: 0 0 6px; font-size: 1.1rem; }
.res-item p { margin: 0; font-size: 15px; color: var(--texto-suave); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { font-size: 14px; background: var(--superficie); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 14px; color: var(--azul-profundo); }

/* Conteúdos */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 22px;
  display: grid; gap: 10px; align-content: start;
}
.card .tag { font-size: 14px; font-weight: 700; color: var(--laranja-texto); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; font-size: 15px; color: var(--texto-suave); }

/* Formulário */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; color: var(--azul-profundo); }
label .req { color: var(--laranja); }
input, select, textarea {
  font-family: inherit; font-size: 16px; color: var(--texto); background: #fff;
  border: 1px solid var(--linha); border-radius: 8px; padding: 12px 14px; min-height: 46px; width: 100%;
}
textarea { min-height: 130px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b8391a; background: #fff7f4; }
.hint { font-size: 14px; color: var(--texto-suave); }
.field .err { font-size: 14px; color: #9a2b12; font-weight: 700; min-height: 0; }
.check-row { display: flex; gap: 12px; align-items: flex-start; }
.check-row input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--azul); }
.check-row label { font-weight: 600; font-size: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.preview {
  margin-top: 26px; border: 1px solid var(--linha); border-radius: 10px; background: var(--superficie); padding: 20px;
}
.preview pre {
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "Courier New", monospace;
  font-size: 14px; line-height: 1.6; margin: 12px 0 0; color: var(--texto);
}
.feedback { font-size: 14px; font-weight: 700; color: #17603a; }

/* Sobre — retrato editorial */
.about-editorial { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(36px, 6vw, 76px); align-items: start; }
.about-portrait { margin: 0; position: sticky; top: 104px; }
.about-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; object-position: center top; background: var(--superficie); box-shadow: var(--sombra); }
.about-portrait figcaption { display: grid; gap: 3px; padding: 16px 0 0; border-top: 3px solid var(--laranja); color: var(--azul-profundo); }
.about-portrait figcaption strong { font-family: var(--display); font-size: 1.05rem; }
.about-portrait figcaption span { color: var(--texto-suave); font-size: 14px; }
.about-copy { min-width: 0; padding-top: 8px; }
.about-process { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--linha); }
.about-process .list-check { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

/* Contato lateral */
.contact-aside { background: var(--azul-profundo); color: #dbe6f0; border-radius: 12px; padding: 28px; }
.contact-aside h3 { color: #fff; }
.contact-aside a { color: #ffd7ae; }
.contact-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 15px; }
.contact-aside .btn { margin-top: 20px; width: 100%; }

/* Modais */
dialog.modal {
  border: 0; border-radius: 12px; padding: 0; width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 900px); color: var(--texto); box-shadow: 0 30px 70px -30px rgba(8,38,66,.6);
}
dialog.modal::backdrop { background: rgba(8, 38, 66, .55); }
.modal-head {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start;
  padding: 22px 22px 14px; border-bottom: 1px solid var(--linha);
}
.modal-head h2, .modal-head h3 { margin: 0; font-size: 1.3rem; }
.modal-body { padding: 20px 22px 26px; overflow-y: auto; max-height: 64vh; }
.modal-close {
  background: var(--superficie); border: 1px solid var(--linha); border-radius: 8px; width: 44px; height: 44px;
  font-size: 20px; cursor: pointer; color: var(--azul-profundo); line-height: 1;
}
.svc-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.svc-menu a {
  display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 10px; padding: 12px 8px;
  text-decoration: none; color: var(--azul-profundo); border-radius: 8px; font-weight: 600;
}
.svc-menu a:hover { background: var(--superficie); }
.svc-menu span.n { color: var(--laranja-texto); font-family: var(--display); }
.svc-menu span.d { display: block; font-weight: 400; font-size: 14px; color: var(--texto-suave); }

/* Rodapé */
footer.site { background: var(--azul-profundo); color: #c9d8e6; padding: 56px 0 32px; }
footer.site .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
footer.site a { color: #ffd7ae; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
footer.site .wordmark { color: #fff; }
footer.site .wordmark small { color: #9fb6cb; }
footer.site .legal {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px; color: #9fb6cb; display: grid; gap: 10px;
}

/* Responsivo */
@media (max-width: 1000px) {
  .hero .grid, .two-col { grid-template-columns: 1fr; gap: 36px; }
  .about-editorial { grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr); gap: 36px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .method-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .method-steps li:nth-child(2) { border-right: 0; }
  .method-steps li:nth-child(-n+2) { border-bottom: 1px solid var(--linha); }
  .portfolio-band { grid-template-columns: 1fr; }
  .portfolio-band .actions { justify-content: flex-start; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar .row { min-height: 66px; }
  html { scroll-padding-top: 74px; }
  .hilb-panel { grid-template-columns: minmax(0, 1fr) minmax(190px, 260px); min-height: 340px; }
  .about-editorial { grid-template-columns: 1fr; }
  .about-portrait { position: static; width: min(100%, 420px); }
  .portfolio-intro-grid { grid-template-columns: 1fr; gap: 22px; }
  .sector-entry { grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
  .sector-entry > div:last-child { grid-column: 2; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .svc > summary { grid-template-columns: 40px minmax(0,1fr) 24px; padding: 18px 2px; }
  .svc .body { padding-left: 42px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .hero .actions .btn, .step-actions .btn, .form-actions .btn { width: 100%; }
  .step-actions, .form-actions { gap: 10px; }
  .hero .grid { padding-top: 28px; padding-bottom: 32px; }
  .hero .figure-tech { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-steps, .portfolio-list { grid-template-columns: 1fr; }
  .method-steps li, .method-steps li:nth-child(2), .portfolio-list article:nth-child(odd) { border-right: 0; }
  .method-steps li { border-bottom: 1px solid var(--linha); }
  .portfolio-tools .small { display: block; margin: 10px 0 0; }
  .hilb-panel { grid-template-columns: 1fr; padding-bottom: 0; text-align: left; }
  .hilb-panel h3 { max-width: 15ch; }
  .hilb-panel img { width: min(88%, 310px); max-height: 360px; }
  .hilb-panel .btn { width: 100%; }
  .about-portrait { width: 100%; }
  .about-process .list-check { grid-template-columns: 1fr; }
  .portfolio-home-row { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .btn:hover, .setor:hover, .opt:hover { transform: none; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Grade de serviços ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.svc-card {
  display: grid; gap: 6px; align-content: start; text-decoration: none; background: #fff;
  border: 1px solid var(--linha); border-radius: 10px; padding: 20px; color: var(--texto);
}
.svc-card:hover { border-color: var(--azul); }
.svc-card .n { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--laranja-texto); }
.svc-card strong { font-size: 1.02rem; color: var(--azul-profundo); }
.svc-card span:last-child { font-size: 14px; color: var(--texto-suave); }

/* ---------- WhatsApp flutuante (discreto, não cobre controles) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--azul-profundo); color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: 11px 16px; font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(8,38,66,.7); max-width: calc(100vw - 32px);
}
.wa-float:hover { background: var(--azul); }
.wa-float .wa-ico {
  font-size: 11px; letter-spacing: .06em; background: #1f8f4e; color: #fff;
  border-radius: 999px; padding: 3px 7px; line-height: 1;
}
@media (max-width: 400px) {
  .wa-float { right: 10px; bottom: 10px; padding: 10px 12px; }
  .wa-float .wa-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media print {
  @page { size: A4; margin: 14mm 13mm; }
  body { font-size: 10pt; line-height: 1.45; color: #000; }
  .topbar, .wa-float, .portfolio-tools, footer.site, dialog, .cta-band, .actions { display: none !important; }
  section { padding: 8mm 0; }
  .page-intro { background: none; border-bottom: 2px solid #082642; }
  .page-intro h1 { font-size: 28pt; }
  .portfolio-intro-grid { grid-template-columns: 1fr; gap: 4mm; }
  .sector-entry { grid-template-columns: 12mm 55mm minmax(0, 1fr); gap: 5mm; padding: 6mm 0; break-inside: avoid-page; page-break-inside: avoid; }
  .sector-entry h2 { font-size: 14pt; }
  .sector-entry h3 { font-size: 10pt; }
  .sector-entry p, .sector-entry li { font-size: 9.5pt; }
  .sector-entry .service-links { display: none; }
  .portfolio-closing { break-inside: avoid; }
  .portfolio-list { grid-template-columns: 1fr 1fr; }
  .portfolio-list article { break-inside: avoid; }
  a { color: #082642; text-decoration: none; }
  .portfolio-list a::after { content: " — hilbtec.com.br"; display: none; }
}
