/* Development Inovation Growth — páginas de setor (setores/<slug>.html, geradas a partir de JSON)
   Estrutura: topo com a frase do setor (e foto, quando há) → como ajudamos → áreas de solução em abas
   (assets/main.js cuida das abas) → IA para o setor → dores e dado real → chamada final.
   As cores e a fonte vêm do assets/styles.css. */

/* ---------- Topo ---------- */
.setor-hero__grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.setor-hero--foto .setor-hero__grade { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.setor-migalha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-dark); }
.setor-migalha a { color: var(--roxo); text-decoration: none; }
.setor-migalha a:hover { text-decoration: underline; }
.setor-hero .lead { max-width: 52ch; }
.setor-hero__foto { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line-dark); }
.setor-hero__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Como ajudamos ---------- */
.setor-beneficios__grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.setor-beneficio { padding: 24px 22px; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.setor-beneficio h3 { font-size: 18px; line-height: 1.25; }
.setor-beneficio p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #4A4A55; }

.setor-ajuda__titulo { margin: 0 0 14px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: #2A2A33; }
.setor-ajuda { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 24px; }
.setor-ajuda li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 600; line-height: 1.45; color: #1E1E26; }
.setor-ajuda li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 999px; background: rgba(52, 199, 89, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- Áreas de solução (abas) ---------- */
.setor-areas { background: var(--bg-claro-2, #F6F6F8); }
.setor-solucoes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.setor-solucao { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(0, 0, 0, .08); }
.setor-solucao h4 { margin: 0; font-size: 17px; line-height: 1.3; }
.setor-solucao p { margin: 0; font-size: 15px; line-height: 1.55; color: #4A4A55; flex: 1; }

/* Selo da frente que entrega: D (Inteligência de mercado), I (Software e dados), G (Integrações com IA) */
.setor-selo { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--roxo-texto); background: rgba(168, 85, 247, .1); }
.setor-selo b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--roxo); }
.setor-selo--g { color: #15803D; background: rgba(52, 199, 89, .14); }
.setor-selo--g b { background: var(--verde); color: var(--preto); }
.setor-selo:hover { text-decoration: underline; }

/* ---------- IA para o setor ---------- */
.setor-ia__grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.setor-caso { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.setor-caso h3 { font-size: 18px; line-height: 1.3; color: var(--on-dark); }
.setor-caso p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted-on-dark); }
.setor-caso__como { flex: 1; }
.setor-caso__como b { color: var(--on-dark); font-weight: 600; }
.setor-ia .setor-selo { color: var(--on-dark); background: rgba(168, 85, 247, .18); }
.setor-ia .setor-selo--g { color: var(--verde); background: rgba(52, 199, 89, .14); }

/* ---------- Dores e dado ---------- */
.setor-dores__grade { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: start; }
.setor-dores__lista { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.setor-dores__lista li { position: relative; padding: 14px 16px 14px 44px; border-radius: 12px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); font-size: 16px; font-weight: 600; line-height: 1.4; }
.setor-dores__lista li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 999px; background: var(--alerta); box-shadow: 0 0 0 4px rgba(255, 107, 107, .18); }
.setor-dado { padding: 28px 26px; border-radius: var(--radius); border-left: 4px solid var(--roxo); background: #fff; box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .35); }
.setor-dado__numero { margin: 0; font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--roxo-texto); }
.setor-dado__frase { margin: 12px 0 0; font-size: 16px; font-weight: 600; line-height: 1.45; color: #2A2A33; }
.setor-dado__fonte { display: inline-block; margin-top: 14px; font-size: 13px; color: #55555F; text-decoration: underline; text-underline-offset: 2px; }
.setor-outros { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(0, 0, 0, .08); }
.setor-outros ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.setor-outros a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12); font-weight: 600; text-decoration: none; color: inherit; }
.setor-outros a svg { width: 16px; height: 16px; }
.setor-outros a:hover { border-color: var(--roxo); color: var(--roxo-texto); }

/* ---------- Recursos ---------- */
.setor-recursos__grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.setor-recurso { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 48px; border-radius: var(--radius); border: 1px solid rgba(0, 0, 0, .08); background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.setor-recurso strong { font-size: 17px; }
.setor-recurso span { font-size: 15px; line-height: 1.5; color: #4A4A55; }
.setor-recurso svg { position: absolute; left: 22px; bottom: 18px; width: 18px; height: 18px; color: var(--roxo-texto); transition: transform .2s; }
.setor-recurso:hover, .setor-recurso:focus-visible { border-color: var(--roxo); }
.setor-recurso:hover svg, .setor-recurso:focus-visible svg { transform: translateX(4px); }

/* ---------- Primeiros passos (chamada final) ---------- */
.setor-passos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; text-align: left; }
.setor-passo { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.setor-passo > b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--roxo); color: #fff; font-weight: 800; }
.setor-passo h3 { font-size: 18px; color: var(--on-dark); }
.setor-passo p { margin: 0; flex: 1; font-size: 15px; line-height: 1.55; color: var(--muted-on-dark); }
.setor-passo .btn { align-self: flex-start; }
@media (max-width: 860px) { .setor-passos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Chamada final ---------- */
.setor-cta .container { text-align: center; display: flex; flex-direction: column; align-items: center; }
.setor-cta .lead { max-width: 56ch; margin-top: 14px; }
.setor-cta .hero__cta { justify-content: center; margin-top: 28px; }

/* ---------- Telas menores ---------- */
@media (max-width: 860px) {
  .setor-hero--foto .setor-hero__grade { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .setor-dores__grade { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .setor-beneficios__grade { grid-template-columns: minmax(0, 1fr); }
  .setor-solucoes, .setor-ia__grade { grid-template-columns: minmax(0, 1fr); }
  .setor-dores__lista li { font-size: 15px; }
}

/* ---------- Layout no estilo das páginas de setor da SAP ---------- */
/* Menu interno fixo (Visão geral, Industry AI, Soluções…) logo abaixo do cabeçalho */
.setor-subnav { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.setor-subnav .container { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.setor-subnav .container::-webkit-scrollbar { display: none; }
.setor-subnav__nome { flex: none; padding: 16px 18px 16px 0; margin-right: 6px; border-right: 1px solid rgba(0, 0, 0, .12); font-size: 15px; font-weight: 800; color: #111; }
.setor-subnav a { flex: none; position: relative; padding: 16px 12px; font-size: 14.5px; font-weight: 600; color: #3A3A44; text-decoration: none; white-space: nowrap; }
.setor-subnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.setor-subnav a:hover, .setor-subnav a.is-ativo { color: var(--roxo-texto); }
.setor-subnav a.is-ativo::after { background: var(--roxo); }
main > section[id] { scroll-margin-top: calc(var(--nav-h) + 54px); }

/* Abas com sublinhado, como na SAP */
.setor-abas { display: flex; margin: 0 0 36px; border-bottom: 1px solid rgba(0, 0, 0, .12); overflow-x: auto; scrollbar-width: none; }
.setor-abas::-webkit-scrollbar { display: none; }
.setor-abas [role="tab"] { flex: 1 0 150px; max-width: 280px; position: relative; padding: 14px 14px 18px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; color: #2A2A33; text-align: center; cursor: pointer; }
.setor-abas [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.setor-abas [role="tab"]:hover { color: var(--roxo-texto); }
.setor-abas [role="tab"][aria-selected="true"] { color: var(--roxo-texto); }
.setor-abas [role="tab"][aria-selected="true"]::after { background: var(--roxo); }
.setor-abas [role="tab"]:focus-visible { outline: 2px solid var(--roxo); outline-offset: -4px; border-radius: 8px; }

/* Em cada aba: tela ilustrativa à esquerda e a solução em destaque à direita */
.setor-painel__destaque { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; margin-bottom: 32px; }
.setor-painel__texto .setor-painel__intro { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--roxo-texto); }
.setor-painel__texto h3 { margin-top: 12px; font-size: 24px; line-height: 1.25; }
.setor-painel__texto > p:not(.setor-painel__intro) { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3A3A44; }
.setor-painel__texto .setor-selo { margin-top: 18px; }
.setor-tela { padding: 28px 0 0 28px; border-radius: 20px; overflow: hidden; background: radial-gradient(120% 120% at 100% 0%, #D8C2FF 0%, #A855F7 38%, #4C1D95 100%); }
.setor-tela__janela { border-radius: 14px 0 0 0; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -30px rgba(30, 0, 70, .6); }
.setor-tela__barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1E1B2E; }
.setor-tela__barra span { flex: none; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); }
.setor-tela__barra b { margin-left: 10px; min-width: 0; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setor-tela__corpo { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 236px; }
.setor-tela__lado { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; background: #F4F2FA; }
.setor-tela__lado i { height: 24px; border-radius: 7px; background: #E2DBF3; }
.setor-tela__lado i:first-child { background: var(--roxo); }
.setor-tela__main { min-width: 0; padding: 16px; }
.setor-tela__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.setor-tela__kpis span { height: 38px; border-radius: 8px; background: linear-gradient(90deg, #F1ECFB, #F8F6FD); border: 1px solid #ECE6F8; }
.setor-tela__grafico { display: block; width: 100%; height: 70px; margin: 12px 0 8px; }
.setor-tela__grafico path { fill: none; stroke: var(--roxo); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.setor-tela__grafico .area { fill: rgba(168, 85, 247, .12); stroke: none; }
.setor-tela__linhas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.setor-tela__linhas li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 7px; background: #FAF9FD; font-size: 12px; font-weight: 600; color: #2A2A33; }
.setor-tela__linhas span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setor-tela__ponto { flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--roxo); }
.setor-tela__ponto--g { background: var(--verde); }

/* Industry AI: fundo cinza claro, foto ampla com ícones ligados por linhas e o caso em destaque ao lado */
.setor-ia { background: #F4F5F7; }
.setor-ia__destaque { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); gap: 40px; align-items: center; }
.setor-ia__destaque--sem-foto { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.setor-ia__foto { position: relative; margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: #D9DAE0; }
.setor-ia__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.setor-ia__linhas { position: absolute; inset: 0; width: 100%; height: 100%; }
.setor-ia__linhas polyline { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 4; vector-effect: non-scaling-stroke; }
.setor-ia__linhas .tracejada { stroke: #fff; stroke-width: 1.6; stroke-dasharray: 6 6; }
.setor-ia__no { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: clamp(38px, 5vw, 64px); aspect-ratio: 1; border-radius: 28%; color: #6D28D9; background: linear-gradient(180deg, #F7F1FF, #E3D2FF); box-shadow: 0 0 0 4px rgba(168, 85, 247, .38), 0 12px 24px -10px rgba(40, 0, 80, .65); animation: setor-no 3.4s ease-in-out var(--atraso, 0s) infinite; }
.setor-ia__no svg { width: 46%; height: 46%; }
@keyframes setor-no { 0%, 100% { box-shadow: 0 0 0 4px rgba(168, 85, 247, .38), 0 12px 24px -10px rgba(40, 0, 80, .65); } 50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, .16), 0 12px 24px -10px rgba(40, 0, 80, .65); } }
@media (prefers-reduced-motion: reduce) { .setor-ia__no { animation: none; } }
.setor-ia__foto figcaption { position: absolute; right: 10px; bottom: 8px; padding: 3px 8px; border-radius: 6px; font-size: 11px; color: rgba(255, 255, 255, .88); background: rgba(0, 0, 0, .38); }
.setor-ia__texto h3 { font-size: 24px; line-height: 1.25; color: #111; }
.setor-ia__texto p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #3A3A44; }
.setor-ia__texto .setor-caso__como b { color: #111; }
.setor-ia__texto .btn { margin-top: 22px; }
.setor-ia .setor-ia__grade { margin-top: 40px; }
.setor-ia .setor-caso { border: 1px solid rgba(0, 0, 0, .08); background: #fff; }
.setor-ia .setor-caso h3 { color: #111; }
.setor-ia .setor-caso p { color: #4A4A55; }
.setor-ia .setor-caso__como b { color: #111; }
.setor-ia .setor-selo { color: var(--roxo-texto); background: rgba(168, 85, 247, .1); }
.setor-ia .setor-selo--g { color: #15803D; background: rgba(52, 199, 89, .14); }
@media (max-width: 960px) {
  .setor-painel__destaque, .setor-ia__destaque { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .setor-tela { padding: 16px 0 0 16px; }
  .setor-abas [role="tab"] { flex-basis: 130px; font-size: 14.5px; }
}
