/* ==========================================================================
   MR Engenharia — Engenharia de Segurança do Trabalho
   ========================================================================== */

:root {
  --ink: #0A1524;
  --ink-2: #0F1E33;
  --ink-3: #172B45;
  --ink-deep: #070F1B;
  --ink-line: rgba(255, 255, 255, .1);

  --paper: #F5F3EE;
  --paper-2: #ECE8DF;
  --card: #FFFFFF;
  --line: #E1DCD1;

  --text: #101B2A;
  --text-2: #4B5868;
  --text-inv: #E9EEF5;
  --text-inv-2: #9DAABB;

  --safety: #F7BD22; /* amarelo do logo */
  --safety-hover: #FFCB45;
  --safety-ink: #1A1300;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 80px;

  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow: 0 1px 2px rgba(10, 21, 36, .06), 0 18px 40px -20px rgba(10, 21, 36, .28);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --stripes: repeating-linear-gradient(-45deg, var(--safety) 0 16px, transparent 16px 32px);
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
}

h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--safety);
  outline-offset: 3px;
}

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--safety);
  color: var(--safety-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}

.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--safety); color: var(--safety-ink); }
.btn-primary:hover {
  background: var(--safety-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(255, 194, 26, .7);
}

.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-1px); }

.btn-outline { border-color: var(--line); background: var(--card); color: var(--text); }
.btn-outline:hover { border-color: var(--ink); }

.btn-sm { padding: 11px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* Cabeçalho
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 21, 36, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--text-inv);
  transition: box-shadow .3s;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: none;
}

.brand-logo { width: auto; height: 62px; }

.brand-tag {
  padding-left: 14px;
  border-left: 1px solid var(--ink-line);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-inv-2);
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav ul {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav ul a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-inv-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.nav ul a:hover, .nav ul a.is-active, .nav ul a[aria-current="page"] { color: #fff; }

.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--safety);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav ul a.is-active::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-inv);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 25%, transparent 80%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--safety);
}

.hex-dot {
  width: 10px;
  height: 11.5px;
  background: var(--safety);
  clip-path: var(--hex);
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
}

.hero h1 em { font-style: normal; color: var(--safety); }

.lead {
  max-width: 56ch;
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: var(--text-inv-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ink-line);
  list-style: none;
}

.hero-facts li {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--ink-line);
}

.hero-facts li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.hero-facts span { font-size: 14px; color: var(--text-inv-2); }

.hero-art { position: relative; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 194, 26, .16), transparent 65%);
  filter: blur(24px);
}

.honeycomb { width: 100%; max-width: 560px; height: auto; margin-inline: auto; overflow: visible; }

.hc-hex {
  fill: var(--ink-2);
  stroke: rgba(255, 255, 255, .14);
  stroke-width: 1.5;
  transition: fill .25s, stroke .25s;
}

.hc-link { cursor: pointer; outline: none; }
.hc-link:hover .hc-hex, .hc-link:focus-visible .hc-hex { fill: var(--ink-3); stroke: var(--safety); }

.hc-center { fill: var(--safety); stroke: none; }
.hc-ghost { fill: transparent; stroke: rgba(255, 255, 255, .22); stroke-dasharray: 5 7; }
.hc-crea { fill: rgba(255, 194, 26, .06); stroke: var(--safety); }
.hc-bar { fill: var(--safety); }

.hc-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  fill: #fff;
}

.hc-num--accent { fill: var(--safety); }

.hc-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  fill: var(--text-inv-2);
}

.hc-small {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .12em;
  fill: var(--text-inv-2);
}

.hc-cell {
  transform-box: fill-box;
  transform-origin: center;
  animation: hc-in .8s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes hc-in {
  from { opacity: 0; transform: scale(.86); }
  to { opacity: 1; transform: none; }
}

.hazard {
  height: 12px;
  background: var(--stripes);
}

/* Seções
   ========================================================================== */

.section { padding-block: clamp(72px, 10vw, 128px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--safety);
}

.kicker--accent { color: var(--safety); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head p:not(.kicker) {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
}

/* Empresa */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-copy h2 { margin-bottom: 26px; }

.about-copy > p:not(.kicker) {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-2);
}

.about-copy strong { color: var(--text); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.pillars li { padding-top: 16px; border-top: 2px solid var(--text); }

.pillars strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.pillars span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}

.engineer-card,
.risk-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: 40px 32px 32px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text-inv);
}

.engineer-card::before,
.risk-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--safety) 0 10px, transparent 10px 20px);
}

.engineer-top { display: flex; align-items: center; gap: 18px; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 74px;
  clip-path: var(--hex);
  background: var(--safety);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.engineer-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-inv-2);
}

.engineer-name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
}

.crea-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
}

.crea-badge svg { width: 26px; height: 26px; flex: none; color: var(--safety); }
.crea-badge strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
.crea-badge span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-inv-2); }

.engineer-contacts {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.engineer-contacts li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.engineer-contacts svg { width: 18px; height: 18px; flex: none; color: var(--safety); }
.engineer-contacts a { color: var(--text-inv); text-decoration: none; overflow-wrap: anywhere; }
.engineer-contacts a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Serviços */

.services { background: var(--card); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .3s, box-shadow .3s, border-color .3s, background-color .3s;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 60px;
  clip-path: var(--hex);
  background: var(--ink);
  color: var(--safety);
}

.service-icon svg { width: 24px; height: 24px; }

.service-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-2);
}

.service-card h3 { margin-top: 8px; font-size: 25px; line-height: 1.08; }
.service-card p { font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Normas */

.nr-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.nr-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

.nr-tab:hover { border-color: var(--ink); }

.nr-tab-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.nr-tab-label { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--text-2); }

.nr-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.nr-tab[aria-selected="true"] .nr-tab-num { color: var(--safety); }
.nr-tab[aria-selected="true"] .nr-tab-label { color: var(--text-inv-2); }

.nr-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 18px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateX(-50%);
}

.nr-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  animation: panel-in .45s cubic-bezier(.2, .8, .2, 1);
}

.nr-panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.nr-panel-copy { padding: clamp(28px, 4vw, 52px); }
.nr-panel-copy h3 { font-size: clamp(28px, 3vw, 38px); }

.nr-panel-copy > p {
  max-width: 54ch;
  margin-top: 14px;
  font-size: 17.5px;
  color: var(--text-2);
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; line-height: 1.45; }

.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: var(--safety) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1524' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.nr-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--safety);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.link-arrow svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

.nr-panel-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  background: var(--ink);
  color: var(--safety);
}

.nr-panel-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.nr-big {
  position: absolute;
  right: -8px;
  bottom: -46px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 260px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12);
  user-select: none;
}

.nr-panel-art svg { width: min(58%, 210px); }

/* Treinamentos */

.training {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
  background: var(--ink);
  color: var(--text-inv);
}

.training::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: var(--stripes);
}

.training-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.training h2 { color: #fff; }

.training-copy > p:not(.kicker) {
  margin: 20px 0 34px;
  font-size: 18px;
  color: var(--text-inv-2);
}

.training-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }

.training-list li {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--ink-line);
  transition: background-color .2s, padding .2s;
}

.training-list li:hover { background: rgba(255, 255, 255, .03); padding-inline: 14px; }

.t-tag {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--safety);
}

.t-name { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }

.t-meta {
  padding: 6px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-inv-2);
}

/* Como trabalhamos */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #C9C2B4 0 8px, transparent 8px 14px);
}

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  clip-path: var(--hex);
  background: var(--ink);
  color: var(--safety);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.step h3 { margin-top: 22px; font-size: 26px; }
.step p { margin-top: 10px; font-size: 16px; color: var(--text-2); }

/* Contato */

.contact { background: var(--card); }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-copy > p:not(.kicker) { margin-top: 20px; font-size: 18px; color: var(--text-2); }

.contact-list { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}

.contact-item:hover { border-color: var(--ink); transform: translateX(4px); }

.ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--safety);
}

.ci-icon svg { width: 20px; height: 20px; }

.ci-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ci-value { display: block; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.form-card h3 { font-size: 30px; }
.form-intro { margin-top: 6px; color: var(--text-2); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 194, 26, .35);
}

.field [aria-invalid="true"] { border-color: #C2410C; }

.form-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #FFF1E6;
  color: #9A3412;
  font-size: 15px;
  font-weight: 500;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--text-2); }

/* Página NR 12
   ========================================================================== */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--text-inv-2);
}

.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

.hc-num--ink { fill: var(--ink); }
.hc-label--ink { fill: var(--ink-3); }

.hc-icon {
  fill: none;
  stroke: var(--safety);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* O que é a NR 12 */

.about-copy h3 { margin-top: 44px; font-size: 28px; }
.about-copy .checklist { margin: 20px 0 0; }

.risk-card h3 { font-size: 30px; color: #fff; }

.risk-list {
  display: grid;
  gap: 22px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.risk-list li { display: flex; gap: 14px; align-items: flex-start; }
.risk-list svg { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--safety); }
.risk-list strong { display: block; color: #fff; font-weight: 600; line-height: 1.3; }
.risk-list span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--text-inv-2); }

/* Exigências */

.requisitos { background: var(--card); }

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.req-card {
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.req-num {
  display: inline-block;
  padding: 5px 10px 4px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--safety);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .06em;
}

.req-card h3 { margin-top: 16px; font-size: 24px; line-height: 1.1; }
.req-card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }

.std-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1.5px dashed #C9C2B4;
  border-radius: var(--radius);
}

.std-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.std-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.std-list li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.std-list li span { font-weight: 400; color: var(--text-2); }

/* Serviços NR 12 */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color .3s, box-shadow .3s;
}

.svc-card:target { border-color: var(--ink); box-shadow: var(--shadow); }

.svc-head { display: flex; align-items: center; gap: 18px; }
.svc-head .step-num { flex: none; }
.svc-card h3 { font-size: clamp(26px, 2.6vw, 32px); }
.svc-card > p:not(.svc-deliver) { margin-top: 18px; color: var(--text-2); }
.svc-card .checklist { margin: 22px 0 28px; }

.svc-deliver {
  margin-top: auto;
  padding: 14px 16px;
  border-left: 4px solid var(--safety);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
}

/* Perguntas frequentes */

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq-grid .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7BD22' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--ink-3); }
.faq-item p { max-width: 62ch; padding: 0 52px 24px 0; color: var(--text-2); }

/* Rodapé
   ========================================================================== */

.site-footer {
  padding-top: 64px;
  background: var(--ink-deep);
  color: var(--text-inv-2);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.brand--footer .brand-logo { height: 96px; }
.footer-brand p { max-width: 40ch; margin-top: 20px; }
.footer-brand .footer-crea { margin-top: 12px; font-size: 14px; color: var(--text-inv-2); opacity: .85; }

.site-footer h4 {
  margin-bottom: 16px;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer ul a:hover, .footer-bottom a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  padding-right: calc(var(--gutter) + 72px); /* espaço para o botão flutuante do WhatsApp */
  border-top: 1px solid var(--ink-line);
  font-size: 13.5px;
}

/* Página 404 */

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.not-found .container { padding-block: 64px; text-align: center; }
.not-found-logo { width: 120px; height: auto; margin: 0 auto 32px; }
.not-found .eyebrow { justify-content: center; }
.not-found .lead { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }
.not-found .hazard { margin-top: auto; }

/* WhatsApp flutuante */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45);
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.07); }
.nav-open .wa-float { display: none; }
.wa-float svg { width: 30px; height: 30px; }

/* Animação de entrada
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsivo
   ========================================================================== */

@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav ul { gap: 18px; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav ul { flex-direction: column; gap: 0; }

  .nav ul a {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--ink-line);
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
  }

  .nav ul a::after { display: none; }
  .nav ul a.is-active, .nav ul a[aria-current="page"] { color: var(--safety); }
  .nav .btn { margin-top: 28px; padding: 16px 22px; font-size: 16px; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; width: 100%; margin-inline: auto; }

  .about-grid,
  .training-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .engineer-card,
  .risk-card { position: relative; top: 0; }

  .svc-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .nr-panel { grid-template-columns: 1fr; }
  .nr-panel-art { order: -1; min-height: 220px; }
  .nr-panel-art svg { width: 150px; }
  .nr-big { font-size: 200px; bottom: -36px; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps::before { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }

  .brand { gap: 12px; }
  .brand-logo { height: 54px; }
  .brand-tag { padding-left: 12px; font-size: 9.5px; letter-spacing: .12em; }
  .brand--footer .brand-logo { height: 84px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .hero-facts { display: grid; gap: 14px; }
  .hero-facts li { padding: 0; margin: 0; border: 0; }

  .pillars { grid-template-columns: 1fr; gap: 16px; }

  .service-grid { grid-template-columns: 1fr; }

  .nr-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nr-tab { padding: 14px 16px; }
  .nr-tab-num { font-size: 26px; }
  .nr-tab-label { font-size: 13.5px; }
  .nr-tab[aria-selected="true"]::after { display: none; }
  .nr-panel-copy .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

  .training-list li { grid-template-columns: 64px 1fr; row-gap: 8px; }
  .t-meta { grid-column: 2; justify-self: start; }
  .training-copy .btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }

  .steps { grid-template-columns: 1fr; row-gap: 36px; }

  .req-grid { grid-template-columns: 1fr; }
  .std-box { padding: 18px; }
  .svc-head { gap: 14px; }
  .faq-item summary { font-size: 21px; }
  .faq-item p { padding-right: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }

  .footer-grid { grid-template-columns: 1fr; }

  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
