/* Páginas verticais por indústria (templates/industries/*.html).
   Reutiliza product-page.css (hero, benefit-card, ba-*, related-link); aqui só o que é específico. */

/* ── Hero: imagem estática com o mesmo tratamento do vídeo ─────── */
.ind-hero .mod-hero-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  transform-origin: 70% 50%;
  animation: indKenBurns 28s ease-in-out infinite alternate;
}

@keyframes indKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.08) translateX(-1.5%); }
}

.ind-hero-secondary { border-color: rgba(255,255,255,.25); color: #fff; }

.ind-crumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

.ind-crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.ind-crumbs a:hover { color: #fff; text-decoration: underline; }

/* Hub: mosaico de setores atrás do hero */
.ind-hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.ind-hero .ind-hero-mosaic img { animation: none; }

/* ── Desafios: número antes da etiqueta ─────────────────────────── */
.ind-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .6; }

/* ── Roteiro por fases ──────────────────────────────────────────── */
.ind-roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.ind-phase {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.ind-phase--1 { border-color: rgba(124,58,237,.45); box-shadow: 0 18px 44px rgba(124,58,237,.12); }

.ind-phase-head { padding: .35rem .35rem .6rem; border-bottom: 1px solid var(--line); }

.ind-phase-label {
  display: inline-block;
  font: 800 .7rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: .25rem .55rem;
  border-radius: 4px;
}

.ind-phase--1 .ind-phase-label { color: #fff; background: var(--purple); }

.ind-phase-head h3 { margin: .6rem 0 .25rem; font-size: 1.2rem; }
.ind-phase-head p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

.ind-phase-mods { display: flex; flex-direction: column; gap: .75rem; }

.ind-mod {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ind-mod:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.35);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.ind-mod-name { font-weight: 700; font-size: .95rem; color: var(--ink); }
.ind-mod-tag { font-size: .72rem; font-weight: 600; color: var(--purple); }
.ind-mod-why { font-size: .8rem; line-height: 1.55; color: var(--muted); margin: .15rem 0 .35rem; }
.ind-mod:hover .related-link { gap: .5rem; text-decoration: underline; }

/* ── Na prática ─────────────────────────────────────────────────── */
.ind-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ind-step {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.ind-step-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.ind-step-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ind-step:hover .ind-step-media img { transform: scale(1.03); }

.ind-step-body { padding: 1.4rem 1.5rem 1.6rem; }

.ind-step-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: .22rem .55rem;
  border-radius: 4px;
  margin-bottom: .75rem;
}

.ind-step-body h3 { font-size: 1.02rem; margin-bottom: .45rem; }
.ind-step-body p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.6; }

/* ── Indicadores ────────────────────────────────────────────────── */
.ind-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.3rem;
}

.ind-kpi {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ind-kpi h3 { font-size: 1.05rem; margin: 0; }
.ind-kpi p { margin: 0; flex-grow: 1; font-size: .84rem; color: var(--muted); line-height: 1.6; }

.ind-kpi-mod {
  align-self: flex-start;
  margin-top: .5rem;
  font-size: .72rem;
  color: var(--muted);
  text-decoration: none;
  padding: .25rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}

.ind-kpi-mod strong { color: var(--purple); font-weight: 700; }
.ind-kpi-mod:hover { border-color: rgba(124,58,237,.35); color: var(--ink); }

/* ── Conformidade e integração ──────────────────────────────────── */
.ind-compliance {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1.5rem;
  margin-top: 2.3rem;
}

.ind-panel { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.ind-panel h3 { font-size: 1.05rem; margin-bottom: 1.1rem; }

.ind-norms { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }

.ind-norms li {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.ind-norms li:last-child { border-bottom: 0; padding-bottom: 0; }

.ind-norms code {
  font: 700 .74rem ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--purple);
  background: var(--purple-soft);
  padding: .3rem .55rem;
  border-radius: 4px;
  justify-self: start;
}

.ind-norms span { font-size: .84rem; color: var(--muted); line-height: 1.55; }

.ind-systems { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }

.ind-systems li {
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.ind-erp { margin: 1.3rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* ── Caso real / confiança ──────────────────────────────────────── */
.ind-case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}

.ind-case-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(196,181,253,.22);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.ind-case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ind-case-media:hover img { transform: scale(1.03); }

.ind-case-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(124,58,237,.85);
  box-shadow: 0 10px 30px rgba(124,58,237,.45);
}

.ind-case-copy { display: grid; gap: .9rem; }
.ind-case-copy h2 { color: #fff; margin: 0; }

.ind-case-cat {
  font: 700 .72rem ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.ind-case-work-label { font-size: .8rem; color: #fff; margin-top: .4rem; }

.ind-case-work { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.ind-case-work li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .86rem;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

.ind-case-work li::before { content: '✓'; position: absolute; left: 0; color: var(--purple-light); font-weight: 800; }

.section-dark .ind-case-cta { color: var(--purple-light); }

.ind-logos {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 1160px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.ind-logos > span { font-size: .75rem; text-transform: uppercase; color: rgba(255,255,255,.45); }

.ind-logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2.4rem; }

.ind-logos-row img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .7;
}

.ind-logos--all { border-top: 0; margin-top: 2rem; padding-top: 0; gap: 2rem; }

/* ── Outras indústrias ──────────────────────────────────────────── */
.ind-others {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.ind-other {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
}

.ind-other img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: transform .4s ease, opacity .2s ease; }

.ind-other::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,0) 35%, rgba(9,9,11,.8) 100%);
}

.ind-other span { position: absolute; left: .9rem; right: .9rem; bottom: .75rem; z-index: 1; font-weight: 700; font-size: .9rem; }
.ind-other:hover img { transform: scale(1.05); opacity: .8; }

.ind-others-all { text-align: center; margin: 1.8rem 0 0; }

/* ── Hub: grelha de setores ─────────────────────────────────────── */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ind-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.ind-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.08); border-color: rgba(124,58,237,.35); }

.ind-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.ind-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ind-card:hover .ind-card-media img { transform: scale(1.04); }

.ind-card-body { display: flex; flex-direction: column; gap: .7rem; flex-grow: 1; padding: 1.3rem 1.4rem 1.5rem; }
.ind-card-body h3 { margin: 0; font-size: 1.12rem; }
.ind-card-body > p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.55; flex-grow: 1; }

.ind-card-start { display: grid; gap: .45rem; }
.ind-card-start > span { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--muted-soft); }
.ind-card-start .industry-modules span { background: var(--soft); }
.ind-card:hover .related-link { gap: .5rem; text-decoration: underline; }

/* ── Hub: matriz setor × módulo ─────────────────────────────────── */
.ind-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin-top: 1.8rem;
  font-size: .8rem;
  color: var(--muted);
}

.ind-legend > span { display: inline-flex; align-items: center; gap: .45rem; }

.ind-matrix-wrap {
  max-width: 1160px;
  margin: 1.4rem auto 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ind-matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .82rem; }

.ind-matrix th,
.ind-matrix td { padding: .8rem .6rem; border-bottom: 1px solid var(--line); text-align: center; }

.ind-matrix thead th {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--soft);
}

.ind-matrix tbody th { text-align: left; white-space: nowrap; padding-left: 1.1rem; }
.ind-matrix tbody th a { color: var(--ink); text-decoration: none; font-weight: 700; }
.ind-matrix tbody th a:hover { color: var(--purple); text-decoration: underline; }
.ind-matrix tbody tr:last-child th,
.ind-matrix tbody tr:last-child td { border-bottom: 0; }
.ind-matrix tbody tr:hover { background: rgba(124,58,237,.03); }

.ind-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}

.ind-dot--1 { background: var(--purple); }
.ind-dot--2 { background: var(--purple-light); }
.ind-dot--3 { background: transparent; border: 2px solid var(--purple-light); }

/* ── Hub: método ────────────────────────────────────────────────── */
.ind-method {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  max-width: 1160px;
  margin: 2.5rem auto 0;
  padding: 0;
}

.ind-method li {
  padding: 1.7rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}

.ind-method-num { font: 800 .8rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--purple-light); }
.ind-method h3 { color: #fff; font-size: 1.05rem; margin: .7rem 0 .45rem; }
.ind-method p { margin: 0; font-size: .85rem; line-height: 1.6; }

/* ── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ind-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-container { grid-template-columns: minmax(0, 1fr); }
  .ind-roadmap, .ind-steps, .ind-compliance, .ind-case, .ind-method { grid-template-columns: minmax(0, 1fr); }
  .ind-kpis, .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .benefits-grid, .ind-kpis, .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-section { padding: 3.5rem 1rem; }
  .ba-card-head, .ba-card-body, .ba-card-foot { padding: 1.25rem; }
  .ind-norms li { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .ind-panel { padding: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ind-hero .mod-hero-video img { animation: none; }
}
