/* Medicina do Trabalho 11 — identidade visual própria (petróleo + âmbar) */
:root {
  --petroleo: #0d3b40;
  --petroleo-2: #145a61;
  --petroleo-3: #1f7a80;
  --ambar: #f2a541;
  --ambar-escuro: #c97d16;
  --creme: #faf6ef;
  --creme-2: #f1eadc;
  --branco: #ffffff;
  --texto: #1c2a2c;
  --texto-2: #4d5d5f;
  --linha: #e3dccd;
  --zap: #1fa855;
  --raio: 18px;
  --sombra: 0 10px 30px -18px rgba(13, 59, 64, .45);
  --largura: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--texto); background: var(--creme); }
img, svg { max-width: 100%; display: block; }
a { color: var(--petroleo-2); text-underline-offset: 3px; }
a:hover { color: var(--ambar-escuro); }
h1, h2, h3 { font-family: var(--serif); color: var(--petroleo); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 1.8em 0 .55em; }
h3 { font-size: 1.22rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; border-radius: 4px; }
.box { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }
.pular { position: absolute; left: -9999px; top: 8px; background: var(--ambar); color: var(--petroleo); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.pular:focus { left: 12px; }

/* Botões */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; cursor: pointer; font-family: var(--sans); }
.bt:hover { transform: translateY(-1px); }
.bt-ambar { background: var(--ambar); color: var(--petroleo); }
.bt-ambar:hover { background: #f6b863; color: var(--petroleo); }
.bt-contorno { border-color: var(--petroleo); color: var(--petroleo); background: transparent; }
.bt-contorno:hover { background: var(--petroleo); color: #fff; }
.bt-claro { border-color: rgba(255,255,255,.7); color: #fff; }
.bt-claro:hover { background: #fff; color: var(--petroleo); }
.bt svg { width: 20px; height: 20px; }
.bts { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 239, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.topo .box { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.marca { flex: none; white-space: nowrap; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--petroleo); margin-right: auto; }
.marca svg { width: 46px; height: 46px; flex: none; }
.marca b { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
.marca small { display: block; font-size: .78rem; color: var(--texto-2); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--creme-2); color: var(--petroleo); }
.topo-tel { font-weight: 700; color: var(--petroleo); text-decoration: none; white-space: nowrap; }
.menu-bt { display: none; background: none; border: 2px solid var(--petroleo); color: var(--petroleo); border-radius: 12px; width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1140px) {
  .topo-tel { display: none; }
  .menu-bt { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--creme); border-bottom: 1px solid var(--linha); display: none; box-shadow: var(--sombra); }
  .nav.aberto { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav a { padding: 14px 12px; }
  .topo .bt-ambar.so-desk { display: none; }
}

/* Abertura das páginas */
.abertura { background: radial-gradient(1200px 400px at 85% -10%, rgba(242,165,65,.22), transparent 60%), var(--creme-2); padding: 36px 0 56px; border-bottom: 1px solid var(--linha); }
.abertura .grade-ab { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.abertura .lead { font-size: 1.18rem; color: var(--texto-2); max-width: 62ch; }
.cartao-info { background: var(--petroleo); color: #e9f2f1; border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); }
.cartao-info h2 { color: #fff; font-size: 1.25rem; margin: 0 0 12px; }
.cartao-info ul { list-style: none; padding: 0; margin: 0 0 18px; }
.cartao-info li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .98rem; }
.cartao-info li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--ambar); }
.cartao-info a { color: #fff; }
@media (max-width: 860px) { .abertura .grade-ab { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Trilha */
.trilha ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: var(--texto-2); }
.trilha li + li::before { content: "›"; margin-right: 6px; color: var(--ambar-escuro); }
.trilha a { color: var(--texto-2); }

/* Corpo com índice lateral */
.corpo { padding: 56px 0; }
.corpo .grade-corpo { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.indice { position: sticky; top: 100px; font-size: .93rem; }
.indice strong { display: block; font-family: var(--serif); color: var(--petroleo); margin-bottom: 10px; font-size: 1.05rem; }
.indice ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--linha); }
.indice a { display: block; padding: 6px 0 6px 14px; color: var(--texto-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.indice a:hover { color: var(--petroleo); border-left-color: var(--ambar); }
.texto { max-width: 74ch; }
.texto > h2:first-child { margin-top: 0; }
.texto ul, .texto ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.texto li { margin-bottom: .45em; }
.texto li::marker { color: var(--ambar-escuro); }
.texto h2 { scroll-margin-top: 100px; }
@media (max-width: 960px) { .corpo .grade-corpo { grid-template-columns: minmax(0, 1fr); gap: 0; } .indice { display: none; } }

/* Blocos de conteúdo */
.nota { background: var(--branco); border: 1px solid var(--linha); border-left: 6px solid var(--ambar); border-radius: 14px; padding: 18px 22px; margin: 1.6em 0; }
.nota p:last-child { margin-bottom: 0; }
.resumo { background: var(--petroleo); color: #e9f2f1; border-radius: var(--raio); padding: 22px 26px; margin: 0 0 2em; }
.resumo strong:first-child { color: var(--ambar); font-family: var(--serif); font-size: 1.1rem; display: block; margin-bottom: 6px; }
.resumo ul { margin: 0; padding-left: 1.2em; }
.resumo a { color: #fff; }
ol.passos { list-style: none; padding: 0; counter-reset: passo; }
ol.passos li { counter-increment: passo; position: relative; padding: 4px 0 14px 58px; margin: 0; }
ol.passos li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--creme-2); color: var(--petroleo); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; border: 1px solid var(--linha); }
.tabela { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--linha); border-radius: 14px; background: var(--branco); }
.tabela table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.tabela th, .tabela td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { background: var(--creme-2); color: var(--petroleo); font-weight: 700; }
.tabela tr:last-child td { border-bottom: 0; }

/* Seções e cards */
.secao { padding: 64px 0; }
.secao-branca { background: var(--branco); border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.cab-secao { max-width: 720px; margin-bottom: 32px; }
.cab-secao h2 { margin-top: 0; }
.selo { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ambar-escuro); margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px; text-decoration: none; color: var(--texto); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--ambar); color: var(--texto); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; font-size: .95rem; color: var(--texto-2); }
.card .mais { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--petroleo-2); font-size: .92rem; }
.secao-branca .card { background: var(--creme); }
.grupo + .grupo { margin-top: 48px; }
.grupo h3 { font-size: 1.4rem; margin: 0 0 6px; }
.grupo > p { color: var(--texto-2); margin-bottom: 18px; }

/* Perguntas */
.perguntas { max-width: 860px; }
.perguntas details { background: var(--branco); border: 1px solid var(--linha); border-radius: 14px; margin-bottom: 12px; }
.perguntas summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; color: var(--petroleo); }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--creme-2); display: grid; place-items: center; font-size: 1.2rem; color: var(--petroleo); }
.perguntas details[open] summary::after { content: "–"; background: var(--ambar); }
.perguntas details > div { padding: 0 22px 18px; color: var(--texto-2); }

/* Faixa de chamada */
.chamada { background: var(--petroleo); color: #dce9e8; padding: 56px 0; }
.chamada .box { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
.chamada h2 { color: #fff; margin: 0 0 8px; }
.chamada p { margin: 0; }
@media (max-width: 760px) { .chamada .box { grid-template-columns: 1fr; } }

/* Início */
.heroi { padding: 56px 0 72px; background: radial-gradient(900px 500px at 100% 0%, rgba(242,165,65,.25), transparent 60%), var(--creme-2); }
.heroi .grade-ab { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.heroi h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.heroi h1 em { font-style: italic; color: var(--petroleo-3); }
.heroi .lead { font-size: 1.2rem; color: var(--texto-2); max-width: 56ch; }
.marcadores { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.marcadores li { background: var(--branco); border: 1px solid var(--linha); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--petroleo); }
.painel-frentes { display: grid; gap: 14px; }
.painel-frentes a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; text-decoration: none; color: var(--texto); box-shadow: var(--sombra); }
.painel-frentes a:hover { border-color: var(--ambar); }
.painel-frentes svg { width: 52px; height: 52px; }
.painel-frentes b { display: block; font-family: var(--serif); color: var(--petroleo); font-size: 1.15rem; }
.painel-frentes span { font-size: .93rem; color: var(--texto-2); }
@media (max-width: 860px) { .heroi .grade-ab { grid-template-columns: minmax(0, 1fr); } }
.colunas-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.colunas-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .colunas-3, .colunas-2 { grid-template-columns: minmax(0, 1fr); } }
.bloco { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; }
.secao-branca .bloco { background: var(--creme); }
.bloco h3 { margin-top: 0; }
.bloco p:last-child { margin-bottom: 0; }
.num { font-family: var(--serif); font-size: 2.2rem; color: var(--ambar-escuro); line-height: 1; display: block; margin-bottom: 10px; }

/* Blog */
.meta-artigo { color: var(--texto-2); font-size: .92rem; }
.lista-blog .card time { font-size: .85rem; color: var(--ambar-escuro); font-weight: 700; margin-bottom: 6px; }

/* Formulário */
.form { display: grid; gap: 14px; background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 26px; }
.form label { font-weight: 700; font-size: .95rem; display: grid; gap: 6px; color: var(--petroleo); }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--creme); color: var(--texto); }
.form textarea { min-height: 110px; resize: vertical; }
.form small { color: var(--texto-2); }
.preencher { background: #ffe9a8; padding: 0 6px; border-radius: 6px; }

/* Rodapé */
.rodape { background: #082a2e; color: #b9cfcd; padding: 56px 0 28px; font-size: .95rem; }
.rodape a { color: #e6f0ef; text-decoration: none; }
.rodape a:hover { color: var(--ambar); text-decoration: underline; }
.rodape .grade-rod { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.rodape h3 { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin-bottom: 8px; }
.rodape .marca { color: #fff; margin-bottom: 14px; }
.rodape .marca small { color: #9fbab8; }
.rodape-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 900px) { .rodape .grade-rod { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rodape .grade-rod { grid-template-columns: 1fr; } }

/* WhatsApp fixo */
.zap { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; background: var(--zap); color: #fff; text-decoration: none; font-weight: 800; padding: 12px 20px 12px 14px; border-radius: 999px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.zap:hover { color: #fff; background: #17904a; }
.zap svg { width: 28px; height: 28px; }
@media (max-width: 560px) { .zap span { display: none; } .zap { padding: 14px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
a[href^="mailto:"], .bloco a, .rodape a { overflow-wrap: anywhere; }
.texto, .perguntas, .card, .bloco { overflow-wrap: break-word; }
