/* =====================================================================
   Balanças.com — "Linha Verde"
   css/assistencia.css — só em assistencia.html (com base.css + paginas.css):
   linha do processo (.flow), balanças atendidas (.types) e antes → depois (.ba).
   ===================================================================== */

/* ---------- Processo: linha de produção do conserto ---------- */
.flow {
  --fill: 1;
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px);
}
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; }
.flow::before { background: #CFCFC8; }
.flow::after { background: var(--ink); transform: scaleX(var(--fill)); transform-origin: 0 50%; }
.flow__st { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
.flow__mk {
  width: 44px; height: 29px; background: var(--green); transform: skewX(var(--slash));
  box-shadow: 0 0 0 5px var(--paper); margin-left: 8px;
}
.flow__n { margin-top: 18px; font: 900 clamp(64px, 6vw, 104px)/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.flow__t { font: 900 clamp(30px, 2.6vw, 42px)/1 var(--f-display); text-transform: uppercase; }
.flow__st p { font-size: 15.5px; color: var(--body-paper); }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-left: 46px; }
  .flow::before, .flow::after { left: 12px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .flow::after { transform: scaleY(var(--fill)); transform-origin: 50% 0; }
  .flow__mk { position: absolute; left: -48px; top: 2px; width: 34px; height: 22px; margin: 0; }
  .flow__n { margin-top: 0; font-size: 64px; }
}

/* ---------- Balanças atendidas (fundo escuro) ---------- */
#tipos { overflow-x: clip; }
.types { border-top: 1px solid var(--line); }
.type {
  position: relative; display: grid; grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1.2fr) 250px;
  gap: clamp(16px, 2.6vw, 44px); align-items: center; padding: clamp(22px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line);
}
.type::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--green);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .7s var(--ease);
}
.type:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
.type__n { color: var(--green); font-size: 13px; }
.type__t { font: 900 clamp(32px, 3.4vw, 54px)/1 var(--f-display); text-transform: uppercase; }
.type p { color: var(--body-dark); font-size: 16px; }
.type__go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green); text-decoration: none; white-space: nowrap; }
.type__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.type > .type__go, .type > .type__links { justify-self: end; }   /* links alinhados pela direita em todas as linhas */
.type__go .i { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.type:hover .type__go .i { transform: translateX(6px); }
@media (max-width: 900px) {
  .type { grid-template-columns: 36px minmax(0, 1fr); row-gap: 10px; align-items: start; }
  .type p, .type__go, .type__links { grid-column: 2; }
  .type__links { justify-content: flex-start; gap: 0 24px; }
  .type > .type__go, .type > .type__links { justify-self: start; }
  .type__n { padding-top: .5em; }
}

/* ---------- Antes → depois (fundo claro) ---------- */
.ba { border-top: 2px solid var(--ink); }
.ba__row {
  display: grid; grid-template-columns: 50px minmax(0, 1fr) 44px minmax(0, 1.15fr) 120px; gap: clamp(12px, 2vw, 28px);
  align-items: center; padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid #C9C9C2;
}
.ba__n { color: var(--muted); }
.ba__from { font: 500 clamp(17px, 1.5vw, 22px)/1.25 var(--f-text); color: #6A6A64; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: #A3A39C; }
.ba__ar { width: 30px; height: 30px; color: var(--green-deep); }
.ba__to { font: 900 clamp(28px, 2.8vw, 46px)/1 var(--f-display); text-transform: uppercase; }
.ba__tag { justify-self: end; }
@media (max-width: 760px) {
  .ba__row { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; align-items: start; }
  .ba__from, .ba__ar, .ba__to, .ba__tag { grid-column: 2; }
  .ba__ar { width: 22px; height: 22px; transform: rotate(90deg); }
  .ba__tag { justify-self: start; }
}
