/* ==========================================================================
   Seções: #problemas (Matriz 2x2), #servicos (Grade 3 Cols) e #como (5 Passos)
   ========================================================================== */

/* ---- 2. #PROBLEMAS — MATRIZ DIAGNÓSTICA 2x2 (#0e1014) ---- */
.diag-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--au-line-strong);
  border: 1px solid var(--au-line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
}

.diag-cell {
  background: var(--au-surface);
  padding: clamp(24px, 2.8vw, 36px);
  display: grid;
  align-content: start;
  gap: 12px;
  transition: background-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .diag-cell:hover {
    background: var(--au-surface-hover);
  }
}

.diag-cell__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.diag-cell__idx {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--au-gold);
  padding: 3px 8px;
  border: 1px solid var(--au-gold-line);
  background: var(--au-gold-soft);
  border-radius: var(--r-sm);
}

.diag-cell__svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.diag-cell h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--au-ink);
}

.diag-cell p {
  margin: 0;
  font-size: 15px;
  line-height: 1.56;
  color: var(--au-muted);
}

.diag-cell__sol {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--au-gold-light);
}

@media (max-width: 639px) {
  .diag-matrix {
    grid-template-columns: 1fr;
  }
}

/* ---- 3. #SERVICOS — GRADE DE 3 COLUNAS ARQUITETÔNICAS (#090a0c) ---- */
.au-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.au-service {
  background: var(--au-surface);
  border: 1px solid var(--au-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms var(--au-ease), border-color 200ms ease, background-color 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .au-service:hover {
    transform: translateY(-2px);
    border-color: var(--au-gold-line);
    background: var(--au-surface-hover);
  }
}

.au-service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.au-service__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: #0c0e13;
  border: 1px solid var(--au-line-strong);
}

.au-service__icon svg {
  width: 24px;
  height: 24px;
}

.au-service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--au-gold);
}

.au-service h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--au-ink);
}

.au-service p {
  margin: 0;
  font-size: 15px;
  line-height: 1.56;
  color: var(--au-muted);
}

.au-service__list {
  margin: auto 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--au-line);
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--au-body);
}

.au-service__list li {
  position: relative;
  padding-left: 16px;
}

.au-service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--au-gold);
}

@media (max-width: 959px) {
  .au-services {
    grid-template-columns: 1fr;
  }
}

/* ---- 5. #COMO — FLUXO HORIZONTAL CONECTADO EM 5 PASSOS (#090a0c) ---- */
.au-method {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.au-method::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--au-gold-line), rgba(255, 255, 255, 0.14));
  z-index: 0;
}

.au-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px 0 0;
}

.au-step__node {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--au-surface);
  border: 1px solid var(--au-gold-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--au-gold-light);
  margin-bottom: 6px;
}

.au-step:first-child .au-step__node {
  background: var(--au-gold);
  border-color: var(--au-gold);
  color: #090a0c;
}

.au-step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--au-ink);
}

.au-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--au-muted);
}

.au-step__out {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--au-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--au-gold);
}

@media (max-width: 1023px) {
  .au-method {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 26px;
  }

  .au-method::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .au-step {
    padding: 0 0 0 24px;
  }

  .au-step__node {
    position: absolute;
    left: -26px;
    top: 0;
    margin-bottom: 0;
  }
}
